vendor: 5,766 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-OKDRZEBW-Qv1OqjZf.js","assets/graph-C_9NHzqX.js","assets/_baseUniq-Bae6UQgh.js","assets/layout-C26ILVnm.js","assets/_basePickBy-CRVQV8QH.js","assets/clone-MoSEZ_oi.js","assets/c4Diagram-VJAJSXHY-Dr37r5EM.js","assets/chunk-D6G4REZN-CjIH3-jB.js","assets/flowDiagram-4HSFHLVR-LCWCJ1jf.js","assets/chunk-RZ5BOZE2-CfKpFQ--.js","assets/channel-DIdsikux.js","assets/erDiagram-Q7BY3M3F-BvRGLT7l.js","assets/gitGraphDiagram-7IBYFJ6S-DOCS6Ae0.js","assets/chunk-4BMEZGHF-BEh1tHy4.js","assets/chunk-XZIHB7SX-CEZjzMxU.js","assets/radar-MK3ICKWK-DhxnJLoI.js","assets/ganttDiagram-APWFNJXF-BFX4HC4R.js","assets/linear-CBiwkevo.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-PH2N3AL5-DvtXlf_y.js","assets/pieDiagram-IB7DONF6-De-eR9ht.js","assets/arc-DC6a9wI4.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-7GDLP6J5-z9d8d_RX.js","assets/xychartDiagram-VJFVF3MP-BmB-XlM1.js","assets/requirementDiagram-KVF5MWMF-CMZ002LM.js","assets/sequenceDiagram-X6HHIX6F-B33x9hb0.js","assets/classDiagram-GIVACNV2-mEn_xmMW.js","assets/chunk-A2AXSNBT-CkdWRwZX.js","assets/classDiagram-v2-COTLJTTW-mEn_xmMW.js","assets/stateDiagram-DGXRK772-DxooAkAU.js","assets/chunk-AEK57VVT-DhzHwKRa.js","assets/stateDiagram-v2-YXO3MK2T-oh0tNk6z.js","assets/journeyDiagram-U35MCT3I-CTwuH5oV.js","assets/timeline-definition-BDJGKUSR-CtOKFDuA.js","assets/mindmap-definition-ALO5MXBD-VPwlpF5V.js","assets/cytoscape.esm-BPoQaFli.js","assets/sankeyDiagram-QLVOVGJD-BoKCXolh.js","assets/diagram-VNBRO52H-CQ83BhK5.js","assets/diagram-SSKATNLV-13FRk0Nc.js","assets/blockDiagram-JOT3LUYC-BATRuxW_.js","assets/architectureDiagram-IEHRJDOE-DNR8Uw6F.js"])))=>i.map(i=>d[i]); 2function uce(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 s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{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 s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var w3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Lqt(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var vD={exports:{}},PS={},xD={exports:{}},Xr={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var DY;function W6e(){if(DY)return Xr;DY=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"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.iterator;function d(Q){return Q===null||typeof Q!="object"?null:(Q=h&&Q[h]||Q["@@iterator"],typeof Q=="function"?Q:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(Q,ie,q){this.props=Q,this.context=ie,this.refs=y,this.updater=q||p}b.prototype.isReactComponent={},b.prototype.setState=function(Q,ie){if(typeof Q!="object"&&typeof Q!="function"&&Q!=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,Q,ie,"setState")},b.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function w(){}w.prototype=b.prototype;function S(Q,ie,q){this.props=Q,this.context=ie,this.refs=y,this.updater=q||p}var T=S.prototype=new w;T.constructor=S,g(T,b.prototype),T.isPureReactComponent=!0;var D=Array.isArray,E=Object.prototype.hasOwnProperty,O={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function $(Q,ie,q){var fe,ke={},Be=null,Qe=null;if(ie!=null)for(fe in ie.ref!==void 0&&(Qe=ie.ref),ie.key!==void 0&&(Be=""+ie.key),ie)E.call(ie,fe)&&!P.hasOwnProperty(fe)&&(ke[fe]=ie[fe]);var ft=arguments.length-2;if(ft===1)ke.children=q;else if(1<ft){for(var Ne=Array(ft),rt=0;rt<ft;rt++)Ne[rt]=arguments[rt+2];ke.children=Ne}if(Q&&Q.defaultProps)for(fe in ft=Q.defaultProps,ft)ke[fe]===void 0&&(ke[fe]=ft[fe]);return{$$typeof:t,type:Q,key:Be,ref:Qe,props:ke,_owner:O.current}}function W(Q,ie){return{$$typeof:t,type:Q.type,key:ie,ref:Q.ref,props:Q.props,_owner:Q._owner}}
vendor: 11,663 bytes, lines 10-34
10function H(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function K(Q){var ie={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(q){return ie[q]})}var Z=/\/+/g;function oe(Q,ie){return typeof Q=="object"&&Q!==null&&Q.key!=null?K(""+Q.key):ie.toString(36)}function te(Q,ie,q,fe,ke){var Be=typeof Q;(Be==="undefined"||Be==="boolean")&&(Q=null);var Qe=!1;if(Q===null)Qe=!0;else switch(Be){case"string":case"number":Qe=!0;break;case"object":switch(Q.$$typeof){case t:case e:Qe=!0}}if(Qe)return Qe=Q,ke=ke(Qe),Q=fe===""?"."+oe(Qe,0):fe,D(ke)?(q="",Q!=null&&(q=Q.replace(Z,"$&/")+"/"),te(ke,ie,q,"",function(rt){return rt})):ke!=null&&(H(ke)&&(ke=W(ke,q+(!ke.key||Qe&&Qe.key===ke.key?"":(""+ke.key).replace(Z,"$&/")+"/")+Q)),ie.push(ke)),1;if(Qe=0,fe=fe===""?".":fe+":",D(Q))for(var ft=0;ft<Q.length;ft++){Be=Q[ft];var Ne=fe+oe(Be,ft);Qe+=te(Be,ie,q,Ne,ke)}else if(Ne=d(Q),typeof Ne=="function")for(Q=Ne.call(Q),ft=0;!(Be=Q.next()).done;)Be=Be.value,Ne=fe+oe(Be,ft++),Qe+=te(Be,ie,q,Ne,ke);else if(Be==="object")throw ie=String(Q),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.");return Qe}function re(Q,ie,q){if(Q==null)return Q;var fe=[],ke=0;return te(Q,fe,"","",function(Be){return ie.call(q,Be,ke++)}),fe}function Y(Q){if(Q._status===-1){var ie=Q._result;ie=ie(),ie.then(function(q){(Q._status===0||Q._status===-1)&&(Q._status=1,Q._result=q)},function(q){(Q._status===0||Q._status===-1)&&(Q._status=2,Q._result=q)}),Q._status===-1&&(Q._status=0,Q._result=ie)}if(Q._status===1)return Q._result.default;throw Q._result}var z={current:null},U={transition:null},G={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:U,ReactCurrentOwner:O};function B(){throw Error("act(...) is not supported in production builds of React.")}return Xr.Children={map:re,forEach:function(Q,ie,q){re(Q,function(){ie.apply(this,arguments)},q)},count:function(Q){var ie=0;return re(Q,function(){ie++}),ie},toArray:function(Q){return re(Q,function(ie){return ie})||[]},only:function(Q){if(!H(Q))throw Error("React.Children.only expected to receive a single React element child.");return Q}},Xr.Component=b,Xr.Fragment=n,Xr.Profiler=i,Xr.PureComponent=S,Xr.StrictMode=r,Xr.Suspense=l,Xr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,Xr.act=B,Xr.cloneElement=function(Q,ie,q){if(Q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Q+".");var fe=g({},Q.props),ke=Q.key,Be=Q.ref,Qe=Q._owner;if(ie!=null){if(ie.ref!==void 0&&(Be=ie.ref,Qe=O.current),ie.key!==void 0&&(ke=""+ie.key),Q.type&&Q.type.defaultProps)var ft=Q.type.defaultProps;for(Ne in ie)E.call(ie,Ne)&&!P.hasOwnProperty(Ne)&&(fe[Ne]=ie[Ne]===void 0&&ft!==void 0?ft[Ne]:ie[Ne])}var Ne=arguments.length-2;if(Ne===1)fe.children=q;else if(1<Ne){ft=Array(Ne);for(var rt=0;rt<Ne;rt++)ft[rt]=arguments[rt+2];fe.children=ft}return{$$typeof:t,type:Q.type,key:ke,ref:Be,props:fe,_owner:Qe}},Xr.createContext=function(Q){return Q={$$typeof:o,_currentValue:Q,_currentValue2:Q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Q.Provider={$$typeof:s,_context:Q},Q.Consumer=Q},Xr.createElement=$,Xr.createFactory=function(Q){var ie=$.bind(null,Q);return ie.type=Q,ie},Xr.createRef=function(){return{current:null}},Xr.forwardRef=function(Q){return{$$typeof:a,render:Q}},Xr.isValidElement=H,Xr.lazy=function(Q){return{$$typeof:u,_payload:{_status:-1,_result:Q},_init:Y}},Xr.memo=function(Q,ie){return{$$typeof:c,type:Q,compare:ie===void 0?null:ie}},Xr.startTransition=function(Q){var ie=U.transition;U.transition={};try{Q()}finally{U.transition=ie}},Xr.unstable_act=B,Xr.useCallback=function(Q,ie){return z.current.useCallback(Q,ie)},Xr.useContext=function(Q){return z.current.useContext(Q)},Xr.useDebugValue=function(){},Xr.useDeferredValue=function(Q){return z.current.useDeferredValue(Q)},Xr.useEffect=function(Q,ie){return z.current.useEffect(Q,ie)},Xr.useId=function(){return z.current.useId()},Xr.useImperativeHandle=function(Q,ie,q){return z.current.useImperativeHandle(Q,ie,q)},Xr.useInsertionEffect=function(Q,ie){return z.current.useInsertionEffect(Q,ie)},Xr.useLayoutEffect=function(Q,ie){return z.current.useLayoutEffect(Q,ie)},Xr.useMemo=function(Q,ie){return z.current.useMemo(Q,ie)},Xr.useReducer=function(Q,ie,q){return z.current.useReducer(Q,ie,q)},Xr.useRef=function(Q){return z.current.useRef(Q)},Xr.useState=function(Q){return z.current.useState(Q)},Xr.useSyncExternalStore=function(Q,ie,q){return z.current.useSyncExternalStore(Q,ie,q)},Xr.useTransition=function(){return z.current.useTransition()},Xr.version="18.3.1",Xr}var MY;function bz(){return MY||(MY=1,xD.exports=W6e()),xD.exports}/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var NY;function q6e(){if(NY)return PS;NY=1;var t=bz(),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,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,h={},d=null,p=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!s.hasOwnProperty(u)&&(h[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:e,type:a,key:d,ref:p,props:h,_owner:i.current}}return PS.Fragment=n,PS.jsx=o,PS.jsxs=o,PS}var RY;function G6e(){return RY||(RY=1,vD.exports=q6e()),vD.exports}var x=G6e(),_=bz();const ii=zc(_),jA=uce({__proto__:null,default:ii},[_]);var n5={},wD={exports:{}},sc={},SD={exports:{}},kD={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var LY;function K6e(){return LY||(LY=1,function(t){function e(U,G){var B=U.length;U.push(G);e:for(;0<B;){var Q=B-1>>>1,ie=U[Q];if(0<i(ie,G))U[Q]=G,U[B]=ie,B=Q;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var G=U[0],B=U.pop();if(B!==G){U[0]=B;e:for(var Q=0,ie=U.length,q=ie>>>1;Q<q;){var fe=2*(Q+1)-1,ke=U[fe],Be=fe+1,Qe=U[Be];if(0>i(ke,B))Be<ie&&0>i(Qe,ke)?(U[Q]=Qe,U[Be]=B,Q=Be):(U[Q]=ke,U[fe]=B,Q=fe);else if(Be<ie&&0>i(Qe,B))U[Q]=Qe,U[Be]=B,Q=Be;else break e}}return G}function i(U,G){var B=U.sortIndex-G.sortIndex;return B!==0?B:U.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,h=null,d=3,p=!1,g=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(U){for(var G=n(c);G!==null;){if(G.callback===null)r(c);else if(G.startTime<=U)r(c),G.sortIndex=G.expirationTime,e(l,G);else break;G=n(c)}}function D(U){if(y=!1,T(U),!g)if(n(l)!==null)g=!0,Y(E);else{var G=n(c);G!==null&&z(D,G.startTime-U)}}function E(U,G){g=!1,y&&(y=!1,w($),$=-1),p=!0;var B=d;try{for(T(G),h=n(l);h!==null&&(!(h.expirationTime>G)||U&&!K());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,d=h.priorityLevel;var ie=Q(h.expirationTime<=G);G=t.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(l)&&r(l),T(G)}else r(l);h=n(l)}if(h!==null)var q=!0;else{var fe=n(c);fe!==null&&z(D,fe.startTime-G),q=!1}return q}finally{h=null,d=B,p=!1}}var O=!1,P=null,$=-1,W=5,H=-1;function K(){return!(t.unstable_now()-H<W)}function Z(){if(P!==null){var U=t.unstable_now();H=U;var G=!0;try{G=P(!0,U)}finally{G?oe():(O=!1,P=null)}}else O=!1}var oe;if(typeof S=="function")oe=function(){S(Z)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,re=te.port2;te.port1.onmessage=Z,oe=function(){re.postMessage(null)}}else oe=function(){b(Z,0)};function Y(U){P=U,O||(O=!0,oe())}function z(U,G){$=b(function(){U(t.unstable_now())},G)}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(U){U.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,Y(E))},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(U){switch(d){case 1:case 2:case 3:var G=3;break;default:G=d}var B=d;d=G;try{return U()}finally{d=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var B=d;d=U;try{return G()}finally{d=B}},t.unstable_scheduleCallback=function(U,G,B){var Q=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Q+B:Q):B=Q,U){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=B+ie,U={id:u++,callback:G,priorityLevel:U,startTime:B,expirationTime:ie,sortIndex:-1},B>Q?(U.sortIndex=B,e(c,U),n(l)===null&&U===n(c)&&(y?(w($),$=-1):y=!0,z(D,B-Q))):(U.sortIndex=ie,e(l,U),g||p||(g=!0,Y(E))),U},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(U){var G=d;return function(){var B=d;d=G;try{return U.apply(this,arguments)}finally{d=B}}}}(kD)),kD}var BY;function Y6e(){return BY||(BY=1,SD.exports=K6e()),SD.exports}/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var FY;function Q6e(){if(FY)return sc;FY=1;var t=bz(),e=Y6e();function n(f){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+f,v=1;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(f,m){o(f,m),o(f+"Capture",m)}function o(f,m){for(i[f]=m,f=0;f<m.length;f++)r.add(m[f])}var a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},h={};function d(f){return l.call(h,f)?!0:l.call(u,f)?!1:c.test(f)?h[f]=!0:(u[f]=!0,!1)}function p(f,m,v,C){if(v!==null&&v.type===0)return!1;switch(typeof m){case"function":case"symbol":return!0;case"boolean":return C?!1:v!==null?!v.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function g(f,m,v,C){if(m===null||typeof m>"u"||p(f,m,v,C))return!0;
vendor: 4,998 bytes, lines 34-35
34if(C)return!1;if(v!==null)switch(v.type){case 3:return!m;case 4:return m===!1;case 5:return isNaN(m);case 6:return isNaN(m)||1>m}return!1}function y(f,m,v,C,M,L,ee){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=C,this.attributeNamespace=M,this.mustUseProperty=v,this.propertyName=f,this.type=m,this.sanitizeURL=L,this.removeEmptyString=ee}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){b[f]=new y(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var m=f[0];b[m]=new y(m,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){b[f]=new y(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){b[f]=new y(f,2,!1,f,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(f){b[f]=new y(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){b[f]=new y(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){b[f]=new y(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){b[f]=new y(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){b[f]=new y(f,5,!1,f.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function S(f){return f[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(f){var m=f.replace(w,S);b[m]=new y(m,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var m=f.replace(w,S);b[m]=new y(m,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var m=f.replace(w,S);b[m]=new y(m,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){b[f]=new y(f,1,!1,f.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){b[f]=new y(f,1,!1,f.toLowerCase(),null,!0,!0)});function T(f,m,v,C){var M=b.hasOwnProperty(m)?b[m]:null;(M!==null?M.type!==0:C||!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(g(m,v,M,C)&&(v=null),C||M===null?d(m)&&(v===null?f.removeAttribute(m):f.setAttribute(m,""+v)):M.mustUseProperty?f[M.propertyName]=v===null?M.type===3?!1:"":v:(m=M.attributeName,C=M.attributeNamespace,v===null?f.removeAttribute(m):(M=M.type,v=M===3||M===4&&v===!0?"":""+v,C?f.setAttributeNS(C,m,v):f.setAttribute(m,v))))}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),O=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),K=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),U=Symbol.iterator;function G(f){return f===null||typeof f!="object"?null:(f=U&&f[U]||f["@@iterator"],typeof f=="function"?f:null)}var B=Object.assign,Q;function ie(f){if(Q===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);Q=m&&m[1]||""}return` 35`+Q+f}var q=!1;function fe(f,m){if(!f||q)return"";q=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(m)if(m=function(){throw Error()},Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}
vendor: 6,553 bytes, lines 35-38
35catch(Ke){var C=Ke}Reflect.construct(f,[],m)}else{try{m.call()}catch(Ke){C=Ke}f.call(m.prototype)}else{try{throw Error()}catch(Ke){C=Ke}f()}}catch(Ke){if(Ke&&C&&typeof Ke.stack=="string"){for(var M=Ke.stack.split(` 36`),L=C.stack.split(` 37`),ee=M.length-1,he=L.length-1;1<=ee&&0<=he&&M[ee]!==L[he];)he--;for(;1<=ee&&0<=he;ee--,he--)if(M[ee]!==L[he]){if(ee!==1||he!==1)do if(ee--,he--,0>he||M[ee]!==L[he]){var Ce=` 38`+M[ee].replace(" at new "," at ");return f.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",f.displayName)),Ce}while(1<=ee&&0<=he);break}}}finally{q=!1,Error.prepareStackTrace=v}return(f=f?f.displayName||f.name:"")?ie(f):""}function ke(f){switch(f.tag){case 5:return ie(f.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return f=fe(f.type,!1),f;case 11:return f=fe(f.type.render,!1),f;case 1:return f=fe(f.type,!0),f;default:return""}}function Be(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case P:return"Fragment";case O:return"Portal";case W:return"Profiler";case $:return"StrictMode";case oe:return"Suspense";case te:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case K:return(f.displayName||"Context")+".Consumer";case H:return(f._context.displayName||"Context")+".Provider";case Z:var m=f.render;return f=f.displayName,f||(f=m.displayName||m.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case re:return m=f.displayName||null,m!==null?m:Be(f.type)||"Memo";case Y:m=f._payload,f=f._init;try{return Be(f(m))}catch{}}return null}function Qe(f){var m=f.type;switch(f.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=m.render,f=f.displayName||f.name||"",m.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Be(m);case 8:return m===$?"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 m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function ft(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Ne(f){var m=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function rt(f){var m=Ne(f)?"checked":"value",v=Object.getOwnPropertyDescriptor(f.constructor.prototype,m),C=""+f[m];if(!f.hasOwnProperty(m)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var M=v.get,L=v.set;return Object.defineProperty(f,m,{configurable:!0,get:function(){return M.call(this)},set:function(ee){C=""+ee,L.call(this,ee)}}),Object.defineProperty(f,m,{enumerable:v.enumerable}),{getValue:function(){return C},setValue:function(ee){C=""+ee},stopTracking:function(){f._valueTracker=null,delete f[m]}}}}function Mt(f){f._valueTracker||(f._valueTracker=rt(f))}function it(f){if(!f)return!1;var m=f._valueTracker;if(!m)return!0;var v=m.getValue(),C="";return f&&(C=Ne(f)?f.checked?"true":"false":f.value),f=C,f!==v?(m.setValue(f),!0):!1}function Rt(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function xt(f,m){var v=m.checked;return B({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??f._wrapperState.initialChecked})}function Nn(f,m){var v=m.defaultValue==null?"":m.defaultValue,C=m.checked!=null?m.checked:m.defaultChecked;v=ft(m.value!=null?m.value:v),f._wrapperState={initialChecked:C,initialValue:v,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function Hn(f,m){m=m.checked,m!=null&&T(f,"checked",m,!1)}function $n(f,m){Hn(f,m);var v=ft(m.value),C=m.type;if(v!=null)C==="number"?(v===0&&f.value===""||f.value!=v)&&(f.value=""+v):f.value!==""+v&&(f.value=""+v);else if(C==="submit"||C==="reset"){f.removeAttribute("value");return}m.hasOwnProperty("value")?nr(f,m.type,v):m.hasOwnProperty("defaultValue")&&nr(f,m.type,ft(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(f.defaultChecked=!!m.defaultChecked)}function Wn(f,m,v){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var C=m.type;if(!(C!=="submit"&&C!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+f._wrapperState.initialValue,v||m===f.value||(f.value=m),f.defaultValue=m}v=f.name,v!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,v!==""&&(f.name=v)}function nr(f,m,v){(m!=="number"||Rt(f.ownerDocument)!==f)&&(v==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+v&&(f.defaultValue=""+v))}var Cn=Array.isArray;function Nr(f,m,v,C){if(f=f.options,m){m={};for(var M=0;M<v.length;M++)m["$"+v[M]]=!0;for(v=0;v<f.length;v++)M=m.hasOwnProperty("$"+f[v].value),f[v].selected!==M&&(f[v].selected=M),M&&C&&(f[v].defaultSelected=!0)}else{for(v=""+ft(v),m=null,M=0;M<f.length;M++){if(f[M].value===v){f[M].selected=!0,C&&(f[M].defaultSelected=!0);return}m!==null||f[M].disabled||(m=f[M])}m!==null&&(m.selected=!0)}}function ki(f,m){if(m.dangerouslySetInnerHTML!=null)throw Error(n(91));return B({},m,{value:void 0,defaultValue:void 0,children:""+f._wrapperState.initialValue})}function yr(f,m){var v=m.value;if(v==null){if(v=m.children,m=m.defaultValue,v!=null){if(m!=null)throw Error(n(92));if(Cn(v)){if(1<v.length)throw Error(n(93));v=v[0]}m=v}m==null&&(m=""),v=m}f._wrapperState={initialValue:ft(v)}}function mt(f,m){var v=ft(m.value),C=ft(m.defaultValue);v!=null&&(v=""+v,v!==f.value&&(f.value=v),m.defaultValue==null&&f.defaultValue!==v&&(f.defaultValue=v)),C!=null&&(f.defaultValue=""+C)}function zt(f){var m=f.textContent;m===f._wrapperState.initialValue&&m!==""&&m!==null&&(f.value=m)}function ze(f){switch(f){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 tt(f,m){return f==null||f==="http://www.w3.org/1999/xhtml"?ze(m):f==="http://www.w3.org/2000/svg"&&m==="foreignObject"?"http://www.w3.org/1999/xhtml":f}var wt,tn=function(f){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(m,v,C,M){MSApp.execUnsafeLocalFunction(function(){return f(m,v,C,M)})}:f}
vendor: 34,995 bytes, lines 38-39
38(function(f,m){if(f.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in f)f.innerHTML=m;else{for(wt=wt||document.createElement("div"),wt.innerHTML="<svg>"+m.valueOf().toString()+"</svg>",m=wt.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;m.firstChild;)f.appendChild(m.firstChild)}});function ot(f,m){if(m){var v=f.firstChild;if(v&&v===f.lastChild&&v.nodeType===3){v.nodeValue=m;return}}f.textContent=m}var jt={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},_r=["Webkit","ms","Moz","O"];Object.keys(jt).forEach(function(f){_r.forEach(function(m){m=m+f.charAt(0).toUpperCase()+f.substring(1),jt[m]=jt[f]})});function fr(f,m,v){return m==null||typeof m=="boolean"||m===""?"":v||typeof m!="number"||m===0||jt.hasOwnProperty(f)&&jt[f]?(""+m).trim():m+"px"}function Rr(f,m){f=f.style;for(var v in m)if(m.hasOwnProperty(v)){var C=v.indexOf("--")===0,M=fr(v,m[v],C);v==="float"&&(v="cssFloat"),C?f.setProperty(v,M):f[v]=M}}var Zt=B({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 lt(f,m){if(m){if(Zt[f]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(n(137,f));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(n(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(n(61))}if(m.style!=null&&typeof m.style!="object")throw Error(n(62))}}function Hr(f,m){if(f.indexOf("-")===-1)return typeof m.is=="string";switch(f){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 Un=null;function xn(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var ut=null,kr=null,di=null;function Kr(f){if(f=pS(f)){if(typeof ut!="function")throw Error(n(280));var m=f.stateNode;m&&(m=yT(m),ut(f.stateNode,f.type,m))}}function Ao(f){kr?di?di.push(f):di=[f]:kr=f}function oi(){if(kr){var f=kr,m=di;if(di=kr=null,Kr(f),m)for(f=0;f<m.length;f++)Kr(m[f])}}function Po(f,m){return f(m)}function Yo(){}var is=!1;function Ii(f,m,v){if(is)return f(m,v);is=!0;try{return Po(f,m,v)}finally{is=!1,(kr!==null||di!==null)&&(Yo(),oi())}}function Oo(f,m){var v=f.stateNode;if(v===null)return null;var C=yT(v);if(C===null)return null;v=C[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(f=f.type,C=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!C;break e;default:f=!1}if(f)return null;if(v&&typeof v!="function")throw Error(n(231,m,typeof v));return v}var xe=!1;if(a)try{var Se={};Object.defineProperty(Se,"passive",{get:function(){xe=!0}}),window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{xe=!1}function Fe(f,m,v,C,M,L,ee,he,Ce){var Ke=Array.prototype.slice.call(arguments,3);try{m.apply(v,Ke)}catch(vt){this.onError(vt)}}var at=!1,_t=null,cn=!1,wn=null,nn={onError:function(f){at=!0,_t=f}};function Ut(f,m,v,C,M,L,ee,he,Ce){at=!1,_t=null,Fe.apply(nn,arguments)}function Kt(f,m,v,C,M,L,ee,he,Ce){if(Ut.apply(this,arguments),at){if(at){var Ke=_t;at=!1,_t=null}else throw Error(n(198));cn||(cn=!0,wn=Ke)}}function Ht(f){var m=f,v=f;if(f.alternate)for(;m.return;)m=m.return;else{f=m;do m=f,(m.flags&4098)!==0&&(v=m.return),f=m.return;while(f)}return m.tag===3?v:null}function jn(f){if(f.tag===13){var m=f.memoizedState;if(m===null&&(f=f.alternate,f!==null&&(m=f.memoizedState)),m!==null)return m.dehydrated}return null}function Ar(f){if(Ht(f)!==f)throw Error(n(188))}function Ci(f){var m=f.alternate;if(!m){if(m=Ht(f),m===null)throw Error(n(188));return m!==f?null:f}for(var v=f,C=m;;){var M=v.return;if(M===null)break;var L=M.alternate;if(L===null){if(C=M.return,C!==null){v=C;continue}break}if(M.child===L.child){for(L=M.child;L;){if(L===v)return Ar(M),f;if(L===C)return Ar(M),m;L=L.sibling}throw Error(n(188))}if(v.return!==C.return)v=M,C=L;else{for(var ee=!1,he=M.child;he;){if(he===v){ee=!0,v=M,C=L;break}if(he===C){ee=!0,C=M,v=L;break}he=he.sibling}if(!ee){for(he=L.child;he;){if(he===v){ee=!0,v=L,C=M;break}if(he===C){ee=!0,C=L,v=M;break}he=he.sibling}if(!ee)throw Error(n(189))}}if(v.alternate!==C)throw Error(n(190))}if(v.tag!==3)throw Error(n(188));return v.stateNode.current===v?f:m}function Nt(f){return f=Ci(f),f!==null?ye(f):null}function ye(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var m=ye(f);if(m!==null)return m;f=f.sibling}return null}var st=e.unstable_scheduleCallback,Yt=e.unstable_cancelCallback,Rn=e.unstable_shouldYield,Ur=e.unstable_requestPaint,pn=e.unstable_now,_s=e.unstable_getCurrentPriorityLevel,_i=e.unstable_ImmediatePriority,Ls=e.unstable_UserBlockingPriority,Di=e.unstable_NormalPriority,Sl=e.unstable_LowPriority,pr=e.unstable_IdlePriority,yi=null,Bs=null;function $u(f){if(Bs&&typeof Bs.onCommitFiberRoot=="function")try{Bs.onCommitFiberRoot(yi,f,void 0,(f.current.flags&128)===128)}catch{}}var on=Math.clz32?Math.clz32:vm,qc=Math.log,Ep=Math.LN2;function vm(f){return f>>>=0,f===0?32:31-(qc(f)/Ep|0)|0}var Ti=64,ju=4194304;function Gc(f){switch(f&-f){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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function Kc(f,m){var v=f.pendingLanes;if(v===0)return 0;var C=0,M=f.suspendedLanes,L=f.pingedLanes,ee=v&268435455;if(ee!==0){var he=ee&~M;he!==0?C=Gc(he):(L&=ee,L!==0&&(C=Gc(L)))}else ee=v&~M,ee!==0?C=Gc(ee):L!==0&&(C=Gc(L));if(C===0)return 0;if(m!==0&&m!==C&&(m&M)===0&&(M=C&-C,L=m&-m,M>=L||M===16&&(L&4194240)!==0))return m;if((C&4)!==0&&(C|=v&16),m=f.entangledLanes,m!==0)for(f=f.entanglements,m&=C;0<m;)v=31-on(m),M=1<<v,C|=f[v],m&=~M;return C}function Wd(f,m){switch(f){case 1:case 2:case 4:return m+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 m+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 Ap(f,m){for(var v=f.suspendedLanes,C=f.pingedLanes,M=f.expirationTimes,L=f.pendingLanes;0<L;){var ee=31-on(L),he=1<<ee,Ce=M[ee];Ce===-1?((he&v)===0||(he&C)!==0)&&(M[ee]=Wd(he,m)):Ce<=m&&(f.expiredLanes|=he),L&=~he}}function qd(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function T1(){var f=Ti;return Ti<<=1,(Ti&4194240)===0&&(Ti=64),f}function $h(f){for(var m=[],v=0;31>v;v++)m.push(f);return m}function Gd(f,m,v){f.pendingLanes|=m,m!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,m=31-on(m),f[m]=v}function Pp(f,m){var v=f.pendingLanes&~m;f.pendingLanes=m,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=m,f.mutableReadLanes&=m,f.entangledLanes&=m,m=f.entanglements;var C=f.eventTimes;for(f=f.expirationTimes;0<v;){var M=31-on(v),L=1<<M;m[M]=0,C[M]=-1,f[M]=-1,v&=~L}}function xm(f,m){var v=f.entangledLanes|=m;for(f=f.entanglements;v;){var C=31-on(v),M=1<<C;M&m|f[C]&m&&(f[C]|=m),v&=~M}}var fi=0;function ni(f){return f&=-f,1<f?4<f?(f&268435455)!==0?16:536870912:4:1}var wm,E1,Sm,fa,jh,Kd=!1,pa=[],kl=null,Cl=null,Mi=null,ma=new Map,Xl=new Map,ga=[],km="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 Qo(f,m){switch(f){case"focusin":case"focusout":kl=null;break;case"dragenter":case"dragleave":Cl=null;break;case"mouseover":case"mouseout":Mi=null;break;case"pointerover":case"pointerout":ma.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xl.delete(m.pointerId)}}function Yc(f,m,v,C,M,L){return f===null||f.nativeEvent!==L?(f={blockedOn:m,domEventName:v,eventSystemFlags:C,nativeEvent:L,targetContainers:[M]},m!==null&&(m=pS(m),m!==null&&E1(m)),f):(f.eventSystemFlags|=C,m=f.targetContainers,M!==null&&m.indexOf(M)===-1&&m.push(M),f)}function Jl(f,m,v,C,M){switch(m){case"focusin":return kl=Yc(kl,f,m,v,C,M),!0;case"dragenter":return Cl=Yc(Cl,f,m,v,C,M),!0;case"mouseover":return Mi=Yc(Mi,f,m,v,C,M),!0;case"pointerover":var L=M.pointerId;return ma.set(L,Yc(ma.get(L)||null,f,m,v,C,M)),!0;case"gotpointercapture":return L=M.pointerId,Xl.set(L,Yc(Xl.get(L)||null,f,m,v,C,M)),!0}return!1}function Op(f){var m=L1(f.target);if(m!==null){var v=Ht(m);if(v!==null){if(m=v.tag,m===13){if(m=jn(v),m!==null){f.blockedOn=m,jh(f.priority,function(){Sm(v)});return}}else if(m===3&&v.stateNode.current.memoizedState.isDehydrated){f.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}f.blockedOn=null}function Ip(f){if(f.blockedOn!==null)return!1;for(var m=f.targetContainers;0<m.length;){var v=ai(f.domEventName,f.eventSystemFlags,m[0],f.nativeEvent);if(v===null){v=f.nativeEvent;var C=new v.constructor(v.type,v);Un=C,v.target.dispatchEvent(C),Un=null}else return m=pS(v),m!==null&&E1(m),f.blockedOn=v,!1;m.shift()}return!0}function Dp(f,m,v){Ip(f)&&v.delete(m)}function Mp(){Kd=!1,kl!==null&&Ip(kl)&&(kl=null),Cl!==null&&Ip(Cl)&&(Cl=null),Mi!==null&&Ip(Mi)&&(Mi=null),ma.forEach(Dp),Xl.forEach(Dp)}function zh(f,m){f.blockedOn===m&&(f.blockedOn=null,Kd||(Kd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Mp)))}function Hh(f){function m(M){return zh(M,f)}if(0<pa.length){zh(pa[0],f);for(var v=1;v<pa.length;v++){var C=pa[v];C.blockedOn===f&&(C.blockedOn=null)}}for(kl!==null&&zh(kl,f),Cl!==null&&zh(Cl,f),Mi!==null&&zh(Mi,f),ma.forEach(m),Xl.forEach(m),v=0;v<ga.length;v++)C=ga[v],C.blockedOn===f&&(C.blockedOn=null);for(;0<ga.length&&(v=ga[0],v.blockedOn===null);)Op(v),v.blockedOn===null&&ga.shift()}var Yd=D.ReactCurrentBatchConfig,ce=!0;function De(f,m,v,C){var M=fi,L=Yd.transition;Yd.transition=null;try{fi=1,rn(f,m,v,C)}finally{fi=M,Yd.transition=L}}function Je(f,m,v,C){var M=fi,L=Yd.transition;Yd.transition=null;try{fi=4,rn(f,m,v,C)}finally{fi=M,Yd.transition=L}}function rn(f,m,v,C){if(ce){var M=ai(f,m,v,C);if(M===null)c9(f,m,C,Pr,v),Qo(f,C);else if(Jl(M,f,m,v,C))C.stopPropagation();else if(Qo(f,C),m&4&&-1<km.indexOf(f)){for(;M!==null;){var L=pS(M);if(L!==null&&wm(L),L=ai(f,m,v,C),L===null&&c9(f,m,C,Pr,v),L===M)break;M=L}M!==null&&C.stopPropagation()}else c9(f,m,C,null,v)}}var Pr=null;function ai(f,m,v,C){if(Pr=null,f=xn(C),f=L1(f),f!==null)if(m=Ht(f),m===null)f=null;else if(v=m.tag,v===13){if(f=jn(m),f!==null)return f;f=null}else if(v===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;f=null}else m!==f&&(f=null);return Pr=f,null}function Ki(f){switch(f){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(_s()){case _i:return 1;case Ls:return 4;case Di:case Sl:return 16;case pr:return 536870912;default:return 16}default:return 16}}var Fr=null,zi=null,Io=null;function Do(){if(Io)return Io;var f,m=zi,v=m.length,C,M="value"in Fr?Fr.value:Fr.textContent,L=M.length;for(f=0;f<v&&m[f]===M[f];f++);var ee=v-f;for(C=1;C<=ee&&m[v-C]===M[L-C];C++);return Io=M.slice(f,1<C?1-C:void 0)}function Qc(f){var m=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&m===13&&(f=13)):f=m,f===10&&(f=13),32<=f||f===13?f:0}function Xc(){return!0}function Uh(){return!1}function po(f){function m(v,C,M,L,ee){this._reactName=v,this._targetInst=M,this.type=C,this.nativeEvent=L,this.target=ee,this.currentTarget=null;for(var he in f)f.hasOwnProperty(he)&&(v=f[he],this[he]=v?v(L):L[he]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Xc:Uh,this.isPropagationStopped=Uh,this}return B(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),m}var Np={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rS=po(Np),Qd=B({},Np,{view:0,detail:0}),iS=po(Qd),A1,P1,Rp,mo=B({},Qd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:I1,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==Rp&&(Rp&&f.type==="mousemove"?(A1=f.screenX-Rp.screenX,P1=f.screenY-Rp.screenY):P1=A1=0,Rp=f),A1)},movementY:function(f){return"movementY"in f?f.movementY:P1}}),Cm=po(mo),O1=B({},mo,{dataTransfer:0}),tT=po(O1),Gb=B({},Qd,{relatedTarget:0}),Kb=po(Gb),nT=B({},Np,{animationName:0,elapsedTime:0,pseudoElement:0}),Yb=po(nT),sS=B({},Np,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),Lp=po(sS),oS=B({},Np,{data:0}),Qb=po(oS),Xb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aS={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"},rT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n9(f){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(f):(f=rT[f])?!!m[f]:!1}function I1(){return n9}var Jb=B({},Qd,{key:function(f){if(f.key){var m=Xb[f.key]||f.key;if(m!=="Unidentified")return m}return f.type==="keypress"?(f=Qc(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?aS[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:I1,charCode:function(f){return f.type==="keypress"?Qc(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?Qc(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),r9=po(Jb),lS=B({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zb=po(lS),i9=B({},Qd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:I1}),iT=po(i9),s9=B({},Np,{propertyName:0,elapsedTime:0,pseudoElement:0}),sT=po(s9),oT=B({},mo,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),o9=po(oT),aT=[9,13,27,32],D1=a&&"CompositionEvent"in window,_m=null;a&&"documentMode"in document&&(_m=document.documentMode);var lT=a&&"TextEvent"in window&&!_m,cT=a&&(!D1||_m&&8<_m&&11>=_m),uT=" ",hT=!1;function M1(f,m){switch(f){case"keyup":return aT.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zu(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var es=!1;function ev(f,m){switch(f){case"compositionend":return zu(m);case"keypress":return m.which!==32?null:(hT=!0,uT);case"textInput":return f=m.data,f===uT&&hT?null:f;default:return null}}function Zl(f,m){if(es)return f==="compositionend"||!D1&&M1(f,m)?(f=Do(),Io=zi=Fr=null,es=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return cT&&m.locale!=="ko"?null:m.data;default:return null}}var a9={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 tv(f){var m=f&&f.nodeName&&f.nodeName.toLowerCase();return m==="input"?!!a9[f.type]:m==="textarea"}function cS(f,m,v,C){Ao(C),m=pT(m,"onChange"),0<m.length&&(v=new rS("onChange","change",null,v,C),f.push({event:v,listeners:m}))}var Jc=null,Bp=null;function Tm(f){KG(f,0)}function Zc(f){var m=iv(f);if(it(m))return f}function dT(f,m){if(f==="change")return m}var k=!1;if(a){var A;if(a){var R="oninput"in document;if(!R){var V=document.createElement("div");V.setAttribute("oninput","return;"),R=typeof V.oninput=="function"}A=R}else A=!1;k=A&&(!document.documentMode||9<document.documentMode)}function X(){Jc&&(Jc.detachEvent("onpropertychange",ne),Bp=Jc=null)}function ne(f){if(f.propertyName==="value"&&Zc(Bp)){var m=[];cS(m,Bp,f,xn(f)),Ii(Tm,m)}}function le(f,m,v){f==="focusin"?(X(),Jc=m,Bp=v,Jc.attachEvent("onpropertychange",ne)):f==="focusout"&&X()}function pe(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return Zc(Bp)}function _e(f,m){if(f==="click")return Zc(m)}function Ae(f,m){if(f==="input"||f==="change")return Zc(m)}function Le(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var be=typeof Object.is=="function"?Object.is:Le;function $e(f,m){if(be(f,m))return!0;if(typeof f!="object"||f===null||typeof m!="object"||m===null)return!1;var v=Object.keys(f),C=Object.keys(m);if(v.length!==C.length)return!1;for(C=0;C<v.length;C++){var M=v[C];if(!l.call(m,M)||!be(f[M],m[M]))return!1}return!0}function Te(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function Re(f,m){var v=Te(f);f=0;for(var C;v;){if(v.nodeType===3){if(C=f+v.textContent.length,f<=m&&C>=m)return{node:v,offset:m-f};f=C}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Te(v)}}function je(f,m){return f&&m?f===m?!0:f&&f.nodeType===3?!1:m&&m.nodeType===3?je(f,m.parentNode):"contains"in f?f.contains(m):f.compareDocumentPosition?!!(f.compareDocumentPosition(m)&16):!1:!1}function Ie(){for(var f=window,m=Rt();m instanceof f.HTMLIFrameElement;){try{var v=typeof m.contentWindow.location.href=="string"}catch{v=!1}if(v)f=m.contentWindow;else break;m=Rt(f.document)}return m}function qe(f){var m=f&&f.nodeName&&f.nodeName.toLowerCase();return m&&(m==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||m==="textarea"||f.contentEditable==="true")}function Ye(f){var m=Ie(),v=f.focusedElem,C=f.selectionRange;if(m!==v&&v&&v.ownerDocument&&je(v.ownerDocument.documentElement,v)){if(C!==null&&qe(v)){if(m=C.start,f=C.end,f===void 0&&(f=m),"selectionStart"in v)v.selectionStart=m,v.selectionEnd=Math.min(f,v.value.length);else if(f=(m=v.ownerDocument||document)&&m.defaultView||window,f.getSelection){f=f.getSelection();var M=v.textContent.length,L=Math.min(C.start,M);C=C.end===void 0?L:Math.min(C.end,M),!f.extend&&L>C&&(M=C,C=L,L=M),M=Re(v,L);var ee=Re(v,C);M&&ee&&(f.rangeCount!==1||f.anchorNode!==M.node||f.anchorOffset!==M.offset||f.focusNode!==ee.node||f.focusOffset!==ee.offset)&&(m=m.createRange(),m.setStart(M.node,M.offset),f.removeAllRanges(),L>C?(f.addRange(m),f.extend(ee.node,ee.offset)):(m.setEnd(ee.node,ee.offset),f.addRange(m)))}}for(m=[],f=v;f=f.parentNode;)f.nodeType===1&&m.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<m.length;v++)f=m[v],f.element.scrollLeft=f.left,f.element.scrollTop=f.top}}var Xe=a&&"documentMode"in document&&11>=document.documentMode,nt=null,Tt=null,$t=null,Et=!1;function Lt(f,m,v){var C=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;Et||nt==null||nt!==Rt(C)||(C=nt,"selectionStart"in C&&qe(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),$t&&$e($t,C)||($t=C,C=pT(Tt,"onSelect"),0<C.length&&(m=new rS("onSelect","select",null,m,v),f.push({event:m,listeners:C}),m.target=nt)))}function Wt(f,m){var v={};return v[f.toLowerCase()]=m.toLowerCase(),v["Webkit"+f]="webkit"+m,v["Moz"+f]="moz"+m,v}var Bt={animationend:Wt("Animation","AnimationEnd"),animationiteration:Wt("Animation","AnimationIteration"),animationstart:Wt("Animation","AnimationStart"),transitionend:Wt("Transition","TransitionEnd")},sn={},Tr={};a&&(Tr=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);function Lr(f){if(sn[f])return sn[f];if(!Bt[f])return f;var m=Bt[f],v;for(v in m)if(m.hasOwnProperty(v)&&v in Tr)return sn[f]=m[v];return f}var Vr=Lr("animationend"),Ya=Lr("animationiteration"),Cr=Lr("animationstart"),Xo=Lr("transitionend"),Jo=new Map,N1="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 Fs(f,m){Jo.set(f,m),s(m,[f])}for(var Vh=0;Vh<N1.length;Vh++){var R1=N1[Vh],e6e=R1.toLowerCase(),t6e=R1[0].toUpperCase()+R1.slice(1);Fs(e6e,"on"+t6e)}Fs(Vr,"onAnimationEnd"),Fs(Ya,"onAnimationIteration"),Fs(Cr,"onAnimationStart"),Fs("dblclick","onDoubleClick"),Fs("focusin","onFocus"),Fs("focusout","onBlur"),Fs(Xo,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uS="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(" "),n6e=new Set("cancel close invalid load scroll toggle".split(" ").concat(uS));function GG(f,m,v){var C=f.type||"unknown-event";f.currentTarget=v,Kt(C,m,void 0,f),f.currentTarget=null}function KG(f,m){m=(m&4)!==0;for(var v=0;v<f.length;v++){var C=f[v],M=C.event;C=C.listeners;e:{var L=void 0;if(m)for(var ee=C.length-1;0<=ee;ee--){var he=C[ee],Ce=he.instance,Ke=he.currentTarget;if(he=he.listener,Ce!==L&&M.isPropagationStopped())break e;GG(M,he,Ke),L=Ce}else for(ee=0;ee<C.length;ee++){if(he=C[ee],Ce=he.instance,Ke=he.currentTarget,he=he.listener,Ce!==L&&M.isPropagationStopped())break e;GG(M,he,Ke),L=Ce}}}if(cn)throw f=wn,cn=!1,wn=null,f}function Ts(f,m){var v=m[m9];v===void 0&&(v=m[m9]=new Set);var C=f+"__bubble";v.has(C)||(YG(m,f,2,!1),v.add(C))}function l9(f,m,v){var C=0;m&&(C|=4),YG(v,f,C,m)}var fT="_reactListening"+Math.random().toString(36).slice(2);function hS(f){if(!f[fT]){f[fT]=!0,r.forEach(function(v){v!=="selectionchange"&&(n6e.has(v)||l9(v,!1,f),l9(v,!0,f))});var m=f.nodeType===9?f:f.ownerDocument;m===null||m[fT]||(m[fT]=!0,l9("selectionchange",!1,m))}}function YG(f,m,v,C){switch(Ki(m)){case 1:var M=De;break;case 4:M=Je;break;default:M=rn}v=M.bind(null,m,v,f),M=void 0,!xe||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(M=!0),C?M!==void 0?f.addEventListener(m,v,{capture:!0,passive:M}):f.addEventListener(m,v,!0):M!==void 0?f.addEventListener(m,v,{passive:M}):f.addEventListener(m,v,!1)}function c9(f,m,v,C,M){var L=C;if((m&1)===0&&(m&2)===0&&C!==null)e:for(;;){if(C===null)return;var ee=C.tag;if(ee===3||ee===4){var he=C.stateNode.containerInfo;if(he===M||he.nodeType===8&&he.parentNode===M)break;if(ee===4)for(ee=C.return;ee!==null;){var Ce=ee.tag;if((Ce===3||Ce===4)&&(Ce=ee.stateNode.containerInfo,Ce===M||Ce.nodeType===8&&Ce.parentNode===M))return;ee=ee.return}for(;he!==null;){if(ee=L1(he),ee===null)return;if(Ce=ee.tag,Ce===5||Ce===6){C=L=ee;continue e}he=he.parentNode}}C=C.return}Ii(function(){var Ke=L,vt=xn(v),St=[];e:{var gt=Jo.get(f);if(gt!==void 0){var an=rS,mn=f;switch(f){case"keypress":if(Qc(v)===0)break e;case"keydown":case"keyup":an=r9;break;case"focusin":mn="focus",an=Kb;break;case"focusout":mn="blur",an=Kb;break;case"beforeblur":case"afterblur":an=Kb;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":an=Cm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":an=tT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":an=iT;break;case Vr:case Ya:case Cr:an=Yb;break;case Xo:an=sT;break;case"scroll":an=iS;break;case"wheel":an=o9;break;case"copy":case"cut":case"paste":an=Lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":an=Zb}var vn=(m&4)!==0,go=!vn&&f==="scroll",Ue=vn?gt!==null?gt+"Capture":null:gt;vn=[];for(var Pe=Ke,Ge;Pe!==null;){Ge=Pe;var Ft=Ge.stateNode;if(Ge.tag===5&&Ft!==null&&(Ge=Ft,Ue!==null&&(Ft=Oo(Pe,Ue),Ft!=null&&vn.push(dS(Pe,Ft,Ge)))),go)break;Pe=Pe.return}0<vn.length&&(gt=new an(gt,mn,null,v,vt),St.push({event:gt,listeners:vn}))}}if((m&7)===0){e:{if(gt=f==="mouseover"||f==="pointerover",an=f==="mouseout"||f==="pointerout",gt&&v!==Un&&(mn=v.relatedTarget||v.fromElement)&&(L1(mn)||mn[Fp]))break e;if((an||gt)&&(gt=vt.window===vt?vt:(gt=vt.ownerDocument)?gt.defaultView||gt.parentWindow:window,an?(mn=v.relatedTarget||v.toElement,an=Ke,mn=mn?L1(mn):null,mn!==null&&(go=Ht(mn),mn!==go||mn.tag!==5&&mn.tag!==6)&&(mn=null)):(an=null,mn=Ke),an!==mn)){if(vn=Cm,Ft="onMouseLeave",Ue="onMouseEnter",Pe="mouse",(f==="pointerout"||f==="pointerover")&&(vn=Zb,Ft="onPointerLeave",Ue="onPointerEnter",Pe="pointer"),go=an==null?gt:iv(an),Ge=mn==null?gt:iv(mn),gt=new vn(Ft,Pe+"leave",an,v,vt),gt.target=go,gt.relatedTarget=Ge,Ft=null,L1(vt)===Ke&&(vn=new vn(Ue,Pe+"enter",mn,v,vt),vn.target=Ge,vn.relatedTarget=go,Ft=vn),go=Ft,an&&mn)t:{for(vn=an,Ue=mn,Pe=0,Ge=vn;Ge;Ge=nv(Ge))Pe++;for(Ge=0,Ft=Ue;Ft;Ft=nv(Ft))Ge++;for(;0<Pe-Ge;)vn=nv(vn),Pe--;for(;0<Ge-Pe;)Ue=nv(Ue),Ge--;for(;Pe--;){if(vn===Ue||Ue!==null&&vn===Ue.alternate)break t;vn=nv(vn),Ue=nv(Ue)}vn=null}else vn=null;an!==null&&QG(St,gt,an,vn,!1),mn!==null&&go!==null&&QG(St,go,mn,vn,!0)}}e:{if(gt=Ke?iv(Ke):window,an=gt.nodeName&>.nodeName.toLowerCase(),an==="select"||an==="input"&>.type==="file")var _n=dT;else if(tv(gt))if(k)_n=Ae;else{_n=pe;var qn=le}else(an=gt.nodeName)&&an.toLowerCase()==="input"&&(gt.type==="checkbox"||gt.type==="radio")&&(_n=_e);if(_n&&(_n=_n(f,Ke))){cS(St,_n,v,vt);break e}qn&&qn(f,gt,Ke),f==="focusout"&&(qn=gt._wrapperState)&&qn.controlled&>.type==="number"&&nr(gt,"number",gt.value)}switch(qn=Ke?iv(Ke):window,f){case"focusin":(tv(qn)||qn.contentEditable==="true")&&(nt=qn,Tt=Ke,$t=null);break;case"focusout":$t=Tt=nt=null;break;case"mousedown":Et=!0;break;case"contextmenu":case"mouseup":case"dragend":Et=!1,Lt(St,v,vt);break;case"selectionchange":if(Xe)break;case"keydown":case"keyup":Lt(St,v,vt)}var Gn;if(D1)e:{switch(f){case"compositionstart":var br="onCompositionStart";break e;case"compositionend":br="onCompositionEnd";break e;case"compositionupdate":br="onCompositionUpdate";break e}br=void 0}else es?M1(f,v)&&(br="onCompositionEnd"):f==="keydown"&&v.keyCode===229&&(br="onCompositionStart");br&&(cT&&v.locale!=="ko"&&(es||br!=="onCompositionStart"?br==="onCompositionEnd"&&es&&(Gn=Do()):(Fr=vt,zi="value"in Fr?Fr.value:Fr.textContent,es=!0)),qn=pT(Ke,br),0<qn.length&&(br=new Qb(br,f,null,v,vt),St.push({event:br,listeners:qn}),Gn?br.data=Gn:(Gn=zu(v),Gn!==null&&(br.data=Gn)))),(Gn=lT?ev(f,v):Zl(f,v))&&(Ke=pT(Ke,"onBeforeInput"),0<Ke.length&&(vt=new Qb("onBeforeInput","beforeinput",null,v,vt),St.push({event:vt,listeners:Ke}),vt.data=Gn))}KG(St,m)})}function dS(f,m,v){return{instance:f,listener:m,currentTarget:v}}function pT(f,m){for(var v=m+"Capture",C=[];f!==null;){var M=f,L=M.stateNode;M.tag===5&&L!==null&&(M=L,L=Oo(f,v),L!=null&&C.unshift(dS(f,L,M)),L=Oo(f,m),L!=null&&C.push(dS(f,L,M))),f=f.return}return C}function nv(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5);return f||null}function QG(f,m,v,C,M){for(var L=m._reactName,ee=[];v!==null&&v!==C;){var he=v,Ce=he.alternate,Ke=he.stateNode;if(Ce!==null&&Ce===C)break;he.tag===5&&Ke!==null&&(he=Ke,M?(Ce=Oo(v,L),Ce!=null&&ee.unshift(dS(v,Ce,he))):M||(Ce=Oo(v,L),Ce!=null&&ee.push(dS(v,Ce,he)))),v=v.return}ee.length!==0&&f.push({event:m,listeners:ee})}var r6e=/\r\n?/g,i6e=/\u0000|\uFFFD/g;function XG(f){return(typeof f=="string"?f:""+f).replace(r6e,` 39`).replace(i6e,"")}function mT(f,m,v){if(m=XG(m),XG(f)!==m&&v)throw Error(n(425))}function gT(){}var u9=null,h9=null;function d9(f,m){return f==="textarea"||f==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var f9=typeof setTimeout=="function"?setTimeout:void 0,s6e=typeof clearTimeout=="function"?clearTimeout:void 0,JG=typeof Promise=="function"?Promise:void 0,o6e=typeof queueMicrotask=="function"?queueMicrotask:typeof JG<"u"?function(f){return JG.resolve(null).then(f).catch(a6e)}:f9;function a6e(f){setTimeout(function(){throw f})}function p9(f,m){var v=m,C=0;do{var M=v.nextSibling;if(f.removeChild(v),M&&M.nodeType===8)if(v=M.data,v==="/$"){if(C===0){f.removeChild(M),Hh(m);return}C--}else v!=="$"&&v!=="$?"&&v!=="$!"||C++;v=M}while(v);Hh(m)}function Em(f){for(;f!=null;f=f.nextSibling){var m=f.nodeType;if(m===1||m===3)break;if(m===8){if(m=f.data,m==="$"||m==="$!"||m==="$?")break;if(m==="/$")return null}}return f}function ZG(f){f=f.previousSibling;for(var m=0;f;){if(f.nodeType===8){var v=f.data;if(v==="$"||v==="$!"||v==="$?"){if(m===0)return f;m--}else v==="/$"&&m++}f=f.previousSibling}return null}var rv=Math.random().toString(36).slice(2),Xd="__reactFiber$"+rv,fS="__reactProps$"+rv,Fp="__reactContainer$"+rv,m9="__reactEvents$"+rv,l6e="__reactListeners$"+rv,c6e="__reactHandles$"+rv;function L1(f){var m=f[Xd];if(m)return m;for(var v=f.parentNode;v;){if(m=v[Fp]||v[Xd]){if(v=m.alternate,m.child!==null||v!==null&&v.child!==null)for(f=ZG(f);f!==null;){if(v=f[Xd])return v;f=ZG(f)}return m}f=v,v=f.parentNode}return null}function pS(f){return f=f[Xd]||f[Fp],!f||f.tag!==5&&f.tag!==6&&f.tag!==13&&f.tag!==3?null:f}function iv(f){if(f.tag===5||f.tag===6)return f.stateNode;throw Error(n(33))}function yT(f){return f[fS]||null}var g9=[],sv=-1;function Am(f){return{current:f}}function Es(f){0>sv||(f.current=g9[sv],g9[sv]=null,sv--)}function ps(f,m){sv++,g9[sv]=f.current,f.current=m}var Pm={},Qa=Am(Pm),ec=Am(!1),B1=Pm;function ov(f,m){var v=f.type.contextTypes;if(!v)return Pm;var C=f.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===m)return C.__reactInternalMemoizedMaskedChildContext;var M={},L;for(L in v)M[L]=m[L];return C&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=m,f.__reactInternalMemoizedMaskedChildContext=M),M}function tc(f){return f=f.childContextTypes,f!=null}function bT(){Es(ec),Es(Qa)}function eK(f,m,v){if(Qa.current!==Pm)throw Error(n(168));ps(Qa,m),ps(ec,v)}function tK(f,m,v){var C=f.stateNode;if(m=m.childContextTypes,typeof C.getChildContext!="function")return v;C=C.getChildContext();for(var M in C)if(!(M in m))throw Error(n(108,Qe(f)||"Unknown",M));return B({},v,C)}function vT(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||Pm,B1=Qa.current,ps(Qa,f),ps(ec,ec.current),!0}function nK(f,m,v){var C=f.stateNode;if(!C)throw Error(n(169));v?(f=tK(f,m,B1),C.__reactInternalMemoizedMergedChildContext=f,Es(ec),Es(Qa),ps(Qa,f)):Es(ec),ps(ec,v)}var $p=null,xT=!1,y9=!1;function rK(f){$p===null?$p=[f]:$p.push(f)}function u6e(f){xT=!0,rK(f)}
vendor: 5,413 bytes, line 39
39function Om(){if(!y9&&$p!==null){y9=!0;var f=0,m=fi;try{var v=$p;for(fi=1;f<v.length;f++){var C=v[f];do C=C(!0);while(C!==null)}$p=null,xT=!1}catch(M){throw $p!==null&&($p=$p.slice(f+1)),st(_i,Om),M}finally{fi=m,y9=!1}}return null}var av=[],lv=0,wT=null,ST=0,Hu=[],Uu=0,F1=null,jp=1,zp="";function $1(f,m){av[lv++]=ST,av[lv++]=wT,wT=f,ST=m}function iK(f,m,v){Hu[Uu++]=jp,Hu[Uu++]=zp,Hu[Uu++]=F1,F1=f;var C=jp;f=zp;var M=32-on(C)-1;C&=~(1<<M),v+=1;var L=32-on(m)+M;if(30<L){var ee=M-M%5;L=(C&(1<<ee)-1).toString(32),C>>=ee,M-=ee,jp=1<<32-on(m)+M|v<<M|C,zp=L+f}else jp=1<<L|v<<M|C,zp=f}function b9(f){f.return!==null&&($1(f,1),iK(f,1,0))}function v9(f){for(;f===wT;)wT=av[--lv],av[lv]=null,ST=av[--lv],av[lv]=null;for(;f===F1;)F1=Hu[--Uu],Hu[Uu]=null,zp=Hu[--Uu],Hu[Uu]=null,jp=Hu[--Uu],Hu[Uu]=null}var eu=null,tu=null,$s=!1,Wh=null;function sK(f,m){var v=Gu(5,null,null,0);v.elementType="DELETED",v.stateNode=m,v.return=f,m=f.deletions,m===null?(f.deletions=[v],f.flags|=16):m.push(v)}function oK(f,m){switch(f.tag){case 5:var v=f.type;return m=m.nodeType!==1||v.toLowerCase()!==m.nodeName.toLowerCase()?null:m,m!==null?(f.stateNode=m,eu=f,tu=Em(m.firstChild),!0):!1;case 6:return m=f.pendingProps===""||m.nodeType!==3?null:m,m!==null?(f.stateNode=m,eu=f,tu=null,!0):!1;case 13:return m=m.nodeType!==8?null:m,m!==null?(v=F1!==null?{id:jp,overflow:zp}:null,f.memoizedState={dehydrated:m,treeContext:v,retryLane:1073741824},v=Gu(18,null,null,0),v.stateNode=m,v.return=f,f.child=v,eu=f,tu=null,!0):!1;default:return!1}}function x9(f){return(f.mode&1)!==0&&(f.flags&128)===0}function w9(f){if($s){var m=tu;if(m){var v=m;if(!oK(f,m)){if(x9(f))throw Error(n(418));m=Em(v.nextSibling);var C=eu;m&&oK(f,m)?sK(C,v):(f.flags=f.flags&-4097|2,$s=!1,eu=f)}}else{if(x9(f))throw Error(n(418));f.flags=f.flags&-4097|2,$s=!1,eu=f}}}function aK(f){for(f=f.return;f!==null&&f.tag!==5&&f.tag!==3&&f.tag!==13;)f=f.return;eu=f}function kT(f){if(f!==eu)return!1;if(!$s)return aK(f),$s=!0,!1;var m;if((m=f.tag!==3)&&!(m=f.tag!==5)&&(m=f.type,m=m!=="head"&&m!=="body"&&!d9(f.type,f.memoizedProps)),m&&(m=tu)){if(x9(f))throw lK(),Error(n(418));for(;m;)sK(f,m),m=Em(m.nextSibling)}if(aK(f),f.tag===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(n(317));e:{for(f=f.nextSibling,m=0;f;){if(f.nodeType===8){var v=f.data;if(v==="/$"){if(m===0){tu=Em(f.nextSibling);break e}m--}else v!=="$"&&v!=="$!"&&v!=="$?"||m++}f=f.nextSibling}tu=null}}else tu=eu?Em(f.stateNode.nextSibling):null;return!0}function lK(){for(var f=tu;f;)f=Em(f.nextSibling)}function cv(){tu=eu=null,$s=!1}function S9(f){Wh===null?Wh=[f]:Wh.push(f)}var h6e=D.ReactCurrentBatchConfig;function mS(f,m,v){if(f=v.ref,f!==null&&typeof f!="function"&&typeof f!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(n(309));var C=v.stateNode}if(!C)throw Error(n(147,f));var M=C,L=""+f;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===L?m.ref:(m=function(ee){var he=M.refs;ee===null?delete he[L]:he[L]=ee},m._stringRef=L,m)}if(typeof f!="string")throw Error(n(284));if(!v._owner)throw Error(n(290,f))}return f}function CT(f,m){throw f=Object.prototype.toString.call(m),Error(n(31,f==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":f))}function cK(f){var m=f._init;return m(f._payload)}function uK(f){function m(Ue,Pe){if(f){var Ge=Ue.deletions;Ge===null?(Ue.deletions=[Pe],Ue.flags|=16):Ge.push(Pe)}}function v(Ue,Pe){if(!f)return null;for(;Pe!==null;)m(Ue,Pe),Pe=Pe.sibling;return null}function C(Ue,Pe){for(Ue=new Map;Pe!==null;)Pe.key!==null?Ue.set(Pe.key,Pe):Ue.set(Pe.index,Pe),Pe=Pe.sibling;return Ue}function M(Ue,Pe){return Ue=Fm(Ue,Pe),Ue.index=0,Ue.sibling=null,Ue}function L(Ue,Pe,Ge){return Ue.index=Ge,f?(Ge=Ue.alternate,Ge!==null?(Ge=Ge.index,Ge<Pe?(Ue.flags|=2,Pe):Ge):(Ue.flags|=2,Pe)):(Ue.flags|=1048576,Pe)}function ee(Ue){return f&&Ue.alternate===null&&(Ue.flags|=2),Ue}function he(Ue,Pe,Ge,Ft){return Pe===null||Pe.tag!==6?(Pe=fD(Ge,Ue.mode,Ft),Pe.return=Ue,Pe):(Pe=M(Pe,Ge),Pe.return=Ue,Pe)}function Ce(Ue,Pe,Ge,Ft){var _n=Ge.type;return _n===P?vt(Ue,Pe,Ge.props.children,Ft,Ge.key):Pe!==null&&(Pe.elementType===_n||typeof _n=="object"&&_n!==null&&_n.$$typeof===Y&&cK(_n)===Pe.type)?(Ft=M(Pe,Ge.props),Ft.ref=mS(Ue,Pe,Ge),Ft.return=Ue,Ft):(Ft=KT(Ge.type,Ge.key,Ge.props,null,Ue.mode,Ft),Ft.ref=mS(Ue,Pe,Ge),Ft.return=Ue,Ft)}function Ke(Ue,Pe,Ge,Ft){return Pe===null||Pe.tag!==4||Pe.stateNode.containerInfo!==Ge.containerInfo||Pe.stateNode.implementation!==Ge.implementation?(Pe=pD(Ge,Ue.mode,Ft),Pe.return=Ue,Pe):(Pe=M(Pe,Ge.children||[]),Pe.return=Ue,Pe)}function vt(Ue,Pe,Ge,Ft,_n){return Pe===null||Pe.tag!==7?(Pe=G1(Ge,Ue.mode,Ft,_n),Pe.return=Ue,Pe):(Pe=M(Pe,Ge),Pe.return=Ue,Pe)}function St(Ue,Pe,Ge){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number")return Pe=fD(""+Pe,Ue.mode,Ge),Pe.return=Ue,Pe;if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case E:return Ge=KT(Pe.type,Pe.key,Pe.props,null,Ue.mode,Ge),Ge.ref=mS(Ue,null,Pe),Ge.return=Ue,Ge;case O:return Pe=pD(Pe,Ue.mode,Ge),Pe.return=Ue,Pe;case Y:var Ft=Pe._init;return St(Ue,Ft(Pe._payload),Ge)}if(Cn(Pe)||G(Pe))return Pe=G1(Pe,Ue.mode,Ge,null),Pe.return=Ue,Pe;CT(Ue,Pe)}return null}function gt(Ue,Pe,Ge,Ft){var _n=Pe!==null?Pe.key:null;if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number")return _n!==null?null:he(Ue,Pe,""+Ge,Ft);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case E:return Ge.key===_
vendor: 11,465 bytes, line 39
39n?Ce(Ue,Pe,Ge,Ft):null;case O:return Ge.key===_n?Ke(Ue,Pe,Ge,Ft):null;case Y:return _n=Ge._init,gt(Ue,Pe,_n(Ge._payload),Ft)}if(Cn(Ge)||G(Ge))return _n!==null?null:vt(Ue,Pe,Ge,Ft,null);CT(Ue,Ge)}return null}function an(Ue,Pe,Ge,Ft,_n){if(typeof Ft=="string"&&Ft!==""||typeof Ft=="number")return Ue=Ue.get(Ge)||null,he(Pe,Ue,""+Ft,_n);if(typeof Ft=="object"&&Ft!==null){switch(Ft.$$typeof){case E:return Ue=Ue.get(Ft.key===null?Ge:Ft.key)||null,Ce(Pe,Ue,Ft,_n);case O:return Ue=Ue.get(Ft.key===null?Ge:Ft.key)||null,Ke(Pe,Ue,Ft,_n);case Y:var qn=Ft._init;return an(Ue,Pe,Ge,qn(Ft._payload),_n)}if(Cn(Ft)||G(Ft))return Ue=Ue.get(Ge)||null,vt(Pe,Ue,Ft,_n,null);CT(Pe,Ft)}return null}function mn(Ue,Pe,Ge,Ft){for(var _n=null,qn=null,Gn=Pe,br=Pe=0,va=null;Gn!==null&&br<Ge.length;br++){Gn.index>br?(va=Gn,Gn=null):va=Gn.sibling;var Ei=gt(Ue,Gn,Ge[br],Ft);if(Ei===null){Gn===null&&(Gn=va);break}f&&Gn&&Ei.alternate===null&&m(Ue,Gn),Pe=L(Ei,Pe,br),qn===null?_n=Ei:qn.sibling=Ei,qn=Ei,Gn=va}if(br===Ge.length)return v(Ue,Gn),$s&&$1(Ue,br),_n;if(Gn===null){for(;br<Ge.length;br++)Gn=St(Ue,Ge[br],Ft),Gn!==null&&(Pe=L(Gn,Pe,br),qn===null?_n=Gn:qn.sibling=Gn,qn=Gn);return $s&&$1(Ue,br),_n}for(Gn=C(Ue,Gn);br<Ge.length;br++)va=an(Gn,Ue,br,Ge[br],Ft),va!==null&&(f&&va.alternate!==null&&Gn.delete(va.key===null?br:va.key),Pe=L(va,Pe,br),qn===null?_n=va:qn.sibling=va,qn=va);return f&&Gn.forEach(function($m){return m(Ue,$m)}),$s&&$1(Ue,br),_n}function vn(Ue,Pe,Ge,Ft){var _n=G(Ge);if(typeof _n!="function")throw Error(n(150));if(Ge=_n.call(Ge),Ge==null)throw Error(n(151));for(var qn=_n=null,Gn=Pe,br=Pe=0,va=null,Ei=Ge.next();Gn!==null&&!Ei.done;br++,Ei=Ge.next()){Gn.index>br?(va=Gn,Gn=null):va=Gn.sibling;var $m=gt(Ue,Gn,Ei.value,Ft);if($m===null){Gn===null&&(Gn=va);break}f&&Gn&&$m.alternate===null&&m(Ue,Gn),Pe=L($m,Pe,br),qn===null?_n=$m:qn.sibling=$m,qn=$m,Gn=va}if(Ei.done)return v(Ue,Gn),$s&&$1(Ue,br),_n;if(Gn===null){for(;!Ei.done;br++,Ei=Ge.next())Ei=St(Ue,Ei.value,Ft),Ei!==null&&(Pe=L(Ei,Pe,br),qn===null?_n=Ei:qn.sibling=Ei,qn=Ei);return $s&&$1(Ue,br),_n}for(Gn=C(Ue,Gn);!Ei.done;br++,Ei=Ge.next())Ei=an(Gn,Ue,br,Ei.value,Ft),Ei!==null&&(f&&Ei.alternate!==null&&Gn.delete(Ei.key===null?br:Ei.key),Pe=L(Ei,Pe,br),qn===null?_n=Ei:qn.sibling=Ei,qn=Ei);return f&&Gn.forEach(function(V6e){return m(Ue,V6e)}),$s&&$1(Ue,br),_n}function go(Ue,Pe,Ge,Ft){if(typeof Ge=="object"&&Ge!==null&&Ge.type===P&&Ge.key===null&&(Ge=Ge.props.children),typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case E:e:{for(var _n=Ge.key,qn=Pe;qn!==null;){if(qn.key===_n){if(_n=Ge.type,_n===P){if(qn.tag===7){v(Ue,qn.sibling),Pe=M(qn,Ge.props.children),Pe.return=Ue,Ue=Pe;break e}}else if(qn.elementType===_n||typeof _n=="object"&&_n!==null&&_n.$$typeof===Y&&cK(_n)===qn.type){v(Ue,qn.sibling),Pe=M(qn,Ge.props),Pe.ref=mS(Ue,qn,Ge),Pe.return=Ue,Ue=Pe;break e}v(Ue,qn);break}else m(Ue,qn);qn=qn.sibling}Ge.type===P?(Pe=G1(Ge.props.children,Ue.mode,Ft,Ge.key),Pe.return=Ue,Ue=Pe):(Ft=KT(Ge.type,Ge.key,Ge.props,null,Ue.mode,Ft),Ft.ref=mS(Ue,Pe,Ge),Ft.return=Ue,Ue=Ft)}return ee(Ue);case O:e:{for(qn=Ge.key;Pe!==null;){if(Pe.key===qn)if(Pe.tag===4&&Pe.stateNode.containerInfo===Ge.containerInfo&&Pe.stateNode.implementation===Ge.implementation){v(Ue,Pe.sibling),Pe=M(Pe,Ge.children||[]),Pe.return=Ue,Ue=Pe;break e}else{v(Ue,Pe);break}else m(Ue,Pe);Pe=Pe.sibling}Pe=pD(Ge,Ue.mode,Ft),Pe.return=Ue,Ue=Pe}return ee(Ue);case Y:return qn=Ge._init,go(Ue,Pe,qn(Ge._payload),Ft)}if(Cn(Ge))return mn(Ue,Pe,Ge,Ft);if(G(Ge))return vn(Ue,Pe,Ge,Ft);CT(Ue,Ge)}return typeof Ge=="string"&&Ge!==""||typeof Ge=="number"?(Ge=""+Ge,Pe!==null&&Pe.tag===6?(v(Ue,Pe.sibling),Pe=M(Pe,Ge),Pe.return=Ue,Ue=Pe):(v(Ue,Pe),Pe=fD(Ge,Ue.mode,Ft),Pe.return=Ue,Ue=Pe),ee(Ue)):v(Ue,Pe)}return go}var uv=uK(!0),hK=uK(!1),_T=Am(null),TT=null,hv=null,k9=null;function C9(){k9=hv=TT=null}function _9(f){var m=_T.current;Es(_T),f._currentValue=m}function T9(f,m,v){for(;f!==null;){var C=f.alternate;if((f.childLanes&m)!==m?(f.childLanes|=m,C!==null&&(C.childLanes|=m)):C!==null&&(C.childLanes&m)!==m&&(C.childLanes|=m),f===v)break;f=f.return}}function dv(f,m){TT=f,k9=hv=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&m)!==0&&(nc=!0),f.firstContext=null)}function Vu(f){var m=f._currentValue;if(k9!==f)if(f={context:f,memoizedValue:m,next:null},hv===null){if(TT===null)throw Error(n(308));hv=f,TT.dependencies={lanes:0,firstContext:f}}else hv=hv.next=f;return m}var j1=null;function E9(f){j1===null?j1=[f]:j1.push(f)}function dK(f,m,v,C){var M=m.interleaved;return M===null?(v.next=v,E9(m)):(v.next=M.next,M.next=v),m.interleaved=v,Hp(f,C)}function Hp(f,m){f.lanes|=m;var v=f.alternate;for(v!==null&&(v.lanes|=m),v=f,f=f.return;f!==null;)f.childLanes|=m,v=f.alternate,v!==null&&(v.childLanes|=m),v=f,f=f.return;return v.tag===3?v.stateNode:null}var Im=!1;function A9(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fK(f,m){f=f.updateQueue,m.updateQueue===f&&(m.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function Up(f,m){return{eventTime:f,lane:m,tag:0,payload:null,callback:null,next:null}}function Dm(f,m,v){var C=f.updateQueue;if(C===null)return null;if(C=C.shared,(bi&2)!==0){var M=C.pending;return M===null?m.next=m:(m.next=M.next,M.next=m),C.pending=m,Hp(f,v)}return M=C.interleaved,M===null?(m.next=m,E9(C)):(m.next=M.next,M.next=m),C.interleaved=m,Hp(f,v)}function ET(f,m,v){if(m=m.updateQueue,m!==null&&(m=m.shared,(v&4194240)!==0)){var C=m.lanes;C&=f.pendingLanes,v|=C,m.lanes=v,xm(f,v)}}function pK(f,m){var v=f.updateQueue,C=f.alternate;if(C!==null&&(C=C.updateQueue,v===C)){var M=null,L=null;if(v=v.firstBaseUpdate,v!==null){do{var ee={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};L===null?M=L=ee:L=L.next=ee,v=v.next}while(v!==null);L===null?M=L=m:L=L.next=m}else M=L=m;v={baseState:C.baseState,firstBaseUpdate:M,lastBaseUpdate:L,shared:C.shared,effects:C.effects},f.updateQueue=v;return}f=v.lastBaseUpdate,f===null?v.firstBaseUpdate=m:f.next=m,v.lastBaseUpdate=m}function AT(f,m,v,C){var M=f.updateQueue;Im=!1;var L=M.firstBaseUpdate,ee=M.lastBaseUpdate,he=M.shared.pending;if(he!==null){M.shared.pending=null;var Ce=he,Ke=Ce.next;Ce.next=null,ee===null?L=Ke:ee.next=Ke,ee=Ce;var vt=f.alternate;vt!==null&&(vt=vt.updateQueue,he=vt.lastBaseUpdate,he!==ee&&(he===null?vt.firstBaseUpdate=Ke:he.next=Ke,vt.lastBaseUpdate=Ce))}if(L!==null){var St=M.baseState;ee=0,vt=Ke=Ce=null,he=L;do{var gt=he.lane,an=he.eventTime;if((C>)===gt){vt!==null&&(vt=vt.next={eventTime:an,lane:0,tag:he.tag,payload:he.payload,callback:he.callback,next:null});e:{var mn=f,vn=he;switch(gt=m,an=v,vn.tag){case 1:if(mn=vn.payload,typeof mn=="function"){St=mn.call(an,St,gt);break e}St=mn;break e;case 3:mn.flags=mn.flags&-65537|128;case 0:if(mn=vn.payload,gt=typeof mn=="function"?mn.call(an,St,gt):mn,gt==null)break e;St=B({},St,gt);break e;case 2:Im=!0}}he.callback!==null&&he.lane!==0&&(f.flags|=64,gt=M.effects,gt===null?M.effects=[he]:gt.push(he))}else an={eventTime:an,lane:gt,tag:he.tag,payload:he.payload,callback:he.callback,next:null},vt===null?(Ke=vt=an,Ce=St):vt=vt.next=an,ee|=gt;if(he=he.next,he===null){if(he=M.shared.pending,he===null)break;gt=he,he=gt.next,gt.next=null,M.lastBaseUpdate=gt,M.shared.pending=null}}while(!0);if(vt===null&&(Ce=St),M.baseState=Ce,M.firstBaseUpdate=Ke,M.lastBaseUpdate=vt,m=M.shared.interleaved,m!==null){M=m;do ee|=M.lane,M=M.next;while(M!==m)}else L===null&&(M.shared.lanes=0);U1|=ee,f.lanes=ee,f.memoizedState=St}}function mK(f,m,v){if(f=m.effects,m.effects=null,f!==null)for(m=0;m<f.length;m++){var C=f[m],M=C.callback;if(M!==null){if(C.callback=null,C=v,typeof M!="function")throw Error(n(191,M));M.call(C)}}}var gS={},Jd=Am(gS),yS=Am(gS),bS=Am(gS);function z1(f){if(f===gS)throw Error(n(174));return f}function P9(f,m){switch(ps(bS,m),ps(yS,f),ps(Jd,gS),f=m.nodeType,f){case 9:case 11:m=(m=m.documentElement)?m.namespaceURI:tt(null,"");break;default:f=f===8?m.parentNode:m,m=f.namespaceURI||null,f=f.tagName,m=tt(m,f)}Es(Jd),ps(Jd,m)}function fv(){Es(Jd),Es(yS),Es(bS)}function gK(f){z1(bS.current);var m=z1(Jd.current),v=tt(m,f.type);m!==v&&(ps(yS,f),ps(Jd,v))}function O9(f){yS.current===f&&(Es(Jd),Es(yS))}var Qs=Am(0);function PT(f){for(var m=f;m!==null;){if(m.tag===13){var v=m.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var I9=[];function D9(){for(var f=0;f<I9.length;f++)I9[f]._workInProgressVersionPrimary=null;I9.length=0}var OT=D.ReactCurrentDispatcher,M9=D.ReactCurrentBatchConfig,H1=0,Xs=null,Zo=null,ya=null,IT=!1,vS=!1,xS=0,d6e=0;function Xa(){throw Error(n(321))}function N9(f,m){if(m===null)return!1;for(var v=0;v<m.length&&v<f.length;v++)if(!be(f[v],m[v]))return!1;return!0}function R9(f,m,v,C,M,L){if(H1=L,Xs=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,OT.current=f===null||f.memoizedState===null?g6e:y6e,f=v(C,M),vS){L=0;do{if(vS=!1,xS=0,25<=L)throw Error(n(301));L+=1,ya=Zo=null,m.updateQueue=null,OT.current=b6e,f=v(C,M)}while(vS)}if(OT.current=NT,m=Zo!==null&&Zo.next!==null,H1=0,ya=Zo=Xs=null,IT=!1,m)throw Error(n(300));return f}function L9(){var f=xS!==0;return xS=0,f}function Zd(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ya===null?Xs.memoizedState=ya=f:ya=ya.next=f,ya}function Wu(){if(Zo===null){var f=Xs.alternate;f=f!==null?f.memoizedState:null}else f=Zo.next;var m=ya===null?Xs.memoizedState:ya.next;if(m!==null)ya=m,Zo=f;else{if(f===null)throw Error(n(310));Zo=f,f={memoizedState:Zo.memoizedState,baseState:Zo.baseState,baseQueue:Zo.baseQueue,queue:Zo.queue,next:null},ya===null?Xs.memoizedState=ya=f:ya=ya.next=f}return ya}function wS(f,m){return typeof m=="function"?m(f):m}function B9(f){var m=Wu(),v=m.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=f;var C=Zo,M=C.baseQueue,L=v.pending;if(L!==null){if(M!==null){var ee=M.next;M.next=L.next,L.next=ee}C.baseQueue=M=L,v.pending=null}if(M!==null){L=M.next,C=C.baseState;var he=ee=null,Ce=null,Ke=L;do{var vt=Ke.lane;if((H1&vt)===vt)Ce!==null&&(Ce=Ce.next={lane:0,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null}),C=Ke.hasEagerState?Ke.eagerState:f(C,Ke.action);else{var St={lane:vt,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null};Ce===null?(he=Ce=St,ee=C):Ce=Ce.next=St,Xs.lanes|=vt,U1|=vt}Ke=Ke.next}while(Ke!==null&&Ke!==L);Ce===null?ee=C:Ce.next=he,be(C,m.memoizedState)||(nc=!0),m.memoizedState=C,m.baseState=ee,m.baseQueue=Ce,v.lastRenderedState=C}if(f=v.interleaved,f!==null){M=f;do L=M.lane,Xs.lanes|=L,U1|=L,M=M.next;while(M!==f)}else M===null&&(v.lanes=0);return[m.memoizedState,v.dispatch]}function F9(f){var m=Wu(),v=m.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=f;var C=v.dispatch,M=v.pending,L=m.memoizedState;if(M!==null){v.pending=null;var ee=M=M.next;do L=f(L,ee.action),ee=ee.next;while(ee!==M);be(L,m.memoizedState)||(nc=!0),m.memoizedState=L,m.baseQueue===null&&(m.baseState=L),v.lastRenderedState=L}return[L,C]}function yK(){}
vendor: 4,544 bytes, line 39
39function bK(f,m){var v=Xs,C=Wu(),M=m(),L=!be(C.memoizedState,M);if(L&&(C.memoizedState=M,nc=!0),C=C.queue,$9(wK.bind(null,v,C,f),[f]),C.getSnapshot!==m||L||ya!==null&&ya.memoizedState.tag&1){if(v.flags|=2048,SS(9,xK.bind(null,v,C,M,m),void 0,null),ba===null)throw Error(n(349));(H1&30)!==0||vK(v,m,M)}return M}function vK(f,m,v){f.flags|=16384,f={getSnapshot:m,value:v},m=Xs.updateQueue,m===null?(m={lastEffect:null,stores:null},Xs.updateQueue=m,m.stores=[f]):(v=m.stores,v===null?m.stores=[f]:v.push(f))}function xK(f,m,v,C){m.value=v,m.getSnapshot=C,SK(m)&&kK(f)}function wK(f,m,v){return v(function(){SK(m)&&kK(f)})}function SK(f){var m=f.getSnapshot;f=f.value;try{var v=m();return!be(f,v)}catch{return!0}}function kK(f){var m=Hp(f,1);m!==null&&Yh(m,f,1,-1)}function CK(f){var m=Zd();return typeof f=="function"&&(f=f()),m.memoizedState=m.baseState=f,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wS,lastRenderedState:f},m.queue=f,f=f.dispatch=m6e.bind(null,Xs,f),[m.memoizedState,f]}function SS(f,m,v,C){return f={tag:f,create:m,destroy:v,deps:C,next:null},m=Xs.updateQueue,m===null?(m={lastEffect:null,stores:null},Xs.updateQueue=m,m.lastEffect=f.next=f):(v=m.lastEffect,v===null?m.lastEffect=f.next=f:(C=v.next,v.next=f,f.next=C,m.lastEffect=f)),f}function _K(){return Wu().memoizedState}function DT(f,m,v,C){var M=Zd();Xs.flags|=f,M.memoizedState=SS(1|m,v,void 0,C===void 0?null:C)}function MT(f,m,v,C){var M=Wu();C=C===void 0?null:C;var L=void 0;if(Zo!==null){var ee=Zo.memoizedState;if(L=ee.destroy,C!==null&&N9(C,ee.deps)){M.memoizedState=SS(m,v,L,C);return}}Xs.flags|=f,M.memoizedState=SS(1|m,v,L,C)}function TK(f,m){return DT(8390656,8,f,m)}function $9(f,m){return MT(2048,8,f,m)}function EK(f,m){return MT(4,2,f,m)}function AK(f,m){return MT(4,4,f,m)}function PK(f,m){if(typeof m=="function")return f=f(),m(f),function(){m(null)};if(m!=null)return f=f(),m.current=f,function(){m.current=null}}function OK(f,m,v){return v=v!=null?v.concat([f]):null,MT(4,4,PK.bind(null,m,f),v)}function j9(){}function IK(f,m){var v=Wu();m=m===void 0?null:m;var C=v.memoizedState;return C!==null&&m!==null&&N9(m,C[1])?C[0]:(v.memoizedState=[f,m],f)}function DK(f,m){var v=Wu();m=m===void 0?null:m;var C=v.memoizedState;return C!==null&&m!==null&&N9(m,C[1])?C[0]:(f=f(),v.memoizedState=[f,m],f)}function MK(f,m,v){return(H1&21)===0?(f.baseState&&(f.baseState=!1,nc=!0),f.memoizedState=v):(be(v,m)||(v=T1(),Xs.lanes|=v,U1|=v,f.baseState=!0),m)}function f6e(f,m){var v=fi;fi=v!==0&&4>v?v:4,f(!0);var C=M9.transition;M9.transition={};try{f(!1),m()}finally{fi=v,M9.transition=C}}function NK(){return Wu().memoizedState}function p6e(f,m,v){var C=Lm(f);if(v={lane:C,action:v,hasEagerState:!1,eagerState:null,next:null},RK(f))LK(m,v);else if(v=dK(f,m,v,C),v!==null){var M=Tl();Yh(v,f,C,M),BK(v,m,C)}}function m6e(f,m,v){var C=Lm(f),M={lane:C,action:v,hasEagerState:!1,eagerState:null,next:null};if(RK(f))LK(m,M);else{var L=f.alternate;if(f.lanes===0&&(L===null||L.lanes===0)&&(L=m.lastRenderedReducer,L!==null))try{var ee=m.lastRenderedState,he=L(ee,v);if(M.hasEagerState=!0,M.eagerState=he,be(he,ee)){var Ce=m.interleaved;Ce===null?(M.next=M,E9(m)):(M.next=Ce.next,Ce.next=M),m.interleaved=M;return}}catch{}finally{}v=dK(f,m,M,C),v!==null&&(M=Tl(),Yh(v,f,C,M),BK(v,m,C))}}function RK(f){var m=f.alternate;return f===Xs||m!==null&&m===Xs}function LK(f,m){vS=IT=!0;var v=f.pending;v===null?m.next=m:(m.next=v.next,v.next=m),f.pending=m}function BK(f,m,v){if((v&4194240)!==0){var C=m.lanes;C&=f.pendingLanes,v|=C,m.lanes=v,xm(f,v)}}var NT={readContext:Vu,useCallback:Xa,useContext:Xa,useEffect:Xa,useImperativeHandle:Xa,useInsertionEffect:Xa,useLayoutEffect:Xa,useMemo:Xa,useReducer:Xa,useRef:Xa,useState:Xa,useDebugValue:Xa,useDeferredValue:Xa,useTransition:Xa,useMutableSource:Xa,useSyncExternalStore:Xa,useId:Xa,unstable_isNewReconciler:!1},g6e={readContext:Vu,useCallback:function(f,m){return Zd().memoizedState=[f,m===void 0?null:m],f},useContext:Vu,useEffect:TK,useImperativeHandle:function(f,m,v){return v=v!=null?v.concat([f]):null,DT(4194308,4,PK.bind(null,m,f),v)},useLayoutEffect:function(f,m){return DT(4194308,4,f,m)},useInsertionEffect:function(f,m){return DT(4,2,f,m)},useMemo:function(f,m){var v=Zd();return m=m===void 0?null:m,f=f(),v.memoizedState=[f,m],f},useReducer:function(f,m,v){var C=Zd();return m=v!==void 0?v(m):m,C.memoizedState=C.baseState=m,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:m},C.queue=f,f=f.dispatch=p6e.bind(null,Xs,f),[C.memoizedState,f]}
vendor: 7,469 bytes, lines 39-41
39,useRef:function(f){var m=Zd();return f={current:f},m.memoizedState=f},useState:CK,useDebugValue:j9,useDeferredValue:function(f){return Zd().memoizedState=f},useTransition:function(){var f=CK(!1),m=f[0];return f=f6e.bind(null,f[1]),Zd().memoizedState=f,[m,f]},useMutableSource:function(){},useSyncExternalStore:function(f,m,v){var C=Xs,M=Zd();if($s){if(v===void 0)throw Error(n(407));v=v()}else{if(v=m(),ba===null)throw Error(n(349));(H1&30)!==0||vK(C,m,v)}M.memoizedState=v;var L={value:v,getSnapshot:m};return M.queue=L,TK(wK.bind(null,C,L,f),[f]),C.flags|=2048,SS(9,xK.bind(null,C,L,v,m),void 0,null),v},useId:function(){var f=Zd(),m=ba.identifierPrefix;if($s){var v=zp,C=jp;v=(C&~(1<<32-on(C)-1)).toString(32)+v,m=":"+m+"R"+v,v=xS++,0<v&&(m+="H"+v.toString(32)),m+=":"}else v=d6e++,m=":"+m+"r"+v.toString(32)+":";return f.memoizedState=m},unstable_isNewReconciler:!1},y6e={readContext:Vu,useCallback:IK,useContext:Vu,useEffect:$9,useImperativeHandle:OK,useInsertionEffect:EK,useLayoutEffect:AK,useMemo:DK,useReducer:B9,useRef:_K,useState:function(){return B9(wS)},useDebugValue:j9,useDeferredValue:function(f){var m=Wu();return MK(m,Zo.memoizedState,f)},useTransition:function(){var f=B9(wS)[0],m=Wu().memoizedState;return[f,m]},useMutableSource:yK,useSyncExternalStore:bK,useId:NK,unstable_isNewReconciler:!1},b6e={readContext:Vu,useCallback:IK,useContext:Vu,useEffect:$9,useImperativeHandle:OK,useInsertionEffect:EK,useLayoutEffect:AK,useMemo:DK,useReducer:F9,useRef:_K,useState:function(){return F9(wS)},useDebugValue:j9,useDeferredValue:function(f){var m=Wu();return Zo===null?m.memoizedState=f:MK(m,Zo.memoizedState,f)},useTransition:function(){var f=F9(wS)[0],m=Wu().memoizedState;return[f,m]},useMutableSource:yK,useSyncExternalStore:bK,useId:NK,unstable_isNewReconciler:!1};function qh(f,m){if(f&&f.defaultProps){m=B({},m),f=f.defaultProps;for(var v in f)m[v]===void 0&&(m[v]=f[v]);return m}return m}function z9(f,m,v,C){m=f.memoizedState,v=v(C,m),v=v==null?m:B({},m,v),f.memoizedState=v,f.lanes===0&&(f.updateQueue.baseState=v)}var RT={isMounted:function(f){return(f=f._reactInternals)?Ht(f)===f:!1},enqueueSetState:function(f,m,v){f=f._reactInternals;var C=Tl(),M=Lm(f),L=Up(C,M);L.payload=m,v!=null&&(L.callback=v),m=Dm(f,L,M),m!==null&&(Yh(m,f,M,C),ET(m,f,M))},enqueueReplaceState:function(f,m,v){f=f._reactInternals;var C=Tl(),M=Lm(f),L=Up(C,M);L.tag=1,L.payload=m,v!=null&&(L.callback=v),m=Dm(f,L,M),m!==null&&(Yh(m,f,M,C),ET(m,f,M))},enqueueForceUpdate:function(f,m){f=f._reactInternals;var v=Tl(),C=Lm(f),M=Up(v,C);M.tag=2,m!=null&&(M.callback=m),m=Dm(f,M,C),m!==null&&(Yh(m,f,C,v),ET(m,f,C))}};function FK(f,m,v,C,M,L,ee){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(C,L,ee):m.prototype&&m.prototype.isPureReactComponent?!$e(v,C)||!$e(M,L):!0}function $K(f,m,v){var C=!1,M=Pm,L=m.contextType;return typeof L=="object"&&L!==null?L=Vu(L):(M=tc(m)?B1:Qa.current,C=m.contextTypes,L=(C=C!=null)?ov(f,M):Pm),m=new m(v,L),f.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=RT,f.stateNode=m,m._reactInternals=f,C&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=M,f.__reactInternalMemoizedMaskedChildContext=L),m}function jK(f,m,v,C){f=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(v,C),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(v,C),m.state!==f&&RT.enqueueReplaceState(m,m.state,null)}function H9(f,m,v,C){var M=f.stateNode;M.props=v,M.state=f.memoizedState,M.refs={},A9(f);var L=m.contextType;typeof L=="object"&&L!==null?M.context=Vu(L):(L=tc(m)?B1:Qa.current,M.context=ov(f,L)),M.state=f.memoizedState,L=m.getDerivedStateFromProps,typeof L=="function"&&(z9(f,m,L,v),M.state=f.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(m=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),m!==M.state&&RT.enqueueReplaceState(M,M.state,null),AT(f,v,M,C),M.state=f.memoizedState),typeof M.componentDidMount=="function"&&(f.flags|=4194308)}function pv(f,m){try{var v="",C=m;do v+=ke(C),C=C.return;while(C);var M=v}catch(L){M=` 40Error generating stack: `+L.message+` 41`+L.stack}return{value:f,source:m,stack:M,digest:null}}function U9(f,m,v){return{value:f,source:null,stack:v??null,digest:m??null}}function V9(f,m){try{console.error(m.value)}catch(v){setTimeout(function(){throw v})}}var v6e=typeof WeakMap=="function"?WeakMap:Map;function zK(f,m,v){v=Up(-1,v),v.tag=3,v.payload={element:null};var C=m.value;return v.callback=function(){HT||(HT=!0,sD=C),V9(f,m)},v}function HK(f,m,v){v=Up(-1,v),v.tag=3;var C=f.type.getDerivedStateFromError;if(typeof C=="function"){var M=m.value;v.payload=function(){return C(M)},v.callback=function(){V9(f,m)}}var L=f.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(v.callback=function(){V9(f,m),typeof C!="function"&&(Nm===null?Nm=new Set([this]):Nm.add(this));var ee=m.stack;this.componentDidCatch(m.value,{componentStack:ee!==null?ee:""})}),v}function UK(f,m,v){var C=f.pingCache;if(C===null){C=f.pingCache=new v6e;var M=new Set;C.set(m,M)}else M=C.get(m),M===void 0&&(M=new Set,C.set(m,M));M.has(v)||(M.add(v),f=M6e.bind(null,f,m,v),m.then(f,f))}function VK(f){do{var m;if((m=f.tag===13)&&(m=f.memoizedState,m=m!==null?m.dehydrated!==null:!0),m)return f;f=f.return}while(f!==null);return null}function WK(f,m,v,C,M){return(f.mode&1)===0?(f===m?f.flags|=65536:(f.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(m=Up(-1,1),m.tag=2,Dm(v,m,1))),v.lanes|=1),f):(f.flags|=65536,f.lanes=M,f)}var x6e=D.ReactCurrentOwner,nc=!1;function _l(f,m,v,C){m.child=f===null?hK(m,null,v,C):uv(m,f.child,v,C)}function qK(f,m,v,C,M){v=v.render;var L=m.ref;return dv(m,M),C=R9(f,m,v,C,L,M),v=L9(),f!==null&&!nc?(m.updateQueue=f.updateQueue,m.flags&=-2053,f.lanes&=~M,Vp(f,m,M)):($s&&v&&b9(m),m.flags|=1,_l(f,m,C,M),m.child)}function GK(f,m,v,C,M){if(f===null){var L=v.type;return typeof L=="function"&&!dD(L)&&L.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(m.tag=15,m.type=L,KK(f,m,L,C,M)):(f=KT(v.type,null,C,m,m.mode,M),f.ref=m.ref,f.return=m,m.child=f)}if(L=f.child,(f.lanes&M)===0){var ee=L.memoizedProps;if(v=v.compare,v=v!==null?v:$e,v(ee,C)&&f.ref===m.ref)return Vp(f,m,M)}return m.flags|=1,f=Fm(L,C),f.ref=m.ref,f.return=m,m.child=f}function KK(f,m,v,C,M){if(f!==null){var L=f.memoizedProps;if($e(L,C)&&f.ref===m.ref)if(nc=!1,m.pendingProps=C=L,(f.lanes&M)!==0)(f.flags&131072)!==0&&(nc=!0);else return m.lanes=f.lanes,Vp(f,m,M)}return W9(f,m,v,C,M)}function YK(f,m,v){var C=m.pendingProps,M=C.children,L=f!==null?f.memoizedState:null;if(C.mode==="hidden")if((m.mode&1)===0)m.memoizedState={baseLanes:0,cachePool:null,transitions:null},ps(gv,nu),nu|=v;else{if((v&1073741824)===0)return f=L!==null?L.baseLanes|v:v,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:f,cachePool:null,transitions:null},m.updateQueue=null,ps(gv,nu),nu|=f,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=L!==null?L.baseLanes:v,ps(gv,nu),nu|=C}else L!==null?(C=L.baseLanes|v,m.memoizedState=null):C=v,ps(gv,nu),nu|=C;return _l(f,m,M,v),m.child}function QK(f,m){var v=m.ref;(f===null&&v!==null||f!==null&&f.ref!==v)&&(m.flags|=512,m.flags|=2097152)}
vendor: 4,695 bytes, line 41
41function W9(f,m,v,C,M){var L=tc(v)?B1:Qa.current;return L=ov(m,L),dv(m,M),v=R9(f,m,v,C,L,M),C=L9(),f!==null&&!nc?(m.updateQueue=f.updateQueue,m.flags&=-2053,f.lanes&=~M,Vp(f,m,M)):($s&&C&&b9(m),m.flags|=1,_l(f,m,v,M),m.child)}function XK(f,m,v,C,M){if(tc(v)){var L=!0;vT(m)}else L=!1;if(dv(m,M),m.stateNode===null)BT(f,m),$K(m,v,C),H9(m,v,C,M),C=!0;else if(f===null){var ee=m.stateNode,he=m.memoizedProps;ee.props=he;var Ce=ee.context,Ke=v.contextType;typeof Ke=="object"&&Ke!==null?Ke=Vu(Ke):(Ke=tc(v)?B1:Qa.current,Ke=ov(m,Ke));var vt=v.getDerivedStateFromProps,St=typeof vt=="function"||typeof ee.getSnapshotBeforeUpdate=="function";St||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(he!==C||Ce!==Ke)&&jK(m,ee,C,Ke),Im=!1;var gt=m.memoizedState;ee.state=gt,AT(m,C,ee,M),Ce=m.memoizedState,he!==C||gt!==Ce||ec.current||Im?(typeof vt=="function"&&(z9(m,v,vt,C),Ce=m.memoizedState),(he=Im||FK(m,v,he,C,gt,Ce,Ke))?(St||typeof ee.UNSAFE_componentWillMount!="function"&&typeof ee.componentWillMount!="function"||(typeof ee.componentWillMount=="function"&&ee.componentWillMount(),typeof ee.UNSAFE_componentWillMount=="function"&&ee.UNSAFE_componentWillMount()),typeof ee.componentDidMount=="function"&&(m.flags|=4194308)):(typeof ee.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=C,m.memoizedState=Ce),ee.props=C,ee.state=Ce,ee.context=Ke,C=he):(typeof ee.componentDidMount=="function"&&(m.flags|=4194308),C=!1)}else{ee=m.stateNode,fK(f,m),he=m.memoizedProps,Ke=m.type===m.elementType?he:qh(m.type,he),ee.props=Ke,St=m.pendingProps,gt=ee.context,Ce=v.contextType,typeof Ce=="object"&&Ce!==null?Ce=Vu(Ce):(Ce=tc(v)?B1:Qa.current,Ce=ov(m,Ce));var an=v.getDerivedStateFromProps;(vt=typeof an=="function"||typeof ee.getSnapshotBeforeUpdate=="function")||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(he!==St||gt!==Ce)&&jK(m,ee,C,Ce),Im=!1,gt=m.memoizedState,ee.state=gt,AT(m,C,ee,M);var mn=m.memoizedState;he!==St||gt!==mn||ec.current||Im?(typeof an=="function"&&(z9(m,v,an,C),mn=m.memoizedState),(Ke=Im||FK(m,v,Ke,C,gt,mn,Ce)||!1)?(vt||typeof ee.UNSAFE_componentWillUpdate!="function"&&typeof ee.componentWillUpdate!="function"||(typeof ee.componentWillUpdate=="function"&&ee.componentWillUpdate(C,mn,Ce),typeof ee.UNSAFE_componentWillUpdate=="function"&&ee.UNSAFE_componentWillUpdate(C,mn,Ce)),typeof ee.componentDidUpdate=="function"&&(m.flags|=4),typeof ee.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof ee.componentDidUpdate!="function"||he===f.memoizedProps&>===f.memoizedState||(m.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||he===f.memoizedProps&>===f.memoizedState||(m.flags|=1024),m.memoizedProps=C,m.memoizedState=mn),ee.props=C,ee.state=mn,ee.context=Ce,C=Ke):(typeof ee.componentDidUpdate!="function"||he===f.memoizedProps&>===f.memoizedState||(m.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||he===f.memoizedProps&>===f.memoizedState||(m.flags|=1024),C=!1)}return q9(f,m,v,C,L,M)}function q9(f,m,v,C,M,L){QK(f,m);var ee=(m.flags&128)!==0;if(!C&&!ee)return M&&nK(m,v,!1),Vp(f,m,L);C=m.stateNode,x6e.current=m;var he=ee&&typeof v.getDerivedStateFromError!="function"?null:C.render();return m.flags|=1,f!==null&&ee?(m.child=uv(m,f.child,null,L),m.child=uv(m,null,he,L)):_l(f,m,he,L),m.memoizedState=C.state,M&&nK(m,v,!0),m.child}function JK(f){var m=f.stateNode;m.pendingContext?eK(f,m.pendingContext,m.pendingContext!==m.context):m.context&&eK(f,m.context,!1),P9(f,m.containerInfo)}function ZK(f,m,v,C,M){return cv(),S9(M),m.flags|=256,_l(f,m,v,C),m.child}var G9={dehydrated:null,treeContext:null,retryLane:0};function K9(f){return{baseLanes:f,cachePool:null,transitions:null}}function eY(f,m,v){var C=m.pendingProps,M=Qs.current,L=!1,ee=(m.flags&128)!==0,he;if((he=ee)||(he=f!==null&&f.memoizedState===null?!1:(M&2)!==0),he?(L=!0,m.flags&=-129):(f===null||f.memoizedState!==null)&&(M|=1),ps(Qs,M&1),f===null)return w9(m),f=m.memoizedState,f!==null&&(f=f.dehydrated,f!==null)?((m.mode&1)===0?m.lanes=1:f.data==="$!"?m.lanes=8:m.lanes=1073741824,null):(ee=C.children,f=C.fallback,L?(C=m.mode,L=m.child,ee={mode:"hidden",children:ee},(C&1)===0&&L!==null?(L.childLanes=0,L.pendingProps=ee):L=YT(ee,C,0,null),f=G1(f,C,v,null),L.return=m,f.return=m,L.sibling=f,m.child=L,m.child.memoizedState=K9(v),m.memoizedState=G9,f):Y9(m,ee));if(M=f.memoizedState,M!==null&&(he=M.dehydrated,he!==null))return w6e(f,m,ee,C,he,M,v);if(L){L=C.fallback,ee=m.mode,M=f.child,he=M.sibling;var Ce={mode:"hidden",children:C.children};return(ee&1)===0&&m.child!==M?(C=m.child,C.childLanes=0,C.pendingProps=Ce,m.deletions=null):(C=Fm(M,
vendor: 9,279 bytes, line 41
41Ce),C.subtreeFlags=M.subtreeFlags&14680064),he!==null?L=Fm(he,L):(L=G1(L,ee,v,null),L.flags|=2),L.return=m,C.return=m,C.sibling=L,m.child=C,C=L,L=m.child,ee=f.child.memoizedState,ee=ee===null?K9(v):{baseLanes:ee.baseLanes|v,cachePool:null,transitions:ee.transitions},L.memoizedState=ee,L.childLanes=f.childLanes&~v,m.memoizedState=G9,C}return L=f.child,f=L.sibling,C=Fm(L,{mode:"visible",children:C.children}),(m.mode&1)===0&&(C.lanes=v),C.return=m,C.sibling=null,f!==null&&(v=m.deletions,v===null?(m.deletions=[f],m.flags|=16):v.push(f)),m.child=C,m.memoizedState=null,C}function Y9(f,m){return m=YT({mode:"visible",children:m},f.mode,0,null),m.return=f,f.child=m}function LT(f,m,v,C){return C!==null&&S9(C),uv(m,f.child,null,v),f=Y9(m,m.pendingProps.children),f.flags|=2,m.memoizedState=null,f}function w6e(f,m,v,C,M,L,ee){if(v)return m.flags&256?(m.flags&=-257,C=U9(Error(n(422))),LT(f,m,ee,C)):m.memoizedState!==null?(m.child=f.child,m.flags|=128,null):(L=C.fallback,M=m.mode,C=YT({mode:"visible",children:C.children},M,0,null),L=G1(L,M,ee,null),L.flags|=2,C.return=m,L.return=m,C.sibling=L,m.child=C,(m.mode&1)!==0&&uv(m,f.child,null,ee),m.child.memoizedState=K9(ee),m.memoizedState=G9,L);if((m.mode&1)===0)return LT(f,m,ee,null);if(M.data==="$!"){if(C=M.nextSibling&&M.nextSibling.dataset,C)var he=C.dgst;return C=he,L=Error(n(419)),C=U9(L,C,void 0),LT(f,m,ee,C)}if(he=(ee&f.childLanes)!==0,nc||he){if(C=ba,C!==null){switch(ee&-ee){case 4:M=2;break;case 16:M=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:M=32;break;case 536870912:M=268435456;break;default:M=0}M=(M&(C.suspendedLanes|ee))!==0?0:M,M!==0&&M!==L.retryLane&&(L.retryLane=M,Hp(f,M),Yh(C,f,M,-1))}return hD(),C=U9(Error(n(421))),LT(f,m,ee,C)}return M.data==="$?"?(m.flags|=128,m.child=f.child,m=N6e.bind(null,f),M._reactRetry=m,null):(f=L.treeContext,tu=Em(M.nextSibling),eu=m,$s=!0,Wh=null,f!==null&&(Hu[Uu++]=jp,Hu[Uu++]=zp,Hu[Uu++]=F1,jp=f.id,zp=f.overflow,F1=m),m=Y9(m,C.children),m.flags|=4096,m)}function tY(f,m,v){f.lanes|=m;var C=f.alternate;C!==null&&(C.lanes|=m),T9(f.return,m,v)}function Q9(f,m,v,C,M){var L=f.memoizedState;L===null?f.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:C,tail:v,tailMode:M}:(L.isBackwards=m,L.rendering=null,L.renderingStartTime=0,L.last=C,L.tail=v,L.tailMode=M)}function nY(f,m,v){var C=m.pendingProps,M=C.revealOrder,L=C.tail;if(_l(f,m,C.children,v),C=Qs.current,(C&2)!==0)C=C&1|2,m.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=m.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&tY(f,v,m);else if(f.tag===19)tY(f,v,m);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===m)break e;for(;f.sibling===null;){if(f.return===null||f.return===m)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}C&=1}if(ps(Qs,C),(m.mode&1)===0)m.memoizedState=null;else switch(M){case"forwards":for(v=m.child,M=null;v!==null;)f=v.alternate,f!==null&&PT(f)===null&&(M=v),v=v.sibling;v=M,v===null?(M=m.child,m.child=null):(M=v.sibling,v.sibling=null),Q9(m,!1,M,v,L);break;case"backwards":for(v=null,M=m.child,m.child=null;M!==null;){if(f=M.alternate,f!==null&&PT(f)===null){m.child=M;break}f=M.sibling,M.sibling=v,v=M,M=f}Q9(m,!0,v,null,L);break;case"together":Q9(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function BT(f,m){(m.mode&1)===0&&f!==null&&(f.alternate=null,m.alternate=null,m.flags|=2)}function Vp(f,m,v){if(f!==null&&(m.dependencies=f.dependencies),U1|=m.lanes,(v&m.childLanes)===0)return null;if(f!==null&&m.child!==f.child)throw Error(n(153));if(m.child!==null){for(f=m.child,v=Fm(f,f.pendingProps),m.child=v,v.return=m;f.sibling!==null;)f=f.sibling,v=v.sibling=Fm(f,f.pendingProps),v.return=m;v.sibling=null}return m.child}function S6e(f,m,v){switch(m.tag){case 3:JK(m),cv();break;case 5:gK(m);break;case 1:tc(m.type)&&vT(m);break;case 4:P9(m,m.stateNode.containerInfo);break;case 10:var C=m.type._context,M=m.memoizedProps.value;ps(_T,C._currentValue),C._currentValue=M;break;case 13:if(C=m.memoizedState,C!==null)return C.dehydrated!==null?(ps(Qs,Qs.current&1),m.flags|=128,null):(v&m.child.childLanes)!==0?eY(f,m,v):(ps(Qs,Qs.current&1),f=Vp(f,m,v),f!==null?f.sibling:null);ps(Qs,Qs.current&1);break;case 19:if(C=(v&m.childLanes)!==0,(f.flags&128)!==0){if(C)return nY(f,m,v);m.flags|=128}if(M=m.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),ps(Qs,Qs.current),C)break;return null;case 22:case 23:return m.lanes=0,YK(f,m,v)}return Vp(f,m,v)}var rY,X9,iY,sY;rY=function(f,m){for(var v=m.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},X9=function(){},iY=function(f,m,v,C){var M=f.memoizedProps;if(M!==C){f=m.stateNode,z1(Jd.current);var L=null;switch(v){case"input":M=xt(f,M),C=xt(f,C),L=[];break;case"select":M=B({},M,{value:void 0}),C=B({},C,{value:void 0}),L=[];break;case"textarea":M=ki(f,M),C=ki(f,C),L=[];break;default:typeof M.onClick!="function"&&typeof C.onClick=="function"&&(f.onclick=gT)}lt(v,C);var ee;v=null;for(Ke in M)if(!C.hasOwnProperty(Ke)&&M.hasOwnProperty(Ke)&&M[Ke]!=null)if(Ke==="style"){var he=M[Ke];for(ee in he)he.hasOwnProperty(ee)&&(v||(v={}),v[ee]="")}else Ke!=="dangerouslySetInnerHTML"&&Ke!=="children"&&Ke!=="suppressContentEditableWarning"&&Ke!=="suppressHydrationWarning"&&Ke!=="autoFocus"&&(i.hasOwnProperty(Ke)?L||(L=[]):(L=L||[]).push(Ke,null));for(Ke in C){var Ce=C[Ke];if(he=M?.[Ke],C.hasOwnProperty(Ke)&&Ce!==he&&(Ce!=null||he!=null))if(Ke==="style")if(he){for(ee in he)!he.hasOwnProperty(ee)||Ce&&Ce.hasOwnProperty(ee)||(v||(v={}),v[ee]="");for(ee in Ce)Ce.hasOwnProperty(ee)&&he[ee]!==Ce[ee]&&(v||(v={}),v[ee]=Ce[ee])}else v||(L||(L=[]),L.push(Ke,v)),v=Ce;else Ke==="dangerouslySetInnerHTML"?(Ce=Ce?Ce.__html:void 0,he=he?he.__html:void 0,Ce!=null&&he!==Ce&&(L=L||[]).push(Ke,Ce)):Ke==="children"?typeof Ce!="string"&&typeof Ce!="number"||(L=L||[]).push(Ke,""+Ce):Ke!=="suppressContentEditableWarning"&&Ke!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ke)?(Ce!=null&&Ke==="onScroll"&&Ts("scroll",f),L||he===Ce||(L=[])):(L=L||[]).push(Ke,Ce))}v&&(L=L||[]).push("style",v);var Ke=L;(m.updateQueue=Ke)&&(m.flags|=4)}},sY=function(f,m,v,C){v!==C&&(m.flags|=4)};function kS(f,m){if(!$s)switch(f.tailMode){case"hidden":m=f.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?f.tail=null:v.sibling=null;break;case"collapsed":v=f.tail;for(var C=null;v!==null;)v.alternate!==null&&(C=v),v=v.sibling;C===null?m||f.tail===null?f.tail=null:f.tail.sibling=null:C.sibling=null}}function Ja(f){var m=f.alternate!==null&&f.alternate.child===f.child,v=0,C=0;if(m)for(var M=f.child;M!==null;)v|=M.lanes|M.childLanes,C|=M.subtreeFlags&14680064,C|=M.flags&14680064,M.return=f,M=M.sibling;else for(M=f.child;M!==null;)v|=M.lanes|M.childLanes,C|=M.subtreeFlags,C|=M.flags,M.return=f,M=M.sibling;return f.subtreeFlags|=C,f.childLanes=v,m}function k6e(f,m,v){var C=m.pendingProps;switch(v9(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ja(m),null;case 1:return tc(m.type)&&bT(),Ja(m),null;case 3:return C=m.stateNode,fv(),Es(ec),Es(Qa),D9(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(f===null||f.child===null)&&(kT(m)?m.flags|=4:f===null||f.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,Wh!==null&&(lD(Wh),Wh=null))),X9(f,m),Ja(m),null;case 5:O9(m);var M=z1(bS.current);if(v=m.type,f!==null&&m.stateNode!=null)iY(f,m,v,C,M),f.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!C){if(m.stateNode===null)throw Error(n(166));return Ja(m),null}if(f=z1(Jd.current),kT(m)){C=m.stateNode,v=m.type;var L=m.memoizedProps;switch(C[Xd]=m,C[fS]=L,f=(m.mode&1)!==0,v){case"dialog":Ts("cancel",C),Ts("close",C);break;case"iframe":case"object":case"embed":Ts("load",C);break;case"video":case"audio":for(M=0;M<uS.length;M++)Ts(uS[M],C);break;case"source":Ts("error",C);break;case"img":case"image":case"link":Ts("error",C),Ts("load",C);break;case"details":Ts("toggle",C);break;case"input":Nn(C,L),Ts("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!L.multiple},Ts("invalid",C);break;case"textarea":yr(C,L),Ts("invalid",C)}lt(v,L),M=null;for(var ee in L)if(L.hasOwnProperty(ee)){var he=L[ee];ee==="children"?typeof he=="string"?C.textContent!==he&&(L.suppressHydrationWarning!==!0&&mT(C.textContent,he,f),M=["children",he]):typeof he=="number"&&C.textContent!==""+he&&(L.suppressHydrationWarning!==!0&&mT(C.textContent,he,f),M=["children",""+he]):i.hasOwnProperty(ee)&&he!=null&&ee==="onScroll"&&Ts("scroll",C)}switch(v){case"input":Mt(C),Wn(C,L,!0);break;case"textarea":Mt(C),zt(C);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(C.onclick=gT)}C=M,m.updateQueue=C,C!==null&&(m.flags|=4)}else{ee=M.nodeType===9?M:M.ownerDocument,f==="http://www.w3.org/1999/xhtml"&&(f=ze(v)),f==="http://www.w3.org/1999/xhtml"?v==="script"?(f=ee.createElement("div"),f.innerHTML="<script><\/script>
41",f=f.removeChild(f.firstChild)):typeof C.is=="string"?f=ee.createElement(v,{is:C.is}):(f=ee.createElement(v),v==="select"&&(ee=f,C.multiple?ee.multiple=!0:C.size&&(ee.size=C.size))):f=ee.createElementNS(f,v),f[Xd]=m,f[fS]=C,rY(f,m,!1,!1),m.stateNode=f;e:{switch(ee=Hr(v,C),v){case"dialog":Ts("cancel",f),Ts("close",f),M=C;break;case"iframe":case"object":case"embed":Ts("load",f),M=C;break;case"video":case"audio":for(M=0;M<uS.length;M++)Ts(uS[M],f);M=C;break;case"source":Ts("error",f),M=C;break;case"img":case"image":case"link":Ts("error",f),Ts("load",f),M=C;break;case"details":Ts("toggle",f),M=C;break;case"input":Nn(f,C),M=xt(f,C),Ts("invalid",f);break;case"option":M=C;break;case"select":f._wrapperState={wasMultiple:!!C.multiple},M=B({},C,{value:void 0}),Ts("invalid",f);break;case"textarea":yr(f,C),M=ki(f,C),Ts("invalid",f);break;default:M=C}lt(v,M),he=M;for(L in he)if(he.hasOwnProperty(L)){var Ce=he[L];L==="style"?Rr(f,Ce):L==="dangerouslySetInnerHTML"?(Ce=Ce?Ce.__html:void 0,Ce!=null&&tn(f,Ce)):L==="children"?typeof Ce=="string"?(v!=="textarea"||Ce!=="")&&ot(f,Ce):typeof Ce=="number"&&ot(f,""+Ce):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(i.hasOwnProperty(L)?Ce!=null&&L==="onScroll"&&Ts("scroll",f):Ce!=null&&T(f,L,Ce,ee))}switch(v){case"input":Mt(f),Wn(f,C,!1);break;case"textarea":Mt(f),zt(f);break;case"option":C.value!=null&&f.setAttribute("value",""+ft(C.value));break;case"select":f.multiple=!!C.multiple,L=C.value,L!=null?Nr(f,!!C.multiple,L,!1):C.defaultValue!=null&&Nr(f,!!C.multiple,C.defaultValue,!0);break;default:typeof M.onClick=="function"&&(f.onclick=gT)}switch(v){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(m.flags|=4)}m.ref!==null&&(m.flags|=512,m.flags|=2097152)}return Ja(m),null;case 6:if(f&&m.stateNode!=null)sY(f,m,f.memoizedProps,C);else{if(typeof C!="string"&&m.stateNode===null)throw Error(n(166));if(v=z1(bS.current),z1(Jd.current),kT(m)){if(C=m.stateNode,v=m.memoizedProps,C[Xd]=m,(L=C.nodeValue!==v)&&(f=eu,f!==null))switch(f.tag){case 3:mT(C.nodeValue,v,(f.mode&1)!==0);break;case 5:f.memoizedProps.suppressHydrationWarning!==!0&&mT(C.nodeValue,v,(f.mode&1)!==0)}L&&(m.flags|=4)}else C=(v.nodeType===9?v:v.ownerDocument).createTextNode(C),C[Xd]=m,m.stateNode=C}return Ja(m),null;case 13:if(Es(Qs),C=m.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if($s&&tu!==null&&(m.mode&1)!==0&&(m.flags&128)===0)lK(),cv(),m.flags|=98560,L=!1;else if(L=kT(m),C!==null&&C.dehydrated!==null){if(f===null){if(!L)throw Error(n(318));if(L=m.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(n(317));L[Xd]=m}else cv(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Ja(m),L=!1}else Wh!==null&&(lD(Wh),Wh=null),L=!0;if(!L)return m.flags&65536?m:null}return(m.flags&128)!==0?(m.lanes=v,m):(C=C!==null,C!==(f!==null&&f.memoizedState!==null)&&C&&(m.child.flags|=8192,(m.mode&1)!==0&&(f===null||(Qs.current&1)!==0?ea===0&&(ea=3):hD())),m.updateQueue!==null&&(m.flags|=4),Ja(m),null);case 4:return fv(),X9(f,m),f===null&&hS(m.stateNode.containerInfo),Ja(m),null;case 10:return _9(m.type._context),Ja(m),null;case 17:return tc(m.type)&&bT(),Ja(m),null;case 19:if(Es(Qs),L=m.memoizedState,L===null)return Ja(m),null;if(C=(m.flags&128)!==0,ee=L.rendering,ee===null)if(C)kS(L,!1);else{if(ea!==0||f!==null&&(f.flags&128)!==0)for(f=m.child;f!==null;){if(ee=PT(f),ee!==null){for(m.flags|=128,kS(L,!1),C=ee.updateQueue,C!==null&&(m.updateQueue=C,m.flags|=4),m.subtreeFlags=0,C=v,v=m.child;v!==null;)L=v,f=C,L.flags&=14680066,ee=L.alternate,ee===null?(L.childLanes=0,L.lanes=f,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=ee.childLanes,L.lanes=ee.lanes,L.child=ee.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=ee.memoizedProps,L.memoizedState=ee.memoizedState,L.updateQueue=ee.updateQueue,L.type=ee.type,f=ee.dependencies,L.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),v=v.sibling;return ps(Qs,Qs.current&1|2),m.child}f=f.sibling}L.tail!==null&&pn()>yv&&(m.flags|=128,C=!0,kS(L,!1),m.lanes=4194304)}else{if(!C)if(f=PT(ee),f!==null){if(m.flags|=128,C=!0,v=f.updateQueue,v!==null&&(m.updateQueue=v,m.flags|=4),kS(L,!0),L.tail===null&&L.tailMode==="hidden"&&!ee.alternate&&!$s)return Ja(m),null}else 2*pn()-L.renderingStartTime>yv&&v!==1073741824&&(m.flags|=128,C=!0,kS(L,!1),m.lanes=4194304);L.isBackwards?(ee.sibling=m.child,m.child=ee):(v=L.last,v!==null?v.sibling=ee:m.child=ee,L.last=ee)}return L.tail!==null?(m=L.tail,L.rendering=m,L.tail=m.sibling,L.renderingStartTime=pn(),m.sibling=null,v=Qs.current,ps(Qs,C?v&1|2:v&1),m):(Ja(m),null);case 22:case 23:return uD(),C=m.memoizedState!==null,f!==null&&f.memoizedState!==null!==C&&(m.flags|=8192),C&&(m.mode&1)!==0?(nu&1073741824)!==0&&(Ja(m),m.subtreeFlags&6&&(m.flags|=8192)):Ja(m),null;case 24:return null;case 25:return null}throw Error(n(156,m.tag))}function C6e(f,m){switch(v9(m),m.tag){case 1:return tc(m.type)&&bT(),f=m.flags,f&65536?(m.flags=f&-65537|128,m):null;case 3:return fv(),Es(ec),Es(Qa),D9(),f=m.flags,(f&65536)!==0&&(f&128)===0?(m.flags=f&-65537|128,m):null;case 5:return O9(m),null;case 13:if(Es(Qs),f=m.memoizedState,f!==null&&f.dehydrated!==null){if(m.alternate===null)throw Error(n(340));cv()}return f=m.flags,f&65536?(m.flags=f&-65537|128,m):null;case 19:return Es(Qs),null;case 4:return fv(),null;
vendor: 15,543 bytes, line 41
41case 10:return _9(m.type._context),null;case 22:case 23:return uD(),null;case 24:return null;default:return null}}var FT=!1,Za=!1,_6e=typeof WeakSet=="function"?WeakSet:Set,fn=null;function mv(f,m){var v=f.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(C){co(f,m,C)}else v.current=null}function J9(f,m,v){try{v()}catch(C){co(f,m,C)}}var oY=!1;function T6e(f,m){if(u9=ce,f=Ie(),qe(f)){if("selectionStart"in f)var v={start:f.selectionStart,end:f.selectionEnd};else e:{v=(v=f.ownerDocument)&&v.defaultView||window;var C=v.getSelection&&v.getSelection();if(C&&C.rangeCount!==0){v=C.anchorNode;var M=C.anchorOffset,L=C.focusNode;C=C.focusOffset;try{v.nodeType,L.nodeType}catch{v=null;break e}var ee=0,he=-1,Ce=-1,Ke=0,vt=0,St=f,gt=null;t:for(;;){for(var an;St!==v||M!==0&&St.nodeType!==3||(he=ee+M),St!==L||C!==0&&St.nodeType!==3||(Ce=ee+C),St.nodeType===3&&(ee+=St.nodeValue.length),(an=St.firstChild)!==null;)gt=St,St=an;for(;;){if(St===f)break t;if(gt===v&&++Ke===M&&(he=ee),gt===L&&++vt===C&&(Ce=ee),(an=St.nextSibling)!==null)break;St=gt,gt=St.parentNode}St=an}v=he===-1||Ce===-1?null:{start:he,end:Ce}}else v=null}v=v||{start:0,end:0}}else v=null;for(h9={focusedElem:f,selectionRange:v},ce=!1,fn=m;fn!==null;)if(m=fn,f=m.child,(m.subtreeFlags&1028)!==0&&f!==null)f.return=m,fn=f;else for(;fn!==null;){m=fn;try{var mn=m.alternate;if((m.flags&1024)!==0)switch(m.tag){case 0:case 11:case 15:break;case 1:if(mn!==null){var vn=mn.memoizedProps,go=mn.memoizedState,Ue=m.stateNode,Pe=Ue.getSnapshotBeforeUpdate(m.elementType===m.type?vn:qh(m.type,vn),go);Ue.__reactInternalSnapshotBeforeUpdate=Pe}break;case 3:var Ge=m.stateNode.containerInfo;Ge.nodeType===1?Ge.textContent="":Ge.nodeType===9&&Ge.documentElement&&Ge.removeChild(Ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ft){co(m,m.return,Ft)}if(f=m.sibling,f!==null){f.return=m.return,fn=f;break}fn=m.return}return mn=oY,oY=!1,mn}function CS(f,m,v){var C=m.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var M=C=C.next;do{if((M.tag&f)===f){var L=M.destroy;M.destroy=void 0,L!==void 0&&J9(m,v,L)}M=M.next}while(M!==C)}}function $T(f,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var v=m=m.next;do{if((v.tag&f)===f){var C=v.create;v.destroy=C()}v=v.next}while(v!==m)}}function Z9(f){var m=f.ref;if(m!==null){var v=f.stateNode;switch(f.tag){case 5:f=v;break;default:f=v}typeof m=="function"?m(f):m.current=f}}function aY(f){var m=f.alternate;m!==null&&(f.alternate=null,aY(m)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(m=f.stateNode,m!==null&&(delete m[Xd],delete m[fS],delete m[m9],delete m[l6e],delete m[c6e])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function lY(f){return f.tag===5||f.tag===3||f.tag===4}function cY(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||lY(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function eD(f,m,v){var C=f.tag;if(C===5||C===6)f=f.stateNode,m?v.nodeType===8?v.parentNode.insertBefore(f,m):v.insertBefore(f,m):(v.nodeType===8?(m=v.parentNode,m.insertBefore(f,v)):(m=v,m.appendChild(f)),v=v._reactRootContainer,v!=null||m.onclick!==null||(m.onclick=gT));else if(C!==4&&(f=f.child,f!==null))for(eD(f,m,v),f=f.sibling;f!==null;)eD(f,m,v),f=f.sibling}function tD(f,m,v){var C=f.tag;if(C===5||C===6)f=f.stateNode,m?v.insertBefore(f,m):v.appendChild(f);else if(C!==4&&(f=f.child,f!==null))for(tD(f,m,v),f=f.sibling;f!==null;)tD(f,m,v),f=f.sibling}var Da=null,Gh=!1;function Mm(f,m,v){for(v=v.child;v!==null;)uY(f,m,v),v=v.sibling}function uY(f,m,v){if(Bs&&typeof Bs.onCommitFiberUnmount=="function")try{Bs.onCommitFiberUnmount(yi,v)}catch{}switch(v.tag){case 5:Za||mv(v,m);case 6:var C=Da,M=Gh;Da=null,Mm(f,m,v),Da=C,Gh=M,Da!==null&&(Gh?(f=Da,v=v.stateNode,f.nodeType===8?f.parentNode.removeChild(v):f.removeChild(v)):Da.removeChild(v.stateNode));break;case 18:Da!==null&&(Gh?(f=Da,v=v.stateNode,f.nodeType===8?p9(f.parentNode,v):f.nodeType===1&&p9(f,v),Hh(f)):p9(Da,v.stateNode));break;case 4:C=Da,M=Gh,Da=v.stateNode.containerInfo,Gh=!0,Mm(f,m,v),Da=C,Gh=M;break;case 0:case 11:case 14:case 15:if(!Za&&(C=v.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){M=C=C.next;do{var L=M,ee=L.destroy;L=L.tag,ee!==void 0&&((L&2)!==0||(L&4)!==0)&&J9(v,m,ee),M=M.next}while(M!==C)}Mm(f,m,v);break;case 1:if(!Za&&(mv(v,m),C=v.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=v.memoizedProps,C.state=v.memoizedState,C.componentWillUnmount()}catch(he){co(v,m,he)}Mm(f,m,v);break;case 21:Mm(f,m,v);break;case 22:v.mode&1?(Za=(C=Za)||v.memoizedState!==null,Mm(f,m,v),Za=C):Mm(f,m,v);break;default:Mm(f,m,v)}}function hY(f){var m=f.updateQueue;if(m!==null){f.updateQueue=null;var v=f.stateNode;v===null&&(v=f.stateNode=new _6e),m.forEach(function(C){var M=R6e.bind(null,f,C);v.has(C)||(v.add(C),C.then(M,M))})}}function Kh(f,m){var v=m.deletions;if(v!==null)for(var C=0;C<v.length;C++){var M=v[C];try{var L=f,ee=m,he=ee;e:for(;he!==null;){switch(he.tag){case 5:Da=he.stateNode,Gh=!1;break e;case 3:Da=he.stateNode.containerInfo,Gh=!0;break e;case 4:Da=he.stateNode.containerInfo,Gh=!0;break e}he=he.return}if(Da===null)throw Error(n(160));uY(L,ee,M),Da=null,Gh=!1;var Ce=M.alternate;Ce!==null&&(Ce.return=null),M.return=null}catch(Ke){co(M,m,Ke)}}if(m.subtreeFlags&12854)for(m=m.child;m!==null;)dY(m,f),m=m.sibling}function dY(f,m){var v=f.alternate,C=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:if(Kh(m,f),ef(f),C&4){try{CS(3,f,f.return),$T(3,f)}catch(vn){co(f,f.return,vn)}try{CS(5,f,f.return)}catch(vn){co(f,f.return,vn)}}break;case 1:Kh(m,f),ef(f),C&512&&v!==null&&mv(v,v.return);break;case 5:if(Kh(m,f),ef(f),C&512&&v!==null&&mv(v,v.return),f.flags&32){var M=f.stateNode;try{ot(M,"")}catch(vn){co(f,f.return,vn)}}if(C&4&&(M=f.stateNode,M!=null)){var L=f.memoizedProps,ee=v!==null?v.memoizedProps:L,he=f.type,Ce=f.updateQueue;if(f.updateQueue=null,Ce!==null)try{he==="input"&&L.type==="radio"&&L.name!=null&&Hn(M,L),Hr(he,ee);var Ke=Hr(he,L);for(ee=0;ee<Ce.length;ee+=2){var vt=Ce[ee],St=Ce[ee+1];vt==="style"?Rr(M,St):vt==="dangerouslySetInnerHTML"?tn(M,St):vt==="children"?ot(M,St):T(M,vt,St,Ke)}switch(he){case"input":$n(M,L);break;case"textarea":mt(M,L);break;case"select":var gt=M._wrapperState.wasMultiple;M._wrapperState.wasMultiple=!!L.multiple;var an=L.value;an!=null?Nr(M,!!L.multiple,an,!1):gt!==!!L.multiple&&(L.defaultValue!=null?Nr(M,!!L.multiple,L.defaultValue,!0):Nr(M,!!L.multiple,L.multiple?[]:"",!1))}M[fS]=L}catch(vn){co(f,f.return,vn)}}break;case 6:if(Kh(m,f),ef(f),C&4){if(f.stateNode===null)throw Error(n(162));M=f.stateNode,L=f.memoizedProps;try{M.nodeValue=L}catch(vn){co(f,f.return,vn)}}break;case 3:if(Kh(m,f),ef(f),C&4&&v!==null&&v.memoizedState.isDehydrated)try{Hh(m.containerInfo)}catch(vn){co(f,f.return,vn)}break;case 4:Kh(m,f),ef(f);break;case 13:Kh(m,f),ef(f),M=f.child,M.flags&8192&&(L=M.memoizedState!==null,M.stateNode.isHidden=L,!L||M.alternate!==null&&M.alternate.memoizedState!==null||(iD=pn())),C&4&&hY(f);break;case 22:if(vt=v!==null&&v.memoizedState!==null,f.mode&1?(Za=(Ke=Za)||vt,Kh(m,f),Za=Ke):Kh(m,f),ef(f),C&8192){if(Ke=f.memoizedState!==null,(f.stateNode.isHidden=Ke)&&!vt&&(f.mode&1)!==0)for(fn=f,vt=f.child;vt!==null;){for(St=fn=vt;fn!==null;){switch(gt=fn,an=gt.child,gt.tag){case 0:case 11:case 14:case 15:CS(4,gt,gt.return);break;case 1:mv(gt,gt.return);var mn=gt.stateNode;if(typeof mn.componentWillUnmount=="function"){C=gt,v=gt.return;try{m=C,mn.props=m.memoizedProps,mn.state=m.memoizedState,mn.componentWillUnmount()}catch(vn){co(C,v,vn)}}break;case 5:mv(gt,gt.return);break;case 22:if(gt.memoizedState!==null){mY(St);continue}}an!==null?(an.return=gt,fn=an):mY(St)}vt=vt.sibling}e:for(vt=null,St=f;;){if(St.tag===5){if(vt===null){vt=St;try{M=St.stateNode,Ke?(L=M.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(he=St.stateNode,Ce=St.memoizedProps.style,ee=Ce!=null&&Ce.hasOwnProperty("display")?Ce.display:null,he.style.display=fr("display",ee))}catch(vn){co(f,f.return,vn)}}}else if(St.tag===6){if(vt===null)try{St.stateNode.nodeValue=Ke?"":St.memoizedProps}catch(vn){co(f,f.return,vn)}}else if((St.tag!==22&&St.tag!==23||St.memoizedState===null||St===f)&&St.child!==null){St.child.return=St,St=St.child;continue}if(St===f)break e;for(;St.sibling===null;){if(St.return===null||St.return===f)break e;vt===St&&(vt=null),St=St.return}vt===St&&(vt=null),St.sibling.return=St.return,St=St.sibling}}break;case 19:Kh(m,f),ef(f),C&4&&hY(f);break;case 21:break;default:Kh(m,f),ef(f)}}function ef(f){var m=f.flags;if(m&2){try{e:{for(var v=f.return;v!==null;){if(lY(v)){var C=v;break e}v=v.return}throw Error(n(160))}switch(C.tag){case 5:var M=C.stateNode;C.flags&32&&(ot(M,""),C.flags&=-33);var L=cY(f);tD(f,L,M);break;case 3:case 4:var ee=C.stateNode.containerInfo,he=cY(f);eD(f,he,ee);break;default:throw Error(n(161))}}catch(Ce){co(f,f.return,Ce)}f.flags&=-3}m&4096&&(f.flags&=-4097)}function E6e(f,m,v){fn=f,fY(f)}function fY(f,m,v){for(var C=(f.mode&1)!==0;fn!==null;){var M=fn,L=M.child;if(M.tag===22&&C){var ee=M.memoizedState!==null||FT;if(!ee){var he=M.alternate,Ce=he!==null&&he.memoizedState!==null||Za;he=FT;var Ke=Za;if(FT=ee,(Za=Ce)&&!Ke)for(fn=M;fn!==null;)ee=fn,Ce=ee.child,ee.tag===22&&ee.memoizedState!==null?gY(M):Ce!==null?(Ce.return=ee,fn=Ce):gY(M);for(;L!==null;)fn=L,fY(L),L=L.sibling;fn=M,FT=he,Za=Ke}pY(f)}else(M.subtreeFlags&8772)!==0&&L!==null?(L.return=M,fn=L):pY(f)}}function pY(f){for(;fn!==null;){var m=fn;if((m.flags&8772)!==0){var v=m.alternate;try{if((m.flags&8772)!==0)switch(m.tag){case 0:case 11:case 15:Za||$T(5,m);break;case 1:var C=m.stateNode;if(m.flags&4&&!Za)if(v===null)C.componentDidMount();else{var M=m.elementType===m.type?v.memoizedProps:qh(m.type,v.memoizedProps);C.componentDidUpdate(M,v.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var L=m.updateQueue;L!==null&&mK(m,L,C);break;case 3:var ee=m.updateQueue;if(ee!==null){if(v=null,m.child!==null)switch(m.child.tag){case 5:v=m.child.stateNode;break;case 1:v=m.child.stateNode}mK(m,ee,v)}break;case 5:var he=m.stateNode;if(v===null&&m.flags&4){v=he;var Ce=m.memoizedProps;switch(m.type){case"button":case"input":case"select":case"textarea":Ce.autoFocus&&v.focus();break;case"img":Ce.src&&(v.src=Ce.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(m.memoizedState===null){var Ke=m.alternate;if(Ke!==null){var vt=Ke.memoizedState;if(vt!==null){var St=vt.dehydrated;St!==null&&Hh(St)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Za||m.flags&512&&Z9(m)}catch(gt){co(m,m.return,gt)}}if(m===f){fn=null;break}if(v=m.sibling,v!==null){v.return=m.return,fn=v;break}fn=m.return}}function mY(f){for(;fn!==null;){var m=fn;if(m===f){fn=null;break}var v=m.sibling;if(v!==null){v.return=m.return,fn=v;break}fn=m.return}}function gY(f){for(;fn!==null;){var m=fn;try{switch(m.tag){case 0:case 11:case 15:var v=m.return;try{$T(4,m)}catch(Ce){co(m,v,Ce)}break;case 1:var C=m.stateNode;if(typeof C.componentDidMount=="function"){var M=m.return;try{C.componentDidMount()}catch(Ce){co(m,M,Ce)}}var L=m.return;try{Z9(m)}catch(Ce){co(m,L,Ce)}break;case 5:var ee=m.return;try{Z9(m)}catch(Ce){co(m,ee,Ce)}}}catch(Ce){co(m,m.return,Ce)}if(m===f){fn=null;break}var he=m.sibling;if(he!==null){he.return=m.return,fn=he;break}fn=m.return}}var A6e=Math.ceil,jT=D.ReactCurrentDispatcher,nD=D.ReactCurrentOwner,qu=D.ReactCurrentBatchConfig,bi=0,ba=null,Mo=null,Ma=0,nu=0,gv=Am(0),ea=0,_S=null,U1=0,zT=0,rD=0,TS=null,rc=null,iD=0,yv=1/0,Wp=null,HT=!1,sD=null,Nm=null,UT=!1,Rm=null,VT=0,ES=0,oD=null,WT=-1,qT=0;function Tl(){return(bi&6)!==0?pn():WT!==-1?WT:WT=pn()}function Lm(f){return(f.mode&1)===0?1:(bi&2)!==0&&Ma!==0?Ma&-Ma:h6e.transition!==null?(qT===0&&(qT=T1()),qT):(f=fi,f!==0||(f=window.event,f=f===void 0?16:Ki(f.type)),f)}function Yh(f,m,v,C){if(50<ES)throw ES=0,oD=null,Error(n(185));Gd(f,v,C),((bi&2)===0||f!==ba)&&(f===ba&&((bi&2)===0&&(zT|=v),ea===4&&Bm(f,Ma)),ic(f,C),v===1&&bi===0&&(m.mode&1)===0&&(yv=pn()+500,xT&&Om()))}function ic(f,m){var v=f.callbackNode;Ap(f,m);var C=Kc(f,f===ba?Ma:0);if(C===0)v!==null&&Yt(v),f.callbackNode=null,f.callbackPriority=0;else if(m=C&-C,f.callbackPriority!==m){if(v!=null&&Yt(v),m===1)f.tag===0?u6e(bY.bind(null,f)):rK(bY.bind(null,f)),o6e(function(){(bi&6)===0&&Om()}),v=null;else{switch(ni(C)){case 1:v=_i;break;case 4:v=Ls;break;case 16:v=Di;break;case 536870912:v=pr;break;default:v=Di}v=TY(v,yY.bind(null,f))}f.callbackPriority=m,f.callbackNode=v}}function yY(f,m){if(WT=-1,qT=0,(bi&6)!==0)throw Error(n(327));var v=f.callbackNode;if(bv()&&f.callbackNode!==v)return null;var C=Kc(f,f===ba?Ma:0);if(C===0)return null;if((C&30)!==0||(C&f.expiredLanes)!==0||m)m=GT(f,C);else{m=C;var M=bi;bi|=2;var L=xY();(ba!==f||Ma!==m)&&(Wp=null,yv=pn()+500,W1(f,m));do try{I6e();break}catch(he){vY(f,he)}while(!0);C9(),jT.current=L,bi=M,Mo!==null?m=0:(ba=null,Ma=0,m=ea)}if(m!==0){if(m===2&&(M=qd(f),M!==0&&(C=M,m=aD(f,M))),m===1)throw v=_S,W1(f,0),Bm(f,C),ic(f,pn()),v;if(m===6)Bm(f,C);else{if(M=f.current.alternate,(C&30)===0&&!P6e(M)&&(m=GT(f,C),m===2&&(L=qd(f),L!==0&&(C=L,m=aD(f,L))),m===1))throw v=_S,W1(f,0),Bm(f,C),ic(f,pn()),v;switch(f.finishedWork=M,f.finishedLanes=C,m){case 0:case 1:throw Error(n(345));case 2:q1(f,rc,Wp);break;case 3:if(Bm(f,C),(C&130023424)===C&&(m=iD+500-pn(),10<m)){if(Kc(f,0)!==0)break;if(M=f.suspendedLanes,(M&C)!==C){Tl(),f.pingedLanes|=f.suspendedLanes&M;break}f.timeoutHandle=f9(q1.bind(null,f,rc,Wp),m);break}q1(f,rc,Wp);break;case 4:if(Bm(f,C),(C&4194240)===C)break;for(m=f.eventTimes,M=-1;0<C;){var ee=31-on(C);L=1<<ee,ee=m[ee],ee>M&&(M=ee),C&=~L}if(C=M,C=pn()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*A6e(C/1960))-C,10<C){f.timeoutHandle=f9(q1.bind(null,f,rc,Wp),C);break}q1(f,rc,Wp);break;case 5:q1(f,rc,Wp);break;default:throw Error(n(329))}}}return ic(f,pn()),f.callbackNode===v?yY.bind(null,f):null}function aD(f,m){var v=TS;return f.current.memoizedState.isDehydrated&&(W1(f,m).flags|=256),f=GT(f,m),f!==2&&(m=rc,rc=v,m!==null&&lD(m)),f}function lD(f){rc===null?rc=f:rc.push.apply(rc,f)}function P6e(f){for(var m=f;;){if(m.flags&16384){var v=m.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var C=0;C<v.length;C++){var M=v[C],L=M.getSnapshot;M=M.value;try{if(!be(L(),M))return!1}catch{return!1}}}if(v=m.child,m.subtreeFlags&16384&&v!==null)v.return=m,m=v;else{if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function Bm(f,m){for(m&=~rD,m&=~zT,f.suspendedLanes|=m,f.pingedLanes&=~m,f=f.expirationTimes;0<m;){var v=31-on(m),C=1<<v;f[v]=-1,m&=~C}}function bY(f){if((bi&6)!==0)throw Error(n(327));bv();var m=Kc(f,0);if((m&1)===0)return ic(f,pn()),null;var v=GT(f,m);if(f.tag!==0&&v===2){var C=qd(f);C!==0&&(m=C,v=aD(f,C))}if(v===1)throw v=_S,W1(f,0),Bm(f,m),ic(f,pn()),v;if(v===6)throw Error(n(345));return f.finishedWork=f.current.alternate,f.finishedLanes=m,q1(f,rc,Wp),ic(f,pn()),null}function cD(f,m){var v=bi;bi|=1;try{return f(m)}finally{bi=v,bi===0&&(yv=pn()+500,xT&&Om())}}function V1(f){Rm!==null&&Rm.tag===0&&(bi&6)===0&&bv();var m=bi;bi|=1;var v=qu.transition,C=fi;try{if(qu.transition=null,fi=1,f)return f()}finally{fi=C,qu.transition=v,bi=m,(bi&6)===0&&Om()}}function uD(){nu=gv.current,Es(gv)}
vendor: 9,274 bytes, line 41
41function W1(f,m){f.finishedWork=null,f.finishedLanes=0;var v=f.timeoutHandle;if(v!==-1&&(f.timeoutHandle=-1,s6e(v)),Mo!==null)for(v=Mo.return;v!==null;){var C=v;switch(v9(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&bT();break;case 3:fv(),Es(ec),Es(Qa),D9();break;case 5:O9(C);break;case 4:fv();break;case 13:Es(Qs);break;case 19:Es(Qs);break;case 10:_9(C.type._context);break;case 22:case 23:uD()}v=v.return}if(ba=f,Mo=f=Fm(f.current,null),Ma=nu=m,ea=0,_S=null,rD=zT=U1=0,rc=TS=null,j1!==null){for(m=0;m<j1.length;m++)if(v=j1[m],C=v.interleaved,C!==null){v.interleaved=null;var M=C.next,L=v.pending;if(L!==null){var ee=L.next;L.next=M,C.next=ee}v.pending=C}j1=null}return f}function vY(f,m){do{var v=Mo;try{if(C9(),OT.current=NT,IT){for(var C=Xs.memoizedState;C!==null;){var M=C.queue;M!==null&&(M.pending=null),C=C.next}IT=!1}if(H1=0,ya=Zo=Xs=null,vS=!1,xS=0,nD.current=null,v===null||v.return===null){ea=1,_S=m,Mo=null;break}e:{var L=f,ee=v.return,he=v,Ce=m;if(m=Ma,he.flags|=32768,Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var Ke=Ce,vt=he,St=vt.tag;if((vt.mode&1)===0&&(St===0||St===11||St===15)){var gt=vt.alternate;gt?(vt.updateQueue=gt.updateQueue,vt.memoizedState=gt.memoizedState,vt.lanes=gt.lanes):(vt.updateQueue=null,vt.memoizedState=null)}var an=VK(ee);if(an!==null){an.flags&=-257,WK(an,ee,he,L,m),an.mode&1&&UK(L,Ke,m),m=an,Ce=Ke;var mn=m.updateQueue;if(mn===null){var vn=new Set;vn.add(Ce),m.updateQueue=vn}else mn.add(Ce);break e}else{if((m&1)===0){UK(L,Ke,m),hD();break e}Ce=Error(n(426))}}else if($s&&he.mode&1){var go=VK(ee);if(go!==null){(go.flags&65536)===0&&(go.flags|=256),WK(go,ee,he,L,m),S9(pv(Ce,he));break e}}L=Ce=pv(Ce,he),ea!==4&&(ea=2),TS===null?TS=[L]:TS.push(L),L=ee;do{switch(L.tag){case 3:L.flags|=65536,m&=-m,L.lanes|=m;var Ue=zK(L,Ce,m);pK(L,Ue);break e;case 1:he=Ce;var Pe=L.type,Ge=L.stateNode;if((L.flags&128)===0&&(typeof Pe.getDerivedStateFromError=="function"||Ge!==null&&typeof Ge.componentDidCatch=="function"&&(Nm===null||!Nm.has(Ge)))){L.flags|=65536,m&=-m,L.lanes|=m;var Ft=HK(L,he,m);pK(L,Ft);break e}}L=L.return}while(L!==null)}SY(v)}catch(_n){m=_n,Mo===v&&v!==null&&(Mo=v=v.return);continue}break}while(!0)}function xY(){var f=jT.current;return jT.current=NT,f===null?NT:f}function hD(){(ea===0||ea===3||ea===2)&&(ea=4),ba===null||(U1&268435455)===0&&(zT&268435455)===0||Bm(ba,Ma)}function GT(f,m){var v=bi;bi|=2;var C=xY();(ba!==f||Ma!==m)&&(Wp=null,W1(f,m));do try{O6e();break}catch(M){vY(f,M)}while(!0);if(C9(),bi=v,jT.current=C,Mo!==null)throw Error(n(261));return ba=null,Ma=0,ea}function O6e(){for(;Mo!==null;)wY(Mo)}function I6e(){for(;Mo!==null&&!Rn();)wY(Mo)}function wY(f){var m=_Y(f.alternate,f,nu);f.memoizedProps=f.pendingProps,m===null?SY(f):Mo=m,nD.current=null}function SY(f){var m=f;do{var v=m.alternate;if(f=m.return,(m.flags&32768)===0){if(v=k6e(v,m,nu),v!==null){Mo=v;return}}else{if(v=C6e(v,m),v!==null){v.flags&=32767,Mo=v;return}if(f!==null)f.flags|=32768,f.subtreeFlags=0,f.deletions=null;else{ea=6,Mo=null;return}}if(m=m.sibling,m!==null){Mo=m;return}Mo=m=f}while(m!==null);ea===0&&(ea=5)}function q1(f,m,v){var C=fi,M=qu.transition;try{qu.transition=null,fi=1,D6e(f,m,v,C)}finally{qu.transition=M,fi=C}return null}function D6e(f,m,v,C){do bv();while(Rm!==null);if((bi&6)!==0)throw Error(n(327));v=f.finishedWork;var M=f.finishedLanes;if(v===null)return null;if(f.finishedWork=null,f.finishedLanes=0,v===f.current)throw Error(n(177));f.callbackNode=null,f.callbackPriority=0;var L=v.lanes|v.childLanes;if(Pp(f,L),f===ba&&(Mo=ba=null,Ma=0),(v.subtreeFlags&2064)===0&&(v.flags&2064)===0||UT||(UT=!0,TY(Di,function(){return bv(),null})),L=(v.flags&15990)!==0,(v.subtreeFlags&15990)!==0||L){L=qu.transition,qu.transition=null;var ee=fi;fi=1;var he=bi;bi|=4,nD.current=null,T6e(f,v),dY(v,f),Ye(h9),ce=!!u9,h9=u9=null,f.current=v,E6e(v),Ur(),bi=he,fi=ee,qu.transition=L}else f.current=v;if(UT&&(UT=!1,Rm=f,VT=M),L=f.pendingLanes,L===0&&(Nm=null),$u(v.stateNode),ic(f,pn()),m!==null)for(C=f.onRecoverableError,v=0;v<m.length;v++)M=m[v],C(M.value,{componentStack:M.stack,digest:M.digest});if(HT)throw HT=!1,f=sD,sD=null,f;return(VT&1)!==0&&f.tag!==0&&bv(),L=f.pendingLanes,(L&1)!==0?f===oD?ES++:(ES=0,oD=f):ES=0,Om(),null}function bv(){if(Rm!==null){var f=ni(VT),m=qu.transition,v=fi;try{if(qu.transition=null,fi=16>f?16:f,Rm===null)var C=!1;else{if(f=Rm,Rm=null,VT=0,(bi&6)!==0)throw Error(n(331));var M=bi;for(bi|=4,fn=f.current;fn!==null;){var L=fn,ee=L.child;if((fn.flags&16)!==0){var he=L.deletions;if(he!==null){for(var Ce=0;Ce<he.length;Ce++){var Ke=he[Ce];for(fn=Ke;fn!==null;){var vt=fn;switch(vt.tag){case 0:case 11:case 15:CS(8,vt,L)}var St=vt.child;if(St!==null)St.return=vt,fn=St;else for(;fn!==null;){vt=fn;var gt=vt.sibling,an=vt.return;if(aY(vt),vt===Ke){fn=null;break}if(gt!==null){gt.return=an,fn=gt;break}fn=an}}}var mn=L.alternate;if(mn!==null){var vn=mn.child;if(vn!==null){mn.child=null;do{var go=vn.sibling;vn.sibling=null,vn=go}while(vn!==null)}}fn=L}}if((L.subtreeFlags&2064)!==0&&ee!==null)ee.return=L,fn=ee;else e:for(;fn!==null;){if(L=fn,(L.flags&2048)!==0)switch(L.tag){case 0:case 11:case 15:CS(9,L,L.return)}var Ue=L.sibling;if(Ue!==null){Ue.return=L.return,fn=Ue;break e}fn=L.return}}var Pe=f.current;for(fn=Pe;fn!==null;){ee=fn;var Ge=ee.child;if((ee.subtreeFlags&2064)!==0&&Ge!==null)Ge.return=ee,fn=Ge;else e:for(ee=Pe;fn!==null;){if(he=fn,(he.flags&2048)!==0)try{switch(he.tag){case 0:case 11:case 15:$T(9,he)}}catch(_n){co(he,he.return,_n)}if(he===ee){fn=null;break e}var Ft=he.sibling;if(Ft!==null){Ft.return=he.return,fn=Ft;break e}fn=he.return}}if(bi=M,Om(),Bs&&typeof Bs.onPostCommitFiberRoot=="function")try{Bs.onPostCommitFiberRoot(yi,f)}catch{}C=!0}return C}finally{fi=v,qu.transition=m}}return!1}function kY(f,m,v){m=pv(v,m),m=zK(f,m,1),f=Dm(f,m,1),m=Tl(),f!==null&&(Gd(f,1,m),ic(f,m))}function co(f,m,v){if(f.tag===3)kY(f,f,v);else for(;m!==null;){if(m.tag===3){kY(m,f,v);break}else if(m.tag===1){var C=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(Nm===null||!Nm.has(C))){f=pv(v,f),f=HK(m,f,1),m=Dm(m,f,1),f=Tl(),m!==null&&(Gd(m,1,f),ic(m,f));break}}m=m.return}}function M6e(f,m,v){var C=f.pingCache;C!==null&&C.delete(m),m=Tl(),f.pingedLanes|=f.suspendedLanes&v,ba===f&&(Ma&v)===v&&(ea===4||ea===3&&(Ma&130023424)===Ma&&500>pn()-iD?W1(f,0):rD|=v),ic(f,m)}function CY(f,m){m===0&&((f.mode&1)===0?m=1:(m=ju,ju<<=1,(ju&130023424)===0&&(ju=4194304)));var v=Tl();f=Hp(f,m),f!==null&&(Gd(f,m,v),ic(f,v))}function N6e(f){var m=f.memoizedState,v=0;m!==null&&(v=m.retryLane),CY(f,v)}function R6e(f,m){var v=0;switch(f.tag){case 13:var C=f.stateNode,M=f.memoizedState;M!==null&&(v=M.retryLane);break;case 19:C=f.stateNode;break;default:throw Error(n(314))}C!==null&&C.delete(m),CY(f,v)}var _Y;_Y=function(f,m,v){if(f!==null)if(f.memoizedProps!==m.pendingProps||ec.current)nc=!0;else{if((f.lanes&v)===0&&(m.flags&128)===0)return nc=!1,S6e(f,m,v);nc=(f.flags&131072)!==0}else nc=!1,$s&&(m.flags&1048576)!==0&&iK(m,ST,m.index);switch(m.lanes=0,m.tag){case 2:var C=m.type;BT(f,m),f=m.pendingProps;var M=ov(m,Qa.current);dv(m,v),M=R9(null,m,C,f,M,v);var L=L9();return m.flags|=1,typeof M=="object"&&M!==null&&typeof M.render=="function"&&M.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,tc(C)?(L=!0,vT(m)):L=!1,m.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,A9(m),M.updater=RT,m.stateNode=M,M._reactInternals=m,H9(m,C,f,v),m=q9(null,m,C,!0,L,v)):(m.tag=0,$s&&L&&b9(m),_l(null,m,M,v),m=m.child),m;case 16:C=m.elementType;e:{switch(BT(f,m),f=m.pendingProps,M=C._init,C=M(C._payload),m.type=C,M=m.tag=B6e(C),f=qh(C,f),M){case 0:m=W9(null,m,C,f,v);break e;case 1:m=XK(null,m,C,f,v);break e;case 11:m=qK(null,m,C,f,v);break e;case 14:m=GK(null,m,C,qh(C.type,f),v);break e}throw Error(n(306,C,""))}return m;case 0:return C=m.type,M=m.pendingProps,M=m.elementType===C?M:qh(C,M),W9(f,m,C,M,v);case 1:return C=m.type,M=m.pendingProps,M=m.elementType===C?M:qh(C,M),XK(f,m,C,M,v);case 3:e:{if(JK(m),f===null)throw Error(n(387));C=m.pendingProps,L=m.memoizedState,M=L.element,fK(f,m),AT(m,C,null,v);var ee=m.memoizedState;if(C=ee.element,L.isDehydrated)if(L={element:C,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},m.updateQueue.baseState=L,m.memoizedState=L,m.flags&256){M=pv(Error(n(423)),m),m=ZK(f,m,C,v,M);break e}else if(C!==M){M=pv(Error(n(424)),m),m=ZK(f,m,C,v,M);break e}else for(tu=Em(m.stateNode.containerInfo.firstChild),eu=m,$s=!0,Wh=null,v=hK(m,null,C,v),m.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(cv(),C===M){m=Vp(f,m,v);break e}_l(f,m,C,v)}m=m.child}return m;case 5:return gK(m),f===null&&w9(m),C=m.type,M=m.pendingProps,L=f!==null?f.memoizedProps:null,ee=M.children,d9(C,M)?ee=null:L!==null&&d9(C,L)&&(m.flags|=32),QK(f,m),_l(f,m,ee,v),m.child;case 6:return f===null&&w9(m),null;case 13:return eY(f,m,v);case 4:return P9(m,m.stateNode.containerInfo),C=m.pendingProps,f===null?m.child=uv(m,null,C,v):_l(f,m,C,v),m.child;case 11:return C=m.type,M=m.pendingProps,M=m.elementType===C?M:qh(C,M),qK(f,m,C,M,v);case 7:return _l(f,m,m.pendingProps,v),m.child;case 8:return _l(f,m,m.pendingProps.children,v),m.child;case 12:return _l(f,m,m.pendingProps.children,v),m.child;
vendor: 9,251 bytes, line 41
41case 10:e:{if(C=m.type._context,M=m.pendingProps,L=m.memoizedProps,ee=M.value,ps(_T,C._currentValue),C._currentValue=ee,L!==null)if(be(L.value,ee)){if(L.children===M.children&&!ec.current){m=Vp(f,m,v);break e}}else for(L=m.child,L!==null&&(L.return=m);L!==null;){var he=L.dependencies;if(he!==null){ee=L.child;for(var Ce=he.firstContext;Ce!==null;){if(Ce.context===C){if(L.tag===1){Ce=Up(-1,v&-v),Ce.tag=2;var Ke=L.updateQueue;if(Ke!==null){Ke=Ke.shared;var vt=Ke.pending;vt===null?Ce.next=Ce:(Ce.next=vt.next,vt.next=Ce),Ke.pending=Ce}}L.lanes|=v,Ce=L.alternate,Ce!==null&&(Ce.lanes|=v),T9(L.return,v,m),he.lanes|=v;break}Ce=Ce.next}}else if(L.tag===10)ee=L.type===m.type?null:L.child;else if(L.tag===18){if(ee=L.return,ee===null)throw Error(n(341));ee.lanes|=v,he=ee.alternate,he!==null&&(he.lanes|=v),T9(ee,v,m),ee=L.sibling}else ee=L.child;if(ee!==null)ee.return=L;else for(ee=L;ee!==null;){if(ee===m){ee=null;break}if(L=ee.sibling,L!==null){L.return=ee.return,ee=L;break}ee=ee.return}L=ee}_l(f,m,M.children,v),m=m.child}return m;case 9:return M=m.type,C=m.pendingProps.children,dv(m,v),M=Vu(M),C=C(M),m.flags|=1,_l(f,m,C,v),m.child;case 14:return C=m.type,M=qh(C,m.pendingProps),M=qh(C.type,M),GK(f,m,C,M,v);case 15:return KK(f,m,m.type,m.pendingProps,v);case 17:return C=m.type,M=m.pendingProps,M=m.elementType===C?M:qh(C,M),BT(f,m),m.tag=1,tc(C)?(f=!0,vT(m)):f=!1,dv(m,v),$K(m,C,M),H9(m,C,M,v),q9(null,m,C,!0,f,v);case 19:return nY(f,m,v);case 22:return YK(f,m,v)}throw Error(n(156,m.tag))};function TY(f,m){return st(f,m)}function L6e(f,m,v,C){this.tag=f,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gu(f,m,v,C){return new L6e(f,m,v,C)}function dD(f){return f=f.prototype,!(!f||!f.isReactComponent)}function B6e(f){if(typeof f=="function")return dD(f)?1:0;if(f!=null){if(f=f.$$typeof,f===Z)return 11;if(f===re)return 14}return 2}function Fm(f,m){var v=f.alternate;return v===null?(v=Gu(f.tag,m,f.key,f.mode),v.elementType=f.elementType,v.type=f.type,v.stateNode=f.stateNode,v.alternate=f,f.alternate=v):(v.pendingProps=m,v.type=f.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=f.flags&14680064,v.childLanes=f.childLanes,v.lanes=f.lanes,v.child=f.child,v.memoizedProps=f.memoizedProps,v.memoizedState=f.memoizedState,v.updateQueue=f.updateQueue,m=f.dependencies,v.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},v.sibling=f.sibling,v.index=f.index,v.ref=f.ref,v}function KT(f,m,v,C,M,L){var ee=2;if(C=f,typeof f=="function")dD(f)&&(ee=1);else if(typeof f=="string")ee=5;else e:switch(f){case P:return G1(v.children,M,L,m);case $:ee=8,M|=8;break;case W:return f=Gu(12,v,m,M|2),f.elementType=W,f.lanes=L,f;case oe:return f=Gu(13,v,m,M),f.elementType=oe,f.lanes=L,f;case te:return f=Gu(19,v,m,M),f.elementType=te,f.lanes=L,f;case z:return YT(v,M,L,m);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case H:ee=10;break e;case K:ee=9;break e;case Z:ee=11;break e;case re:ee=14;break e;case Y:ee=16,C=null;break e}throw Error(n(130,f==null?f:typeof f,""))}return m=Gu(ee,v,m,M),m.elementType=f,m.type=C,m.lanes=L,m}function G1(f,m,v,C){return f=Gu(7,f,C,m),f.lanes=v,f}function YT(f,m,v,C){return f=Gu(22,f,C,m),f.elementType=z,f.lanes=v,f.stateNode={isHidden:!1},f}function fD(f,m,v){return f=Gu(6,f,null,m),f.lanes=v,f}function pD(f,m,v){return m=Gu(4,f.children!==null?f.children:[],f.key,m),m.lanes=v,m.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},m}function F6e(f,m,v,C,M){this.tag=m,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$h(0),this.expirationTimes=$h(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$h(0),this.identifierPrefix=C,this.onRecoverableError=M,this.mutableSourceEagerHydrationData=null}function mD(f,m,v,C,M,L,ee,he,Ce){return f=new F6e(f,m,v,he,Ce),m===1?(m=1,L===!0&&(m|=8)):m=0,L=Gu(3,null,null,m),f.current=L,L.stateNode=f,L.memoizedState={element:C,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},A9(L),f}function $6e(f,m,v){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:C==null?null:""+C,children:f,containerInfo:m,implementation:v}}function EY(f){if(!f)return Pm;f=f._reactInternals;e:{if(Ht(f)!==f||f.tag!==1)throw Error(n(170));var m=f;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(tc(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(n(171))}if(f.tag===1){var v=f.type;if(tc(v))return tK(f,v,m)}return m}function AY(f,m,v,C,M,L,ee,he,Ce){return f=mD(v,C,!0,f,M,L,ee,he,Ce),f.context=EY(null),v=f.current,C=Tl(),M=Lm(v),L=Up(C,M),L.callback=m??null,Dm(v,L,M),f.current.lanes=M,Gd(f,M,C),ic(f,C),f}function QT(f,m,v,C){var M=m.current,L=Tl(),ee=Lm(M);return v=EY(v),m.context===null?m.context=v:m.pendingContext=v,m=Up(L,ee),m.payload={element:f},C=C===void 0?null:C,C!==null&&(m.callback=C),f=Dm(M,m,ee),f!==null&&(Yh(f,M,ee,L),ET(f,M,ee)),ee}function XT(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return f.child.stateNode;default:return f.child.stateNode}}function PY(f,m){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var v=f.retryLane;f.retryLane=v!==0&&v<m?v:m}}function gD(f,m){PY(f,m),(f=f.alternate)&&PY(f,m)}function j6e(){return null}var OY=typeof reportError=="function"?reportError:function(f){console.error(f)};function yD(f){this._internalRoot=f}JT.prototype.render=yD.prototype.render=function(f){var m=this._internalRoot;if(m===null)throw Error(n(409));QT(f,m,null,null)},JT.prototype.unmount=yD.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var m=f.containerInfo;V1(function(){QT(null,f,null,null)}),m[Fp]=null}};function JT(f){this._internalRoot=f}JT.prototype.unstable_scheduleHydration=function(f){if(f){var m=fa();f={blockedOn:null,target:f,priority:m};for(var v=0;v<ga.length&&m!==0&&m<ga[v].priority;v++);ga.splice(v,0,f),v===0&&Op(f)}};function bD(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function ZT(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11&&(f.nodeType!==8||f.nodeValue!==" react-mount-point-unstable "))}function IY(){}function z6e(f,m,v,C,M){if(M){if(typeof C=="function"){var L=C;C=function(){var Ke=XT(ee);L.call(Ke)}}var ee=AY(m,C,f,0,null,!1,!1,"",IY);return f._reactRootContainer=ee,f[Fp]=ee.current,hS(f.nodeType===8?f.parentNode:f),V1(),ee}for(;M=f.lastChild;)f.removeChild(M);if(typeof C=="function"){var he=C;C=function(){var Ke=XT(Ce);he.call(Ke)}}var Ce=mD(f,0,!1,null,null,!1,!1,"",IY);return f._reactRootContainer=Ce,f[Fp]=Ce.current,hS(f.nodeType===8?f.parentNode:f),V1(function(){QT(m,Ce,v,C)}),Ce}function e5(f,m,v,C,M){var L=v._reactRootContainer;if(L){var ee=L;if(typeof M=="function"){var he=M;M=function(){var Ce=XT(ee);he.call(Ce)}}QT(m,ee,f,M)}else ee=z6e(v,m,f,M,C);return XT(ee)}wm=function(f){switch(f.tag){case 3:var m=f.stateNode;if(m.current.memoizedState.isDehydrated){var v=Gc(m.pendingLanes);v!==0&&(xm(m,v|1),ic(m,pn()),(bi&6)===0&&(yv=pn()+500,Om()))}break;case 13:V1(function(){var C=Hp(f,1);if(C!==null){var M=Tl();Yh(C,f,1,M)}}),gD(f,1)}},E1=function(f){if(f.tag===13){var m=Hp(f,134217728);if(m!==null){var v=Tl();Yh(m,f,134217728,v)}gD(f,134217728)}},Sm=function(f){if(f.tag===13){var m=Lm(f),v=Hp(f,m);if(v!==null){var C=Tl();Yh(v,f,m,C)}gD(f,m)}},fa=function(){return fi},jh=function(f,m){var v=fi;try{return fi=f,m()}finally{fi=v}},ut=function(f,m,v){switch(m){case"input":if($n(f,v),m=v.name,v.type==="radio"&&m!=null){for(v=f;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+m)+'][type="radio"]'),m=0;m<v.length;m++){var C=v[m];if(C!==f&&C.form===f.form){var M=yT(C);if(!M)throw Error(n(90));it(C),$n(C,M)}}}break;case"textarea":mt(f,v);break;case"select":m=v.value,m!=null&&Nr(f,!!v.multiple,m,!1)}},Po=cD,Yo=V1;var H6e={usingClientEntryPoint:!1,Events:[pS,iv,yT,Ao,oi,cD]},AS={findFiberByHostInstance:L1,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},U6e={bundleType:AS.bundleType,version:AS.version,rendererPackageName:AS.rendererPackageName,rendererConfig:AS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(f){return f=Nt(f),f===null?null:f.stateNode},findFiberByHostInstance:AS.findFiberByHostInstance||j6e,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var t5=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t5.isDisabled&&t5.supportsFiber)try{yi=t5.inject(U6e),Bs=t5}catch{}}return sc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H6e,sc.createPortal=function(f,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bD(m))throw Error(n(200));return $6e(f,m,null,v)},sc.createRoot=function(f,m){if(!bD(f))throw Error(n(299));var v=!1,C="",M=OY;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(C=m.identifierPrefix),m.onRecoverableError!==void 0&&(M=m.onRecoverableError)),m=mD(f,1,!1,null,null,v,!1,C,M),f[Fp]=m.current,hS(f.nodeType===8?f.parentNode:f),new yD(m)},sc.findDOMNode=function(f){if(f==null)return null;if(f.nodeType===1)return f;var m=f._reactInternals;if(m===void 0)throw typeof f.render=="function"?Error(n(188)):(f=Object.keys(f).join(","),Error(n(268,f)));return f=Nt(m),f=f===null?null:f.stateNode,f},sc.flushSync=function(f){return V1(f)},sc.hydrate=function(f,m,v){if(!ZT(m))throw Error(n(200));return e5(null,f,m,!0,v)},sc.hydrateRoot=function(f,m,v){if(!bD(f))throw Error(n(405));var C=v!=null&&v.hydratedSources||null,M=!1,L="",ee=OY;if(v!=null&&(v.unstable_strictMode===!0&&(M=!0),v.identifierPrefix!==void 0&&(L=v.identifierPrefix),v.onRecoverableError!==void 0&&(ee=v.onRecoverableError)),m=AY(m,null,f,1,v??null,M,!1,L,ee),f[Fp]=m.current,hS(f),C)for(f=0;f<C.length;f++)v=C[f],M=v._getVersion,M=M(v._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[v,M]:m.mutableSourceEagerHydrationData.push(v,M);return new JT(m)},sc.render=function(f,m,v){if(!ZT(m))throw Error(n(200));return e5(null,f,m,!1,v)},sc.unmountComponentAtNode=function(f){if(!ZT(f))throw Error(n(40));return f._reactRootContainer?(V1(function(){e5(null,null,f,!1,function(){f._reactRootContainer=null,f[Fp]=null})}),!0):!1},sc.unstable_batchedUpdates=cD,sc.unstable_renderSubtreeIntoContainer=function(f,m,v,C){if(!ZT(v))throw Error(n(200));if(f==null||f._reactInternals===void 0)throw Error(n(38));return e5(f,m,v,!1,C)},sc.version="18.3.1-next-f1338f8080-20240426",sc}var $Y;function hce(){if($Y)return wD.exports;$Y=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(),wD.exports=Q6e(),wD.exports}var jY;function X6e(){if(jY)return n5;jY=1;var t=hce();return n5.createRoot=t.createRoot,n5.hydrateRoot=t.hydrateRoot,n5}var J6e=X6e();const Z6e=zc(J6e);function eAe(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function RP(t){return t!=null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function tAe(){return!!globalThis?.document}function dce(t){return t.parentElement&&dce(t.parentElement)?!0:t.hidden}function nAe(t){const e=t.getAttribute("contenteditable");return e!=="false"&&e!=null}function rAe(t){return!!t.getAttribute("disabled")||!!t.getAttribute("aria-disabled")}function iAe(t){return fce(t)?.defaultView??window}function fce(t){return RP(t)?t.ownerDocument:document}function sAe(t){return t.view??window}function oAe(t){return fce(t).activeElement}function aAe(t){const e=sAe(t);return typeof e.PointerEvent<"u"&&t instanceof e.PointerEvent?t.pointerType==="mouse":t instanceof e.MouseEvent}function pce(t){return!!t.touches}function lAe(t){return pce(t)&&t.touches.length>1}function cAe(t,e="page"){const n=t.touches[0]||t.changedTouches[0];return{x:n[`${e}X`],y:n[`${e}Y`]}}function uAe(t,e="page"){return{x:t[`${e}X`],y:t[`${e}Y`]}}function mce(t,e="page"){return pce(t)?cAe(t,e):uAe(t,e)}function hAe(t){return e=>{const n=aAe(e);(!n||n&&e.button===0)&&t(e)}}function dAe(t,e=!1){function n(i){t(i,{point:mce(i)})}return e?hAe(n):n}function a6(t,e,n,r){return eAe(t,e,dAe(n,e==="pointerdown"),r)}function fAe(t,...e){if(t==null)throw new TypeError("Cannot convert undefined or null to object");const n={...t};for(const r of e)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const En=t=>t?"":void 0,yh=t=>t?!0:void 0;function mL(t){return Array.isArray(t)}function Aa(t){const e=typeof t;return t!=null&&(e==="object"||e==="function")&&!mL(t)}function pAe(t){const e=t==null?0:t.length;return e?t[e-1]:void 0}function mAe(t){const e=parseFloat(t.toString()),n=t.toString().replace(String(e),"");return{unitless:!n,value:e,unit:n}}function gL(t){if(t==null)return t;const{unitless:e}=mAe(t);return e||typeof t=="number"?`${t}px`:t}const gce=(t,e)=>parseInt(t[1],10)>parseInt(e[1],10)?1:-1,vz=t=>Object.fromEntries(Object.entries(t).sort(gce));function zY(t){const e=vz(t);return Object.assign(Object.values(e),e)}function gAe(t){const e=Object.keys(vz(t));return new Set(e)}function HY(t){if(!t)return t;t=gL(t)??t;const e=-.02;return typeof t=="number"?`${t+e}`:t.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+e}`)}function S3(t,e){const n=["@media screen"];return t&&n.push("and",`(min-width: ${gL(t)})`),e&&n.push("and",`(max-width: ${gL(e)})`),n.join(" ")}function yAe(t){if(!t)return null;t.base=t.base??"0px";const e=zY(t),n=Object.entries(t).sort(gce).map(([s,o],a,l)=>{let[,c]=l[a+1]??[];return c=parseFloat(c)>0?HY(c):void 0,{_minW:HY(o),breakpoint:s,minW:o,maxW:c,maxWQuery:S3(null,c),minWQuery:S3(o),minMaxQuery:S3(o,c)}}),r=gAe(t),i=Array.from(r.values());return{keys:r,normalized:e,isResponsive(s){const o=Object.keys(s);return o.length>0&&o.every(a=>r.has(a))},asObject:vz(t),asArray:zY(t),details:n,get(s){return n.find(o=>o.breakpoint===s)},media:[null,...e.map(s=>S3(s)).slice(1)],toArrayValue(s){if(!Aa(s))throw new Error("toArrayValue: value must be an object");const o=i.map(a=>s[a]??null);for(;pAe(o)===null;)o.pop();return o},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((o,a,l)=>{const c=i[l];return c!=null&&a!=null&&(o[c]=a),o},{})}}}function xz(...t){return function(...n){t.forEach(r=>r?.(...n))}}function Fn(...t){return function(n){t.some(r=>(r?.(n),n?.defaultPrevented))}}function wz(t){return _.Children.toArray(t).filter(e=>_.isValidElement(e))}function mw(t){const e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function bAe(t,e){return`${t} returned \`undefined\`. Seems you forgot to wrap component within ${e}`}function Oi(t={}){const{name:e,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:s,defaultValue:o}=t,a=_.createContext(o);a.displayName=e;function l(){const c=_.useContext(a);if(!c&&n){const u=new Error(s??bAe(r,i));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const un=(...t)=>t.filter(Boolean).join(" "),yce=t=>t.hasAttribute("tabindex"),vAe=t=>yce(t)&&t.tabIndex===-1;function bce(t){if(!RP(t)||dce(t)||rAe(t))return!1;const{localName:e}=t;if(["input","select","textarea","button"].indexOf(e)>=0)return!0;const r={a:()=>t.hasAttribute("href"),audio:()=>t.hasAttribute("controls"),video:()=>t.hasAttribute("controls")};return e in r?r[e]():nAe(t)?!0:yce(t)}function xAe(t){return t?RP(t)&&bce(t)&&!vAe(t):!1}const wAe=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not
41([aria-disabled])","*[contenteditable]"],SAe=wAe.join(),kAe=t=>t.offsetWidth>0&&t.offsetHeight>0;function CAe(t){const e=Array.from(t.querySelectorAll(SAe));return e.unshift(t),e.filter(n=>bce(n)&&kAe(n))}function _Ae(t,e,n,r){const i=typeof e=="string"?e.split("."):[e];for(r=0;r<i.length&&t;r+=1)t=t[i[r]];return t===void 0?n:t}const TAe=t=>{const e=new WeakMap;return(r,i,s,o)=>{if(typeof r>"u")return t(r,i,s);e.has(r)||e.set(r,new Map);const a=e.get(r);if(a.has(i))return a.get(i);const l=t(r,i,s,o);return a.set(i,l),l}},vce=TAe(_Ae),EAe=t=>t.default||t;function AAe(t){const{wasSelected:e,enabled:n,isSelected:r,mode:i="unmount"}=t;return!!(!n||r||i==="keepMounted"&&e)}function PAe(t){const e=parseFloat(t);return typeof e!="number"||Number.isNaN(e)?0:e}function OAe(t,e){let n=PAe(t);const r=10**(e??10);return n=Math.round(n*r)/r,e?n.toFixed(e):n.toString()}function IAe(t){if(!Number.isFinite(t))return 0;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n+=1;return n}function UY(t,e,n){return(t-e)*100/(n-e)}function DAe(t,e,n){return(n-e)*t+e}function VY(t,e,n){const r=Math.round((t-e)/n)*n+e,i=IAe(n);return OAe(r,i)}function CD(t,e,n){return t==null?t:(n<e&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(t,e),n))}function gw(t,e=[]){const n=Object.assign({},t);for(const r of e)r in n&&delete n[r];return n}function xce(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function LP(t,e){return Array.isArray(t)?t.map(n=>n===null?null:e(n)):Aa(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):t!=null?e(t):null}const MAe=t=>typeof t=="function";function Cc(t,...e){return MAe(t)?t(...e):t}function NAe(t){const e=t.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=e.getComputedStyle(t);return/auto|scroll|overlay|hidden/.test(n+i+r)}function RAe(t){return t.localName==="html"?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement}function wce(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:RP(t)&&NAe(t)?t:wce(RAe(t))}function Sce(t,e){const n={},r={};for(const[i,s]of Object.entries(t))e.includes(i)?n[i]=s:r[i]=s;return[n,r]}function LAe(t,...e){const n=Object.getOwnPropertyDescriptors(t),r=Object.keys(n),i=o=>{const a={};for(let l=0;l<o.length;l++){const c=o[l];n[c]&&(Object.defineProperty(a,c,n[c]),delete n[c])}return a},s=o=>i(Array.isArray(o)?o:r.filter(o));return e.map(s).concat(i(r))}function WY(t,e,n={}){const{stop:r,getKey:i}=n;function s(o,a=[]){if(Aa(o)||Array.isArray(o)){const l={};for(const[c,u]of Object.entries(o)){const h=i?.(c)??c,d=[...a,h];if(r?.(o,d))return e(o,a);l[h]=s(u,d)}return l}return e(o,a)}return s(t)}const DC=t=>{const{condition:e,message:n}=t};var k3={exports:{}};k3.exports;var qY;function BAe(){return qY||(qY=1,function(t,e){var n=200,r="__lodash_hash_undefined__",i=800,s=16,o=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Function]",g="[object GeneratorFunction]",y="[object Map]",b="[object Number]",w="[object Null]",S="[object Object]",T="[object Proxy]",D="[object RegExp]",E="[object Set]",O="[object String]",P="[object Undefined]",$="[object WeakMap]",W="[object ArrayBuffer]",H="[object DataView]",K="[object Float32Array]",Z="[object Float64Array]",oe="[object Int8Array]",te="[object Int16Array]",re="[object Int32Array]",Y="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",G="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,Q=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,q={};q[K]=q[Z]=q[oe]=q[te]=q[re]=q[Y]=q[z]=q[U]=q[G]=!0,q[a]=q[l]=q[W]=q[u]=q[H]=q[h]=q[d]=q[p]=q[y]=q[b]=q[S]=q[D]=q[E]=q[O]=q[$]=!1;var fe=typeof w3=="object"&&w3&&w3.Object===Object&&w3,ke=typeof self=="object"&&self&&self.Object===Object&&self,Be=fe||ke||Function("return this")(),Qe=e&&!e.nodeType&&e,ft=Qe&&!0&&t&&!t.nodeType&&t,Ne=ft&&ft.exports===Qe,rt=Ne&&fe.process,Mt=function(){try{var ce=ft&&ft.require&&ft.require("util").types;return ce||rt&&rt.binding&&rt.binding("util")}catch{}}(),it=Mt&&Mt.isTypedArray;function Rt(ce,De,Je){switch(Je.length){case 0:return ce.call(De);case 1:return ce.call(De,Je[0]);case 2:return ce.call(De,Je[0],Je[1]);case 3:return ce.call(De,Je[0],Je[1],Je[2])}return ce.apply(De,Je)}function xt(ce,De){for(var Je=-1,rn=Array(ce);++Je<ce;)rn[Je]=De(Je);return rn}function Nn(ce){return function(De){return ce(De)}}function Hn(ce,De){return ce?.[De]}function $n(ce,De){return function(Je){return ce(De(Je))}}var Wn=Array.prototype,nr=Function.prototype,Cn=Object.prototype,Nr=Be["__c
41ore-js_shared__"],ki=nr.toString,yr=Cn.hasOwnProperty,mt=function(){var ce=/[^.]+$/.exec(Nr&&Nr.keys&&Nr.keys.IE_PROTO||"");return ce?"Symbol(src)_1."+ce:""}(),zt=Cn.toString,ze=ki.call(Object),tt=RegExp("^"+ki.call(yr).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Ne?Be.Buffer:void 0,tn=Be.Symbol,ot=Be.Uint8Array;wt&&wt.allocUnsafe;var jt=$n(Object.getPrototypeOf,Object),_r=Object.create,fr=Cn.propertyIsEnumerable,Rr=Wn.splice,Zt=tn?tn.toStringTag:void 0,lt=function(){try{var ce=Ap(Object,"defineProperty");return ce({},"",{}),ce}catch{}}(),Hr=wt?wt.isBuffer:void 0,Un=Math.max,xn=Date.now,ut=Ap(Be,"Map"),kr=Ap(Object,"create"),di=function(){function ce(){}return function(De){if(!Qo(De))return{};if(_r)return _r(De);ce.prototype=De;var Je=new ce;return ce.prototype=void 0,Je}}();function Kr(ce){var De=-1,Je=ce==null?0:ce.length;for(this.clear();++De<Je;){var rn=ce[De];this.set(rn[0],rn[1])}}function Ao(){this.__data__=kr?kr(null):{},this.size=0}function oi(ce){var De=this.has(ce)&&delete this.__data__[ce];return this.size-=De?1:0,De}function Po(ce){var De=this.__data__;if(kr){var Je=De[ce];return Je===r?void 0:Je}return yr.call(De,ce)?De[ce]:void 0}function Yo(ce){var De=this.__data__;return kr?De[ce]!==void 0:yr.call(De,ce)}function is(ce,De){var Je=this.__data__;return this.size+=this.has(ce)?0:1,Je[ce]=kr&&De===void 0?r:De,this}Kr.prototype.clear=Ao,Kr.prototype.delete=oi,Kr.prototype.get=Po,Kr.prototype.has=Yo,Kr.prototype.set=is;function Ii(ce){var De=-1,Je=ce==null?0:ce.length;for(this.clear();++De<Je;){var rn=ce[De];this.set(rn[0],rn[1])}}function Oo(){this.__data__=[],this.size=0}function xe(ce){var De=this.__data__,Je=Ur(De,ce);if(Je<0)return!1;var rn=De.length-1;return Je==rn?De.pop():Rr.call(De,Je,1),--this.size,!0}function Se(ce){var De=this.__data__,Je=Ur(De,ce);return Je<0?void 0:De[Je][1]}function Fe(ce){return Ur(this.__data__,ce)>-1}function at(ce,De){var Je=this.__data__,rn=Ur(Je,ce);return rn<0?(++this.size,Je.push([ce,De])):Je[rn][1]=De,this}Ii.prototype.clear=Oo,Ii.prototype.delete=xe,Ii.prototype.get=Se,Ii.prototype.has=Fe,Ii.prototype.set=at;function _t(ce){var De=-1,Je=ce==null?0:ce.length;for(this.clear();++De<Je;){var rn=ce[De];this.set(rn[0],rn[1])}}function cn(){this.size=0,this.__data__={hash:new Kr,map:new(ut||Ii),string:new Kr}}function wn(ce){var De=Wd(this,ce).delete(ce);return this.size-=De?1:0,De}function nn(ce){return Wd(this,ce).get(ce)}function Ut(ce){return Wd(this,ce).has(ce)}function Kt(ce,De){var Je=Wd(this,ce),rn=Je.size;return Je.set(ce,De),this.size+=Je.size==rn?0:1,this}_t.prototype.clear=cn,_t.prototype.delete=wn,_t.prototype.get=nn,_t.prototype.has=Ut,_t.prototype.set=Kt;function Ht(ce){var De=this.__data__=new Ii(ce);this.size=De.size}function jn(){this.__data__=new Ii,this.size=0}function Ar(ce){var De=this.__data__,Je=De.delete(ce);return this.size=De.size,Je}function Ci(ce){return this.__data__.get(ce)}function Nt(ce){return this.__data__.has(ce)}function ye(ce,De){var Je=this.__data__;if(Je instanceof Ii){var rn=Je.__data__;if(!ut||rn.length<n-1)return rn.push([ce,De]),this.size=++Je.size,this;Je=this.__data__=new _t(rn)}return Je.set(ce,De),this.size=Je.size,this}Ht.prototype.clear=jn,Ht.prototype.delete=Ar,Ht.prototype.get=Ci,Ht.prototype.has=Nt,Ht.prototype.set=ye;function st(ce,De){var Je=Cl(ce),rn=!Je&&kl(ce),Pr=!Je&&!rn&&Xl(ce),ai=!Je&&!rn&&!Pr&&Op(ce),Ki=Je||rn||Pr||ai,Fr=Ki?xt(ce.length,String):[],zi=Fr.length;for(var Io in ce)Ki&&(Io=="length"||Pr&&(Io=="offset"||Io=="parent")||ai&&(Io=="buffer"||Io=="byteLength"||Io=="byteOffset")||$h(Io,zi))||Fr.push(Io);return Fr}function Yt(ce,De,Je){(Je!==void 0&&!pa(ce[De],Je)||Je===void 0&&!(De in ce))&&pn(ce,De,Je)}function Rn(ce,De,Je){var rn=ce[De];(!(yr.call(ce,De)&&pa(rn,Je))||Je===void 0&&!(De in ce))&&pn(ce,De,Je)}function Ur(ce,De){for(var Je=ce.length;Je--;)if(pa(ce[Je][0],De))return Je;return-1}function pn(ce,De,Je){De=="__proto__"&<?lt(ce,De,{configurable:!0,enumerable:!0,value:Je,writable:!0}):ce[De]=Je}var _s=Kc();function _i(ce){return ce==null?ce===void 0?P:w:Zt&&Zt in Object(ce)?qd(ce):wm(ce)}function Ls(ce){return Yc(ce)&&_i(ce)==a}function Di(ce){if(!Qo(ce)||xm(ce))return!1;var De=ga(ce)?tt:Q;return De.test(Kd(ce))}function Sl(ce){return Yc(ce)&&km(ce.length)&&!!q[_i(ce)]}function pr(ce){if(!Qo(ce))return ni(ce);var De=fi(ce),Je=[];for(var rn in ce)rn=="constructor"&&(De||!yr.call(ce,rn))||Je.push(rn);return Je}function yi(ce,De,Je,rn,Pr){ce!==De&&_s(De,function(ai,Ki){if(Pr||(Pr=new Ht),Qo(ai))Bs(ce,De,Ki,Je,yi,rn,Pr);else{var Fr=rn?rn(Sm(ce,Ki),ai,Ki+"",ce,De,Pr):void 0;Fr===void 0&&(Fr=ai),Yt(ce,Ki,Fr)}},Dp)}function Bs(ce,De,Je,rn,Pr,ai,Ki){var Fr=Sm(ce,Je),zi=Sm(De,Je),Io=Ki.get(zi);if(Io){Yt(ce,Je,Io);return}var Do=ai?ai(Fr,zi,Je+"",ce,De,Ki):void 0,Qc=Do===void 0;if(Qc){var Xc=Cl(zi),Uh=!Xc&&Xl(zi),po=!Xc&&!Uh&&Op(zi);Do=zi,Xc||Uh||po?Cl(Fr)?Do=Fr:ma(Fr)?Do=Ti(Fr):Uh?(Qc=!1,Do=qc(zi)):po?(Qc=!1,Do=vm(zi)):Do=[]:Jl(zi)||kl(zi)?(Do=
41Fr,kl(Fr)?Do=Ip(Fr):(!Qo(Fr)||ga(Fr))&&(Do=T1(zi))):Qc=!1}Qc&&(Ki.set(zi,Do),Pr(Do,zi,rn,ai,Ki),Ki.delete(zi)),Yt(ce,Je,Do)}function $u(ce,De){return fa(E1(ce,De,Hh),ce+"")}var on=lt?function(ce,De){return lt(ce,"toString",{configurable:!0,enumerable:!1,value:zh(De),writable:!0})}:Hh;function qc(ce,De){return ce.slice()}function Ep(ce){var De=new ce.constructor(ce.byteLength);return new ot(De).set(new ot(ce)),De}function vm(ce,De){var Je=Ep(ce.buffer);return new ce.constructor(Je,ce.byteOffset,ce.length)}function Ti(ce,De){var Je=-1,rn=ce.length;for(De||(De=Array(rn));++Je<rn;)De[Je]=ce[Je];return De}function ju(ce,De,Je,rn){var Pr=!Je;Je||(Je={});for(var ai=-1,Ki=De.length;++ai<Ki;){var Fr=De[ai],zi=void 0;zi===void 0&&(zi=ce[Fr]),Pr?pn(Je,Fr,zi):Rn(Je,Fr,zi)}return Je}function Gc(ce){return $u(function(De,Je){var rn=-1,Pr=Je.length,ai=Pr>1?Je[Pr-1]:void 0,Ki=Pr>2?Je[2]:void 0;for(ai=ce.length>3&&typeof ai=="function"?(Pr--,ai):void 0,Ki&&Gd(Je[0],Je[1],Ki)&&(ai=Pr<3?void 0:ai,Pr=1),De=Object(De);++rn<Pr;){var Fr=Je[rn];Fr&&ce(De,Fr,rn,ai)}return De})}function Kc(ce){return function(De,Je,rn){for(var Pr=-1,ai=Object(De),Ki=rn(De),Fr=Ki.length;Fr--;){var zi=Ki[++Pr];if(Je(ai[zi],zi,ai)===!1)break}return De}}function Wd(ce,De){var Je=ce.__data__;return Pp(De)?Je[typeof De=="string"?"string":"hash"]:Je.map}function Ap(ce,De){var Je=Hn(ce,De);return Di(Je)?Je:void 0}function qd(ce){var De=yr.call(ce,Zt),Je=ce[Zt];try{ce[Zt]=void 0;var rn=!0}catch{}var Pr=zt.call(ce);return rn&&(De?ce[Zt]=Je:delete ce[Zt]),Pr}function T1(ce){return typeof ce.constructor=="function"&&!fi(ce)?di(jt(ce)):{}}function $h(ce,De){var Je=typeof ce;return De=De??o,!!De&&(Je=="number"||Je!="symbol"&&ie.test(ce))&&ce>-1&&ce%1==0&&ce<De}function Gd(ce,De,Je){if(!Qo(Je))return!1;var rn=typeof De;return(rn=="number"?Mi(Je)&&$h(De,Je.length):rn=="string"&&De in Je)?pa(Je[De],ce):!1}function Pp(ce){var De=typeof ce;return De=="string"||De=="number"||De=="symbol"||De=="boolean"?ce!=="__proto__":ce===null}function xm(ce){return!!mt&&mt in ce}function fi(ce){var De=ce&&ce.constructor,Je=typeof De=="function"&&De.prototype||Cn;return ce===Je}function ni(ce){var De=[];if(ce!=null)for(var Je in Object(ce))De.push(Je);return De}function wm(ce){return zt.call(ce)}function E1(ce,De,Je){return De=Un(De===void 0?ce.length-1:De,0),function(){for(var rn=arguments,Pr=-1,ai=Un(rn.length-De,0),Ki=Array(ai);++Pr<ai;)Ki[Pr]=rn[De+Pr];Pr=-1;for(var Fr=Array(De+1);++Pr<De;)Fr[Pr]=rn[Pr];return Fr[De]=Je(Ki),Rt(ce,this,Fr)}}function Sm(ce,De){if(!(De==="constructor"&&typeof ce[De]=="function")&&De!="__proto__")return ce[De]}var fa=jh(on);function jh(ce){var De=0,Je=0;return function(){var rn=xn(),Pr=s-(rn-Je);if(Je=rn,Pr>0){if(++De>=i)return arguments[0]}else De=0;return ce.apply(void 0,arguments)}}function Kd(ce){if(ce!=null){try{return ki.call(ce)}catch{}try{return ce+""}catch{}}return""}function pa(ce,De){return ce===De||ce!==ce&&De!==De}var kl=Ls(function(){return arguments}())?Ls:function(ce){return Yc(ce)&&yr.call(ce,"callee")&&!fr.call(ce,"callee")},Cl=Array.isArray;function Mi(ce){return ce!=null&&km(ce.length)&&!ga(ce)}function ma(ce){return Yc(ce)&&Mi(ce)}var Xl=Hr||Yd;function ga(ce){if(!Qo(ce))return!1;var De=_i(ce);return De==p||De==g||De==c||De==T}function km(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=o}function Qo(ce){var De=typeof ce;return ce!=null&&(De=="object"||De=="function")}function Yc(ce){return ce!=null&&typeof ce=="object"}function Jl(ce){if(!Yc(ce)||_i(ce)!=S)return!1;var De=jt(ce);if(De===null)return!0;var Je=yr.call(De,"constructor")&&De.constructor;return typeof Je=="function"&&Je instanceof Je&&ki.call(Je)==ze}var Op=it?Nn(it):Sl;function Ip(ce){return ju(ce,Dp(ce))}function Dp(ce){return Mi(ce)?st(ce):pr(ce)}var Mp=Gc(function(ce,De,Je,rn){yi(ce,De,Je,rn)});function zh(ce){return function(){return ce}}function Hh(ce){return ce}function Yd(){return!1}t.exports=Mp}(k3,k3.exports)),k3.exports}var FAe=BAe();const uh=zc(FAe);function zl(t,e=[]){const n=_.useRef(t);return _.useEffect(()=>{n.current=t}),_.useCallback((...r)=>n.current?.(...r),e)}function d4(t,e,n,r){const i=zl(n);return _.useEffect(()=>{const s=typeof t=="function"?t():t??document;if(!(!n||!s))return s.addEventListener(e,i,r),()=>{s.removeEventListener(e,i,r)}},[e,t,r,i,n]),()=>{(typeof t=="function"?t():t??document)?.removeEventListener(e,i,r)}}function $Ae(t){const{isOpen:e,ref:n}=t,[r,i]=_.useState(e),[s,o]=_.useState(!1);return _.useEffect(()=>{s||(i(e),o(!0))},[e,s,r]),d4(()=>n.current,"animationend",()=>{i(e)}),{present:!(e?!1:!r),onComplete(){const l=iAe(n.current),c=new l.CustomEvent("animationend",{bubbles:!0});n.current?.dispatchEvent(c)}}}var _D,GY;function jAe(){return GY||(GY=1,_D=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEac
41h(function(i){t.addRange(i)}),e&&e.focus()}}),_D}var TD,KY;function zAe(){if(KY)return TD;KY=1;var t=jAe(),e={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(s){var o=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,o)}function i(s,o){var a,l,c,u,h,d,p=!1;o||(o={}),a=o.debug||!1;try{c=t(),u=document.createRange(),h=document.getSelection(),d=document.createElement("span"),d.textContent=s,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(y){if(y.stopPropagation(),o.format)if(y.preventDefault(),typeof y.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=e[o.format]||e.default;window.clipboardData.setData(b,s)}else y.clipboardData.clearData(),y.clipboardData.setData(o.format,s);o.onCopy&&(y.preventDefault(),o.onCopy(y.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),h.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(y){a&&console.error("unable to copy using execCommand: ",y),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",s),o.onCopy&&o.onCopy(window.clipboardData),p=!0}catch(b){a&&console.error("unable to copy using clipboardData: ",b),a&&console.error("falling back to prompt"),l=r("message"in o?o.message:n),window.prompt(l,s)}}finally{h&&(typeof h.removeRange=="function"?h.removeRange(u):h.removeAllRanges()),d&&document.body.removeChild(d),c()}return p}return TD=i,TD}var HAe=zAe();const yL=zc(HAe);function BP(t,e={}){const[n,r]=_.useState(!1),[i,s]=_.useState(t);_.useEffect(()=>s(t),[t]);const{timeout:o=1500,...a}=typeof e=="number"?{timeout:e}:e,l=_.useCallback(c=>{const u=typeof c=="string"?c:i;"clipboard"in navigator?navigator.clipboard.writeText(u).then(()=>r(!0)).catch(()=>r(yL(u,a))):r(yL(u,a))},[i,a]);return _.useEffect(()=>{let c=null;return n&&(c=window.setTimeout(()=>{r(!1)},o)),()=>{c&&window.clearTimeout(c)}},[o,n]),{value:i,setValue:s,onCopy:l,hasCopied:n}}function Sz(t){const{value:e,defaultValue:n,onChange:r,shouldUpdate:i=(d,p)=>d!==p}=t,s=zl(r),o=zl(i),[a,l]=_.useState(n),c=e!==void 0,u=c?e:a,h=zl(d=>{const g=typeof d=="function"?d(u):d;o(u,g)&&(c||l(g),s(g))},[c,s,u,o]);return[u,h]}function Id(t={}){const{onClose:e,onOpen:n,isOpen:r,id:i}=t,s=zl(n),o=zl(e),[a,l]=_.useState(t.defaultIsOpen||!1),c=r!==void 0?r:a,u=r!==void 0,h=_.useId(),d=i??`disclosure-${h}`,p=_.useCallback(()=>{u||l(!1),o?.()},[u,o]),g=_.useCallback(()=>{u||l(!0),s?.()},[u,s]),y=_.useCallback(()=>{c?p():g()},[c,g,p]);function b(S={}){return{...S,"aria-expanded":c,"aria-controls":d,onClick(T){S.onClick?.(T),y()}}}function w(S={}){return{...S,hidden:!c,id:d}}return{isOpen:c,onOpen:g,onClose:p,onToggle:y,isControlled:u,getButtonProps:b,getDisclosureProps:w}}const I0=globalThis?.document?_.useLayoutEffect:_.useEffect,Ng=(t,e)=>{const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},e),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function UAe(t){const e=t.current;if(!e)return!1;const n=oAe(e);return!n||e.contains(n)?!1:!!xAe(n)}function VAe(t,e){const{visible:n,focusRef:r}=e,i=!n;Ng(()=>{if(!i||UAe(t))return;const s=r?.current||t.current;let o;if(s)return o=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(o)}},[i,t,r])}function WAe(t){return"current"in t}const kce=()=>typeof window<"u";function qAe(){return navigator.userAgentData?.platform??navigator.platform}const GAe=t=>kce()&&t.test(navigator.vendor),KAe=t=>kce()&&t.test(qAe()),YAe=()=>KAe(/mac|iphone|ipad|ipod/i),QAe=()=>YAe()&&GAe(/apple/i);function XAe(t){const{ref:e,elements:n,enabled:r}=t,i=()=>e.current?.ownerDocument??document;d4(i,"pointerdown",s=>{if(!QAe()||!r)return;const o=s.composedPath?.()?.[0]??s.target,l=(n??[e]).some(c=>{const u=WAe(c)?c.current:c;return u?.contains(o)||u===o});i().activeElement!==o&&l&&(s.preventDefault(),o.focus())})}function JAe(t,e){const n=_.useId();return _.useMemo(()=>
41t||[e,n].filter(Boolean).join("-"),[t,e,n])}function ZAe(t,...e){const n=JAe(t);return _.useMemo(()=>e.map(r=>`${r}-${n}`),[n,e])}function Cce(t){const e=_.useRef(null);return e.current=t,e}function e8e(t,e){if(t!=null){if(typeof t=="function"){t(e);return}try{t.current=e}catch{throw new Error(`Cannot assign value '${e}' to ref '${t}'`)}}}function Ss(...t){return e=>{t.forEach(n=>{e8e(n,e)})}}function t8e(...t){return _.useMemo(()=>Ss(...t),t)}function n8e(t){const{ref:e,handler:n,enabled:r=!0}=t,i=zl(n),o=_.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;_.useEffect(()=>{if(!r)return;const a=h=>{ED(h,e)&&(o.isPointerDown=!0)},l=h=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&n&&ED(h,e)&&(o.isPointerDown=!1,i(h))},c=h=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&ED(h,e)&&(o.isPointerDown=!1,i(h))},u=_ce(e.current);return u.addEventListener("mousedown",a,!0),u.addEventListener("mouseup",l,!0),u.addEventListener("touchstart",a,!0),u.addEventListener("touchend",c,!0),()=>{u.removeEventListener("mousedown",a,!0),u.removeEventListener("mouseup",l,!0),u.removeEventListener("touchstart",a,!0),u.removeEventListener("touchend",c,!0)}},[n,e,i,o,r])}function ED(t,e){const n=t.composedPath?.()[0]??t.target;return n&&!_ce(n).contains(n)?!1:!e.current?.contains(n)}function _ce(t){return t?.ownerDocument??document}function r8e(t,e){const n=zl(t);_.useEffect(()=>{if(e==null)return;let r=null;return r=window.setTimeout(()=>{n()},e),()=>{r&&window.clearTimeout(r)}},[e,n])}const Tce=1/60*1e3,i8e=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ece=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(i8e()),Tce);function s8e(t){let e=[],n=[],r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&i,d=h?e:n;return c&&o.add(l),d.indexOf(l)===-1&&(d.push(l),h&&i&&(r=e.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let c=0;c<r;c++){const u=e[c];u(l),o.has(u)&&(a.schedule(u),t())}i=!1,s&&(s=!1,a.process(l))}};return a}const o8e=40;let bL=!0,ck=!1,vL=!1;const $2={delta:0,timestamp:0},MC=["read","update","preRender","render","postRender"],FP=MC.reduce((t,e)=>(t[e]=s8e(()=>ck=!0),t),{}),a8e=MC.reduce((t,e)=>{const n=FP[e];return t[e]=(r,i=!1,s=!1)=>(ck||u8e(),n.schedule(r,i,s)),t},{}),l8e=MC.reduce((t,e)=>(t[e]=FP[e].cancel,t),{});MC.reduce((t,e)=>(t[e]=()=>FP[e].process($2),t),{});const c8e=t=>FP[t].process($2),Ace=t=>{ck=!1,$2.delta=bL?Tce:Math.max(Math.min(t-$2.timestamp,o8e),1),$2.timestamp=t,vL=!0,MC.forEach(c8e),vL=!1,ck&&(bL=!1,Ece(Ace))},u8e=()=>{ck=!0,bL=!0,vL||Ece(Ace)},YY=()=>$2;var h8e=Object.defineProperty,d8e=(t,e,n)=>e in t?h8e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qh=(t,e,n)=>(d8e(t,typeof e!="symbol"?e+"":e,n),n);class f8e{constructor(e,n,r){if(Qh(this,"history",[]),Qh(this,"startEvent",null),Qh(this,"lastEvent",null),Qh(this,"lastEventInfo",null),Qh(this,"handlers",{}),Qh(this,"removeListeners",()=>{}),Qh(this,"threshold",3),Qh(this,"win"),Qh(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const a=AD(this.lastEventInfo,this.history),l=this.startEvent!==null,c=y8e(a.offset,{x:0,y:0})>=this.threshold;if(!l&&!c)return;const{timestamp:u}=YY();this.history.push({...a.point,timestamp:u});const{onStart:h,onMove:d}=this.handlers;l||(h?.(this.lastEvent,a),this.startEvent=this.lastEvent),d?.(this.lastEvent,a)}),Qh(this,"onPointerMove",(a,l)=>{this.lastEvent=a,this.lastEventInfo=l,a8e.update(this.updatePoint,!0)}),Qh(this,"onPointerUp",(a,l)=>{const c=AD(l,this.history),{onEnd:u,onSessionEnd:h}=this.handlers;h?.(a,c),this.end(),!(!u||!this.startEvent)&&u?.(a,c)}),this.win=e.view??window,lAe(e))return;this.handlers=n,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:mce(e)},{timestamp:s}=YY();this.history=[{...i.point,timestamp:s}];const{onSessionStart:o}=n;o?.(e,AD(i,this.history)),this.removeListeners=g8e(a6(this.win,"pointermove",this.onPointerMove),a6(this.win,"pointerup",this.onPointerUp),a6(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),l8e.update(this.updatePoint)}}function QY(t,e){return{x:t.x-e.x,y:t.y-e.y}}function AD(t,e){return{point:t.point,delta:QY(t.point,e[e.length-1]),offset:QY(t.point,e[0]),velocity:m8e(e,.1)}}const p8e=t=>t*1e3;function m8e(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=t[t.length-1];for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>p8e(e)));)n--;if(!r)return{x:0,y:0};const s=(i.timestamp-r.timestamp)/1e3;if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function g8e(...t){return e=>t.reduce((n,r)=>r(n),e)}function PD(t,e){return Math.abs(t-e)}function XY(t){return"x"in t&&"y"in t}function y8e(t,e){if(typeof t=="number"&&typeof e=="number")return PD(t,e);if(XY(t)&&XY(e)){const n=PD(t.x,e.x),r=PD(t.y,e.y);return Math.sqrt(n**2+r**2)}return 0}function b8e(t,e){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:s,onPanSessionEnd:o,threshold:a}=e,l=!!(n||r||i||s||o),c=_.useRef(null),u=Cce({onSessionStart:s,onSessionEnd:o,onStart:r,onMove:n,onEnd(h,d){c.current=null,i?.(h,d)}});_.useEffect(()=>{c.current?.updateHandlers(u.current)}),_.useEffect(()=>{const h=t.current;if(!h||!l)return;
41function d(p){c.current=new f8e(p,u.current,a)}return a6(h,"pointerdown",d)},[t,l,u,a]),_.useEffect(()=>()=>{c.current?.end(),c.current=null},[])}const ta={open:(t,e)=>`${t}[data-open], ${t}[open], ${t}[data-state=open] ${e}`,closed:(t,e)=>`${t}[data-closed], ${t}[data-state=closed] ${e}`,hover:(t,e)=>`${t}:hover ${e}, ${t}[data-hover] ${e}`,focus:(t,e)=>`${t}:focus ${e}, ${t}[data-focus] ${e}`,focusVisible:(t,e)=>`${t}:focus-visible ${e}`,focusWithin:(t,e)=>`${t}:focus-within ${e}`,active:(t,e)=>`${t}:active ${e}, ${t}[data-active] ${e}`,disabled:(t,e)=>`${t}:disabled ${e}, ${t}[data-disabled] ${e}`,invalid:(t,e)=>`${t}:invalid ${e}, ${t}[data-invalid] ${e}`,checked:(t,e)=>`${t}:checked ${e}, ${t}[data-checked] ${e}`,placeholderShown:(t,e)=>`${t}:placeholder-shown ${e}`},tf=t=>Pce(e=>t(e,"&"),"[role=group]","[data-group]",".group"),qp=t=>Pce(e=>t(e,"~ &"),"[data-peer]",".peer"),Pce=(t,...e)=>e.map(t).join(", "),$P={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:tf(ta.open),_groupClosed:tf(ta.closed),_groupHover:tf(ta.hover),_peerHover:qp(ta.hover),_groupFocus:tf(ta.focus),_peerFocus:qp(ta.focus),_groupFocusVisible:tf(ta.focusVisible),_peerFocusVisible:qp(ta.focusVisible),_groupActive:tf(ta.active),_peerActive:qp(ta.active),_groupDisabled:tf(ta.disabled),_peerDisabled:qp(ta.disabled),_groupInvalid:tf(ta.invalid),_peerInvalid:qp(ta.invalid),_groupChecked:tf(ta.checked),_peerChecked:qp(ta.checked),_groupFocusWithin:tf(ta.focusWithin),_peerFocusWithin:qp(ta.focusWithin),_peerPlaceholderShown:qp(ta.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},Oce=Object.keys($P),v8e=t=>/!(important)?$/.test(t),JY=t=>typeof t=="string"?t.replace(/!(important)?$/,"").trim():t,x8e=(t,e)=>n=>{const r=String(e),i=v8e(r),s=JY(r),o=t?`${t}.${s}`:s;let a=Aa(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:e;return a=JY(a),i?`${a} !important`:a};function kz(t){const{scale:e,transform:n,compose:r}=t;return(s,o)=>{const a=x8e(e,s)(o);let l=n?.(a,o)??a;return r&&(l=r(l,o)),l}}const r5=(...t)=>e=>t.reduce((n,r)=>r(n),e);function Ku(t,e){return n=>{const r={property:n,scale:t};return r.transform=kz({scale:t,transform:e}),r}}const w8e=({rtl:t,ltr:e})=>n=>n.direction==="rtl"?t:e;function S8e(t){const{property:e,scale:n,transform:r}=t;return{scale:n,property:w8e(e),transform:n?kz({scale:n,compose:r}):r}}const Ice=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function k8e(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ice].join(" ")}function C8e(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ice].join(" ")}const _8e={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},T8e={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function E8e(t){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":t,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}
41const A8e={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},xL={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},P8e=new Set(Object.values(xL)),wL=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),O8e=t=>t.trim();function I8e(t,e){if(t==null||wL.has(t))return t;if(!(SL(t)||wL.has(t)))return`url('${t}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(t),s=i?.[1],o=i?.[2];if(!s||!o)return t;const a=s.includes("-gradient")?s:`${s}-gradient`,[l,...c]=o.split(",").map(O8e).filter(Boolean);if(c?.length===0)return t;const u=l in xL?xL[l]:l;c.unshift(u);const h=c.map(d=>{if(P8e.has(d))return d;const p=d.indexOf(" "),[g,y]=p!==-1?[d.substr(0,p),d.substr(p+1)]:[d],b=SL(y)?y:y&&y.split(" "),w=`colors.${g}`,S=w in e.__cssMap?e.__cssMap[w].varRef:g;return b?[S,...Array.isArray(b)?b:[b]].join(" "):S});return`${a}(${h.join(", ")})`}const SL=t=>typeof t=="string"&&t.includes("(")&&t.includes(")"),D8e=(t,e)=>I8e(t,e??{});function M8e(t){return/^var\(--.+\)$/.test(t)}const N8e=t=>{const e=parseFloat(t.toString()),n=t.toString().replace(String(e),"");return{unitless:!n,value:e,unit:n}},nf=t=>e=>`${t}(${e})`,ci={filter(t){return t!=="auto"?t:_8e},backdropFilter(t){return t!=="auto"?t:T8e},ring(t){return E8e(ci.px(t))},bgClip(t){return t==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:t}},transform(t){return t==="auto"?k8e():t==="auto-gpu"?C8e():t},vh(t){return t==="$100vh"?"var(--chakra-vh)":t},px(t){if(t==null)return t;const{unitless:e}=N8e(t);return e||typeof t=="number"?`${t}px`:t},fraction(t){return typeof t!="number"||t>1?t:`${t*100}%`},float(t,e){const n={left:"right",right:"left"};return e.direction==="rtl"?n[t]:t},degree(t){if(M8e(t)||t==null)return t;const e=typeof t=="string"&&!t.endsWith("deg");return typeof t=="number"||e?`${t}deg`:t},gradient:D8e,blur:nf("blur"),opacity:nf("opacity"),brightness:nf("brightness"),contrast:nf("contrast"),dropShadow:nf("drop-shadow"),grayscale:nf("grayscale"),hueRotate:t=>nf("hue-rotate")(ci.degree(t)),invert:nf("invert"),saturate:nf("saturate"),sepia:nf("sepia"),bgImage(t){return t==null||SL(t)||wL.has(t)?t:`url(${t})`},outline(t){const e=String(t)==="0"||String(t)==="none";return t!==null&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:t}},flexDirection(t){const{space:e,divide:n}=A8e[t]??{},r={flexDirection:t};return e&&(r[e]=1),n&&(r[n]=1),r}},Me={borderWidths:Ku("borderWidths"),borderStyles:Ku("borderStyles"),colors:Ku("colors"),borders:Ku("borders"),gradients:Ku("gradients",ci.gradient),radii:Ku("radii",ci.px),space:Ku("space",r5(ci.vh,ci.px)),spaceT:Ku("space",r5(ci.vh,ci.px)),degreeT(t){return{property:t,transform:ci.degree}},prop(t,e,n){return{property:t,scale:e,...e&&{transform:kz({scale:e,transform:n})}}},propT(t,e){return{property:t,transform:e}},sizes:Ku("sizes",r5(ci.vh,ci.px)),sizesT:Ku("sizes",r5(ci.vh,ci.fraction)),shadows:Ku("shadows"),logical:S8e,blur:Ku("blur",ci.blur)},l6={background:Me.colors("background"),backgroundColor:Me.colors("backgroundColor"),backgroundImage:Me.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ci.bgClip},bgSize:Me.prop("backgroundSize"),bgPosition:Me.prop("backgroundPosition"),bg:Me.colors("background"),bgColor:Me.colors("backgroundColor"),bgPos:Me.prop("backgroundPosition"),bgRepeat:Me.prop("backgroundRepeat"),bgAttachment:Me.prop("backgroundAttachment"),bgGradient:Me.gradients("backgroundImage"),bgClip:{transform:ci.bgClip}};Object.assign(l6,{bgImage:l6.backgroundImage,bgImg:l6.backgroundImage});const Ni={border:Me.borders("border"),borderWidth:Me.borderWidths("borderWidth"),borderStyle:Me.borderStyles("borderStyle"),borderColor:Me.colors("borderColor"),borderRadius:Me.radii("borderRadius"),borderTop:Me.borders("borderTop"),borderBlockStart:Me.borders("borderBlockStart"),borderTopLeftRadius:Me.radii("borderTopLeftRadius"),borderStartStartRadius:Me.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Me.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Me.radii("borderTopRightRadius"),borderStartEndRadius:Me.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Me.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Me.borders("borderRight"),borderInlineEnd:Me.borders("borderInlineEnd"),borderBottom:Me.borders("borderBottom"),borderBlockEnd:Me.borders("borderBlockEnd"),borderBottomLeftRadius:Me.radii("borderBottomLeftRadius"),borderBottomRightRadius:Me.radii("borderBottomRightRadius"),borderLeft:Me.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Me.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Me.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Me.borders(["borderLeft","borderRight"]),borderInline:Me.borders("borderInline"),borderY:Me.borders(["borderTop","borderBottom"]),borderBlock:Me.borders("borderBlock"),borderTopWidth:Me.borderWidths("borderTopWidth"),borderBlockStartWidth:Me.borderWidths("borderBlockStartWidth"),borderTopColor:Me.colors("borderTopColor"),borderBlockStartColor:Me.colors("borderBlockStartColor"),borderTopStyle:Me.borderStyles("borderTopStyle"),borderBlockStartStyle:Me.borderStyles("borderBlockStartStyle"),borderBottomWidth:Me.borderWidths("borderBottomWidth"),borderBlockEndWidth:Me.borderWidths("borderBlockEndWidth"),borderBottomColor:Me.colors("borderBottomColor"),borderBlockEndColor:Me.colors("borderBlockEndColor"),borderBottomStyle:Me.borderStyles("borderBottomStyle"),borderBlockEndStyle:Me.borderStyles("borderBlockEndStyle"),borderLeftWidth:Me.borderWidths("borderLeftWidth"),borderInlineStartWidth:Me.borderWidths("borderInlineStartWidth"),borderLeftColor:Me.colors("borderLeftColor"),borderInlineStartColor:Me.colors("borderInlineStartColor"),borderLeftStyle:Me.borderStyles("borderLeftStyle"),borderInlineStartStyle:Me.borderStyles("borderInlineStartStyle"),borderRightWidth:Me.borderWidths("borderRightWidth"),borderInlineEndWidth:Me.borderWidths("borderInlineEndWidth"),borderRightColor:Me.colors("borderRightColor"),borderInlineEndColor:Me.colors("borderInlineEndColor"),borderRightStyle:Me.borderStyles("borderRightStyle"),borderInlineEndStyle:Me.borderStyles("borderInlineEndStyle"),borderTopRadius:Me.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Me.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Me.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Me.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ni,{rounded:Ni.borderRadius,roundedTop:Ni.borderTopRadius,roundedTopLeft:Ni.borderTopLeftRadius,roundedTopRight:Ni.borderTopRightRadius,roundedTopStart:Ni.borderStartStartRadius,roundedTopEnd:Ni.borderStartEndRadius,roundedBottom:Ni.borderBottomRadius,roundedBottomLeft:Ni.borderBottomLeftRadius,roundedBottomRight:Ni.borderBottomRightRadius,roundedBottomStart:Ni.borderEndStartRadius,roundedBottomEnd:Ni.borderEndEndRadius,roundedLeft:Ni.borderLeftRadius,roundedRight:Ni.borderRightRadius,roundedStart:Ni.borderInlineStartRadius,roundedEnd:Ni.borderInlineEndRadius,borderStart:Ni.borderInlineStart,borderEnd:Ni.borderInlineEnd,borderTopStartRadius:Ni.borderStartStartRadius,borderTopEndRadius:Ni.borderStartEndRadius,borderBottomStartRadius:Ni.borderEndStartRadius,borderBottomEndRadius:Ni.borderEndEndRadius,borderStartRadius:Ni.borderInlineStartRadius,borderEndRadius:Ni.borderInlineEndRadius,borderStartWidth:Ni.borderInlineStartWidth,borderEndWidth:Ni.borderInlineEndWidth,borderStartColor:Ni.borderInlineStartColor,borderEndColor:Ni.borderInlineEndColor,borderStartStyle:Ni.borderInlineStartStyle,borderEndStyle:Ni.borderInlineEndStyle});const R8e={color:Me.colors("color"),textColor:Me.colors("color"),fill:Me.colors("fill"),stroke:Me.colors("stroke"),accentColor:Me.colors("accentColor"),textFillColor:Me.colors("textFillColor")},zA={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ci.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Me.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Me.space("gap"),rowGap:Me.space("rowGap"),columnGap:Me.space("columnGap")};Object.assign(zA,{flexDir:zA.flexDirection});const th={width:Me.sizesT("width"),inlineSize:Me.sizesT("inlineSize"),height:Me.sizes("height"),blockSize:Me.sizes("blockSize"),boxSize:Me.sizes(["width","height"]),minWidth:Me.sizes("minWidth"),minInlineSize:Me.sizes("minInlineSize"),minHeight:Me.sizes("minHeight"),minBlockSize:Me.sizes("minBlockSize"),maxWidth:Me.sizes("maxWidth"),maxInlineSize:Me.sizes("maxInlineSize"),maxHeight:Me.sizes("maxHeight"),maxBlockSize:Me.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(t,e)=>({[`@media screen and (min-width: ${e.__breakpoints?.get(t)?.minW??t})`]:{display:"none"}})},hideBelow:{scale:"breakpoints",transform:(t,e)=>({[`@media screen and (max-width: ${e.__breakpoints?.get(t)?._minW??t})`]:{display:"none"}})},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Me.propT("float",ci.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(th,{w:th.width,h:th.height,minW:th.minWidth,maxW:th.maxWidth,minH:th.minHeight,maxH:th.maxHeight,overscroll:th.overscrollBehavior,overscrollX:th.overscrollBehaviorX,overscrollY:th.overscrollBehaviorY});const L8e={filter:{transform:ci.filter},blur:Me.blur("--chakra-blur"),brightness:Me.propT("--chakra-brightness",ci.brightness),contrast:Me.propT("--chakra-contrast",ci.contrast),hueRotate:Me.propT("--chakra-hue-rotate",ci.hueRotate),invert:Me.propT("--chakra-invert",ci.invert),saturate:Me.propT("--chakra-saturate",ci.saturate),dropShadow:Me.propT("--chakra-drop-shadow",ci.dropShadow),backdropFilter:{transform:ci.backdropFilter},backdropBlur:Me.blur("--chakra-backdrop-blur"),backdropBrightness:Me.propT("--chakra-backdrop-brightness",ci.brightness),backdropContrast:Me.propT("--chakra-backdrop-contrast",ci.contrast),backdropHueRotate:Me.propT("--chakra-backdrop-hue-rotate",ci.hueRotate),backdropInvert:Me.propT("--chakra-backdrop-invert",ci.invert),backdropSaturate:Me.propT("--chakra-backdrop-saturate",ci.saturate)},B8e={ring:{transform:ci.ring},ringColor:Me.colors("--chakra-ring-color"),ringOffset:Me.prop("--chakra-ring-offset-width"),ringOffsetColor:Me.colors("--chakra-ring-offset-color"),ringInset:Me.prop("--chakra-ring-inset")},F8e={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ci.outline},outlineOffset:!0,outlineColor:Me.colors("outlineColor")},Dce={gridGap:Me.space("gridGap"),gridColumnGap:Me.space("gridColumnGap"),gridRowGap:Me.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function $8e(t,e,n,r){const i=typeof e=="string"?e.split("."):[e];for(r=0;r<i.length&&t;r+=1)t=t[i[r]];return t===void 0?n:t}const j8e=t=>{const e=new WeakMap;return(r,i,s,o)=>
41{if(typeof r>"u")return t(r,i,s);e.has(r)||e.set(r,new Map);const a=e.get(r);if(a.has(i))return a.get(i);const l=t(r,i,s,o);return a.set(i,l),l}},z8e=j8e($8e),H8e={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},U8e={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},OD=(t,e,n)=>{const r={},i=z8e(t,e,{});for(const s in i)s in n&&n[s]!=null||(r[s]=i[s]);return r},V8e={srOnly:{transform(t){return t===!0?H8e:t==="focusable"?U8e:{}}},layerStyle:{processResult:!0,transform:(t,e,n)=>OD(e,`layerStyles.${t}`,n)},textStyle:{processResult:!0,transform:(t,e,n)=>OD(e,`textStyles.${t}`,n)},apply:{processResult:!0,transform:(t,e,n)=>OD(e,t,n)}},f4={position:!0,pos:Me.prop("position"),zIndex:Me.prop("zIndex","zIndices"),inset:Me.spaceT("inset"),insetX:Me.spaceT(["left","right"]),insetInline:Me.spaceT("insetInline"),insetY:Me.spaceT(["top","bottom"]),insetBlock:Me.spaceT("insetBlock"),top:Me.spaceT("top"),insetBlockStart:Me.spaceT("insetBlockStart"),bottom:Me.spaceT("bottom"),insetBlockEnd:Me.spaceT("insetBlockEnd"),left:Me.spaceT("left"),insetInlineStart:Me.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Me.spaceT("right"),insetInlineEnd:Me.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(f4,{insetStart:f4.insetInlineStart,insetEnd:f4.insetInlineEnd});const kL={boxShadow:Me.shadows("boxShadow"),mixBlendMode:!0,blendMode:Me.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Me.prop("backgroundBlendMode"),opacity:!0};Object.assign(kL,{shadow:kL.boxShadow});const Ps={margin:Me.spaceT("margin"),marginTop:Me.spaceT("marginTop"),marginBlockStart:Me.spaceT("marginBlockStart"),marginRight:Me.spaceT("marginRight"),marginInlineEnd:Me.spaceT("marginInlineEnd"),marginBottom:Me.spaceT("marginBottom"),marginBlockEnd:Me.spaceT("marginBlockEnd"),marginLeft:Me.spaceT("marginLeft"),marginInlineStart:Me.spaceT("marginInlineStart"),marginX:Me.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Me.spaceT("marginInline"),marginY:Me.spaceT(["marginTop","marginBottom"]),marginBlock:Me.spaceT("marginBlock"),padding:Me.space("padding"),paddingTop:Me.space("paddingTop"),paddingBlockStart:Me.space("paddingBlockStart"),paddingRight:Me.space("paddingRight"),paddingBottom:Me.space("paddingBottom"),paddingBlockEnd:Me.space("paddingBlockEnd"),paddingLeft:Me.space("paddingLeft"),paddingInlineStart:Me.space("paddingInlineStart"),paddingInlineEnd:Me.space("paddingInlineEnd"),paddingX:Me.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Me.space("paddingInline"),paddingY:Me.space(["paddingTop","paddingBottom"]),paddingBlock:Me.space("paddingBlock")};Object.assign(Ps,{m:Ps.margin,mt:Ps.marginTop,mr:Ps.marginRight,me:Ps.marginInlineEnd,marginEnd:Ps.marginInlineEnd,mb:Ps.marginBottom,ml:Ps.marginLeft,ms:Ps.marginInlineStart,marginStart:Ps.marginInlineStart,mx:Ps.marginX,my:Ps.marginY,p:Ps.padding,pt:Ps.paddingTop,py:Ps.paddingY,px:Ps.paddingX,pb:Ps.paddingBottom,pl:Ps.paddingLeft,ps:Ps.paddingInlineStart,paddingStart:Ps.paddingInlineStart,pr:Ps.paddingRight,pe:Ps.paddingInlineEnd,paddingEnd:Ps.paddingInlineEnd});const W8e={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Me.spaceT("scrollMargin"),scrollMarginTop:Me.spaceT("scrollMarginTop"),scrollMarginBottom:Me.spaceT("scrollMarginBottom"),scrollMarginLeft:Me.spaceT("scrollMarginLeft"),scrollMarginRight:Me.spaceT("scrollMarginRight"),scrollMarginX:Me.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Me.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Me.spaceT("scrollPadding"),scrollPaddingTop:Me.spaceT("scrollPaddingTop"),scrollPaddingBottom:Me.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Me.spaceT("scrollPaddingLeft"),scrollPaddingRight:Me.spaceT("scrollPaddingRight"),scrollPaddingX:Me.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Me.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},q8e={fontFamily:Me.prop("fontFamily","fonts"),fontSize:Me.prop("fontSize","fontSizes",ci.px),fontWeight:Me.prop("fontWeight","fontWeights"),lineHeight:Me.prop("lineHeight","lineHeights"),letterSpacing:Me.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(t){if(t===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"}
41,property:"--chakra-line-clamp"}},G8e={textDecorationColor:Me.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Me.shadows("textShadow")},K8e={clipPath:!0,transform:Me.propT("transform",ci.transform),transformOrigin:!0,translateX:Me.spaceT("--chakra-translate-x"),translateY:Me.spaceT("--chakra-translate-y"),skewX:Me.degreeT("--chakra-skew-x"),skewY:Me.degreeT("--chakra-skew-y"),scaleX:Me.prop("--chakra-scale-x"),scaleY:Me.prop("--chakra-scale-y"),scale:Me.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Me.degreeT("--chakra-rotate")},Y8e={listStyleType:!0,listStylePosition:!0,listStylePos:Me.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Me.prop("listStyleImage")},Q8e={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Me.prop("transitionDuration","transition.duration"),transitionProperty:Me.prop("transitionProperty","transition.property"),transitionTimingFunction:Me.prop("transitionTimingFunction","transition.easing")},Cz=uh({},l6,Ni,R8e,zA,th,L8e,B8e,F8e,Dce,V8e,f4,kL,Ps,W8e,q8e,G8e,K8e,Y8e,Q8e),X8e=Object.assign({},Ps,th,zA,Dce,f4),Mce=Object.keys(X8e),J8e=[...Object.keys(Cz),...Oce],Z8e={...Cz,...$P},e7e=t=>t in Z8e,t7e=t=>e=>{if(!e.__breakpoints)return t;const{isResponsive:n,toArrayValue:r,media:i}=e.__breakpoints,s={};for(const o in t){let a=Cc(t[o],e);if(a==null)continue;if(a=Aa(a)&&n(a)?r(a):a,!Array.isArray(a)){s[o]=a;continue}const l=a.slice(0,i.length).length;for(let c=0;c<l;c+=1){const u=i?.[c];if(!u){s[o]=a[c];continue}s[u]=s[u]||{},a[c]!=null&&(s[u][o]=a[c])}}return s};function n7e(t){const e=[];let n="",r=!1;for(let i=0;i<t.length;i++){const s=t[i];s==="("?(r=!0,n+=s):s===")"?(r=!1,n+=s):s===","&&!r?(e.push(n),n=""):n+=s}return n=n.trim(),n&&e.push(n),e}function r7e(t){return/^var\(--.+\)$/.test(t)}const i7e=(t,e)=>t.startsWith("--")&&typeof e=="string"&&!r7e(e),s7e=(t,e)=>{if(e==null)return e;const n=o=>t.__cssMap?.[o]?.varRef,r=o=>n(o)??o,[i,s]=n7e(e);return e=n(i)??r(s)??r(e),e};function o7e(t){const{configs:e={},pseudos:n={},theme:r}=t,i=(s,o=!1)=>{const a=Cc(s,r),l=t7e(a)(r);let c={};for(let u in l){const h=l[u];let d=Cc(h,r);u in n&&(u=n[u]),i7e(u,d)&&(d=s7e(r,d));let p=e[u];if(p===!0&&(p={property:u}),Aa(d)){c[u]=c[u]??{},c[u]=uh({},c[u],i(d,!0));continue}let g=p?.transform?.(d,r,a)??d;g=p?.processResult?i(g,!0):g;const y=Cc(p?.property,r);if(!o&&p?.static){const b=Cc(p.static,r);c=uh({},c,b)}if(y&&Array.isArray(y)){for(const b of y)c[b]=g;continue}if(y){y==="&"&&Aa(g)?c=uh({},c,g):c[y]=g;continue}if(Aa(g)){c=uh({},c,g);continue}c[u]=g}return c};return i}const Nce=t=>e=>o7e({theme:e,pseudos:$P,configs:Cz})(t);function Bqt(t){return t}function Fqt(t){return t}function Cs(t){return{definePartsStyle(e){return e},defineMultiStyleConfig(e){return{parts:t,...e}}}}function a7e(t,e,n){return t.__cssMap?.[`${e}.${n}`]?.varRef??n}function l7e(t,e){if(Array.isArray(t))return t;if(Aa(t))return e(t);if(t!=null)return[t]}function c7e(t,e){for(let n=e+1;n<t.length;n++)if(t[n]!=null)return n;return-1}function u7e(t){const e=t.__breakpoints;return function(r,i,s,o){if(!e)return;const a={},l=l7e(s,e.toArrayValue);if(!l)return a;const c=l.length,u=c===1,h=!!r.parts;for(let d=0;d<c;d++){const p=e.details[d],g=e.details[c7e(l,d)],y=S3(p.minW,g?._minW),b=Cc(r[i]?.[l[d]],o);if(b){if(h){r.parts?.forEach(w=>{uh(a,{[w]:u?b[w]:{[y]:b[w]}})});continue}if(!h){u?uh(a,b):a[y]=b;continue}a[y]=b}}return a}}function h7e(t){return e=>{const{variant:n,size:r,theme:i}=e,s=u7e(i);return uh({},Cc(t.baseStyle??{},e),s(t,"sizes",r,e),s(t,"variants",n,e))}}function ji(t){return gw(t,["styleConfig","size","variant","colorScheme"])}function Rce(t){return Aa(t)&&t.reference?t.reference:String(t)}const jP=(t,...e)=>e.map(Rce).join(` ${t} `).replace(/calc/g,""),ZY=(...t)=>`calc(${jP("+",...t)})`,eQ=(...t)=>`calc(${jP("-",...t)})`,CL=(...t)=>`calc(${jP("*",...t)})`,tQ=(...t)=>`calc(${jP("/",...t)})`,nQ=t=>{const e=Rce(t);return e!=null&&!Number.isNaN(parseFloat(e))?String(e).startsWith("-")?String(e).slice(1):`-${e}`:CL(e,-1)},y0=Object.assign(t=>({add:(...e)=>y0(ZY(t,...e)),subtract:(...e)=>y0(eQ(t,...e)),multiply:(...e)=>y0(CL(t,...e)),divide:(...e)=>y0(tQ(t,...e)),negate:()=>y0(nQ(t)),toString:()=>t.toString()}),{add:ZY,subtract:eQ,multiply:CL,divide:tQ,negate:nQ});function d7e(t,e="-"){return t.replace(/\s+/g,e)}function f7e(t){const e=d7e(t.toString());return m7e(p7e(e))}function p7e(t){return t.includes("\\.")?t:!Number.isInteger(parseFloat(t.toString()))?t.replace(".","\\."):t}function m7e(t){return t.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}
41function g7e(t,e=""){return[e,t].filter(Boolean).join("-")}function y7e(t,e){return`var(${t}${e?`, ${e}`:""})`}function b7e(t,e=""){return f7e(`--${g7e(t,e)}`)}function Xn(t,e,n){const r=b7e(t,n);return{variable:r,reference:y7e(r,e)}}function v7e(t,e){const n={};for(const r of e){if(Array.isArray(r)){const[i,s]=r;n[i]=Xn(`${t}-${i}`,s);continue}n[r]=Xn(`${t}-${r}`)}return n}const x7e=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function w7e(t){return xce(t,x7e)}function S7e(t){return t.semanticTokens}function k7e(t){const{__cssMap:e,__cssVars:n,__breakpoints:r,...i}=t;return i}function C7e(t){const e=w7e(t),n=S7e(t),r=s=>Oce.includes(s)||s==="default",i={};return WY(e,(s,o)=>{s!=null&&(i[o.join(".")]={isSemantic:!1,value:s})}),WY(n,(s,o)=>{s!=null&&(i[o.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(r)}),i}function rQ(t,e){return Xn(String(t).replace(/\./g,"-"),void 0,e)}function _7e(t){const e=C7e(t),n=t.config?.cssVarPrefix;let r={};const i={};function s(o,a){const c=[String(o).split(".")[0],a].join(".");if(!e[c])return a;const{reference:h}=rQ(c,n);return h}for(const[o,a]of Object.entries(e)){const{isSemantic:l,value:c}=a,{variable:u,reference:h}=rQ(o,n);if(!l){if(o.startsWith("space")){const p=o.split("."),[g,...y]=p,b=`${g}.-${y.join(".")}`,w=y0.negate(c),S=y0.negate(h);i[b]={value:w,var:u,varRef:S}}r[u]=c,i[o]={value:c,var:u,varRef:h};continue}const d=Aa(c)?c:{default:c};r=uh(r,Object.entries(d).reduce((p,[g,y])=>{if(!y)return p;const b=s(o,`${y}`);if(g==="default")return p[u]=b,p;const w=$P?.[g]??g;return p[w]={[u]:b},p},{})),i[o]={value:h,var:u,varRef:h}}return{cssVars:r,cssMap:i}}function T7e(t){const e=k7e(t),{cssMap:n,cssVars:r}=_7e(e);return Object.assign(e,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:yAe(e.breakpoints)}),e}function $i(t,e={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...u){r();for(const h of u)e[h]=l(h);return $i(t,e)}function s(...u){for(const h of u)h in e||(e[h]=l(h));return $i(t,e)}function o(){return Object.fromEntries(Object.entries(e).map(([h,d])=>[h,d.selector]))}function a(){return Object.fromEntries(Object.entries(e).map(([h,d])=>[h,d.className]))}function l(u){const p=`chakra-${(["container","root"].includes(u??"")?[t]:[t,u]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>u}}return{parts:i,toPart:l,extend:s,selectors:o,classnames:a,get keys(){return Object.keys(e)},__type:{}}}const E7e=$i("accordion").parts("root","container","button","panel","icon"),A7e=$i("alert").parts("title","description","container","icon","spinner"),P7e=$i("avatar").parts("label","badge","container","excessLabel","group"),O7e=$i("breadcrumb").parts("link","item","container","separator");$i("button").parts();const I7e=$i("checkbox").parts("control","icon","container","label");$i("progress").parts("track","filledTrack","label");const D7e=$i("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),M7e=$i("editable").parts("preview","input","textarea"),N7e=$i("form").parts("container","requiredIndicator","helperText"),R7e=$i("formError").parts("text","icon"),L7e=$i("input").parts("addon","field","element","group"),B7e=$i("list").parts("container","item","icon"),F7e=$i("menu").parts("button","list","item","groupTitle","icon","command","divider"),$7e=$i("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),j7e=$i("numberinput").parts("root","field","stepperGroup","stepper");$i("pininput").parts("field");const z7e=$i("popover").parts("content","header","body","footer","popper","arrow","closeButton"),H7e=$i("progress").parts("label","filledTrack","track"),U7e=$i("radio").parts("container","control","label"),V7e=$i("select").parts("field","icon"),W7e=$i("slider").parts("container","track","thumb","filledTrack","mark"),q7e=$i("stat").parts("container","label","helpText","number","icon"),G7e=$i("switch").parts("container","track","thumb","label"),K7e=$i("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Y7e=$i("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Q7e=$i("tag").parts("container","label","closeButton"),X7e=$i("card").parts("container","header","body","footer");$i("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:J7e,defineMultiStyleConfig:Z7e}=Cs(E7e.keys),ePe={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},tPe={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},nPe={pt:"2",px:"4",pb:"5"},rPe={fontSize:"1.25em"},iPe=J7e({container:ePe,button:tPe,panel:nPe,icon:rPe}),sPe=Z7e({baseStyle:iPe});function ky(t,e,n){return Math.min(Math.max(t,n),e)}
41class oPe extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var C3=oPe;function _z(t){if(typeof t!="string")throw new C3(t);if(t.trim().toLowerCase()==="transparent")return[0,0,0,0];let e=t.trim();e=pPe.test(t)?cPe(t):t;const n=uPe.exec(e);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(a=>parseInt(uk(a,2),16)),parseInt(uk(o[3]||"f",2),16)/255]}const r=hPe.exec(e);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(a=>parseInt(a,16)),parseInt(o[3]||"ff",16)/255]}const i=dPe.exec(e);if(i){const o=Array.from(i).slice(1);return[...o.slice(0,3).map(a=>parseInt(a,10)),parseFloat(o[3]||"1")]}const s=fPe.exec(e);if(s){const[o,a,l,c]=Array.from(s).slice(1).map(parseFloat);if(ky(0,100,a)!==a)throw new C3(t);if(ky(0,100,l)!==l)throw new C3(t);return[...mPe(o,a,l),Number.isNaN(c)?1:c]}throw new C3(t)}function aPe(t){let e=5381,n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return(e>>>0)%2341}const iQ=t=>parseInt(t.replace(/_/g,""),36),lPe="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,e)=>{const n=iQ(e.substring(0,3)),r=iQ(e.substring(3)).toString(16);let i="";for(let s=0;s<6-r.length;s++)i+="0";return t[n]=`${i}${r}`,t},{});function cPe(t){const e=t.toLowerCase().trim(),n=lPe[aPe(e)];if(!n)throw new C3(t);return`#${n}`}const uk=(t,e)=>Array.from(Array(e)).map(()=>t).join(""),uPe=new RegExp(`^#${uk("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hPe=new RegExp(`^#${uk("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),dPe=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${uk(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),fPe=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,pPe=/^[a-z]+$/i,sQ=t=>Math.round(t*255),mPe=(t,e,n)=>{let r=n/100;if(e===0)return[r,r,r].map(sQ);const i=(t%360+360)%360/60,s=(1-Math.abs(2*r-1))*(e/100),o=s*(1-Math.abs(i%2-1));let a=0,l=0,c=0;i>=0&&i<1?(a=s,l=o):i>=1&&i<2?(a=o,l=s):i>=2&&i<3?(l=s,c=o):i>=3&&i<4?(l=o,c=s):i>=4&&i<5?(a=o,c=s):i>=5&&i<6&&(a=s,c=o);const u=r-s/2,h=a+u,d=l+u,p=c+u;return[h,d,p].map(sQ)};function gPe(t,e,n,r){return`rgba(${ky(0,255,t).toFixed()}, ${ky(0,255,e).toFixed()}, ${ky(0,255,n).toFixed()}, ${parseFloat(ky(0,1,r).toFixed(3))})`}function yPe(t,e){const[n,r,i,s]=_z(t);return gPe(n,r,i,s-e)}function bPe(t){const[e,n,r,i]=_z(t);let s=o=>{const a=ky(0,255,o).toString(16);return a.length===1?`0${a}`:a};return`#${s(e)}${s(n)}${s(r)}${i<1?s(Math.round(i*255)):""}`}const vPe=t=>Object.keys(t).length===0;function xPe(t,e,n,r,i){for(e=e.split?e.split("."):e,r=0;r<e.length;r++)t=t?t[e[r]]:i;return t===i?n:t}const Ll=(t,e,n)=>{const r=xPe(t,`colors.${e}`,e);try{return bPe(r),r}catch{return n??"#000000"}},wPe=t=>{const[e,n,r]=_z(t);return(e*299+n*587+r*114)/1e3},SPe=t=>e=>{const n=Ll(e,t);return wPe(n)<128?"dark":"light"},kPe=t=>e=>SPe(t)(e)==="dark",vx=(t,e)=>n=>{const r=Ll(n,t);return yPe(r,1-e)};function oQ(t="1rem",e="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 42 45deg, 43 ${e} 25%, 44 transparent 25%, 45 transparent 50%, 46 ${e} 50%, 47 ${e} 75%, 48 transparent 75%, 49 transparent 50 )`,backgroundSize:`${t} ${t}`}}const CPe=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function _Pe(t){const e=CPe();return!t||vPe(t)?e:t.string&&t.colors?EPe(t.string,t.colors):t.string&&!t.colors?TPe(t.string):t.colors&&!t.string?APe(t.colors):e}function TPe(t){let e=0;if(t.length===0)return e.toString();for(let r=0;r<t.length;r+=1)e=t.charCodeAt(r)+((e<<5)-e),e=e&e;let n="#";for(let r=0;r<3;r+=1){const i=e>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function EPe(t,e){let n=0;if(t.length===0)return e[0];for(let r=0;r<t.length;r+=1)n=t.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%e.length+e.length)%e.length,e[n]}function APe(t){return t[Math.floor(Math.random()*t.length)]}function Kn(t,e){return n=>n.colorMode==="dark"?e:t}function Tz(t){const{orientation:e,vertical:n,horizontal:r}=t;return e?e==="vertical"?n:r:{}}function Lce(t){return Aa(t)&&t.reference?t.reference:String(t)}const zP=(t,...e)=>e.map(Lce).join(` ${t} `).replace(/calc/g,""),aQ=(...t)=>`calc(${zP("+",...t)})`,lQ=(...t)=>`calc(${zP("-",...t)})`,_L=(...t)=>`calc(${zP("*",...t)})`,cQ=(...t)=>`calc(${zP("/",...t)})`,uQ=t=>{const e=Lce(t);return e!=null&&!Number.isNaN(parseFloat(e))?String(e).startsWith("-")?String(e).slice(1):`-${e}`:_L(e,-1)},b0=Object.assign(t=>({add:(...e)=>b0(aQ(t,...e)),subtract:(...e)=>b0(lQ(t,...e)),multiply:(...e)=>b0(_L(t,...e)),divide:(...e)=>b0(cQ(t,...e)),negate:()=>b0(uQ(t)),toString:()=>t.toString()}),{add:aQ,subtract:lQ,multiply:_L,divide:cQ,negate:uQ});function PPe(t){return!Number.isInteger(parseFloat(t.toString()))}function OPe(t,e="-"){return t.replace(/\s+/g,e)}function Bce(t){const e=OPe(t.toString());return e.includes("\\.")?t:PPe(t)?e.replace(".","\\."):t}
50function IPe(t,e=""){return[e,Bce(t)].filter(Boolean).join("-")}function DPe(t,e){return`var(${Bce(t)}${e?`, ${e}`:""})`}function MPe(t,e=""){return`--${IPe(t,e)}`}function ha(t,e){const n=MPe(t,e?.prefix);return{variable:n,reference:DPe(n,NPe(e?.fallback))}}function NPe(t){return t?.reference}const{definePartsStyle:NC,defineMultiStyleConfig:RPe}=Cs(A7e.keys),Tu=Xn("alert-fg"),W0=Xn("alert-bg"),LPe=NC({container:{bg:W0.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Tu.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Tu.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ez(t){const{theme:e,colorScheme:n}=t,r=vx(`${n}.200`,.16)(e);return{light:`colors.${n}.100`,dark:r}}const BPe=NC(t=>{const{colorScheme:e}=t,n=Ez(t);return{container:{[Tu.variable]:`colors.${e}.600`,[W0.variable]:n.light,_dark:{[Tu.variable]:`colors.${e}.200`,[W0.variable]:n.dark}}}}),FPe=NC(t=>{const{colorScheme:e}=t,n=Ez(t);return{container:{[Tu.variable]:`colors.${e}.600`,[W0.variable]:n.light,_dark:{[Tu.variable]:`colors.${e}.200`,[W0.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Tu.reference}}}),$Pe=NC(t=>{const{colorScheme:e}=t,n=Ez(t);return{container:{[Tu.variable]:`colors.${e}.600`,[W0.variable]:n.light,_dark:{[Tu.variable]:`colors.${e}.200`,[W0.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Tu.reference}}}),jPe=NC(t=>{const{colorScheme:e}=t;return{container:{[Tu.variable]:"colors.white",[W0.variable]:`colors.${e}
50.600`,_dark:{[Tu.variable]:"colors.gray.900",[W0.variable]:`colors.${e}.200`},color:Tu.reference}}}),zPe={subtle:BPe,"left-accent":FPe,"top-accent":$Pe,solid:jPe},HPe=RPe({baseStyle:LPe,variants:zPe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Fce={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},UPe={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},VPe={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},$ce={...Fce,...UPe,container:VPe},WPe=t=>typeof t=="function";function Hl(t,...e){return WPe(t)?t(...e):t}const{definePartsStyle:jce,defineMultiStyleConfig:qPe}=Cs(P7e.keys),j2=Xn("avatar-border-color"),p4=Xn("avatar-bg"),hk=Xn("avatar-font-size"),xx=Xn("avatar-size"),GPe={borderRadius:"full",border:"0.2em solid",borderColor:j2.reference,[j2.variable]:"white",_dark:{[j2.variable]:"colors.gray.800"}},KPe={bg:p4.reference,fontSize:hk.reference,width:xx.reference,height:xx.reference,lineHeight:"1",[p4.variable]:"colors.gray.200",_dark:{[p4.variable]:"colors.whiteAlpha.400"}},YPe=t=>{const{name:e,theme:n}=t,r=e?_Pe({string:e}):"colors.gray.400",i=kPe(r)(n);let s="white";return i||(s="gray.800"),{bg:p4.reference,fontSize:hk.reference,color:s,borderColor:j2.reference,verticalAlign:"top",width:xx.reference,height:xx.reference,"&:not([data-loaded])":{[p4.variable]:r},[j2.variable]:"colors.white",_dark:{[j2.variable]:"colors.gray.800"}}},QPe={fontSize:hk.reference,lineHeight:"1"},XPe=jce(t=>({badge:Hl(GPe,t),excessLabel:Hl(KPe,t),container:Hl(YPe,t),label:QPe}));function jm(t){const e=t!=="100%"?$ce[t]:void 0;return jce({container:{[xx.variable]:e??t,[hk.variable]:`calc(${e??t} / 2.5)`},excessLabel:{[xx.variable]:e??t,[hk.variable]:`calc(${e??t} / 2.5)`}})}const JPe={"2xs":jm(4),xs:jm(6),sm:jm(8),md:jm(12),lg:jm(16),xl:jm(24),"2xl":jm(32),full:jm("100%")},ZPe=qPe({baseStyle:XPe,sizes:JPe,defaultProps:{size:"md"}}),Co=v7e("badge",["bg","color","shadow"]),eOe={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Co.bg.reference,color:Co.color.reference,boxShadow:Co.shadow.reference},tOe=t=>{const{colorScheme:e,theme:n}=t,r=vx(`${e}.500`,.6)(n);return{[Co.bg.variable]:`colors.${e}.500`,[Co.color.variable]:"colors.white",_dark:{[Co.bg.variable]:r,[Co.color.variable]:"colors.whiteAlpha.800"}}},nOe=t=>{const{colorScheme:e,theme:n}=t,r=vx(`${e}.200`,.16)(n);return{[Co.bg.variable]:`colors.${e}.100`,[Co.color.variable]:`colors.${e}.800`,_dark:{[Co.bg.variable]:r,[Co.color.variable]:`colors.${e}.200`}}},rOe=t=>{const{colorScheme:e,theme:n}=t,r=vx(`${e}.200`,.8)(n);return{[Co.color.variable]:`colors.${e}.500`,_dark:{[Co.color.variable]:r},[Co.shadow.variable]:`inset 0 0 0px 1px ${Co.color.reference}`}},iOe={solid:tOe,subtle:nOe,outline:rOe},m4={baseStyle:eOe,variants:iOe,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:sOe,definePartsStyle:oOe}=Cs(O7e.keys),ID=Xn("breadcrumb-link-decor"),aOe={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ID.reference,[ID.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ID.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},lOe=oOe({link:aOe}),cOe=sOe({baseStyle:lOe}),uOe={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},zce=t=>{const{colorScheme:e,theme:n}=t;if(e==="gray")return{color:Kn("gray.800","whiteAlpha.900")(t),_hover:{bg:Kn("gray.100","whiteAlpha.200")(t)},_active:{bg:Kn("gray.200","whiteAlpha.300")(t)}};const r=vx(`${e}.200`,.12)(n),i=vx(`${e}.200`,.24)(n);return{color:Kn(`${e}.600`,`${e}.200`)(t),bg:"transparent",_hover:{bg:Kn(`${e}.50`,r)(t)},_active:{bg:Kn(`${e}.100`,i)(t)}}},hOe=t=>{const{colorScheme:e}=t,n=Kn("gray.200","whiteAlpha.300")(t);return{border:"1px solid",borderColor:e==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Hl(zce,t)}},dOe={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},fOe=t=>{const{colorScheme:e}=t;if(e==="gray"){const a=Kn("gray.100","whiteAlpha.200")(t);return{bg:a,color:Kn("gray.800","whiteAlpha.900")(t),_hover:{bg:Kn("gray.200","whiteAlpha.300")(t),_disabled:{bg:a}},_active:{bg:Kn("gray.300","whiteAlpha.400")(t)}}}const{bg:n=`${e}.500`,color:r="white",hoverBg:i=`${e}.600`,activeBg:s=`${e}.700`}=dOe[e]??{},o=Kn(n,`${e}.200`)(t);return{bg:o,color:Kn(r,"gray.800")(t),_hover:{bg:Kn(i,`${e}.300`)(t),_disabled:{bg:o}},_active:{bg:Kn(s,`${e}.400`)(t)}}},pOe=t=>{const{colorScheme:e}=t;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Kn(`${e}.500`,`${e}.200`)(t),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Kn(`${e}.700`,`${e}.500`)(t)}}},mOe={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},gOe={ghost:zce,outline:hOe,solid:fOe,link:pOe,unstyled:mOe},yOe={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},bOe={baseStyle:uOe,variants:gOe,sizes:yOe,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Vy,defineMultiStyleConfig:vOe}=Cs(X7e.keys),HA=Xn("card-bg"),D0=Xn("card-padding"),Hce=Xn("card-shadow"),c6=Xn("card-radius"),Uce=Xn("card-border-width","0"),Vce=Xn("card-border-color"),xOe=Vy({container:{[HA.variable]:"colors.chakra-body-bg",backgroundColor:HA.reference,boxShadow:Hce.reference,borderRadius:c6.reference,color:"chakra-body-text",borderWidth:Uce.reference,borderColor:Vce.reference},body:{padding:D0.reference,flex:"1 1 0%"},header:{padding:D0.reference},footer:{padding:D0.reference}}),wOe={sm:Vy({container:{[c6.variable]:"radii.base",[D0.variable]:"space.3"}}),md:Vy({container:{[c6.variable]:"radii.md",[D0.variable]:"space.5"}}),lg:Vy({container:{[c6.variable]:"radii.xl",[D0.variable]:"space.7"}})},SOe={elevated:Vy({container:{[Hce.variable]:"shadows.base",_dark:{[HA.variable]:"colors.gray.700"}}}),outline:Vy({container:{[Uce.variable]:"1px",[Vce.variable]:"colors.chakra-border-color"}}),filled:Vy({container:{[HA.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[D0.variable]:0},header:{[D0.variable]:0},footer:{[D0.variable]:0}}},kOe=vOe({baseStyle:xOe,variants:SOe,sizes:wOe,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:u6,defineMultiStyleConfig:COe}=Cs(I7e.keys),g4=Xn("checkbox-size"),_Oe=t=>{const{colorScheme:e}=t;return{w:g4.reference,h:g4.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px s
50olid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Kn(`${e}.500`,`${e}.200`)(t),borderColor:Kn(`${e}.500`,`${e}.200`)(t),color:Kn("white","gray.900")(t),_hover:{bg:Kn(`${e}.600`,`${e}.300`)(t),borderColor:Kn(`${e}.600`,`${e}.300`)(t)},_disabled:{borderColor:Kn("gray.200","transparent")(t),bg:Kn("gray.200","whiteAlpha.300")(t),color:Kn("gray.500","whiteAlpha.500")(t)}},_indeterminate:{bg:Kn(`${e}.500`,`${e}.200`)(t),borderColor:Kn(`${e}.500`,`${e}.200`)(t),color:Kn("white","gray.900")(t)},_disabled:{bg:Kn("gray.100","whiteAlpha.100")(t),borderColor:Kn("gray.100","transparent")(t)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Kn("red.500","red.300")(t)}}},TOe={_disabled:{cursor:"not-allowed"}},EOe={userSelect:"none",_disabled:{opacity:.4}},AOe={transitionProperty:"transform",transitionDuration:"normal"},POe=u6(t=>({icon:AOe,container:TOe,control:Hl(_Oe,t),label:EOe})),OOe={sm:u6({control:{[g4.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:u6({control:{[g4.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:u6({control:{[g4.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},UA=COe({baseStyle:POe,sizes:OOe,defaultProps:{size:"md",colorScheme:"blue"}}),y4=ha("close-button-size"),OS=ha("close-button-bg"),IOe={w:[y4.reference],h:[y4.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[OS.variable]:"colors.blackAlpha.100",_dark:{[OS.variable]:"colors.whiteAlpha.100"}},_active:{[OS.variable]:"colors.blackAlpha.200",_dark:{[OS.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:OS.reference},DOe={lg:{[y4.variable]:"sizes.10",fontSize:"md"},md:{[y4.variable]:"sizes.8",fontSize:"xs"},sm:{[y4.variable]:"sizes.6",fontSize:"2xs"}},MOe={baseStyle:IOe,sizes:DOe,defaultProps:{size:"md"}},{variants:NOe,defaultProps:ROe}=m4,LOe={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Co.bg.reference,color:Co.color.reference,boxShadow:Co.shadow.reference},BOe={baseStyle:LOe,variants:NOe,defaultProps:ROe},FOe={w:"100%",mx:"auto",maxW:"prose",px:"4"},$Oe={baseStyle:FOe},jOe={opacity:.6,borderColor:"inherit"},zOe={borderStyle:"solid"},HOe={borderStyle:"dashed"},UOe={solid:zOe,dashed:HOe},VOe={baseStyle:jOe,variants:UOe,defaultProps:{variant:"solid"}},{definePartsStyle:TL,defineMultiStyleConfig:WOe}=Cs(D7e.keys),DD=Xn("drawer-bg"),MD=Xn("drawer-box-shadow");function vv(t){return TL(t==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:t}})}const qOe={bg:"blackAlpha.600",zIndex:"modal"},GOe={display:"flex",zIndex:"modal",justifyContent:"center"},KOe=t=>{const{isFullHeight:e}=t;return{...e&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[DD.variable]:"colors.white",[MD.variable]:"shadows.lg",_dark:{[DD.variable]:"colors.gray.700",[MD.variable]:"shadows.dark-lg"},bg:DD.reference,boxShadow:MD.reference}},YOe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},QOe={position:"absolute",top:"2",insetEnd:"3"},XOe={px:"6",py:"2",flex:"1",overflow:"auto"},JOe={px:"6",py:"4"},ZOe=TL(t=>({overlay:qOe,dialogContainer:GOe,dialog:Hl(KOe,t),header:YOe,closeButton:QOe,body:XOe,footer:JOe})),eIe={xs:vv("xs"),sm:vv("md"),md:vv("lg"),lg:vv("2xl"),xl:vv("4xl"),full:vv("full")},tIe=WOe({baseStyle:ZOe,sizes:eIe,defaultProps:{size:"xs"}}),{definePartsStyle:nIe,defineMultiStyleConfig:rIe}=Cs(M7e.keys),iIe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},sIe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},oIe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},aIe=nIe({preview:iIe,input:sIe,textarea:oIe}),lIe=rIe({baseStyle:aIe}),{definePartsStyle:cIe,defineMultiStyleConfig:uIe}=Cs(N7e.keys),z2=Xn("form-control-color"),hIe={marginStart:"1",[z2.variable]:"colors.red.500",_dark:{[z2.variable]:"colors.red.300"},color:z2.reference},dIe={mt:"2",[z2.variable]:"colors.gray.600",_dark:{[z2.variable]:"colors.whiteAlpha.600"},color:z2.reference,lineHeight:"normal",fontSize:"sm"},fIe=cIe({container:{width:"100%",position:"relative"},requiredIndicator:hIe,helperText:dIe}),pIe=uIe({baseStyle:fIe}),{definePartsStyle:mIe,defineMultiStyleConfig:gIe}=Cs(R7e.keys),H2=Xn("form-error-color"),yIe={[H2.variable]:"colors.red.500",_dark:{[H2.variable]:"colors.red.300"},color:H2.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},bIe={marginEnd:"0.5em",[H2.variable]:"colors.red.500",_dark:{[H2.variable]:"colors.red.300"},color:H2.reference},vIe=mIe({text:yIe,icon:bIe}),xIe=gIe({baseStyle:vIe}),wIe={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},SIe={baseStyle:wIe},kIe={fontFamily:"heading",fontWeight:"bold"},CIe={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},_Ie={baseStyle:kIe,sizes:CIe,defaultProps:{size:"xl"}},{definePartsStyle:A0,defineMultiStyleConfig:TIe}=Cs(L7e.keys),m2=Xn("input-height"),g2=Xn("input-font-size"),y2=Xn("input-padding"),b2=Xn("input-border-radius"),EIe=A0({add
50on:{height:m2.reference,fontSize:g2.reference,px:y2.reference,borderRadius:b2.reference},field:{width:"100%",height:m2.reference,fontSize:g2.reference,px:y2.reference,borderRadius:b2.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),zm={lg:{[g2.variable]:"fontSizes.lg",[y2.variable]:"space.4",[b2.variable]:"radii.md",[m2.variable]:"sizes.12"},md:{[g2.variable]:"fontSizes.md",[y2.variable]:"space.4",[b2.variable]:"radii.md",[m2.variable]:"sizes.10"},sm:{[g2.variable]:"fontSizes.sm",[y2.variable]:"space.3",[b2.variable]:"radii.sm",[m2.variable]:"sizes.8"},xs:{[g2.variable]:"fontSizes.xs",[y2.variable]:"space.2",[b2.variable]:"radii.sm",[m2.variable]:"sizes.6"}},AIe={lg:A0({field:zm.lg,group:zm.lg}),md:A0({field:zm.md,group:zm.md}),sm:A0({field:zm.sm,group:zm.sm}),xs:A0({field:zm.xs,group:zm.xs})};function Az(t){const{focusBorderColor:e,errorBorderColor:n}=t;return{focusBorderColor:e||Kn("blue.500","blue.300")(t),errorBorderColor:n||Kn("red.500","red.300")(t)}}const PIe=A0(t=>{const{theme:e}=t,{focusBorderColor:n,errorBorderColor:r}=Az(t);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Kn("gray.300","whiteAlpha.400")(t)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ll(e,r),boxShadow:`0 0 0 1px ${Ll(e,r)}`},_focusVisible:{zIndex:1,borderColor:Ll(e,n),boxShadow:`0 0 0 1px ${Ll(e,n)}`}},addon:{border:"1px solid",borderColor:Kn("inherit","whiteAlpha.50")(t),bg:Kn("gray.100","whiteAlpha.300")(t)}}}),OIe=A0(t=>{const{theme:e}=t,{focusBorderColor:n,errorBorderColor:r}=Az(t);return{field:{border:"2px solid",borderColor:"transparent",bg:Kn("gray.100","whiteAlpha.50")(t),_hover:{bg:Kn("gray.200","whiteAlpha.100")(t)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ll(e,r)},_focusVisible:{bg:"transparent",borderColor:Ll(e,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Kn("gray.100","whiteAlpha.50")(t)}}}),IIe=A0(t=>{const{theme:e}=t,{focusBorderColor:n,errorBorderColor:r}=Az(t);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ll(e,r),boxShadow:`0px 1px 0px 0px ${Ll(e,r)}`},_focusVisible:{borderColor:Ll(e,n),boxShadow:`0px 1px 0px 0px ${Ll(e,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),DIe=A0({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),MIe={outline:PIe,filled:OIe,flushed:IIe,unstyled:DIe},Bi=TIe({baseStyle:EIe,sizes:AIe,variants:MIe,defaultProps:{size:"md",variant:"outline"}}),ND=Xn("kbd-bg"),NIe={[ND.variable]:"colors.gray.100",_dark:{[ND.variable]:"colors.whiteAlpha.100"},bg:ND.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},RIe={baseStyle:NIe},LIe={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},BIe={baseStyle:LIe},{defineMultiStyleConfig:FIe,definePartsStyle:$Ie}=Cs(B7e.keys),jIe={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},zIe=$Ie({icon:jIe}
50),HIe=FIe({baseStyle:zIe}),{defineMultiStyleConfig:UIe,definePartsStyle:VIe}=Cs(F7e.keys),bf=Xn("menu-bg"),RD=Xn("menu-shadow"),WIe={[bf.variable]:"#fff",[RD.variable]:"shadows.sm",_dark:{[bf.variable]:"colors.gray.700",[RD.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:bf.reference,boxShadow:RD.reference},qIe={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[bf.variable]:"colors.gray.100",_dark:{[bf.variable]:"colors.whiteAlpha.100"}},_active:{[bf.variable]:"colors.gray.200",_dark:{[bf.variable]:"colors.whiteAlpha.200"}},_expanded:{[bf.variable]:"colors.gray.100",_dark:{[bf.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:bf.reference},GIe={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},KIe={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},YIe={opacity:.6},QIe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},XIe={transitionProperty:"common",transitionDuration:"normal"},JIe=VIe({button:XIe,list:WIe,item:qIe,groupTitle:GIe,icon:KIe,command:YIe,divider:QIe}),ZIe=UIe({baseStyle:JIe}),{defineMultiStyleConfig:e9e,definePartsStyle:EL}=Cs($7e.keys),LD=Xn("modal-bg"),BD=Xn("modal-shadow"),t9e={bg:"blackAlpha.600",zIndex:"modal"},n9e=t=>{const{isCentered:e,scrollBehavior:n}=t;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},r9e=t=>{const{isCentered:e,scrollBehavior:n}=t;return{borderRadius:"md",color:"inherit",my:e?"auto":"16",mx:e?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[LD.variable]:"colors.white",[BD.variable]:"shadows.lg",_dark:{[LD.variable]:"colors.gray.700",[BD.variable]:"shadows.dark-lg"},bg:LD.reference,boxShadow:BD.reference}},i9e={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},s9e={position:"absolute",top:"2",insetEnd:"3"},o9e=t=>{const{scrollBehavior:e}=t;return{px:"6",py:"2",flex:"1",overflow:e==="inside"?"auto":void 0}},a9e={px:"6",py:"4"},l9e=EL(t=>({overlay:t9e,dialogContainer:Hl(n9e,t),dialog:Hl(r9e,t),header:i9e,closeButton:s9e,body:Hl(o9e,t),footer:a9e}));function Xh(t){return EL(t==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:t}})}const c9e={xs:Xh("xs"),sm:Xh("sm"),md:Xh("md"),lg:Xh("lg"),xl:Xh("xl"),"2xl":Xh("2xl"),"3xl":Xh("3xl"),"4xl":Xh("4xl"),"5xl":Xh("5xl"),"6xl":Xh("6xl"),full:Xh("full")},u9e=e9e({baseStyle:l9e,sizes:c9e,defaultProps:{size:"md"}}),Wce={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:h9e,definePartsStyle:qce}=Cs(j7e.keys),Pz=ha("number-input-stepper-width"),Gce=ha("number-input-input-padding"),d9e=b0(Pz).add("0.5rem").toString(),FD=ha("number-input-bg"),$D=ha("number-input-color"),jD=ha("number-input-border-color"),f9e={[Pz.variable]:"sizes.6",[Gce.variable]:d9e},p9e=t=>Hl(Bi.baseStyle,t)?.field??{},m9e={width:Pz.reference},g9e={borderStart:"1px solid",borderStartColor:jD.reference,color:$D.reference,bg:FD.reference,[$D.variable]:"colors.chakra-body-text",[jD.variable]:"colors.chakra-border-color",_dark:{[$D.variable]:"colors.whiteAlpha.800",[jD.variable]:"colors.whiteAlpha.300"},_active:{[FD.variable]:"colors.gray.200",_dark:{[FD.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},y9e=qce(t=>({root:f9e,field:Hl(p9e,t)??{},stepperGroup:m9e,stepper:g9e}));function i5(t){const e=Bi.sizes?.[t],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=e.field?.fontSize??"md",i=Wce.fontSizes[r];return qce({field:{...e.field,paddingInlineEnd:Gce.reference,verticalAlign:"top"},stepper:{fontSize:b0(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[t]},_last:{borderBottomEndRadius:n[t],mt:"-1px",borderTopWidth:1}}})}const b9e={xs:i5("xs"),sm:i5("sm"),md:i5("md"),lg:i5("lg")},v9e=h9e({baseStyle:y9e,sizes:b9e,variants:Bi.variants,defaultProps:Bi.defaultProps}),x9e={...Bi.baseStyle?.field,textAlign:"center"},w9e={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},S9e={outline:t=>Hl(Bi.variants?.outline,t)?.field??{},flushed:t=>Hl(Bi.variants?.flushed,t)?.field??{},filled:t=>Hl(Bi.variants?.filled,t)?.field??{},unstyled:Bi.variants?.unstyled.field??{}},k9e={baseStyle:x9e,sizes:w9e,variants:S9e,defaultProps:Bi.defaultProps},{defineMultiStyleConfig:C9e,definePartsStyle:_9e}=Cs(z7e.keys),s5=ha("popper-bg"),T9e=ha("popper-arrow-bg"),hQ=ha("popper-arrow-shadow-color"),E9e={zIndex:"popover"},A9e={[s5.variable]:"colors.white",bg:s5.reference,[T9e.variable]:s5.reference,[hQ.variable]:"colors.gray.200",_dark:{[s5.variable]:"colors.gray.700",[hQ.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},P9e={px:3,py:2,borderBottomWidth:"1px"},O9e={px:3,py:2},I9e={px:3,py:2,borderTopWidth:"1px"},D9e={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}
50,M9e=_9e({popper:E9e,content:A9e,header:P9e,body:O9e,footer:I9e,closeButton:D9e}),N9e=C9e({baseStyle:M9e}),{defineMultiStyleConfig:R9e,definePartsStyle:_3}=Cs(H7e.keys),L9e=t=>{const{colorScheme:e,theme:n,isIndeterminate:r,hasStripe:i}=t,s=Kn(oQ(),oQ("1rem","rgba(0,0,0,0.1)"))(t),o=Kn(`${e}.500`,`${e}.200`)(t),a=`linear-gradient( 51 to right, 52 transparent 0%, 53 ${Ll(n,o)} 50%, 54 transparent 100% 55 )`;return{...!r&&i&&s,...r?{bgImage:a}:{bgColor:o}}},B9e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},F9e=t=>({bg:Kn("gray.100","whiteAlpha.300")(t)}),$9e=t=>({transitionProperty:"common",transitionDuration:"slow",...L9e(t)}),j9e=_3(t=>({label:B9e,filledTrack:$9e(t),track:F9e(t)})),z9e={xs:_3({track:{h:"1"}}),sm:_3({track:{h:"2"}}),md:_3({track:{h:"3"}}),lg:_3({track:{h:"4"}})},H9e=R9e({sizes:z9e,baseStyle:j9e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:U9e,definePartsStyle:h6}=Cs(U7e.keys),V9e=t=>{const e=Hl(UA.baseStyle,t)?.control;return{...e,borderRadius:"full",_checked:{...e?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},W9e=h6(t=>({label:UA.baseStyle?.(t).label,container:UA.baseStyle?.(t).container,control:V9e(t)})),q9e={md:h6({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:h6({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:h6({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},G9e=U9e({baseStyle:W9e,sizes:q9e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:K9e,definePartsStyle:Y9e}=Cs(V7e.keys),o5=Xn("select-bg"),Q9e={...Bi.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:o5.reference,[o5.variable]:"colors.white",_dark:{[o5.variable]:"colors.gray.700"},"> option, > optgroup":{bg:o5.reference}},X9e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},J9e=Y9e({field:Q9e,icon:X9e}),a5={paddingInlineEnd:"8"},Z9e={lg:{...Bi.sizes?.lg,field:{...Bi.sizes?.lg.field,...a5}},md:{...Bi.sizes?.md,field:{...Bi.sizes?.md.field,...a5}},sm:{...Bi.sizes?.sm,field:{...Bi.sizes?.sm.field,...a5}},xs:{...Bi.sizes?.xs,field:{...Bi.sizes?.xs.field,...a5},icon:{insetEnd:"1"}}},eDe=K9e({baseStyle:J9e,sizes:Z9e,variants:Bi.variants,defaultProps:Bi.defaultProps}),zD=Xn("skeleton-start-color"),HD=Xn("skeleton-end-color"),tDe={[zD.variable]:"colors.gray.100",[HD.variable]:"colors.gray.400",_dark:{[zD.variable]:"colors.gray.800",[HD.variable]:"colors.gray.600"},background:zD.reference,borderColor:HD.reference,opacity:.7,borderRadius:"sm"},nDe={baseStyle:tDe},UD=Xn("skip-link-bg"),rDe={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[UD.variable]:"colors.white",_dark:{[UD.variable]:"colors.gray.700"},bg:UD.reference}},iDe={baseStyle:rDe},{defineMultiStyleConfig:sDe,definePartsStyle:HP}=Cs(W7e.keys),ib=Xn("slider-thumb-size"),dk=Xn("slider-track-size"),pg=Xn("slider-bg"),oDe=t=>{const{orientation:e}=t;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Tz({orientation:e,vertical:{h:"100%",px:y0(ib.reference).divide(2).toString()},horizontal:{w:"100%",py:y0(ib.reference).divide(2).toString()}})}},aDe=t=>({...Tz({orientation:t.orientation,horizontal:{h:dk.reference},vertical:{w:dk.reference}}),overflow:"hidden",borderRadius:"sm",[pg.variable]:"colors.gray.200",_dark:{[pg.variable]:"colors.whiteAlpha.200"},_disabled:{[pg.variable]:"colors.gray.300",_dark:{[pg.variable]:"colors.whiteAlpha.300"}},bg:pg.reference}),lDe=t=>{const{orientation:e}=t;return{...Tz({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:ib.reference,h:ib.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},cDe=t=>{const{colorScheme:e}=t;return{width:"inherit",height:"inherit",[pg.variable]:`colors.${e}.500`,_dark:{[pg.variable]:`colors.${e}.200`},bg:pg.reference}},uDe=HP(t=>({container:oDe(t),track:aDe(t),thumb:lDe(t),filledTrack:cDe(t)})),hDe=HP({container:{[ib.variable]:"sizes.4",[dk.variable]:"sizes.1"}}),dDe=HP({container:{[ib.variable]:"sizes.3.5",[dk.variable]:"sizes.1"}}),fDe=HP({container:{[ib.variable]:"sizes.2.5",[dk.variable]:"sizes.0.5"}}),pDe={lg:hDe,md:dDe,sm:fDe},mDe=sDe({baseStyle:uDe,sizes:pDe,defaultProps:{size:"md",colorScheme:"blue"}}),my=ha("spinner-size"),gDe={width:[my.reference],height:[my.reference]},yDe={xs:{[my.variable]:"sizes.3"},sm:{[my.variable]:"sizes.4"},md:{[my.variable]:"sizes.6"},lg:{[my.variable]:"sizes.8"},xl:{[my.variable]:"sizes.12"}},bDe={baseStyle:gDe,sizes:yDe,defaultProps:{size:"md"}},{defineMultiStyleConfig:vDe,definePartsStyle:Kce}=Cs(q7e.keys),xDe={fontWeight:"medium"},wDe={opacity:.8,marginBottom:"2"},SDe={verticalAlign:"baseline",fontWeight:"semibold"},kDe={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},CDe=Kce({container:{}
55,label:xDe,helpText:wDe,number:SDe,icon:kDe}),_De={md:Kce({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},TDe=vDe({baseStyle:CDe,sizes:_De,defaultProps:{size:"md"}}),{defineMultiStyleConfig:EDe,definePartsStyle:T3}=Cs(["stepper","step","title","description","indicator","separator","icon","number"]),v0=Xn("stepper-indicator-size"),v2=Xn("stepper-icon-size"),x2=Xn("stepper-title-font-size"),E3=Xn("stepper-description-font-size"),IS=Xn("stepper-accent-color"),ADe=T3(({colorScheme:t})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[IS.variable]:`colors.${t}.500`,_dark:{[IS.variable]:`colors.${t}.200`}},title:{fontSize:x2.reference,fontWeight:"medium"},description:{fontSize:E3.reference,color:"chakra-subtle-text"},number:{fontSize:x2.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:v2.reference,height:v2.reference},indicator:{flexShrink:0,borderRadius:"full",width:v0.reference,height:v0.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:IS.reference},"&[data-status=complete]":{bg:IS.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:IS.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${v0.reference} - 8px)`,top:`calc(${v0.reference} + 4px)`,insetStart:`calc(${v0.reference} / 2 - 1px)`}}})),PDe=EDe({baseStyle:ADe,sizes:{xs:T3({stepper:{[v0.variable]:"sizes.4",[v2.variable]:"sizes.3",[x2.variable]:"fontSizes.xs",[E3.variable]:"fontSizes.xs"}}),sm:T3({stepper:{[v0.variable]:"sizes.6",[v2.variable]:"sizes.4",[x2.variable]:"fontSizes.sm",[E3.variable]:"fontSizes.xs"}}),md:T3({stepper:{[v0.variable]:"sizes.8",[v2.variable]:"sizes.5",[x2.variable]:"fontSizes.md",[E3.variable]:"fontSizes.sm"}}),lg:T3({stepper:{[v0.variable]:"sizes.10",[v2.variable]:"sizes.6",[x2.variable]:"fontSizes.lg",[E3.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ODe,definePartsStyle:d6}=Cs(G7e.keys),b4=ha("switch-track-width"),Wy=ha("switch-track-height"),VD=ha("switch-track-diff"),IDe=b0.subtract(b4,Wy),AL=ha("switch-thumb-x"),DS=ha("switch-bg"),DDe=t=>{const{colorScheme:e}=t;return{borderRadius:"full",p:"0.5",width:[b4.reference],height:[Wy.reference],transitionProperty:"common",transitionDuration:"fast",[DS.variable]:"colors.gray.300",_dark:{[DS.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[DS.variable]:`colors.${e}.500`,_dark:{[DS.variable]:`colors.${e}.200`}},bg:DS.reference}},MDe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Wy.reference],height:[Wy.reference],_checked:{transform:`translateX(${AL.reference})`}},NDe=d6(t=>({container:{[VD.variable]:IDe,[AL.variable]:VD.reference,_rtl:{[AL.variable]:b0(VD).negate().toString()}},track:DDe(t),thumb:MDe})),RDe={sm:d6({container:{[b4.variable]:"1.375rem",[Wy.variable]:"sizes.3"}}),md:d6({container:{[b4.variable]:"1.875rem",[Wy.variable]:"sizes.4"}}),lg:d6({container:{[b4.variable]:"2.875rem",[Wy.variable]:"sizes.6"}})},LDe=ODe({baseStyle:NDe,sizes:RDe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:BDe,definePartsStyle:U2}=Cs(K7e.keys),FDe=U2({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),VA={"&[data-is-numeric=true]":{textAlign:"end"}},$De=U2(t=>{const{colorScheme:e}=t;return{th:{color:Kn("gray.600","gray.400")(t),borderBottom:"1px",borderColor:Kn(`${e}.100`,`${e}.700`)(t),...VA},td:{borderBottom:"1px",borderColor:Kn(`${e}.100`,`${e}.700`)(t),...VA},caption:{color:Kn("gray.600","gray.100")(t)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),jDe=U2(t=>{const{colorScheme:e}=t;return{th:{color:Kn("gray.600","gray.400")(t),borderBottom:"1px",borderColor:Kn(`${e}.100`,`${e}.700`)(t),...VA},td:{borderBottom:"1px",borderColor:Kn(`${e}.100`,`${e}.700`)(t),...VA},caption:{color:Kn("gray.600","gray.100")(t)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Kn(`${e}.100`,`${e}.700`)(t)},td:{background:Kn(`${e}.100`,`${e}.700`)(t)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),zDe={simple:$De,striped:jDe,unstyled:{}},HDe={sm:U2({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}
55),md:U2({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:U2({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},UDe=BDe({baseStyle:FDe,variants:zDe,sizes:HDe,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Sc=Xn("tabs-color"),pd=Xn("tabs-bg"),l5=Xn("tabs-border-color"),{defineMultiStyleConfig:VDe,definePartsStyle:Vf}=Cs(Y7e.keys),WDe=t=>{const{orientation:e}=t;return{display:e==="vertical"?"flex":"block"}},qDe=t=>{const{isFitted:e}=t;return{flex:e?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},GDe=t=>{const{align:e="start",orientation:n}=t;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[e],flexDirection:n==="vertical"?"column":"row"}},KDe={p:4},YDe=Vf(t=>({root:WDe(t),tab:qDe(t),tablist:GDe(t),tabpanel:KDe})),QDe={sm:Vf({tab:{py:1,px:4,fontSize:"sm"}}),md:Vf({tab:{fontSize:"md",py:2,px:4}}),lg:Vf({tab:{fontSize:"lg",py:3,px:4}})},XDe=Vf(t=>{const{colorScheme:e,orientation:n}=t,r=n==="vertical",i=r?"borderStart":"borderBottom",s=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{[Sc.variable]:`colors.${e}.600`,_dark:{[Sc.variable]:`colors.${e}.300`},borderColor:"currentColor"},_active:{[pd.variable]:"colors.gray.200",_dark:{[pd.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Sc.reference,bg:pd.reference}}}),JDe=Vf(t=>{const{colorScheme:e}=t;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[l5.variable]:"transparent",_selected:{[Sc.variable]:`colors.${e}.600`,[l5.variable]:"colors.white",_dark:{[Sc.variable]:`colors.${e}.300`,[l5.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:l5.reference},color:Sc.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ZDe=Vf(t=>{const{colorScheme:e}=t;return{tab:{border:"1px solid",borderColor:"inherit",[pd.variable]:"colors.gray.50",_dark:{[pd.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[pd.variable]:"colors.white",[Sc.variable]:`colors.${e}.600`,_dark:{[pd.variable]:"colors.gray.800",[Sc.variable]:`colors.${e}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Sc.reference,bg:pd.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),eMe=Vf(t=>{const{colorScheme:e,theme:n}=t;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ll(n,`${e}.700`),bg:Ll(n,`${e}.100`)}}}}),tMe=Vf(t=>{const{colorScheme:e}=t;return{tab:{borderRadius:"full",fontWeight:"semibold",[Sc.variable]:"colors.gray.600",_dark:{[Sc.variable]:"inherit"},_selected:{[Sc.variable]:"colors.white",[pd.variable]:`colors.${e}.600`,_dark:{[Sc.variable]:"colors.gray.800",[pd.variable]:`colors.${e}.300`}},color:Sc.reference,bg:pd.reference}}}),nMe=Vf({}),rMe={line:XDe,enclosed:JDe,"enclosed-colored":ZDe,"soft-rounded":eMe,"solid-rounded":tMe,unstyled:nMe},iMe=VDe({baseStyle:YDe,sizes:QDe,variants:rMe,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:sMe,definePartsStyle:qy}=Cs(Q7e.keys),dQ=Xn("tag-bg"),fQ=Xn("tag-color"),WD=Xn("tag-shadow"),f6=Xn("tag-min-height"),p6=Xn("tag-min-width"),m6=Xn("tag-font-size"),g6=Xn("tag-padding-inline"),oMe={fontWeight:"medium",lineHeight:1.2,outline:0,[fQ.variable]:Co.color.reference,[dQ.variable]:Co.bg.reference,[WD.variable]:Co.shadow.reference,color:fQ.reference,bg:dQ.reference,boxShadow:WD.reference,borderRadius:"md",minH:f6.reference,minW:p6.reference,fontSize:m6.reference,px:g6.reference,_focusVisible:{[WD.variable]:"shadows.outline"}},aMe={lineHeight:1.2,overflow:"visible"},lMe={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},cMe=qy({container:oMe,label:aMe,closeButton:lMe}),uMe={sm:qy({container:{[f6.variable]:"sizes.5",[p6.variable]:"sizes.5",[m6.variable]:"fontSizes.xs",[g6.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:qy({container:{[f6.variable]:"sizes.6",[p6.variable]:"sizes.6",[m6.variable]:"fontSizes.sm",[g6.variable]:"space.2"}}),lg:qy({container:{[f6.variable]:"sizes.8",[p6.variable]:"sizes.8",[m6.variable]:"fontSizes.md",[g6.variable]:"space.3"}})},hMe={subtle:qy(t=>({container:m4.variants?.subtle(t)})),solid:qy(t=>({container:m4.variants?.solid(t)})),outline:qy(t=>({container:m4.variants?.outline(t)}))},dMe=sMe({variants:hMe,baseStyle:cMe,sizes:uMe,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),fMe={...Bi.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},pMe={outline:t=>Bi.variants?.outline(t).field??{},flushed:t=>Bi.variants?.flushed(t).field??{},filled:t=>Bi.variants?.filled(t).field??{},unstyled:Bi.variants?.unstyled.field??{}},mMe={xs:Bi.sizes?.xs.field??{},sm:Bi.sizes?.sm.field??{},md:Bi.sizes?.md.field??{},lg:Bi.sizes?.lg.field??{}}
55,gMe={baseStyle:fMe,sizes:mMe,variants:pMe,defaultProps:{size:"md",variant:"outline"}},c5=ha("tooltip-bg"),qD=ha("tooltip-fg"),yMe=ha("popper-arrow-bg"),bMe={bg:c5.reference,color:qD.reference,[c5.variable]:"colors.gray.700",[qD.variable]:"colors.whiteAlpha.900",_dark:{[c5.variable]:"colors.gray.300",[qD.variable]:"colors.gray.900"},[yMe.variable]:c5.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},vMe={baseStyle:bMe},xMe={Accordion:sPe,Alert:HPe,Avatar:ZPe,Badge:m4,Breadcrumb:cOe,Button:bOe,Checkbox:UA,CloseButton:MOe,Code:BOe,Container:$Oe,Divider:VOe,Drawer:tIe,Editable:lIe,Form:pIe,FormError:xIe,FormLabel:SIe,Heading:_Ie,Input:Bi,Kbd:RIe,Link:BIe,List:HIe,Menu:ZIe,Modal:u9e,NumberInput:v9e,PinInput:k9e,Popover:N9e,Progress:H9e,Radio:G9e,Select:eDe,Skeleton:nDe,SkipLink:iDe,Slider:mDe,Spinner:bDe,Stat:TDe,Switch:LDe,Table:UDe,Tabs:iMe,Tag:dMe,Textarea:gMe,Tooltip:vMe,Card:kOe,Stepper:PDe},wMe={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},SMe={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},kMe={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},CMe={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},_Me={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},TMe={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},EMe={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},AMe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},PMe={property:TMe,easing:EMe,duration:AMe},OMe={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}
55,IMe={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},DMe={breakpoints:SMe,zIndices:OMe,radii:CMe,blur:IMe,colors:kMe,...Wce,sizes:$ce,shadows:_Me,space:Fce,borders:wMe,transition:PMe},MMe={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},NMe={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},RMe=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function LMe(t){return Aa(t)?RMe.every(e=>Object.prototype.hasOwnProperty.call(t,e)):!1}const BMe="ltr",FMe={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Yce={semanticTokens:MMe,direction:BMe,...DMe,components:xMe,styles:NMe,config:FMe};function $Me(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function jMe(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var zMe=function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jMe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=$Me(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 7,563 bytes, line 55
55,e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),nl="-ms-",WA="-moz-",Ri="-webkit-",Qce="comm",Oz="rule",Iz="decl",HMe="@import",Xce="@keyframes",UMe="@layer",VMe=Math.abs,UP=String.fromCharCode,WMe=Object.assign;function qMe(t,e){return za(t,0)^45?(((e<<2^za(t,0))<<2^za(t,1))<<2^za(t,2))<<2^za(t,3):0}function Jce(t){return t.trim()}function GMe(t,e){return(t=e.exec(t))?t[0]:t}function Li(t,e,n){return t.replace(e,n)}function PL(t,e){return t.indexOf(e)}function za(t,e){return t.charCodeAt(e)|0}function fk(t,e,n){return t.slice(e,n)}function kf(t){return t.length}function Dz(t){return t.length}function u5(t,e){return e.push(t),t}function KMe(t,e){return t.map(e).join("")}var VP=1,wx=1,Zce=0,Nc=0,jo=0,yw="";function WP(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:VP,column:wx,length:o,return:""}}function MS(t,e){return WMe(WP("",null,null,"",null,null,0),t,{length:-t.length},e)}function YMe(){return jo}function QMe(){return jo=Nc>0?za(yw,--Nc):0,wx--,jo===10&&(wx=1,VP--),jo}function Eu(){return jo=Nc<Zce?za(yw,Nc++):0,wx++,jo===10&&(wx=1,VP++),jo}function Wf(){return za(yw,Nc)}function y6(){return Nc}function RC(t,e){return fk(yw,t,e)}function pk(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eue(t){return VP=wx=1,Zce=kf(yw=t),Nc=0,[]}function tue(t){return yw="",t}function b6(t){return Jce(RC(Nc-1,OL(t===91?t+2:t===40?t+1:t)))}function XMe(t){for(;(jo=Wf())&&jo<33;)Eu();return pk(t)>2||pk(jo)>3?"":" "}function JMe(t,e){for(;--e&&Eu()&&!(jo<48||jo>102||jo>57&&jo<65||jo>70&&jo<97););return RC(t,y6()+(e<6&&Wf()==32&&Eu()==32))}function OL(t){for(;Eu();)switch(jo){case t:return Nc;case 34:case 39:t!==34&&t!==39&&OL(jo);break;case 40:t===41&&OL(t);break;case 92:Eu();break}return Nc}function ZMe(t,e){for(;Eu()&&t+jo!==57;)if(t+jo===84&&Wf()===47)break;return"/*"+RC(e,Nc-1)+"*"+UP(t===47?t:Eu())}function eNe(t){for(;!pk(Wf());)Eu();return RC(t,Nc)}function tNe(t){return tue(v6("",null,null,null,[""],t=eue(t),0,[0],t))}function v6(t,e,n,r,i,s,o,a,l){for(var c=0,u=0,h=o,d=0,p=0,g=0,y=1,b=1,w=1,S=0,T="",D=i,E=s,O=r,P=T;b;)switch(g=S,S=Eu()){case 40:if(g!=108&&za(P,h-1)==58){PL(P+=Li(b6(S),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:P+=b6(S);break;case 9:case 10:case 13:case 32:P+=XMe(g);break;case 92:P+=JMe(y6()-1,7);continue;case 47:switch(Wf()){case 42:case 47:u5(nNe(ZMe(Eu(),y6()),e,n),l);break;default:P+="/"}break;case 123*y:a[c++]=kf(P)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:w==-1&&(P=Li(P,/\f/g,"")),p>0&&kf(P)-h&&u5(p>32?mQ(P+";",r,n,h-1):mQ(Li(P," ","")+";",r,n,h-2),l);break;case 59:P+=";";default:if(u5(O=pQ(P,e,n,c,u,i,a,T,D=[],E=[],h),s),S===123)if(u===0)v6(P,e,O,O,D,s,h,a,E);else switch(d===99&&za(P,3)===110?100:d){case 100:case 108:case 109:case 115:v6(t,O,O,r&&u5(pQ(t,O,O,0,0,i,a,T,i,D=[],h),E),i,E,h,a,r?D:E);break;default:v6(P,O,O,O,[""],E,0,a,E)}}c=u=p=0,y=w=1,T=P="",h=o;break;case 58:h=1+kf(P),p=g;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&QMe()==125)continue}switch(P+=UP(S),S*y){case 38:w=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(kf(P)-1)*w,w=1;break;case 64:Wf()===45&&(P+=b6(Eu())),d=Wf(),u=h=kf(T=P+=eNe(y6())),S++;break;case 45:g===45&&kf(P)==2&&(y=0)}}return s}function pQ(t,e,n,r,i,s,o,a,l,c,u){for(var h=i-1,d=i===0?s:[""],p=Dz(d),g=0,y=0,b=0;g<r;++g)for(var w=0,S=fk(t,h+1,h=VMe(y=o[g])),T=t;w<p;++w)(T=Jce(y>0?d[w]+" "+S:Li(S,/&\f/g,d[w])))&&(l[b++]=T);return WP(t,e,n,i===0?Oz:a,l,c,u)}function nNe(t,e,n){return WP(t,e,n,Qce,UP(YMe()),fk(t,2,-2),0)}function mQ(t,e,n,r){return WP(t,e,n,Iz,fk(t,0,r),fk(t,r+1,-1),r)}function V2(t,e){for(var n="",r=Dz(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function rNe(t,e,n,r){switch(t.type){case UMe:if(t.children.length)break;case HMe:case Iz:return t.return=t.return||t.value;case Qce:return"";case Xce:return t.return=t.value+"{"+V2(t.children,r)+"}";case Oz:t.value=t.props.join(",")}return kf(n=V2(t.children,r))?t.return=t.value+"{"+n+"}":""}function iNe(t){var e=Dz(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function sNe(t){return function(e){e.root||(e=e.return)&&t(e)}}var gQ=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=e(r);return n.set(r,i),i}};function nue(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var oNe=function(e,n,r){for(var i=0,s=0;i=s,s=Wf(),i===38&&s===12&&(n[r]=1),!pk(s);)Eu();return RC(e,Nc)},aNe=function(e,n){var r=-1,i=44;do switch(pk(i)){case 0:i===38&&Wf()===12&&(n[r]=1),e[r]+=oNe(Nc-1,n,r);break;case 2:e[r]+=b6(i);break;case 4:if(i===44){e[++r]=Wf()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=UP(i)}while(i=Eu());return e},lNe=function(e,n){return tue(aNe(eue(e),n))},yQ=new WeakMap,cNe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!yQ.get(r))&&!i){yQ.set(e,!0);for(var s=[],o=lNe(n,s),a=r.props,l=0,c=0;l<o.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=s[l]?o[l].replace(/&\f/g,a[u]):a[u]+" "+o[l]}}},uNe=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function rue(t,e){switch(qMe(t,e)){case 5103:return Ri+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ri+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ri+t+WA+t+nl+t+t;case 6828:case 4268:return Ri+t+nl+t+t;case 6165:return Ri+t+nl+"flex-"+t+t;case 5187:return Ri+t+Li(t,/(\w+).+(:[^]+)/,Ri+"box-$1$2"+nl+"flex-$1$2")+t;case 5443:return Ri+t+nl+"flex-item-"+Li(t,/flex-|-self/,"")+t;case 4675:return Ri+t+nl+"flex-line-pack"+Li(t,/align-content|flex-|-self/,"")+t;case 5548:return Ri+t+nl+Li(t,"shrink","negative")+t;case 5292:return Ri+t+nl+Li(t,"basis","preferred-size")+t;case 6060:return Ri+"box-"+Li(t,"-grow","")+Ri+t+nl+Li(t,"grow","positive")+t;case 4554:return Ri+Li(t,/([^-])(transform)/g,"$1"+Ri+"$2")+t;case 6187:return Li(Li(Li(t,/(zoom-|grab)/,Ri+"$1"),/(image-set)/,Ri+"$1"),t,"")+t;case 5495:case 3959:return Li(t,/(image-set\([^]*)/,Ri+"$1$`$1");case 4968:return Li(Li(t,/(.+:)(flex-)?(.*)/,Ri+"box-pack:$3"+nl+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ri+t+t;case 4095:case 3583:case 4068:case 2532:return Li(t,/(.+)-inline(.+)/,Ri+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kf(t)-1-e>6)switch(za(t,e+1)){case 109:if(za(t,e+4)!==45)break;case 102:return Li(t,/(.+:)(.+)-([^]+)/,"$1"+Ri+"$2-$3$1"+WA+(za(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~PL(t,"stretch")?rue(Li(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(za(t,e+1)!==115)break;case 6444:switch(za(t,kf(t)-3-(~PL(t,"!important")&&10))){case 107:return Li(t,":",":"+Ri)+t;case 101:return Li(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ri+(za(t,14)===45?"inline-":"")+"box$3$1"+Ri+"$2$3$1"+nl+"$2box$3")+t}break;case 5936:switch(za(t,e+11)){case 114:return Ri+t+nl+Li(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
vendor: 5,143 bytes, lines 55-62
55case 108:return Ri+t+nl+Li(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ri+t+nl+Li(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ri+t+nl+t+t}return t}var hNe=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Iz:e.return=rue(e.value,e.length);break;case Xce:return V2([MS(e,{value:Li(e.value,"@","@"+Ri)})],i);case Oz:if(e.length)return KMe(e.props,function(s){switch(GMe(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V2([MS(e,{props:[Li(s,/:(read-\w+)/,":"+WA+"$1")]})],i);case"::placeholder":return V2([MS(e,{props:[Li(s,/:(plac\w+)/,":"+Ri+"input-$1")]}),MS(e,{props:[Li(s,/:(plac\w+)/,":"+WA+"$1")]}),MS(e,{props:[Li(s,/:(plac\w+)/,nl+"input-$1")]})],i)}return""})}},dNe=[hNe],fNe=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||dNe,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)s[b[w]]=!0;a.push(y)});var l,c=[cNe,uNe];{var u,h=[rNe,sNe(function(y){u.insert(y)})],d=iNe(c.concat(i,h)),p=function(b){return V2(tNe(b),d)};l=function(b,w,S,T){u=S,p(b?b+"{"+w.styles+"}":w.styles),T&&(g.inserted[w.name]=!0)}}var g={key:n,sheet:new zMe({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return g.sheet.hydrate(a),g};function Dd(){return Dd=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},Dd.apply(null,arguments)}var GD={exports:{}},Hi={};/** @license React v16.13.1 56 * react-is.production.min.js 57 * 58 * Copyright (c) Facebook, Inc. and its affiliates. 59 * 60 * This source code is licensed under the MIT license found in the 61 * LICENSE file in the root directory of this source tree. 62 */var bQ;function pNe(){if(bQ)return Hi;bQ=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function T(E){if(typeof E=="object"&&E!==null){var O=E.$$typeof;switch(O){case e:switch(E=E.type,E){case l:case c:case r:case s:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case a:case u:case g:case p:case o:return E;default:return O}}case n:return O}}}function D(E){return T(E)===c}return Hi.AsyncMode=l,Hi.ConcurrentMode=c,Hi.ContextConsumer=a,Hi.ContextProvider=o,Hi.Element=e,Hi.ForwardRef=u,Hi.Fragment=r,Hi.Lazy=g,Hi.Memo=p,Hi.Portal=n,Hi.Profiler=s,Hi.StrictMode=i,Hi.Suspense=h,Hi.isAsyncMode=function(E){return D(E)||T(E)===l},Hi.isConcurrentMode=D,Hi.isContextConsumer=function(E){return T(E)===a},Hi.isContextProvider=function(E){return T(E)===o},Hi.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Hi.isForwardRef=function(E){return T(E)===u},Hi.isFragment=function(E){return T(E)===r},Hi.isLazy=function(E){return T(E)===g},Hi.isMemo=function(E){return T(E)===p},Hi.isPortal=function(E){return T(E)===n},Hi.isProfiler=function(E){return T(E)===s},Hi.isStrictMode=function(E){return T(E)===i},Hi.isSuspense=function(E){return T(E)===h},Hi.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===c||E===s||E===i||E===h||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===p||E.$$typeof===o||E.$$typeof===a||E.$$typeof===u||E.$$typeof===b||E.$$typeof===w||E.$$typeof===S||E.$$typeof===y)},Hi.typeOf=T,Hi}var vQ;function mNe(){return vQ||(vQ=1,GD.exports=pNe()),GD.exports}var KD,xQ;function gNe(){if(xQ)return KD;xQ=1;var t=mNe(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function o(g){return t.isMemo(g)?i:s[g.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;
vendor: 7,327 bytes, line 62
62function p(g,y,b){if(typeof y!="string"){if(d){var w=h(y);w&&w!==d&&p(g,w,b)}var S=l(y);c&&(S=S.concat(c(y)));for(var T=o(g),D=o(y),E=0;E<S.length;++E){var O=S[E];if(!n[O]&&!(b&&b[O])&&!(D&&D[O])&&!(T&&T[O])){var P=u(y,O);try{a(g,O,P)}catch{}}}}return g}return KD=p,KD}gNe();var yNe=!0;function iue(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Mz=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||yNe===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Nz=function(e,n,r){Mz(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function bNe(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vNe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xNe=/[A-Z]|^ms/g,wNe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sue=function(e){return e.charCodeAt(1)===45},wQ=function(e){return e!=null&&typeof e!="boolean"},YD=nue(function(t){return sue(t)?t:t.replace(xNe,"-$&").toLowerCase()}),SQ=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(wNe,function(r,i,s){return Cf={name:i,styles:s,next:Cf},i})}return vNe[e]!==1&&!sue(e)&&typeof n=="number"&&n!==0?n+"px":n};function mk(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Cf={name:i.name,styles:i.styles,next:Cf},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Cf={name:o.name,styles:o.styles,next:Cf},o=o.next;var a=s.styles+";";return a}return SNe(t,e,n)}case"function":{if(t!==void 0){var l=Cf,c=n(t);return Cf=l,mk(t,e,c)}break}}var u=n;if(e==null)return u;var h=e[u];return h!==void 0?h:u}function SNe(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=mk(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?r+=s+"{"+e[a]+"}":wQ(a)&&(r+=YD(s)+":"+SQ(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var l=0;l<o.length;l++)wQ(o[l])&&(r+=YD(s)+":"+SQ(s,o[l])+";");else{var c=mk(t,e,o);switch(s){case"animation":case"animationName":{r+=YD(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var kQ=/label:\s*([^\s;{]+)\s*(;|$)/g,Cf;function qP(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";Cf=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=mk(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=mk(n,e,t[a]),r){var l=s;i+=l[a]}kQ.lastIndex=0;for(var c="",u;(u=kQ.exec(i))!==null;)c+="-"+u[1];var h=bNe(i)+c;return{name:h,styles:i,next:Cf}}var kNe=function(e){return e()},oue=jA.useInsertionEffect?jA.useInsertionEffect:!1,aue=oue||kNe,CQ=oue||_.useLayoutEffect,Rz=_.createContext(typeof HTMLElement<"u"?fNe({key:"css"}):null);Rz.Provider;var CNe=function(){return _.useContext(Rz)},Lz=function(e){return _.forwardRef(function(n,r){var i=_.useContext(Rz);return e(n,i,r)})},Sx=_.createContext({}),_Ne=function(e,n){if(typeof n=="function"){var r=n(e);return r}return Dd({},e,n)},TNe=gQ(function(t){return gQ(function(e){return _Ne(t,e)})}),ENe=function(e){var n=_.useContext(Sx);return e.theme!==n&&(n=TNe(n)(e.theme)),_.createElement(Sx.Provider,{value:n},e.children)},Bz={}.hasOwnProperty,IL="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ANe=function(e,n){var r={};for(var i in n)Bz.call(n,i)&&(r[i]=n[i]);return r[IL]=e,r},PNe=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Mz(n,r,i),aue(function(){return Nz(n,r,i)}),null},ONe=Lz(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[IL],s=[r],o="";typeof t.className=="string"?o=iue(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=qP(s,void 0,_.useContext(Sx));o+=e.key+"-"+a.name;var l={};for(var c in t)Bz.call(t,c)&&c!=="css"&&c!==IL&&(l[c]=t[c]);return l.className=o,n&&(l.ref=n),_.createElement(_.Fragment,null,_.createElement(PNe,{cache:e,serialized:a,isStringTag:typeof i=="string"}),_.createElement(i,l))}),INe=ONe,_Q=function(e,n){var r=arguments;if(n==null||!Bz.call(n,"css"))return _.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=INe,s[1]=ANe(e,n);for(var o=2;o<i;o++)s[o]=r[o];return _.createElement.apply(null,s)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(_Q||(_Q={}));var GP=Lz(function(t,e){var n=t.styles,r=qP([n],void 0,_.useContext(Sx)),i=_.useRef();return CQ(function(){var s=e.key+"-global",o=new e.sheet.constructor({key:s,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return e.sheet.tags.length&&(o.before=e.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",s),o.hydrate([l])),i.current=[o,a],function(){o.flush()}},[e]),CQ(function(){var s=i.current,o=s[0],a=s[1];if(a){s[1]=!1;return}if(r.next!==void 0&&Nz(e,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}e.insert("",r,o,!1)},[e,r.name]),null});function DNe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return qP(e)}function rp(){var t=DNe.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const Fz=_.createContext({});Fz.displayName="ColorModeContext";function lm(){const t=_.useContext(Fz);if(t===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return t}function ws(t,e){const{colorMode:n}=lm();return n==="dark"?e:t}const h5={light:"chakra-ui-light",dark:"chakra-ui-dark"};function MNe(t={}){const{preventTransition:e=!0,nonce:n}=t,r={setDataset:i=>{const s=e?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,s?.()},setClassName(i){document.body.classList.add(i?h5.dark:h5.light),document.body.classList.remove(i?h5.light:h5.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const s=r.query(),o=a=>
62{i(a.matches?"dark":"light")};return typeof s.addListener=="function"?s.addListener(o):s.addEventListener("change",o),()=>{typeof s.removeListener=="function"?s.removeListener(o):s.removeEventListener("change",o)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const NNe="chakra-ui-color-mode";function RNe(t){return{ssr:!1,type:"localStorage",get(e){if(!globalThis?.document)return e;let n;try{n=localStorage.getItem(t)||e}catch{}return n||e},set(e){try{localStorage.setItem(t,e)}catch{}}}}const LNe=RNe(NNe),TQ=()=>{},BNe=tAe()?_.useLayoutEffect:_.useEffect;function EQ(t,e){return t.type==="cookie"&&t.ssr?t.get(e):e}const lue=function(e){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:o}={},colorModeManager:a=LNe}=e,l=CNe(),c=s==="dark"?"dark":"light",[u,h]=_.useState(()=>EQ(a,c)),[d,p]=_.useState(()=>EQ(a)),{getSystemTheme:g,setClassName:y,setDataset:b,addListener:w}=_.useMemo(()=>MNe({preventTransition:o,nonce:l?.nonce}),[o,l?.nonce]),S=s==="system"&&!u?d:u,T=_.useCallback(O=>{const P=O==="system"?g():O;h(P),y(P==="dark"),b(P),a.set(P)},[a,g,y,b]);BNe(()=>{s==="system"&&p(g())},[]),_.useEffect(()=>{const O=a.get();if(O){T(O);return}if(s==="system"){T("system");return}T(c)},[a,c,s,T]);const D=_.useCallback(()=>{T(S==="dark"?"light":"dark")},[S,T]);_.useEffect(()=>{if(i)return w(T)},[i,w,T]);const E=_.useMemo(()=>({colorMode:n??S,toggleColorMode:n?TQ:D,setColorMode:n?TQ:T,forced:n!==void 0}),[S,D,T,n]);return x.jsx(Fz.Provider,{value:E,children:r})};lue.displayName="ColorModeProvider";const cue=String.raw,uue=cue` 63 :root, 64 :host { 65 --chakra-vh: 100vh; 66 } 67 68 @supports (height: -webkit-fill-available) { 69 :root, 70 :host { 71 --chakra-vh: -webkit-fill-available; 72 } 73 } 74 75 @supports (height: -moz-fill-available) { 76 :root, 77 :host { 78 --chakra-vh: -moz-fill-available; 79 } 80 } 81 82 @supports (height: 100dvh) { 83 :root, 84 :host { 85 --chakra-vh: 100dvh; 86 } 87 } 88`,FNe=()=>x.jsx(GP,{styles:uue}),$Ne=({scope:t=""})=>x.jsx(GP,{styles:cue` 89 html { 90 line-height: 1.5; 91 -webkit-text-size-adjust: 100%; 92 font-family: system-ui, sans-serif; 93 -webkit-font-smoothing: antialiased; 94 text-rendering: optimizeLegibility; 95 -moz-osx-font-smoothing: grayscale; 96 touch-action: manipulation; 97 } 98 99 body { 100 position: relative; 101 min-height: 100%; 102 margin: 0; 103 font-feature-settings: "kern"; 104 } 105 106 ${t} :where(*, *::before, *::after) { 107 border-width: 0; 108 border-style: solid; 109 box-sizing: border-box; 110 word-wrap: break-word; 111 } 112 113 main { 114 display: block; 115 } 116 117 ${t} hr { 118 border-top-width: 1px; 119 box-sizing: content-box; 120 height: 0; 121 overflow: visible; 122 } 123 124 ${t} :where(pre, code, kbd,samp) { 125 font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; 126 font-size: 1em; 127 } 128 129 ${t} a { 130 background-color: transparent; 131 color: inherit; 132 text-decoration: inherit; 133 } 134 135 ${t} abbr[title] { 136 border-bottom: none; 137 text-decoration: underline; 138 -webkit-text-decoration: underline dotted; 139 text-decoration: underline dotted; 140 } 141 142 ${t} :where(b, strong) { 143 font-weight: bold; 144 } 145 146 ${t} small { 147 font-size: 80%; 148 } 149 150 ${t} :where(sub,sup) { 151 font-size: 75%; 152 line-height: 0; 153 position: relative; 154 vertical-align: baseline; 155 } 156 157 ${t} sub { 158 bottom: -0.25em; 159 } 160 161 ${t} sup { 162 top: -0.5em; 163 } 164 165 ${t} img { 166 border-style: none; 167 } 168 169 ${t} :where(button, input, optgroup, select, textarea) { 170 font-family: inherit; 171 font-size: 100%; 172 line-height: 1.15; 173 margin: 0; 174 } 175 176 ${t} :where(button, input) { 177 overflow: visible; 178 } 179 180 ${t} :where(button, select) { 181 text-transform: none; 182 } 183 184 ${t} :where( 185 button::-moz-focus-inner, 186 [type="button"]::-moz-focus-inner, 187 [type="reset"]::-moz-focus-inner, 188 [type="submit"]::-moz-focus-inner 189 ) { 190 border-style: none; 191 padding: 0; 192 } 193 194 ${t} fieldset { 195 padding: 0.35em 0.75em 0.625em; 196 } 197 198 ${t} legend { 199 box-sizing: border-box; 200 color: inherit; 201 display: table; 202 max-width: 100%; 203 padding: 0; 204 white-space: normal; 205 } 206 207 ${t} progress { 208 vertical-align: baseline; 209 } 210 211 ${t} textarea { 212 overflow: auto; 213 } 214 215 ${t}
215 :where([type="checkbox"], [type="radio"]) { 216 box-sizing: border-box; 217 padding: 0; 218 } 219 220 ${t} input[type="number"]::-webkit-inner-spin-button, 221 ${t} input[type="number"]::-webkit-outer-spin-button { 222 -webkit-appearance: none !important; 223 } 224 225 ${t} input[type="number"] { 226 -moz-appearance: textfield; 227 } 228 229 ${t} input[type="search"] { 230 -webkit-appearance: textfield; 231 outline-offset: -2px; 232 } 233 234 ${t} input[type="search"]::-webkit-search-decoration { 235 -webkit-appearance: none !important; 236 } 237 238 ${t} ::-webkit-file-upload-button { 239 -webkit-appearance: button; 240 font: inherit; 241 } 242 243 ${t} details { 244 display: block; 245 } 246 247 ${t} summary { 248 display: list-item; 249 } 250 251 template { 252 display: none; 253 } 254 255 [hidden] { 256 display: none !important; 257 } 258 259 ${t} :where( 260 blockquote, 261 dl, 262 dd, 263 h1, 264 h2, 265 h3, 266 h4, 267 h5, 268 h6, 269 hr, 270 figure, 271 p, 272 pre 273 ) { 274 margin: 0; 275 } 276 277 ${t} button { 278 background: transparent; 279 padding: 0; 280 } 281 282 ${t} fieldset { 283 margin: 0; 284 padding: 0; 285 } 286 287 ${t} :where(ol, ul) { 288 margin: 0; 289 padding: 0; 290 } 291 292 ${t} textarea { 293 resize: vertical; 294 } 295 296 ${t} :where(button, [role="button"]) { 297 cursor: pointer; 298 } 299 300 ${t} button::-moz-focus-inner { 301 border: 0 !important; 302 } 303 304 ${t} table { 305 border-collapse: collapse; 306 } 307 308 ${t} :where(h1, h2, h3, h4, h5, h6) { 309 font-size: inherit; 310 font-weight: inherit; 311 } 312 313 ${t} :where(button, input, optgroup, select, textarea) { 314 padding: 0; 315 line-height: inherit; 316 color: inherit; 317 } 318 319 ${t} :where(img, svg, video, canvas, audio, iframe, embed, object) { 320 display: block; 321 } 322 323 ${t} :where(img, video) { 324 max-width: 100%; 325 height: auto; 326 } 327 328 [data-js-focus-visible] 329 :focus:not([data-focus-visible-added]):not( 330 [data-focus-visible-disabled] 331 ) { 332 outline: none; 333 box-shadow: none; 334 } 335 336 ${t} select::-ms-expand { 337 display: none; 338 } 339 340 ${uue} 341 `});function jNe(t){const{cssVarsRoot:e,theme:n,children:r}=t,i=_.useMemo(()=>T7e(n),[n]);return x.jsxs(ENe,{theme:i,children:[x.jsx(zNe,{root:e}),r]})}function zNe({root:t=":host, :root"}){const e=[t,"[data-theme]"].join(",");return x.jsx(GP,{styles:n=>({[e]:n.__cssVars})})}Oi({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function HNe(t){return Oi({name:`${t}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${t} />" `})}function UNe(){const{colorMode:t}=lm();return x.jsx(GP,{styles:e=>{const n=vce(e,"styles.global"),r=Cc(n,{theme:e,colorMode:t});return r?Nce(r)(e):void 0}})}const[VNe,WNe]=Oi({strict:!1,name:"PortalManagerContext"});function hue(t){const{children:e,zIndex:n}=t;return x.jsx(VNe,{value:{zIndex:n},children:e})}hue.displayName="PortalManager";const $z=_.createContext({getDocument(){return document},getWindow(){return window}});$z.displayName="EnvironmentContext";function qNe({defer:t}={}){const[,e]=_.useReducer(n=>n+1,0);return I0(()=>{t&&e()},[t]),_.useContext($z)}function due(t){const{children:e,environment:n,disabled:r}=t,i=_.useRef(null),s=_.useMemo(()=>n||{getDocument:()=>i.current?.ownerDocument??document,getWindow:()=>i.current?.ownerDocument.defaultView??window},[n]),o=!r||!n;return x.jsxs($z.Provider,{value:s,children:[e,o&&x.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}due.displayName="EnvironmentProvider";const GNe=t=>{const{children:e,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:s=!0,theme:o={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}
vendor: 36,319 bytes, lines 341-349
341=t,h=x.jsx(due,{environment:a,disabled:c,children:e});return x.jsx(jNe,{theme:o,cssVarsRoot:l,children:x.jsxs(lue,{colorModeManager:n,options:o.config,children:[s?x.jsx($Ne,{scope:i}):x.jsx(FNe,{}),!u&&x.jsx(UNe,{}),r?x.jsx(hue,{zIndex:r,children:h}):h]})})},jz=_.createContext({});function zz(t){const e=_.useRef(null);return e.current===null&&(e.current=t()),e.current}const LC=_.createContext(null),Hz=_.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class KNe extends _.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function YNe({children:t,isPresent:e}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=_.useContext(Hz);return _.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:c}=i.current;if(e||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 342 [data-motion-pop-id="${n}"] { 343 position: absolute !important; 344 width: ${o}px !important; 345 height: ${a}px !important; 346 top: ${l}px !important; 347 left: ${c}px !important; 348 } 349 `),()=>{document.head.removeChild(u)}},[e]),x.jsx(KNe,{isPresent:e,childRef:r,sizeRef:i,children:_.cloneElement(t,{ref:r})})}const QNe=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=zz(XNe),l=_.useId(),c=_.useCallback(h=>{a.set(h,!0);for(const d of a.values())if(!d)return;r&&r()},[a,r]),u=_.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:c,register:h=>(a.set(h,!1),()=>a.delete(h))}),s?[Math.random(),c]:[n,c]);return _.useMemo(()=>{a.forEach((h,d)=>a.set(d,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(t=x.jsx(YNe,{isPresent:n,children:t})),x.jsx(LC.Provider,{value:u,children:t})};function XNe(){return new Map}function Uz(t=!0){const e=_.useContext(LC);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=_.useId();_.useEffect(()=>{t&&i(s)},[t]);const o=_.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}function JNe(){return ZNe(_.useContext(LC))}function ZNe(t){return t===null?!0:t.isPresent}const d5=t=>t.key||"";function AQ(t){const e=[];return _.Children.forEach(t,n=>{_.isValidElement(n)&&e.push(n)}),e}const Vz=typeof window<"u",fue=Vz?_.useLayoutEffect:_.useEffect,s1=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=Uz(o),c=_.useMemo(()=>AQ(t),[t]),u=o&&!a?[]:c.map(d5),h=_.useRef(!0),d=_.useRef(c),p=zz(()=>new Map),[g,y]=_.useState(c),[b,w]=_.useState(c);fue(()=>{h.current=!1,d.current=c;for(let D=0;D<b.length;D++){const E=d5(b[D]);u.includes(E)?p.delete(E):p.get(E)!==!0&&p.set(E,!1)}},[b,u.length,u.join("-")]);const S=[];if(c!==g){let D=[...c];for(let E=0;E<b.length;E++){const O=b[E],P=d5(O);u.includes(P)||(D.splice(E,0,O),S.push(O))}s==="wait"&&S.length&&(D=S),w(AQ(D)),y(c);return}const{forceRender:T}=_.useContext(jz);return x.jsx(x.Fragment,{children:b.map(D=>{const E=d5(D),O=o&&!a?!1:c===b||u.includes(E),P=()=>{if(p.has(E))p.set(E,!0);else return;let $=!0;p.forEach(W=>{W||($=!1)}),$&&(T?.(),w(d.current),o&&l?.(),r&&r())};return x.jsx(QNe,{isPresent:O,initial:!h.current||n?void 0:!1,custom:O?void 0:e,presenceAffectsLayout:i,mode:s,onExitComplete:O?void 0:P,children:D},E)})})},Au=t=>t;let pue=Au;function Wz(t){let e;return()=>(e===void 0&&(e=t()),e)}const kx=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},M0=t=>t*1e3,N0=t=>t/1e3,eRe={useManualTiming:!1};function tRe(t){let e=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,h=!1)=>{const p=h&&r?e:n;return u&&s.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(o=c,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(a),e.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const f5=["read","resolveKeyframes","update","preRender","render","postRender"],nRe=40;function mue(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=f5.reduce((w,S)=>(w[S]=tRe(s),w),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:h,postRender:d}=o,p=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,nRe),1),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(p))},g=()=>{n=!0,r=!0,i.isProcessing||t(p)};return{schedule:f5.reduce((w,S)=>{const T=o[S];return w[S]=(D,E=!1,O=!1)=>(n||g(),T.schedule(D,E,O)),w},{}),cancel:w=>{for(let S=0;S<f5.length;S++)o[f5[S]].cancel(w)},state:i,steps:o}}const{schedule:Ns,cancel:Rg,state:Fa,steps:QD}=mue(typeof requestAnimationFrame<"u"?requestAnimationFrame:Au,!0),gue=_.createContext({strict:!1}),PQ={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Cx={};for(const t in PQ)Cx[t]={isEnabled:e=>PQ[t].some(n=>!!e[n])};function rRe(t){for(const e in t)Cx[e]={...Cx[e],...t[e]}}const iRe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function qA(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iRe.has(t)}let yue=t=>!qA(t);function sRe(t){t&&(yue=e=>e.startsWith("on")?!qA(e):t(e))}try{sRe(require("@emotion/is-prop-valid").default)}catch{}function oRe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(yue(i)||n===!0&&qA(i)||!e&&!qA(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function aRe(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const KP=_.createContext({});function gk(t){return typeof t=="string"||Array.isArray(t)}function YP(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const qz=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gz=["initial",...qz];function QP(t){return YP(t.animate)||Gz.some(e=>gk(t[e]))}function bue(t){return!!(QP(t)||t.variants)}function lRe(t,e){if(QP(t)){const{initial:n,animate:r}=t;return{initial:n===!1||gk(n)?n:void 0,animate:gk(r)?r:void 0}}return t.inherit!==!1?e:{}}function cRe(t){const{initial:e,animate:n}=lRe(t,_.useContext(KP));return _.useMemo(()=>({initial:e,animate:n}),[OQ(e),OQ(n)])}function OQ(t){return Array.isArray(t)?t.join(" "):t}const uRe=Symbol.for("motionComponentSymbol");function w2(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function hRe(t,e,n){return _.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):w2(n)&&(n.current=r))},[e])}const Kz=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dRe="framerAppearId",vue="data-"+Kz(dRe),{schedule:Yz}=mue(queueMicrotask,!1),xue=_.createContext({});function fRe(t,e,n,r,i){var s,o;const{visualElement:a}=_.useContext(KP),l=_.useContext(gue),c=_.useContext(LC),u=_.useContext(Hz).reducedMotion,h=_.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=h.current,p=_.useContext(xue);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&pRe(h.current,n,i,p);const g=_.useRef(!1);_.useInsertionEffect(()=>{d&&g.current&&d.update(n,c)});const y=n[vue],b=_.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return fue(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Yz.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),_.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,y)}),b.current=!1))}),d}function pRe(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:wue(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&w2(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function wue(t){if(t)return t.options.allowProjection!==!1?t.projection:wue(t.parent)}function mRe({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var s,o;t&&rRe(t);function a(c,u){let h;const d={..._.useContext(Hz),...c,layoutId:gRe(c)},{isStatic:p}=d,g=cRe(c),y=r(c,p);if(!p&&Vz){yRe();const b=bRe(d);h=b.MeasureLayout,g.visualElement=fRe(i,y,d,e,b.ProjectionNode)}return x.jsxs(KP.Provider,{value:g,children:[h&&g.visualElement?x.jsx(h,{visualElement:g.visualElement,...d}):null,n(i,c,hRe(y,g.visualElement,u),y,p,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=_.forwardRef(a);return l[uRe]=i,l}function gRe({layoutId:t}){const e=_.useContext(jz).id;return e&&t!==void 0?e+"-"+t:t}function yRe(t,e){_.useContext(gue).strict}function bRe(t){const{drag:e,layout:n}=Cx;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vRe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Qz(t){return typeof t!="string"||t.includes("-")?!1:!!(vRe.indexOf(t)>-1||/[A-Z]/u.test(t))}function IQ(t){const e=[{},{}];return t?.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Xz(t,e,n,r){if(typeof e=="function"){const[i,s]=IQ(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=IQ(r);e=e(n!==void 0?n:t.custom,i,s)}return e}const DL=t=>Array.isArray(t),xRe=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),wRe=t=>DL(t)?t[t.length-1]||0:t,ul=t=>!!(t&&t.getVelocity);function x6(t){const e=ul(t)?t.get():t;return xRe(e)?e.toValue():e}function SRe({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,s){const o={latestValues:kRe(r,i,s,t),renderState:e()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Sue=t=>(e,n)=>{const r=_.useContext(KP),i=_.useContext(LC),s=()=>SRe(t,e,r,i);return n?s():zz(s)};function kRe(t,e,n,r){const i={},s=r(t,{});for(const d in s)i[d]=x6(s[d]);let{initial:o,animate:a}=t;const l=QP(t),c=bue(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!YP(h)){const d=Array.isArray(h)?h:[h];for(let p=0;p<d.length;p++){const g=Xz(t,d[p]);if(g){const{transitionEnd:y,transition:b,...w}=g;for(const S in w){let T=w[S];if(Array.isArray(T)){const D=u?T.length-1:0;T=T[D]}T!==null&&(i[S]=T)}for(const S in y)i[S]=y[S]}}}return i}const bw=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ab=new Set(bw),kue=t=>e=>typeof e=="string"&&e.startsWith(t),Cue=kue("--"),CRe=kue("var(--"),Jz=t=>CRe(t)?_Re.test(t.split("/*")[0].trim()):!1,_Re=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_ue=(t,e)=>e&&typeof t=="number"?e.transform(t):t,q0=(t,e,n)=>n>e?e:n<t?t:n,vw={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},yk={...vw,transform:t=>q0(0,1,t)},p5={...vw,default:1},BC=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Zm=BC("deg"),qf=BC("%"),ir=BC("px"),TRe=BC("vh"),ERe=BC("vw"),DQ={...qf,parse:t=>qf.parse(t)/100,transform:t=>qf.transform(t*100)},ARe={borderWidth:ir,borderTopWidth:ir,borderRightWidth:ir,borderBottomWidth:ir,borderLeftWidth:ir,borderRadius:ir,radius:ir,borderTopLeftRadius:ir,borderTopRightRadius:ir,borderBottomRightRadius:ir,borderBottomLeftRadius:ir,width:ir,maxWidth:ir,height:ir,maxHeight:ir,top:ir,right:ir,bottom:ir,left:ir,padding:ir,paddingTop:ir,paddingRight:ir,paddingBottom:ir,paddingLeft:ir,margin:ir,marginTop:ir,marginRight:ir,marginBottom:ir,marginLeft:ir,backgroundPositionX:ir,backgroundPositionY:ir},PRe={rotate:Zm,rotateX:Zm,rotateY:Zm,rotateZ:Zm,scale:p5,scaleX:p5,scaleY:p5,scaleZ:p5,skew:Zm,skewX:Zm,skewY:Zm,distance:ir,translateX:ir,translateY:ir,translateZ:ir,x:ir,y:ir,z:ir,perspective:ir,transformPerspective:ir,opacity:yk,originX:DQ,originY:DQ,originZ:ir},MQ={...vw,transform:Math.round},Zz={...ARe,...PRe,zIndex:MQ,size:ir,fillOpacity:yk,strokeOpacity:yk,numOctaves:MQ},ORe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IRe=bw.length;function DRe(t,e,n){let r="",i=!0;for(let s=0;s<IRe;s++){const o=bw[s],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=_ue(a,Zz[o]);if(!l){i=!1;const u=ORe[o]||o;r+=`${u}(${c}) `}n&&(e[o]=c)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function eH(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Ab.has(l)){o=!0;continue}else if(Cue(l)){i[l]=c;continue}else{const u=_ue(c,Zz[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(e.transform||(o||n?r.transform=DRe(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${c} ${u}`}}const MRe={offset:"stroke-dashoffset",array:"stroke-dasharray"},NRe={offset:"strokeDashoffset",array:"strokeDasharray"};function RRe(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?MRe:NRe;t[s.offset]=ir.transform(-r);const o=ir.transform(e),a=ir.transform(n);t[s.array]=`${o} ${a}`}function NQ(t,e,n){return typeof t=="string"?t:ir.transform(e+n*t)}function LRe(t,e,n){const r=NQ(e,t.x,t.width),i=NQ(n,t.y,t.height);return`${r} ${i}`}function tH(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,h){if(eH(t,c,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:g}=t;d.transform&&(g&&(p.transform=d.transform),delete d.transform),g&&(i!==void 0||s!==void 0||p.transform)&&(p.transformOrigin=LRe(g,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&RRe(d,o,a,l,!1)}const nH=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Tue=()=>({...nH(),attrs:{}}),rH=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Eue(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const Aue=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pue(t,e,n,r){Eue(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Aue.has(i)?i:Kz(i),e.attrs[i])}const GA={};function BRe(t){Object.assign(GA,t)}function Oue(t,{layout:e,layoutId:n}){return Ab.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!GA[t]||t==="opacity")}function iH(t,e,n){var r;const{style:i}=t,s={};for(const o in i)(ul(i[o])||e.style&&ul(e.style[o])||Oue(o,t)||((r=n?.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function Iue(t,e,n){const r=iH(t,e,n);for(const i in t)if(ul(t[i])||ul(e[i])){const s=bw.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}function FRe(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const RQ=["x","y","width","height","cx","cy","r"],$Re={useVisualState:Sue({scrapeMotionValuesFromProps:Iue,createRenderState:Tue,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in i)if(Ab.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a<RQ.length;a++){const l=RQ[a];t[l]!==e[l]&&(o=!0)}o&&Ns.read(()=>{FRe(n,r),Ns.render(()=>{tH(r,i,rH(n.tagName),t.transformTemplate),Pue(n,r)})})}})},jRe={useVisualState:Sue({scrapeMotionValuesFromProps:iH,createRenderState:nH})};function Due(t,e,n){for(const r in e)!ul(e[r])&&!Oue(r,n)&&(t[r]=e[r])}function zRe({transformTemplate:t},e){return _.useMemo(()=>{const n=nH();return eH(n,e,t),Object.assign({},n.vars,n.style)},[e])}function HRe(t,e){const n=t.style||{},r={};return Due(r,n,t),Object.assign(r,zRe(t,e)),r}function URe(t,e){const n={},r=HRe(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function VRe(t,e,n,r){const i=_.useMemo(()=>{const s=Tue();return tH(s,e,rH(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Due(s,t.style,t),i.style={...s,...i.style}}return i}function WRe(t=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Qz(n)?VRe:URe)(r,s,o,n),c=oRe(r,typeof n=="string",t),u=n!==_.Fragment?{...c,...l,ref:i}:{},{children:h}=r,d=_.useMemo(()=>ul(h)?h.get():h,[h]);return _.createElement(n,{...u,children:d})}}function qRe(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Qz(r)?$Re:jRe,preloadedFeatures:t,useRender:WRe(i),createVisualElement:e,Component:r};return mRe(o)}}function Mue(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function XP(t,e,n){const r=t.getProps();return Xz(r,e,n!==void 0?n:r.custom,t)}const GRe=Wz(()=>window.ScrollTimeline!==void 0);class KRe{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(GRe()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class YRe extends KRe{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function sH(t,e){return t?t[e]||t.default||t:void 0}const ML=2e4;function Nue(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<ML;)e+=n,r=t.next(e);return e>=ML?1/0:e}function oH(t){return typeof t=="function"}function LQ(t,e){t.timeline=e,t.onfinish=null}const aH=t=>Array.isArray(t)&&typeof t[0]=="number",QRe={linearEasing:void 0};function XRe(t,e){const n=Wz(t);return()=>{var r;return(r=QRe[e])!==null&&r!==void 0?r:n()}}const KA=XRe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rue=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=t(kx(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Lue(t){return!!(typeof t=="function"&&KA()||!t||typeof t=="string"&&(t in NL||KA())||aH(t)||Array.isArray(t)&&t.every(Lue))}const A3=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,NL={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:A3([0,.65,.55,1]),circOut:A3([.55,0,1,.45]),backIn:A3([.31,.01,.66,-.59]),backOut:A3([.33,1.53,.69,.99])};function Bue(t,e){if(t)return typeof t=="function"&&KA()?Rue(t,e):aH(t)?A3(t):Array.isArray(t)?t.map(n=>Bue(n,e)||NL.easeOut):NL[t]}const sd={x:!1,y:!1};function Fue(){return sd.x||sd.y}function JRe(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function $ue(t,e){const n=JRe(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function BQ(t){return e=>{e.pointerType==="touch"||Fue()||t(e)}}function ZRe(t,e,n={}){const[r,i,s]=$ue(t,n),o=BQ(a=>{const{target:l}=a,c=e(a);if(typeof c!="function"||!l)return;const u=BQ(h=>{c(h),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const jue=(t,e)=>e?t===e?!0:jue(t,e.parentElement):!1,lH=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,eLe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tLe(t){return eLe.has(t.tagName)||t.tabIndex!==-1}const P3=new WeakSet;function FQ(t){return e=>{e.key==="Enter"&&t(e)}}function XD(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const nLe=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=FQ(()=>{if(P3.has(n))return;XD(n,"down");const i=FQ(()=>{XD(n,"up")}),s=()=>XD(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function $Q(t){return lH(t)&&!Fue()}function rLe(t,e,n={}){const[r,i,s]=$ue(t,n),o=a=>{const l=a.currentTarget;if(!$Q(a)||P3.has(l))return;P3.add(l);const c=e(a),u=(p,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),!(!$Q(p)||!P3.has(l))&&(P3.delete(l),typeof c=="function"&&c(p,{success:g}))},h=p=>{u(p,n.useGlobalTarget||jue(l,p.target))},d=p=>{u(p,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{!tLe(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",c=>nLe(c,i),i)}),s}function iLe(t){return t==="x"||t==="y"?sd[t]?null:(sd[t]=!0,()=>{sd[t]=!1}):sd.x||sd.y?null:(sd.x=sd.y=!0,()=>{sd.x=sd.y=!1})}const zue=new Set(["width","height","top","left","right","bottom",...bw]);let w6;function sLe(){w6=void 0}const Gf={now:()=>(w6===void 0&&Gf.set(Fa.isProcessing||eRe.useManualTiming?Fa.timestamp:performance.now()),w6),set:t=>{w6=t,queueMicrotask(sLe)}};function cH(t,e){t.indexOf(e)===-1&&t.push(e)}function uH(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class hH{constructor(){this.subscriptions=[]}add(e){return cH(this.subscriptions,e),()=>uH(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Hue(t,e){return e?t*(1e3/e):0}const jQ=30,oLe=t=>!isNaN(parseFloat(t));class aLe{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Gf.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Gf.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=oLe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new hH);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ns.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Gf.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jQ)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jQ);return Hue(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bk(t,e){return new aLe(t,e)}function lLe(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,bk(n))}function cLe(t,e){const n=XP(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=wRe(s[o]);lLe(t,o,a)}}function uLe(t){return!!(ul(t)&&t.add)}function RL(t,e){const n=t.getValue("willChange");if(uLe(n))return n.add(e)}function Uue(t){return t.props[vue]}const Vue=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,hLe=1e-7,dLe=12;function fLe(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=Vue(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>hLe&&++a<dLe);return o}function FC(t,e,n,r){if(t===e&&n===r)return Au;const i=s=>fLe(s,0,1,t,n);return s=>s===0||s===1?s:Vue(i(s),e,r)}const Wue=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,que=t=>e=>1-t(1-e),Gue=FC(.33,1.53,.69,.99),dH=que(Gue),Kue=Wue(dH),Yue=t=>(t*=2)<1?.5*dH(t):.5*(2-Math.pow(2,-10*(t-1))),fH=t=>1-Math.sin(Math.acos(t)),Que=que(fH),Xue=Wue(fH),Jue=t=>/^0[^.\s]+$/u.test(t);function pLe(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Jue(t):!0}const v4=t=>Math.round(t*1e5)/1e5,pH=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mLe(t){return t==null}const gLe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mH=(t,e)=>n=>!!(typeof n=="string"&&gLe.test(n)&&n.startsWith(t)||e&&!mLe(n)&&Object.prototype.hasOwnProperty.call(n,e)),Zue=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(pH);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},yLe=t=>q0(0,255,t),JD={...vw,transform:t=>Math.round(yLe(t))},Cy={test:mH("rgb","red"),parse:Zue("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+JD.transform(t)+", "+JD.transform(e)+", "+JD.transform(n)+", "+v4(yk.transform(r))+")"};function bLe(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const LL={test:mH("#"),parse:bLe,transform:Cy.transform},S2={test:mH("hsl","hue"),parse:Zue("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+qf.transform(v4(e))+", "+qf.transform(v4(n))+", "+v4(yk.transform(r))+")"},sl={test:t=>Cy.test(t)||LL.test(t)||S2.test(t),parse:t=>Cy.test(t)?Cy.parse(t):S2.test(t)?S2.parse(t):LL.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Cy.transform(t):S2.transform(t)},vLe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xLe(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(pH))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(vLe))===null||n===void 0?void 0:n.length)||0)>0}const ehe="number",the="color",wLe="var",SLe="var(",zQ="${}",kLe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vk(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(kLe,l=>(sl.test(l)?(r.color.push(s),i.push(the),n.push(sl.parse(l))):l.startsWith(SLe)?(r.var.push(s),i.push(wLe),n.push(l)):(r.number.push(s),i.push(ehe),n.push(parseFloat(l))),++s,zQ)).split(zQ);return{values:n,split:a,indexes:r,types:i}}function nhe(t){return vk(t).values}function rhe(t){const{split:e,types:n}=vk(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===ehe?s+=v4(i[o]):a===the?s+=sl.transform(i[o]):s+=i[o]}return s}}const CLe=t=>typeof t=="number"?0:t;function _Le(t){const e=nhe(t);return rhe(t)(e.map(CLe))}const Lg={test:xLe,parse:nhe,createTransformer:rhe,getAnimatableNone:_Le},TLe=new Set(["brightness","contrast","saturate","opacity"]);function ELe(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(pH)||[];if(!r)return t;const i=n.replace(r,"");let s=TLe.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const ALe=/\b([a-z-]*)\(.*?\)/gu,BL={...Lg,getAnimatableNone:t=>{const e=t.match(ALe);return e?e.map(ELe).join(" "):t}},PLe={...Zz,color:sl,backgroundColor:sl,outlineColor:sl,fill:sl,stroke:sl,borderColor:sl,borderTopColor:sl,borderRightColor:sl,borderBottomColor:sl,borderLeftColor:sl,filter:BL,WebkitFilter:BL},gH=t=>PLe[t];function ihe(t,e){let n=gH(t);return n!==BL&&(n=Lg),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const OLe=new Set(["auto","none","0"]);function ILe(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!OLe.has(s)&&vk(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=ihe(n,i)}const HQ=t=>t===vw||t===ir,UQ=(t,e)=>parseFloat(t.split(", ")[e]),VQ=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return UQ(i[1],e);{const s=r.match(/^matrix\((.+)\)$/u);return s?UQ(s[1],t):0}},DLe=new Set(["x","y","z"]),MLe=bw.filter(t=>!DLe.has(t));function NLe(t){const e=[];return MLe.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const _x={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:VQ(4,13),y:VQ(5,14)};_x.translateX=_x.x;_x.translateY=_x.y;const Gy=new Set;let FL=!1,$L=!1;function she(){if($L){const t=Array.from(Gy).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=NLe(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}$L=!1,FL=!1,Gy.forEach(t=>t.complete()),Gy.clear()}function ohe(){Gy.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&($L=!0)})}function RLe(){ohe(),she()}class yH{constructor(e,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gy.add(this),FL||(FL=!0,Ns.read(ohe),Ns.resolveKeyframes(she))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){const o=i?.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Gy.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gy.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ahe=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),LLe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BLe(t){const e=LLe.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function lhe(t,e,n=1){const[r,i]=BLe(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return ahe(o)?parseFloat(o):o}return Jz(i)?lhe(i,e,n+1):i}const che=t=>e=>e.test(t),FLe={test:t=>t==="auto",parse:t=>t},uhe=[vw,ir,qf,Zm,ERe,TRe,FLe],WQ=t=>uhe.find(che(t));class hhe extends yH{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Jz(c))){const u=lhe(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!zue.has(r)||e.length!==2)return;const[i,s]=e,o=WQ(i),a=WQ(s);if(o!==a)if(HQ(o)&&HQ(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)pLe(e[i])&&r.push(i);r.length&&ILe(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_x[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=_x[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEac
vendor: 11,944 bytes, line 349
349h(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const qQ=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Lg.test(t)||t==="0")&&!t.startsWith("url("));function $Le(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function jLe(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=qQ(i,e),a=qQ(s,e);return!o||!a?!1:$Le(t)||(n==="spring"||oH(n))&&r}const zLe=t=>t!==null;function JP(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(zLe),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const HLe=40;class dhe{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Gf.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>HLe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&RLe(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Gf.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!jLe(e,r,i,s))if(o)this.options.duration=0;else{l&&l(JP(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const io=(t,e,n)=>t+(e-t)*n;function ZD(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ULe({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ZD(l,a,t+1/3),s=ZD(l,a,t),o=ZD(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function YA(t,e){return n=>n>0?e:t}const eM=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},VLe=[LL,Cy,S2],WLe=t=>VLe.find(e=>e.test(t));function GQ(t){const e=WLe(t);if(!e)return!1;let n=e.parse(t);return e===S2&&(n=ULe(n)),n}const KQ=(t,e)=>{const n=GQ(t),r=GQ(e);if(!n||!r)return YA(t,e);const i={...n};return s=>(i.red=eM(n.red,r.red,s),i.green=eM(n.green,r.green,s),i.blue=eM(n.blue,r.blue,s),i.alpha=io(n.alpha,r.alpha,s),Cy.transform(i))},qLe=(t,e)=>n=>e(t(n)),$C=(...t)=>t.reduce(qLe),jL=new Set(["none","hidden"]);function GLe(t,e){return jL.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function KLe(t,e){return n=>io(t,e,n)}function bH(t){return typeof t=="number"?KLe:typeof t=="string"?Jz(t)?YA:sl.test(t)?KQ:XLe:Array.isArray(t)?fhe:typeof t=="object"?sl.test(t)?KQ:YLe:YA}function fhe(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>bH(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function YLe(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=bH(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function QLe(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const XLe=(t,e)=>{const n=Lg.createTransformer(e),r=vk(t),i=vk(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?jL.has(t)&&!i.values.length||jL.has(e)&&!r.values.length?GLe(t,e):$C(fhe(QLe(r,i),i.values),n):YA(t,e)};function phe(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?io(t,e,n):bH(t)(t,e)}const JLe=5;function mhe(t,e,n){const r=Math.max(e-JLe,0);return Hue(n-t(r),e-r)}const fo={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},YQ=.001;function ZLe({duration:t=fo.duration,bounce:e=fo.bounce,velocity:n=fo.velocity,mass:r=fo.mass}){let i,s,o=1-e;o=q0(fo.minDamping,fo.maxDamping,o),t=q0(fo.minDuration,fo.maxDuration,N0(t)),o<1?(i=c=>{const u=c*o,h=u*t,d=u-n,p=zL(c,o),g=Math.exp(-h);return YQ-d/p*g},s=c=>{const h=c*o*t,d=h*n+n,p=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-h),y=zL(Math.pow(c,2),o);return(-i(c)+YQ>0?-1:1)*((d-p)*g)/y}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-.001+u*h},s=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=tBe(i,s,a);if(t=M0(t),isNaN(l))return{stiffness:fo.stiffness,damping:fo.damping,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:t}}}const eBe=12;function tBe(t,e,n){let r=n;for(let i=1;i<eBe;i++)r=r-t(r)/e(r);return r}function zL(t,e){return t*Math.sqrt(1-e*e)}const nBe=["duration","bounce"],rBe=["stiffness","damping","mass"];function QQ(t,e){return e.some(n=>t[n]!==void 0)}function iBe(t){let e={velocity:fo.velocity,stiffness:fo.stiffness,damping:fo.damping,mass:fo.mass,isResolvedFromDuration:!1,...t};if(!QQ(t,rBe)&&QQ(t,nBe))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*q0(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:fo.mass,stiffness:i,damping:s}}else{const n=ZLe(t);e={...e,...n,mass:fo.mass},e.isResolvedFromDuration=!0}return e}function ghe(t=fo.visualDuration,e=fo.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:p}=iBe({...n,velocity:-N0(n.velocity||0)}),g=d||0,y=c/(2*Math.sqrt(l*u)),b=o-s,w=N0(Math.sqrt(l/u)),S=Math.abs(b)<5;r||(r=S?fo.restSpeed.granular:fo.restSpeed.default),i||(i=S?fo.restDelta.granular:fo.restDelta.default);let T;if(y<1){const E=zL(w,y);T=O=>{const P=Math.exp(-y*w*O);return o-P*((g+y*w*b)/E*Math.sin(E*O)+b*Math.cos(E*O))}}else if(y===1)T=E=>o-Math.exp(-w*E)*(b+(g+w*b)*E);else{const E=w*Math.sqrt(y*y-1);T=O=>{const P=Math.exp(-y*w*O),$=Math.min(E*O,300);return o-P*((g+y*w*b)*Math.sinh($)+E*b*Math.cosh($))/E}}const D={calculatedDuration:p&&h||null,next:E=>{const O=T(E);if(p)a.done=E>=h;else{let P=0;y<1&&(P=E===0?M0(g):mhe(T,E,O));const $=Math.abs(P)<=r,W=Math.abs(o-O)<=i;a.done=$&&W}return a.value=a.done?o:O,a},toString:()=>{const E=Math.min(Nue(D),ML),O=Rue(P=>D.next(E*P).value,E,30);return E+"ms "+O}};return D}function XQ({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},p=$=>a!==void 0&&$<a||l!==void 0&&$>l,g=$=>a===void 0?l:l===void 0||Math.abs(a-$)<Math.abs(l-$)?a:l;let y=n*e;const b=h+y,w=o===void 0?b:o(b);w!==b&&(y=w-h);const S=$=>-y*Math.exp(-$/r),T=$=>w+S($),D=$=>{const W=S($),H=T($);d.done=Math.abs(W)<=c,d.value=d.done?w:H};let E,O;const P=$=>{p(d.value)&&(E=$,O=ghe({keyframes:[d.value,g(d.value)],velocity:mhe(T,$,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:u}))};return P(0),{calculatedDuration:null,next:$=>{let W=!1;return!O&&E===void 0&&(W=!0,D($),P($)),E!==void 0&&$>=E?O.next($-E):(!W&&D($),d)}}}const sBe=FC(.42,0,1,1),oBe=FC(0,0,.58,1),yhe=FC(.42,0,.58,1),aBe=t=>Array.isArray(t)&&typeof t[0]!="number",lBe={linear:Au,easeIn:sBe,easeInOut:yhe,easeOut:oBe,circIn:fH,circInOut:Xue,circOut:Que,backIn:dH,backInOut:Kue,backOut:Gue,anticipate:Yue},JQ=t=>{if(aH(t)){pue(t.length===4);const[e,n,r,i]=t;return FC(e,n,r,i)}else if(typeof t=="string")return lBe[t];return t};function cBe(t,e,n){const r=[],i=n||phe,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||Au:e;a=$C(l,a)}r.push(a)}return r}function uBe(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(pue(s===e.length),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=cBe(e,r,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=kx(t[h],t[h+1],u);return a[h](d)};return n?u=>c(q0(t[0],t[s-1],u)):c}function hBe(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=kx(0,e,r);t.push(io(n,1,i))}}function dBe(t){const e=[0];return hBe(e,t.length-1),e}function fBe(t,e){return t.map(n=>n*e)}function pBe(t,e){return t.map(()=>e||yhe).splice(0,t.length-1)}function QA({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=aBe(r)?r.map(JQ):JQ(r),s={done:!1,value:e[0]},o=fBe(n&&n.length===e.length?n:dBe(e),t),a=uBe(o,e,{ease:Array.isArray(i)?i:pBe(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}const mBe=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ns.update(e,!0),stop:()=>Rg(e),now:()=>Fa.isProcessing?Fa.timestamp:Gf.now()}},gBe={decay:XQ,inertia:XQ,tween:QA,keyframes:QA,spring:ghe},yBe=t=>t/100;class vH extends dhe{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=i?.KeyframeResolver||yH,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=oH(n)?n:gBe[n]||QA;let l,c;a!==QA&&typeof e[0]!="number"&&(l=$C(yBe,phe(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});s==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Nue(u));const{calculatedDuration:h}=u,d=h+i,p=d*(r+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:$}=this.options;return{done:!0,value:$[$.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=r;if(this.startTime===null)return s.next(0);const{delay:d,repeat:p,repeatType:g,repeatDelay:y,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const w=this.currentTime-d*(this.speed>=0?1:-1),S=this.speed>=0?w<0:w>u;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,D=s;if(p){const $=Math.min(this.currentTime,u)/h;let W=Math.floor($),H=$%1;!H&&$>=1&&(H=1),H===1&&W--,W=Math.min(W,p+1),!!(W%2)&&(g==="reverse"?(H=1-H,y&&(H-=y/h)):g==="mirror"&&(D=o)),T=q0(0,1,H)*h}const E=S?{done:!1,value:l[0]}:D.next(T);a&&(E.value=a(E.value));let{done:O}=E;!S&&c!==null&&(O=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return P&&i!==void 0&&(E.value=JP(l,this.options,i)),b&&b(E.value),P&&this.finish(),E}get duration(){const{resolved:e}=this;return e?N0(e.calculatedDuration):0}
vendor: 54,577 bytes, line 349
349get time(){return N0(this.currentTime)}set time(e){e=M0(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=N0(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=mBe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const bBe=new Set(["opacity","clipPath","filter","transform"]);function vBe(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=Bue(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const xBe=Wz(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),XA=10,wBe=2e4;function SBe(t){return oH(t.type)||t.type==="spring"||!Lue(t.ease)}function kBe(t,e){const n=new vH({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let s=0;for(;!r.done&&s<wBe;)r=n.sample(s),i.push(r.value),s+=XA;return{times:void 0,keyframes:i,duration:s-XA,ease:"linear"}}const bhe={anticipate:Yue,backInOut:Kue,circInOut:Xue};function CBe(t){return t in bhe}class ZQ extends dhe{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new hhe(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&KA()&&CBe(s)&&(s=bhe[s]),SBe(this.options)){const{onComplete:h,onUpdate:d,motionValue:p,element:g,...y}=this.options,b=kBe(e,y);e=b.keyframes,e.length===1&&(e[1]=e[0]),r=b.duration,i=b.times,s=b.ease,o="keyframes"}const u=vBe(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:s});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(LQ(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;a.set(JP(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return N0(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return N0(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=M0(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Au;const{animation:r}=n;LQ(r,e)}return Au}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:h,element:d,...p}=this.options,g=new vH({...p,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),y=M0(this.time);c.setWithVelocity(g.sample(y-XA).value,g.sample(y).value,XA)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return xBe()&&r&&bBe.has(r)&&!l&&!c&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const _Be={type:"spring",stiffness:500,damping:25,restSpeed:10},TBe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),EBe={type:"keyframes",duration:.8},ABe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PBe=(t,{keyframes:e})=>e.length>2?EBe:Ab.has(t)?t.startsWith("scale")?TBe(e[1]):_Be:ABe;function OBe({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const xH=(t,e,n,r={},i,s)=>o=>{const a=sH(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-M0(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};OBe(a)||(u={...u,...PBe(t,u)}),u.duration&&(u.duration=M0(u.duration)),u.repeatDelay&&(u.repeatDelay=M0(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!s&&e.get()!==void 0){const d=JP(u.keyframes,a);if(d!==void 0)return Ns.update(()=>{u.onUpdate(d),u.onComplete()}),new YRe([])}return!s&&ZQ.supports(u)?new ZQ(u):new vH(u)};function IBe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function vhe(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const d=t.getValue(h,(s=t.latestValues[h])!==null&&s!==void 0?s:null),p=l[h];if(p===void 0||u&&IBe(u,h))continue;const g={delay:n,...sH(o||{},h)};let y=!1;if(window.MotionHandoffAnimation){const w=Uue(t);if(w){const S=window.MotionHandoffAnimation(w,h,Ns);S!==null&&(g.startTime=S,y=!0)}}RL(t,h),d.start(xH(h,d,p,t.shouldReduceMotion&&zue.has(h)?{type:!1}:g,t,y));const b=d.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{Ns.update(()=>{a&&cLe(t,a)})}),c}function HL(t,e,n={}){var r;const i=XP(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(vhe(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=s;return DBe(t,e,u+c,h,d,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function DBe(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(MBe).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(HL(c,e,{...s,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function MBe(t,e){return t.sortNodePosition(e)}function NBe(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>HL(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=HL(t,e,n);else{const i=typeof e=="function"?XP(t,e,n.custom):e;r=Promise.all(vhe(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const RBe=Gz.length;function xhe(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?xhe(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<RBe;n++){const r=Gz[n],i=t.props[r];(gk(i)||i===!1)&&(e[r]=i)}return e}const LBe=[...qz].reverse(),BBe=qz.length;function FBe(t){return e=>Promise.all(e.map(({animation:n,options:r})=>NBe(t,n,r)))}function $Be(t){let e=FBe(t),n=eX(),r=!0;const i=l=>(c,u)=>{var h;const d=XP(t,u,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:g,...y}=d;c={...c,...y,...g}}return c};function s(l){e=l(t)}function o(l){const{props:c}=t,u=xhe(t.parent)||{},h=[],d=new Set;let p={},g=1/0;for(let b=0;b<BBe;b++){const w=LBe[b],S=n[w],T=c[w]!==void 0?c[w]:u[w],D=gk(T),E=w===l?S.isActive:null;E===!1&&(g=b);let O=T===u[w]&&T!==c[w]&&D;if(O&&r&&t.manuallyAnimateOnMount&&(O=!1),S.protectedKeys={...p},!S.isActive&&E===null||!T&&!S.prevProp||YP(T)||typeof T=="boolean")continue;const P=jBe(S.prevProp,T);let $=P||w===l&&S.isActive&&!O&&D||b>g&&D,W=!1;const H=Array.isArray(T)?T:[T];let K=H.reduce(i(w),{});E===!1&&(K={});const{prevResolvedValues:Z={}}=S,oe={...Z,...K},te=z=>{$=!0,d.has(z)&&(W=!0,d.delete(z)),S.needsAnimating[z]=!0;const U=t.getValue(z);U&&(U.liveStyle=!1)};for(const z in oe){const U=K[z],G=Z[z];if(p.hasOwnProperty(z))continue;let B=!1;DL(U)&&DL(G)?B=!Mue(U,G):B=U!==G,B?U!=null?te(z):d.add(z):U!==void 0&&d.has(z)?te(z):S.protectedKeys[z]=!0}S.prevProp=T,S.prevResolvedValues=K,S.isActive&&(p={...p,...K}),r&&t.blockInitialAnimation&&($=!1),$&&(!(O&&P)||W)&&h.push(...H.map(z=>({animation:z,options:{type:w}})))}if(d.size){const b={};d.forEach(w=>{const S=t.getBaseTarget(w),T=t.getValue(w);T&&(T.liveStyle=!0),b[w]=S??null}),h.push({animation:b})}let y=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(h):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const h=o(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=eX(),r=!0}}}function jBe(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Mue(e,t):!1}function K1(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eX(){return{animate:K1(!0),whileInView:K1(),whileHover:K1(),whileTap:K1(),whileDrag:K1(),whileFocus:K1(),exit:K1()}}class o1{constructor(e){this.isMounted=!1,this.node=e}update(){}}class zBe extends o1{constructor(e){super(e),e.animationState||(e.animationState=$Be(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();YP(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let HBe=0;class UBe extends o1{constructor(){super(...arguments),this.id=HBe++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const VBe={animation:{Feature:zBe},exit:{Feature:UBe}};function xk(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function jC(t){return{point:{x:t.pageX,y:t.pageY}}}const WBe=t=>e=>lH(e)&&t(e,jC(e));function x4(t,e,n,r){return xk(t,e,WBe(n),r)}const tX=(t,e)=>Math.abs(t-e);function qBe(t,e){const n=tX(t.x,e.x),r=tX(t.y,e.y);return Math.sqrt(n**2+r**2)}class whe{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=nM(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=qBe(h.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:g}=h,{timestamp:y}=Fa;this.history.push({...g,timestamp:y});const{onStart:b,onMove:w}=this.handlers;d||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=tM(d,this.transformPagePoint),Ns.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=nM(h.type==="pointercancel"?this.lastMoveEventInfo:tM(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,b),g&&g(h,b)},!lH(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=jC(e),a=tM(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=Fa;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,nM(a,this.history)),this.removeListeners=$C(x4(this.contextWindow,"pointermove",this.handlePointerMove),x4(this.contextWindow,"pointerup",this.handlePointerUp),x4(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Rg(this.updatePoint)}}function tM(t,e){return e?{point:e(t.point)}:t}function nX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nM({point:t},e){return{point:t,delta:nX(t,She(e)),offset:nX(t,GBe(e)),velocity:KBe(e,.1)}}function GBe(t){return t[0]}function She(t){return t[t.length-1]}function KBe(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=She(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>M0(e)));)n--;if(!r)return{x:0,y:0};const s=N0(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const khe=1e-4,YBe=1-khe,QBe=1+khe,Che=.01,XBe=0-Che,JBe=0+Che;function Du(t){return t.max-t.min}function ZBe(t,e,n){return Math.abs(t-e)<=n}function rX(t,e,n,r=.5){t.origin=r,t.originPoint=io(e.min,e.max,t.origin),t.scale=Du(n)/Du(e),t.translate=io(n.min,n.max,t.origin)-t.originPoint,(t.scale>=YBe&&t.scale<=QBe||isNaN(t.scale))&&(t.scale=1),(t.translate>=XBe&&t.translate<=JBe||isNaN(t.translate))&&(t.translate=0)}function w4(t,e,n,r){rX(t.x,e.x,n.x,r?r.originX:void 0),rX(t.y,e.y,n.y,r?r.originY:void 0)}function iX(t,e,n){t.min=n.min+e.min,t.max=t.min+Du(e)}function eFe(t,e,n){iX(t.x,e.x,n.x),iX(t.y,e.y,n.y)}function sX(t,e,n){t.min=e.min-n.min,t.max=t.min+Du(e)}function S4(t,e,n){sX(t.x,e.x,n.x),sX(t.y,e.y,n.y)}function tFe(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?io(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?io(n,t,r.max):Math.min(t,n)),t}function oX(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function nFe(t,{top:e,left:n,bottom:r,right:i}){return{x:oX(t.x,n,i),y:oX(t.y,e,r)}}function aX(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function rFe(t,e){return{x:aX(t.x,e.x),y:aX(t.y,e.y)}}function iFe(t,e){let n=.5;const r=Du(t),i=Du(e);return i>r?n=kx(e.min,e.max-r,t.min):r>i&&(n=kx(t.min,t.max-i,e.min)),q0(0,1,n)}function sFe(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const UL=.35;function oFe(t=UL){return t===!1?t=0:t===!0&&(t=UL),{x:lX(t,"left","right"),y:lX(t,"top","bottom")}}function lX(t,e,n){return{min:cX(t,e),max:cX(t,n)}}function cX(t,e){return typeof t=="number"?t:t[e]||0}const uX=()=>({translate:0,scale:1,origin:0,originPoint:0}),k2=()=>({x:uX(),y:uX()}),hX=()=>({min:0,max:0}),yo=()=>({x:hX(),y:hX()});function nh(t){return[t("x"),t("y")]}function _he({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function aFe({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function lFe(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rM(t){return t===void 0||t===1}function VL({scale:t,scaleX:e,scaleY:n}){return!rM(t)||!rM(e)||!rM(n)}function ay(t){return VL(t)||The(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function The(t){return dX(t.x)||dX(t.y)}function dX(t){return t&&t!=="0%"}function JA(t,e,n){const r=t-n,i=e*r;return n+i}function fX(t,e,n,r,i){return i!==void 0&&(t=JA(t,i,r)),JA(t,n,r)+e}function WL(t,e=0,n=1,r,i){t.min=fX(t.min,e,n,r,i),t.max=fX(t.max,e,n,r,i)}function Ehe(t,{x:e,y:n}){WL(t.x,e.translate,e.scale,e.originPoint),WL(t.y,n.translate,n.scale,n.originPoint)}const pX=.999999999999,mX=1.0000000000001;function cFe(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&_2(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Ehe(t,o)),r&&ay(s.latestValues)&&_2(t,s.latestValues))}e.x<mX&&e.x>pX&&(e.x=1),e.y<mX&&e.y>pX&&(e.y=1)}function C2(t,e){t.min=t.min+e,t.max=t.max+e}function gX(t,e,n,r,i=.5){const s=io(t.min,t.max,i);WL(t,e,n,s,r)}function _2(t,e){gX(t.x,e.x,e.scaleX,e.scale,e.originX),gX(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ahe(t,e){return _he(lFe(t.getBoundingClientRect(),e))}function uFe(t,e,n){const r=Ahe(t,n),{scroll:i}=e;return i&&(C2(r.x,i.offset.x),C2(r.y,i.offset.y)),r}const Phe=({current:t})=>t?t.ownerDocument.defaultView:null,hFe=new WeakMap;class dFe{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yo(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jC(u).point)},s=(u,h)=>{const{drag:d,dragPropagation:p,onDragStart:g}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iLe(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nh(b=>{let w=this.getAxisMotionValue(b).get()||0;if(qf.test(w)){const{projection:S}=this.visualElement;if(S&&S.layout){const T=S.layout.layoutBox[b];T&&(w=Du(T)*(parseFloat(w)/100))}}this.originPoint[b]=w}),g&&Ns.postRender(()=>g(u,h)),RL(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(u,h)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:b}=h;if(p&&this.currentDirection===null){this.currentDirection=fFe(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),y&&y(u,h)},a=(u,h)=>this.stop(u,h),l=()=>nh(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new whe(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Phe(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Ns.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!m5(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=tFe(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&w2(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=nFe(i.layoutBox,n):this.constraints=!1,this.elastic=oFe(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nh(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=sFe(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!w2(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=uFe(r,i.root,this.visualElement.getTransformPagePoint());let o=rFe(i.layout.layoutBox,s);if(n){const a=n(aFe(o));this.hasMutatedConstraints=!!a,a&&(o=_he(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=nh(u=>{if(!m5(u,n,this.currentDirection))return;let h=l&&l[u]||{};o&&(h={min:0,max:0});const d=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?e[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return RL(this.visualElement,e),r.start(xH(e,r,0,n,this.visualElement,!1))}stopAnimation(){nh(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nh(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){nh(n=>{const{drag:r}=this.getProps();if(!m5(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-io(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!w2(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nh(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=iFe({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nh(o=>{if(!m5(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(io(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;hFe.set(this.visualElement,this);const e=this.visualElement.current,n=x4(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();w2(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ns.read(r);const o=xk(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(nh(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=UL,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function m5(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function fFe(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class pFe extends o1{constructor(e){super(e),this.removeGroupControls=Au,this.removeListeners=Au,this.controls=new dFe(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Au}unmount(){this.removeGroupControls(),this.removeListeners()}}const yX=t=>(e,n)=>{t&&Ns.postRender(()=>t(e,n))};class mFe extends o1{constructor(){super(...arguments),this.removePointerDownListener=Au}onPointerDown(e){this.session=new whe(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Phe(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:yX(e),onStart:yX(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Ns.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=x4(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const S6={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bX(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const NS={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ir.test(t))t=parseFloat(t);else return t;const n=bX(t,e.target.x),r=bX(t,e.target.y);return`${n}% ${r}%`}},gFe={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Lg.parse(t);if(i.length>5)return r;const s=Lg.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=io(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class yFe extends _.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;BRe(bFe),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),S6.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Ns.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Yz.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ohe(t){const[e,n]=Uz(),r=_.useContext(jz);return x.jsx(yFe,{...t,layoutGroup:r,switchLayoutGroup:_.useContext(xue),isPresent:e,safeToRemove:n})}const bFe={borderRadius:{...NS,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:NS,borderTopRightRadius:NS,borderBottomLeftRadius:NS,borderBottomRightRadius:NS,boxShadow:gFe};function vFe(t,e,n){const r=ul(t)?t:bk(t);return r.start(xH("",r,e,n)),r.animation}function xFe(t){return t instanceof SVGElement&&t.tagName!=="svg"}const wFe=(t,e)=>t.depth-e.depth;class SFe{constructor(){this.children=[],this.isDirty=!1}add(e){cH(this.children,e),this.isDirty=!0}remove(e){uH(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(wFe),this.isDirty=!1,this.children.forEach(e)}}function kFe(t,e){const n=Gf.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(Rg(r),t(s-e))};return Ns.read(r,!0),()=>Rg(r)}const Ihe=["TopLeft","TopRight","BottomLeft","BottomRight"],CFe=Ihe.length,vX=t=>typeof t=="string"?parseFloat(t):t,xX=t=>typeof t=="number"||ir.test(t);function _Fe(t,e,n,r,i,s){i?(t.opacity=io(0,n.opacity!==void 0?n.opacity:1,TFe(r)),t.opacityExit=io(e.opacity!==void 0?e.opacity:1,0,EFe(r))):s&&(t.opacity=io(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<CFe;o++){const a=`border${Ihe[o]}Radius`;let l=wX(e,a),c=wX(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||xX(l)===xX(c)?(t[a]=Math.max(io(vX(l),vX(c),r),0),(qf.test(c)||qf.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=io(e.rotate||0,n.rotate||0,r))}function wX(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const TFe=Dhe(0,.5,Que),EFe=Dhe(.5,.95,Au);function Dhe(t,e,n){return r=>r<t?0:r>e?1:n(kx(t,e,r))}function SX(t,e){t.min=e.min,t.max=e.max}function Yu(t,e){SX(t.x,e.x),SX(t.y,e.y)}function kX(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function CX(t,e,n,r,i){return t-=e,t=JA(t,1/n,r),i!==void 0&&(t=JA(t,1/i,r)),t}function AFe(t,e=0,n=1,r=.5,i,s=t,o=t){if(qf.test(e)&&(e=parseFloat(e),e=io(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=io(s.min,s.max,r);t===s&&(a-=e),t.min=CX(t.min,e,n,a,i),t.max=CX(t.max,e,n,a,i)}function _X(t,e,[n,r,i],s,o){AFe(t,e[n],e[r],e[i],e.scale,s,o)}const PFe=["x","scaleX","originX"],OFe=["y","scaleY","originY"];function TX(t,e,n,r){_X(t.x,e,PFe,n?n.x:void 0,r?r.x:void 0),_X(t.y,e,OFe,n?n.y:void 0,r?r.y:void 0)}function EX(t){return t.translate===0&&t.scale===1}function Mhe(t){return EX(t.x)&&EX(t.y)}function AX(t,e){return t.min===e.min&&t.max===e.max}function IFe(t,e){return AX(t.x,e.x)&&AX(t.y,e.y)}function PX(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Nhe(t,e){return PX(t.x,e.x)&&PX(t.y,e.y)}function OX(t){return Du(t.x)/Du(t.y)}function IX(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class DFe{constructor(){this.members=[]}add(e){cH(this.members,e),e.scheduleRender()}remove(e){if(uH(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MFe(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=n?.z||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:p,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),h&&(r+=`rotateX(${h}deg) `),d&&(r+=`rotateY(${d}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const ly={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},O3=typeof window<"u"&&window.MotionDebug!==void 0,iM=["","X","Y","Z"],NFe={visibility:"hidden"},DX=1e3;let RFe=0;function sM(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Rhe(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Uue(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Ns,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Rhe(r)}function Lhe({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=RFe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,O3&&(ly.totalNodes=ly.resolvedTargetDeltas=ly.recalculatedProjection=0),this.nodes.forEach(FFe),this.nodes.forEach(UFe),this.nodes.forEach(VFe),this.nodes.forEach($Fe),O3&&window.MotionDebug.record(ly)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new SFe)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new hH),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=xFe(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=kFe(d,250),S6.hasAnimatedSinceResize&&(S6.hasAnimatedSinceResize=!1,this.nodes.forEach(NX))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||YFe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:w}=u.getProps(),S=!this.targetLayout||!Nhe(this.targetLayout,g)||p,T=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||d&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,T);const D={...sH(y,"layout"),onPlay:b,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else d||NX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rg(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WFe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rhe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(MX);return}this.isUpdating||this.nodes.forEach(zFe),this.isUpdating=!1,this.nodes.forEach(HFe),this.nodes.forEach(LFe),this.nodes.forEach(BFe),this.clearAllSnapshots();const a=Gf.now();Fa.delta=q0(0,1e3/60,a-Fa.timestamp),Fa.timestamp=a,Fa.isProcessing=!0,QD.update.process(Fa),QD.preRender.process(Fa),QD.render.process(Fa),Fa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yz.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jFe),this.sharedNodes.forEach(qFe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ns.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ns.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=yo(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Mhe(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||ay(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),QFe(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return yo();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(XFe))){const{scroll:u}=this.root;u&&(C2(l.x,u.offset.x),C2(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=yo();if(Yu(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&Yu(l,o),C2(l.x,h.offset.x),C2(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=yo();Yu(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&_2(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ay(u.latestValues)&&_2(l,u.latestValues)}return ay(this.latestValues)&&_2(l,this.latestValues),l}removeTransform(o){const a=yo();Yu(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ay(c.latestValues))continue;VL(c.latestValues)&&c.updateSnapshot();const u=yo(),h=c.measurePageBox();Yu(u,h),TX(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ay(this.latestValues)&&TX(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=Fa.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yo(),this.relativeTargetOrigin=yo(),S4(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Yu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=yo(),this.targetWithTransforms=yo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),eFe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yu(this.target,this.layout.layoutBox),Ehe(this.target,this.targetDelta)):Yu(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yo(),this.relativeTargetOrigin=yo(),S4(this.relativeTargetOrigin,this.target,p.target),Yu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}O3&&ly.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||VL(this.parent.latestValues)||The(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Fa.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;Yu(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;cFe(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=yo());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kX(this.prevProjectionDelta.x,this.projectionDelta.x),kX(this.prevProjectionDelta.y,this.projectionDelta.y)),w4(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!IX(this.projectionDelta.x,this.prevProjectionDelta.x)||!IX(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),O3&&ly.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=k2(),this.projectionDelta=k2(),this.projectionDeltaWithTransform=k2()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=k2();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=yo(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=p!==g,b=this.getStack(),w=!b||b.members.length<=1,S=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(KFe));this.animationProgress=0;let T;this.mixTargetDelta=D=>{const E=D/1e3;RX(h.x,o.x,E),RX(h.y,o.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(S4(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GFe(this.relativeTarget,this.relativeTargetOrigin,d,E),T&&IFe(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=yo()),Yu(T,this.relativeTarget)),y&&(this.animationValues=u,_Fe(u,c,this.latestValues,E,S,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rg(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ns.update(()=>{S6.hasAnimatedSinceResize=!0,this.currentAnimation=vFe(0,DX,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(DX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Bhe(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||yo();const h=Du(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=Du(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Yu(a,l),_2(a,u),w4(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new DFe),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&sM("z",o,c,this.animationValues);for(let u=0;u<iM.length;u++)sM(`rotate${iM[u]}`,o,c,this.animationValues),sM(`skew${iM[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return NFe;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=x6(o?.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=x6(o?.pointerEvents)||""),this.hasProjected&&!ay(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=MFe(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:p,y:g}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in GA){if(d[y]===void 0)continue;const{correct:b,applyTo:w}=GA[y],S=c.transform==="none"?d[y]:b(d[y],h);if(w){const T=w.length;for(let D=0;D<T;D++)c[w[D]]=S}else c[y]=S}return this.options.layoutId&&(c.pointerEvents=h===this?x6(o?.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(MX),this.root.sharedNodes.clear()}}}function LFe(t){t.updateLayout()}function BFe(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?nh(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],p=Du(d);d.min=r[h].min,d.max=d.min+p}):Bhe(s,n.layoutBox,r)&&nh(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],p=Du(r[h]);d.max=d.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+p)});const a=k2();w4(a,r,n.layoutBox);const l=k2();o?w4(l,t.applyTransform(i,!0),n.measuredBox):w4(l,r,n.layoutBox);const c=!Mhe(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:p}=h;if(d&&p){const g=yo();S4(g,n.layoutBox,d.layoutBox);const y=yo();S4(y,r,p.layoutBox),Nhe(g,y)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function FFe(t){O3&&ly.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function $Fe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function jFe(t){t.clearSnapshot()}function MX(t){t.clearMeasurements()}function zFe(t){t.isLayoutDirty=!1}function HFe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function NX(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function UFe(t){t.resolveTargetDelta()}function VFe(t){t.calcProjection()}
vendor: 6,651 bytes, line 349
349function WFe(t){t.resetSkewAndRotation()}function qFe(t){t.removeLeadSnapshot()}function RX(t,e,n){t.translate=io(e.translate,0,n),t.scale=io(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function LX(t,e,n,r){t.min=io(e.min,n.min,r),t.max=io(e.max,n.max,r)}function GFe(t,e,n,r){LX(t.x,e.x,n.x,r),LX(t.y,e.y,n.y,r)}function KFe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const YFe={duration:.45,ease:[.4,0,.1,1]},BX=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),FX=BX("applewebkit/")&&!BX("chrome/")?Math.round:Au;function $X(t){t.min=FX(t.min),t.max=FX(t.max)}function QFe(t){$X(t.x),$X(t.y)}function Bhe(t,e,n){return t==="position"||t==="preserve-aspect"&&!ZBe(OX(e),OX(n),.2)}function XFe(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const JFe=Lhe({attachResizeListener:(t,e)=>xk(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oM={current:void 0},Fhe=Lhe({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oM.current){const t=new JFe({});t.mount(window),t.setOptions({layoutScroll:!0}),oM.current=t}return oM.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ZFe={pan:{Feature:mFe},drag:{Feature:pFe,ProjectionNode:Fhe,MeasureLayout:Ohe}};function jX(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Ns.postRender(()=>s(e,jC(e)))}class e$e extends o1{mount(){const{current:e}=this.node;e&&(this.unmount=ZRe(e,n=>(jX(this.node,n,"Start"),r=>jX(this.node,r,"End"))))}unmount(){}}class t$e extends o1{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$C(xk(this.node.current,"focus",()=>this.onFocus()),xk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zX(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Ns.postRender(()=>s(e,jC(e)))}class n$e extends o1{mount(){const{current:e}=this.node;e&&(this.unmount=rLe(e,n=>(zX(this.node,n,"Start"),(r,{success:i})=>zX(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qL=new WeakMap,aM=new WeakMap,r$e=t=>{const e=qL.get(t.target);e&&e(t)},i$e=t=>{t.forEach(r$e)};function s$e({root:t,...e}){const n=t||document;aM.has(n)||aM.set(n,{});const r=aM.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(i$e,{root:t,...e})),r[i]}function o$e(t,e,n){const r=s$e(e);return qL.set(t,n),r.observe(t),()=>{qL.delete(t),r.unobserve(t)}}const a$e={some:0,all:1};class l$e extends o1{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:a$e[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return o$e(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(c$e(e,n))&&this.startObserver()}unmount(){}}function c$e({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const u$e={inView:{Feature:l$e},tap:{Feature:n$e},focus:{Feature:t$e},hover:{Feature:e$e}},h$e={layout:{ProjectionNode:Fhe,MeasureLayout:Ohe}},GL={current:null},$he={current:!1};function d$e(){if($he.current=!0,!!Vz)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>GL.current=t.matches;t.addListener(e),e()}else GL.current=!1}const f$e=[...uhe,sl,Lg],p$e=t=>f$e.find(che(t)),HX=new WeakMap;function m$e(t,e,n){for(const r in e){const i=e[r],s=n[r];if(ul(i))t.addValue(r,i);else if(ul(s))t.addValue(r,bk(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,bk(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const UX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class g$e{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yH,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Gf.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Ns.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=QP(n),this.isVariantNode=bue(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const g=d[p];l[p]!==void 0&&ul(g)&&g.set(l[p],!1)}}mount(e){this.current=e,HX.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 7,946 bytes, line 349
349h((n,r)=>this.bindToMotionValue(r,n)),$he.current||d$e(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:GL.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){HX.delete(this.current),this.projection&&this.projection.unmount(),Rg(this.notifyUpdate),Rg(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Ab.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ns.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Cx){const n=Cx[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yo()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<UX.length;r++){const i=UX[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=m$e(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=bk(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ahe(i)||Jue(i))?i=parseFloat(i):!p$e(i)&&Lg.test(n)&&(i=ihe(e,n)),this.setBaseTarget(e,ul(i)?i.get():i)),ul(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Xz(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!ul(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new hH),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class jhe extends g$e{constructor(){super(...arguments),this.KeyframeResolver=hhe}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ul(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function y$e(t){return window.getComputedStyle(t)}class b$e extends jhe{constructor(){super(...arguments),this.type="html",this.renderInstance=Eue}readValueFromInstance(e,n){if(Ab.has(n)){const r=gH(n);return r&&r.default||0}else{const r=y$e(e),i=(Cue(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ahe(e,n)}build(e,n,r){eH(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return iH(e,n,r)}}class v$e extends jhe{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yo}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ab.has(n)){const r=gH(n);return r&&r.default||0}return n=Aue.has(n)?n:Kz(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return Iue(e,n,r)}build(e,n,r){tH(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){Pue(e,n,r,i)}mount(e){this.isSVGTag=rH(e.tagName),super.mount(e)}}const x$e=(t,e)=>Qz(t)?new v$e(e):new b$e(e,{allowProjection:t!==_.Fragment}),w$e=qRe({...VBe,...u$e,...ZFe,...h$e},x$e),Rh=aRe(w$e),S$e=(t,e)=>t.find(n=>n.id===e);function VX(t,e){const n=zhe(t,e),r=n?t[n].findIndex(i=>i.id===e):-1;return{position:n,index:r}}function zhe(t,e){for(const[n,r]of Object.entries(t))if(S$e(r,e))return n}function k$e(t){const e=t.includes("right"),n=t.includes("left");let r="center";return e&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function C$e(t){const n=t==="top"||t==="bottom"?"0 auto":void 0,r=t.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=t.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,s=t.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=t.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:s,left:o}}var _$e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
349ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,T$e=nue(function(t){return _$e.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),E$e=T$e,A$e=function(e){return e!=="theme"},WX=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?E$e:A$e},qX=function(e,n,r){var i;if(n){var s=n.shouldForwardProp;i=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},P$e=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Mz(n,r,i),aue(function(){return Nz(n,r,i)}),null},O$e=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,s,o;n!==void 0&&(s=n.label,o=n.target);var a=qX(e,n,r),l=a||WX(i),c=!l("as");return function(){var u=arguments,h=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var d=u[0];h.push(d[0]);for(var p=u.length,g=1;g<p;g++)h.push(u[g],d[g])}var y=Lz(function(b,w,S){var T=c&&b.as||i,D="",E=[],O=b;if(b.theme==null){O={};for(var P in b)O[P]=b[P];O.theme=_.useContext(Sx)}typeof b.className=="string"?D=iue(w.registered,E,b.className):b.className!=null&&(D=b.className+" ");var $=qP(h.concat(E),w.registered,O);D+=w.key+"-"+$.name,o!==void 0&&(D+=" "+o);var W=c&&a===void 0?WX(T):l,H={};for(var K in b)c&&K==="as"||W(K)&&(H[K]=b[K]);return H.className=D,S&&(H.ref=S),_.createElement(_.Fragment,null,_.createElement(P$e,{cache:w,serialized:$,isStringTag:typeof T=="string"}),_.createElement(T,H))});return y.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=e.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=h,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return"."+o}}),y.withComponent=function(b,w){var S=t(b,Dd({},n,w,{shouldForwardProp:qX(y,w,!0)}));return S.apply(void 0,h)},y}},I$e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],KL=O$e.bind(null);I$e.forEach(function(t){KL[t]=KL(t)});const D$e=new Set([...J8e,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),M$e=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function N$e(t){return(M$e.has(t)||!D$e.has(t))&&t[0]!=="_"}const R$e=EAe(KL),L$e=({baseStyle:t})=>e=>
349{const{theme:n,css:r,__css:i,sx:s,...o}=e,[a]=LAe(o,e7e),l=Cc(t,e),c=fAe({},i,l,mw(a),s),u=Nce(c)(e.theme);return r?[u,r]:u};function lM(t,e){const{baseStyle:n,...r}=e??{};r.shouldForwardProp||(r.shouldForwardProp=N$e);const i=L$e({baseStyle:n}),s=R$e(t,r)(i);return _.forwardRef(function(l,c){const{children:u,...h}=l,{colorMode:d,forced:p}=lm(),g=p?d:void 0;return _.createElement(s,{ref:c,"data-theme":g,...h},u)})}function B$e(){const t=new Map;return new Proxy(lM,{apply(e,n,r){return lM(...r)},get(e,n){return t.has(n)||t.set(n,lM(n)),t.get(n)}})}const ct=B$e(),F$e={initial:t=>{const{position:e}=t,n=["top","bottom"].includes(e)?"y":"x";let r=["top-right","bottom-right"].includes(e)?1:-1;return e==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Hhe=_.memo(t=>{const{id:e,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:s=!1,position:o="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=F$e,toastSpacing:u="0.5rem"}=t,[h,d]=_.useState(a),p=JNe();Ng(()=>{p||r?.()},[p]),Ng(()=>{d(a)},[a]);const g=()=>d(null),y=()=>d(a),b=()=>{p&&i()};_.useEffect(()=>{p&&s&&i()},[p,s,i]),r8e(b,h);const w=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),S=_.useMemo(()=>k$e(o),[o]);return x.jsx(Rh.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:o},style:S,children:x.jsx(ct.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:w,children:Cc(n,{id:e,onClose:b})})})});Hhe.displayName="ToastComponent";function Ot(t){return _.forwardRef(t)}var cM,GX;function $$e(){if(GX)return cM;GX=1;var t=typeof Element<"u",e=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,o){if(s===o)return!0;if(s&&o&&typeof s=="object"&&typeof o=="object"){if(s.constructor!==o.constructor)return!1;var a,l,c;if(Array.isArray(s)){if(a=s.length,a!=o.length)return!1;for(l=a;l--!==0;)if(!i(s[l],o[l]))return!1;return!0}var u;if(e&&s instanceof Map&&o instanceof Map){if(s.size!==o.size)return!1;for(u=s.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=s.entries();!(l=u.next()).done;)if(!i(l.value[1],o.get(l.value[0])))return!1;return!0}if(n&&s instanceof Set&&o instanceof Set){if(s.size!==o.size)return!1;for(u=s.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(o)){if(a=s.length,a!=o.length)return!1;for(l=a;l--!==0;)if(s[l]!==o[l])return!1;return!0}if(s.constructor===RegExp)return s.source===o.source&&s.flags===o.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof o.valueOf=="function")return s.valueOf()===o.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof o.toString=="function")return s.toString()===o.toString();if(c=Object.keys(s),a=c.length,a!==Object.keys(o).length)return!1;for(l=a;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&s instanceof Element)return!1;for(l=a;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&s.$$typeof)&&!i(s[c[l]],o[c[l]]))return!1;return!0}return s!==s&&o!==o}return cM=function(o,a){try{return i(o,a)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},cM}var j$e=$$e();const z$e=zc(j$e);function a1(){const t=_.useContext(Sx);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}function Uhe(){const t=lm(),e=a1();return{...t,theme:e}}function H$e(t,e,n){if(e==null)return e;const r=i=>t.__cssMap?.[i]?.value;return r(e)??r(n)??n}function U$e(t,e,n){const r=Array.isArray(e)?e:[e],i=Array.isArray(n)?n:[n];return s=>{const o=i.filter(Boolean),a=r.map((l,c)=>{const u=`${t}.${l}`;return H$e(s,u,o[c]??l)});return Array.isArray(e)?a:a[0]}}function Vhe(t,e={}){const{styleConfig:n,...r}=e,{theme:i,colorMode:s}
349=Uhe(),o=t?vce(i,`components.${t}`):void 0,a=n||o,l=uh({theme:i,colorMode:s},a?.defaultProps??{},mw(gw(r,["children"])),(u,h)=>u?void 0:h),c=_.useRef({});if(a){const h=h7e(a)(l);z$e(c.current,h)||(c.current=h)}return c.current}function Hc(t,e={}){return Vhe(t,e)}function da(t,e={}){return Vhe(t,e)}const KX={path:x.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[x.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),x.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),x.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Lh=Ot((t,e)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:o,className:a,__css:l,...c}=t,u=un("chakra-icon",a),h=Hc("Icon",t),d={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...h},p={ref:e,focusable:s,className:u,__css:d},g=r??KX.viewBox;if(n&&typeof n!="string")return x.jsx(ct.svg,{as:n,...p,...c});const y=o??KX.path;return x.jsx(ct.svg,{verticalAlign:"middle",viewBox:g,...p,...c,children:y})});Lh.displayName="Icon";function V$e(t){return x.jsx(Lh,{viewBox:"0 0 24 24",...t,children:x.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function W$e(t){return x.jsx(Lh,{viewBox:"0 0 24 24",...t,children:x.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function YX(t){return x.jsx(Lh,{viewBox:"0 0 24 24",...t,children:x.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const q$e=rp({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Pb=Ot((t,e)=>{const n=Hc("Spinner",t),{label:r="Loading...",thickness:i="2px",speed:s="0.45s",emptyColor:o="transparent",className:a,...l}=ji(t),c=un("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${q$e} ${s} linear infinite`,...n};return x.jsx(ct.div,{ref:e,__css:u,className:c,...l,children:r&&x.jsx(ct.span,{srOnly:!0,children:r})})});Pb.displayName="Spinner";const[G$e,wH]=Oi({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[K$e,SH]=Oi({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Whe={info:{icon:W$e,colorScheme:"blue"},warning:{icon:YX,colorScheme:"orange"},success:{icon:V$e,colorScheme:"green"},error:{icon:YX,colorScheme:"red"},loading:{icon:Pb,colorScheme:"blue"}};function Y$e(t){return Whe[t].colorScheme}function Q$e(t){return Whe[t].icon}const kH=Ot(function(e,n){const{status:r="info",addRole:i=!0,...s}=ji(e),o=e.colorScheme??Y$e(r),a=da("Alert",{...e,colorScheme:o}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return x.jsx(G$e,{value:{status:r},children:x.jsx(K$e,{value:a,children:x.jsx(ct.div,{"data-status":r,role:i?"alert":void 0,ref:n,...s,className:un("chakra-alert",e.className),__css:l})})})});kH.displayName="Alert";function CH(t){const{status:e}=wH(),n=Q$e(e),r=SH(),i=e==="loading"?r.spinner:r.icon;return x.jsx(ct.span,{display:"inherit","data-status":e,...t,className:un("chakra-alert__icon",t.className),__css:i,children:t.children||x.jsx(n,{h:"100%",w:"100%"})})}CH.displayName="AlertIcon";const qhe=Ot(function(e,n){const r=SH(),{status:i}=wH();return x.jsx(ct.div,{ref:n,"data-status":i,...e,className:un("chakra-alert__title",e.className),__css:r.title})});qhe.displayName="AlertTitle";const _H=Ot(function(e,n){const{status:r}=wH(),i=SH(),s={display:"inline",...i.description};return x.jsx(ct.div,{ref:n,"data-status":r,...e,className:un("chakra-alert__desc",e.className),__css:s})});_H.displayName="AlertDescription";function X$e(t){return x.jsx(Lh,{focusable:"false","aria-hidden":!0,...t,children:x.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
34911.823a.25.25,0,0,1,0,.354Z"})})}const zC=Ot(function(e,n){const r=Hc("CloseButton",e),{children:i,isDisabled:s,__css:o,...a}=ji(e),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return x.jsx(ct.button,{type:"button","aria-label":"Close",ref:n,disabled:s,__css:{...l,...r,...o},...a,children:i||x.jsx(X$e,{width:"1em",height:"1em"})})});zC.displayName="CloseButton";const J$e=t=>{const{status:e,variant:n="solid",id:r,title:i,isClosable:s,onClose:o,description:a,colorScheme:l,icon:c}=t,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return x.jsxs(kH,{addRole:!1,status:e,variant:n,id:u?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[x.jsx(CH,{children:c}),x.jsxs(ct.div,{flex:"1",maxWidth:"100%",children:[i&&x.jsx(qhe,{id:u?.title,children:i}),a&&x.jsx(_H,{id:u?.description,display:"block",children:a})]}),s&&x.jsx(zC,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function Ghe(t={}){const{render:e,toastComponent:n=J$e}=t;return i=>typeof e=="function"?e({...i,...t}):x.jsx(n,{...i,...t})}const Z$e={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ef=eje(Z$e);function eje(t){let e=t;const n=new Set,r=i=>{e=i(e),n.forEach(s=>s())};return{getState:()=>e,subscribe:i=>(n.add(i),()=>{r(()=>t),n.delete(i)}),removeToast:(i,s)=>{r(o=>({...o,[s]:o[s].filter(a=>a.id!=i)}))},notify:(i,s)=>{const o=tje(i,s),{position:a,id:l}=o;return r(c=>{const h=a.includes("top")?[o,...c[a]??[]]:[...c[a]??[],o];return{...c,[a]:h}}),l},update:(i,s)=>{i&&r(o=>{const a={...o},{position:l,index:c}=VX(a,i);return l&&c!==-1&&(a[l][c]={...a[l][c],...s,message:Ghe(s)}),a})},closeAll:({positions:i}={})=>{r(s=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=s[c].map(u=>({...u,requestClose:!0})),l),{...s}))},close:i=>{r(s=>{const o=zhe(s,i);return o?{...s,[o]:s[o].map(a=>a.id==i?{...a,requestClose:!0}:a)}:s})},isActive:i=>!!VX(Ef.getState(),i).position}}let QX=0;function tje(t,e={}){QX+=1;const n=e.id??QX,r=e.position??"bottom";return{id:n,message:t,position:r,duration:e.duration,onCloseComplete:e.onCloseComplete,onRequestRemove:()=>Ef.removeToast(String(n),r),status:e.status,requestClose:!1,containerStyle:e.containerStyle}}var G0=hce();const nje=zc(G0),rje=uce({__proto__:null,default:nje},[G0]),[Khe,ije]=Oi({strict:!1,name:"PortalContext"}),TH="chakra-portal",sje=".chakra-portal",oje=t=>x.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),aje=t=>{const{appendToParentPortal:e,children:n}=t,[r,i]=_.useState(null),s=_.useRef(null),[,o]=_.useState({});_.useEffect(()=>o({}),[]);const a=ije(),l=WNe();I0(()=>{if(!r)return;const u=r.ownerDocument,h=e?a??u.body:u.body;if(!h)return;s.current=u.createElement("div"),s.current.className=TH,h.appendChild(s.current),o({});const d=s.current;return()=>{h.contains(d)&&h.removeChild(d)}},[r]);const c=l?.zIndex?x.jsx(oje,{zIndex:l?.zIndex,children:n}):n;return s.current?G0.createPortal(x.jsx(Khe,{value:s.current,children:c}),s.current):x.jsx("span",{ref:u=>{u&&i(u)}})},lje=t=>{const{children:e,containerRef:n,appendToParentPortal:r}=t,i=n.current,s=i??(typeof window<"u"?document.body:void 0),o=_.useMemo(()=>{const l=i?.ownerDocument.createElement("div");return l&&(l.className=TH),l},[i]),[,a]=_.useState({});return I0(()=>a({}),[]),I0(()=>{if(!(!o||!s))return s.appendChild(o),()=>{s.removeChild(o)}},[o,s]),s&&o?G0.createPortal(x.jsx(Khe,{value:r?o:null,children:e}),o):null};function xw(t){const e={appendToParentPortal:!0,...t},{containerRef:n,...r}=e;return n?x.jsx(lje,{containerRef:n,...r}):x.jsx(aje,{...r})}xw.className=TH;xw.selector=sje;xw.displayName="Portal";const[cje,uje]=Oi({name:"ToastOptionsContext",strict:!1}),hje=t=>{const e=_.useSyncExternalStore(Ef.subscribe,Ef.getState,Ef.getState),{motionVariants:n,component:r=Hhe,portalProps:i,animatePresenceProps:s}=t,a=Object.keys(e).map(l=>{const c=e[l];return x.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:C$e(l),children:x.jsx(s1,{...s,initial:!1,children:c.map(u=>x.jsx(r,{motionVariants:n,...u}
349,u.id))})},l)});return x.jsx(xw,{...i,children:a})},dje=t=>function({children:n,theme:r=t,toastOptions:i,...s}){return x.jsxs(GNe,{theme:r,...s,children:[x.jsx(cje,{value:i?.defaultOptions,children:n}),x.jsx(hje,{...i})]})},fje=dje(Yce);function XX(t){return t.sort((e,n)=>{const r=e.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const pje=t=>typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE;function JX(t,e,n){let r=t+1;return n&&r>=e&&(r=0),r}function ZX(t,e,n){let r=t-1;return n&&r<0&&(r=e),r}const uM=typeof window<"u"?_.useLayoutEffect:_.useEffect,eJ=t=>t;var mje=Object.defineProperty,gje=(t,e,n)=>e in t?mje(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uo=(t,e,n)=>(gje(t,typeof e!="symbol"?e+"":e,n),n);class yje{constructor(){uo(this,"descendants",new Map),uo(this,"register",e=>{if(e!=null)return pje(e)?this.registerNode(e):n=>{this.registerNode(n,e)}}),uo(this,"unregister",e=>{this.descendants.delete(e);const n=XX(Array.from(this.descendants.keys()));this.assignIndex(n)}),uo(this,"destroy",()=>{this.descendants.clear()}),uo(this,"assignIndex",e=>
349{this.descendants.forEach(n=>{const r=e.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),uo(this,"count",()=>this.descendants.size),uo(this,"enabledCount",()=>this.enabledValues().length),uo(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),uo(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),uo(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),uo(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),uo(this,"first",()=>this.item(0)),uo(this,"firstEnabled",()=>this.enabledItem(0)),uo(this,"last",()=>this.item(this.descendants.size-1)),uo(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),uo(this,"indexOf",e=>e?this.descendants.get(e)?.index??-1:-1),uo(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(e))),uo(this,"next",(e,n=!0)=>{const r=JX(e,this.count(),n);return this.item(r)}),uo(this,"nextEnabled",(e,n=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),s=JX(i,this.enabledCount(),n);return this.enabledItem(s)}),uo(this,"prev",(e,n=!0)=>{const r=ZX(e,this.count()-1,n);return this.item(r)}),uo(this,"prevEnabled",(e,n=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),s=ZX(i,this.enabledCount()-1,n);return this.enabledItem(s)}),uo(this,"registerNode",(e,n)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),i=XX(r);n?.disabled&&(n.disabled=!!n.disabled);const s={node:e,index:-1,...n};this.descendants.set(e,s),this.assignIndex(i)})}}function Yhe(){const[t,e]=Oi({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[t,e,()=>{const i=_.useRef(new yje);return uM(()=>()=>i.current.destroy()),i.current},i=>{const s=e(),[o,a]=_.useState(-1),l=_.useRef(null);uM(()=>()=>{l.current&&s.unregister(l.current)},[]),uM(()=>{if(!l.current)return;const u=Number(l.current.dataset.index);o!=u&&!Number.isNaN(u)&&a(u)});const c=eJ(i?s.register(i):s.register);return{descendants:s,index:o,enabledIndex:s.enabledIndexOf(l.current),register:Ss(c,l)}}]}const[bje,ZP]=Oi({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[vje,EH]=Oi({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[xje,jqt,wje,Sje]=Yhe();function kje(t){const{onChange:e,defaultIndex:n,index:r,allowMultiple:i,allowToggle:s,...o}=t;Tje(t),Eje(t);const a=wje(),[l,c]=_.useState(-1);_.useEffect(()=>()=>{c(-1)},[]);const[u,h]=Sz({value:r,defaultValue(){return i?n??[]:n??-1},onChange:e});return{index:u,setIndex:h,htmlProps:o,getAccordionItemProps:p=>{let g=!1;return p!==null&&(g=Array.isArray(u)?u.includes(p):u===p),{isOpen:g,onChange:b=>{if(p!==null)if(i&&Array.isArray(u)){const w=b?u.concat(p):u.filter(S=>S!==p);h(w)}else b?h(p):s&&h(-1)}}},focusedIndex:l,setFocusedIndex:c,descendants:a}}const[Cje,AH]=Oi({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function _je(t){const{isDisabled:e,isFocusable:n,id:r,...i}=t,{getAccordionItemProps:s,setFocusedIndex:o}=AH(),a=_.useRef(null),l=_.useId(),c=r??l,u=`accordion-button-${c}`,h=`accordion-panel-${c}`;Aje(t);const{register:d,index:p,descendants:g}=Sje({disabled:e&&!n}),{isOpen:y,onChange:b}=s(p===-1?null:p);Pje({isOpen:y,isDisabled:e});const w=()=>{b?.(!0)},S=()=>{b?.(!1)},T=_.useCallback(()=>{b?.(!y),o(p)},[p,o,y,b]),D=_.useCallback($=>{const H={ArrowDown:()=>{g.nextEnabled(p)?.node.focus()},ArrowUp:()=>{g.prevEnabled(p)?.node.focus()},Home:()=>{g.firstEnabled()?.node.focus()},End:()=>{g.lastEnabled()?.node.focus()}}[$.key];H&&($.preventDefault(),H($))},[g,p]),E=_.useCallback(()=>{o(p)},[o,p]),O=_.useCallback(function(W={},H=null){return{...W,type:"button",ref:Ss(d,a,H),id:u,disabled:!!e,"aria-expanded":!!y,"aria-controls":h,onClick:Fn(W.onClick,T),onFocus:Fn(W.onFocus,E),onKeyDown:Fn(W.onKeyDown,D)}},[u,e,y,T,E,D,h,d]),P=_.useCallback(function(W={},H=null){return{...W,ref:H,role:"region",id:h,"aria-labelledby":u,hidden:!y}},[u,y,h]);return{isOpen:y,isDisabled:e,isFocusable:n,onOpen:w,onClose:S,getButtonProps:O,getPanelProps:P,htmlProps:i}}function Tje(t){const e=t.index||t.defaultIndex,n=e!=null&&!Array.isArray(e)&&t.allowMultiple;DC({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof e},`})}function Eje(t){DC({condition:!!(t.allowMultiple&&t.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function Aje(t){DC({condition:!!(t.isFocusable&&!t.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. 350 `})}function Pje(t){DC({condition:t.isOpen&&!!t.isDisabled,message:"Cannot open a disabled accordion item"})}const PH=Ot(function({children:e,reduceMotion:n,...r},i){const s=da("Accordion",r),o=ji(r),{htmlProps:a,descendants:l,...c}=kje(o),u=_.useMemo(()=>({...c,reduceMotion:!!n}),[c,n]);return x.jsx(xje,{value:l,children:x.jsx(Cje,{value:u,children:x.jsx(bje,{value:s,children:x.jsx(ct.div,{ref:i,...a,className:un("chakra-accordion",r.className),__css:s.root,children:e})})})})});PH.displayName="Accordion";const W2=Ot(function(e,n){const{getButtonProps:r}=EH(),i=r(e,n),o={display:"flex",alignItems:"center",width:"100%",outline:0,...ZP().button};return x.jsx(ct.button,{...i,className:un("chakra-accordion__button",e.className),__css:o})});W2.displayName="AccordionButton";function k4(t){const{isOpen:e,isDisabled:n}=EH(),{reduceMotion:r}=AH(),i=un("chakra-accordion__icon",t.className),s=ZP(),o={opacity:n?.4:1,transform:e?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};
350return x.jsx(Lh,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...t,children:x.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}k4.displayName="AccordionIcon";const C4=Ot(function(e,n){const{children:r,className:i}=e,{htmlProps:s,...o}=_je(e),a=ZP(),l={...a.container,overflowAnchor:"none"},c=_.useMemo(()=>o,[o]);return x.jsx(vje,{value:c,children:x.jsx(ct.div,{ref:n,...s,className:un("chakra-accordion__item",i),__css:l,children:typeof r=="function"?r({isExpanded:!!o.isOpen,isDisabled:!!o.isDisabled}):r})})});C4.displayName="AccordionItem";const _y={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},RS={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function YL(t){switch(t?.direction??"right"){case"right":return RS.slideRight;case"left":return RS.slideLeft;case"bottom":return RS.slideDown;case"top":return RS.slideUp;default:return RS.slideRight}}const Ky={enter:{duration:.2,ease:_y.easeOut},exit:{duration:.1,ease:_y.easeIn}},Sd={enter:(t,e)=>({...t,delay:typeof e=="number"?e:e?.enter}),exit:(t,e)=>({...t,delay:typeof e=="number"?e:e?.exit})},Oje=t=>t!=null&&parseInt(t.toString(),10)>0,tJ={exit:{height:{duration:.2,ease:_y.ease},opacity:{duration:.3,ease:_y.ease}},enter:{height:{duration:.3,ease:_y.ease},opacity:{duration:.4,ease:_y.ease}}},Ije={exit:({animateOpacity:t,startingHeight:e,transition:n,transitionEnd:r,delay:i})=>({...t&&{opacity:Oje(e)?1:0},height:e,transitionEnd:r?.exit,transition:n?.exit??Sd.exit(tJ.exit,i)}),enter:({animateOpacity:t,endingHeight:e,transition:n,transitionEnd:r,delay:i})=>({...t&&{opacity:1},height:e,transitionEnd:r?.enter,transition:n?.enter??Sd.enter(tJ.enter,i)})},Qhe=_.forwardRef((t,e)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:s=0,endingHeight:o="auto",style:a,className:l,transition:c,transitionEnd:u,animatePresenceProps:h,...d}=t,[p,g]=_.useState(!1);_.useEffect(()=>{const T=setTimeout(()=>{g(!0)});return()=>clearTimeout(T)},[]),DC({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const y=parseFloat(s.toString())>0,b={startingHeight:s,endingHeight:o,animateOpacity:i,transition:p?c:{enter:{duration:0}},transitionEnd:{enter:u?.enter,exit:r?u?.exit:{...u?.exit,display:y?"block":"none"}}},w=r?n:!0,S=n||r?"enter":"exit";return x.jsx(s1,{...h,initial:!1,custom:b,children:w&&x.jsx(Rh.div,{ref:e,...d,className:un("chakra-collapse",l),style:{overflow:"hidden",display:"block",...a},custom:b,variants:Ije,initial:r?"exit":!1,animate:S,exit:"exit"})})});Qhe.displayName="Collapse";const _4=Ot(function(e,n){const{className:r,motionProps:i,...s}=e,{reduceMotion:o}=AH(),{getPanelProps:a,isOpen:l}=EH(),c=a(s,n),u=un("chakra-accordion__panel",r),h=ZP();o||delete c.hidden;const d=x.jsx(ct.div,{...c,__css:h.panel,className:u});return o?d:x.jsx(Qhe,{in:l,...i,children:d})});_4.displayName="AccordionPanel";const[Dje,Mje]=Oi({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function Nje(t){const e=t.trim().split(" "),n=e[0]??"",r=e.length>1?e[e.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function Xhe(t){const{name:e,getInitials:n,...r}=t,i=Mje();return x.jsx(ct.div,{role:"img","aria-label":e,...r,__css:i.label,children:e?n?.(e):null})}Xhe.displayName="AvatarName";const Jhe=t=>x.jsxs(ct.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...t,children:[x.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),x.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function Zhe(t){const{loading:e,src:n,srcSet:r,onLoad:i,onError:s,crossOrigin:o,sizes:a,ignoreFallback:l}=t,[c,u]=_.useState("pending");_.useEffect(()=>{u(n?"loading":"pending")},[n]);const h=_.useRef(null),d=_.useCallback(()=>
350{if(!n)return;p();const g=new Image;g.src=n,o&&(g.crossOrigin=o),r&&(g.srcset=r),a&&(g.sizes=a),e&&(g.loading=e),g.onload=y=>{p(),u("loaded"),i?.(y)},g.onerror=y=>{p(),u("failed"),s?.(y)},h.current=g},[n,o,r,a,i,s,e]),p=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return I0(()=>{if(!l)return c==="loading"&&d(),()=>{p()}},[c,d,l]),l?"loaded":c}const Rje=(t,e)=>t!=="loaded"&&e==="beforeLoadOrError"||t==="failed"&&e==="onError";function ede(t){const{src:e,srcSet:n,onError:r,onLoad:i,getInitials:s,name:o,borderRadius:a,loading:l,iconLabel:c,icon:u=x.jsx(Jhe,{}),ignoreFallback:h,referrerPolicy:d,crossOrigin:p}=t,y=Zhe({src:e,onError:r,crossOrigin:p,ignoreFallback:h})==="loaded";return!e||!y?o?x.jsx(Xhe,{className:"chakra-avatar__initials",getInitials:s,name:o}):_.cloneElement(u,{role:"img","aria-label":c}):x.jsx(ct.img,{src:e,srcSet:n,alt:o??c,onLoad:i,referrerPolicy:d,crossOrigin:p??void 0,className:"chakra-avatar__img",loading:l,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:a}})}ede.displayName="AvatarImage";const Lje={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},kd=Ot((t,e)=>{const n=da("Avatar",t),[r,i]=_.useState(!1),{src:s,srcSet:o,name:a,showBorder:l,borderRadius:c="full",onError:u,onLoad:h,getInitials:d=Nje,icon:p=x.jsx(Jhe,{}),iconLabel:g=" avatar",loading:y,children:b,borderColor:w,ignoreFallback:S,crossOrigin:T,referrerPolicy:D,...E}=ji(t),O={borderRadius:c,borderWidth:l?"2px":void 0,...Lje,...n.container};return w&&(O.borderColor=w),x.jsx(ct.span,{ref:e,...E,className:un("chakra-avatar",t.className),"data-loaded":En(r),__css:O,children:x.jsxs(Dje,{value:n,children:[x.jsx(ede,{src:s,srcSet:o,loading:y,onLoad:Fn(h,()=>{i(!0)}),onError:u,getInitials:d,name:a,borderRadius:c,icon:p,iconLabel:g,ignoreFallback:S,crossOrigin:T,referrerPolicy:D}),b]})})});kd.displayName="Avatar";const Sn=ct("div");Sn.displayName="Box";const tde=Ot(function(e,n){const{size:r,centerContent:i=!0,...s}=e,o=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return x.jsx(Sn,{ref:n,boxSize:r,__css:{...o,flexShrink:0,flexGrow:0},...s})});tde.displayName="Square";const[Bje,Fje]=Oi({strict:!1,name:"ButtonGroupContext"});function I3(t){const{children:e,className:n,...r}=t,i=_.isValidElement(e)?_.cloneElement(e,{"aria-hidden":!0,focusable:!1}):e,s=un("chakra-button__icon",n);return x.jsx(ct.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:s,children:i})}I3.displayName="ButtonIcon";function QL(t){const{label:e,placement:n,spacing:r="0.5rem",children:i=x.jsx(Pb,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:o,...a}=t,l=un("chakra-button__spinner",s),c=n==="start"?"marginEnd":"marginStart",u=_.useMemo(()=>({display:"flex",alignItems:"center",position:e?"relative":"absolute",[c]:e?r:0,fontSize:"1em",lineHeight:"normal",...o}),[o,e,c,r]);return x.jsx(ct.div,{className:l,...a,__css:u,children:i})}QL.displayName="ButtonSpinner";function $je(t){const[e,n]=_.useState(!t);return{ref:_.useCallback(s=>{s&&n(s.tagName==="BUTTON")},[]),type:e?"button":void 0}}const Yr=Ot((t,e)=>{const n=Fje(),r=Hc("Button",{...n,...t}),{isDisabled:i=n?.isDisabled,isLoading:s,isActive:o,children:a,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:h="0.5rem",type:d,spinner:p,spinnerPlacement:g="start",className:y,as:b,shouldWrapChildren:w,...S}=ji(t),T=_.useMemo(()=>{const P={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:D,type:E}=$je(b),O={rightIcon:c,leftIcon:l,iconSpacing:h,children:a,shouldWrapChildren:w};return x.jsxs(ct.button,{disabled:i||s,ref:t8e(e,D),as:b,type:d??E,"data-active":En(o),"data-loading":En(s),__css:T,className:un("chakra-button",y),...S,children:[s&&g==="start"&&x.jsx(QL,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:h,children:p}),s?u||x.jsx(ct.span,{opacity:0,children:x.jsx(nJ,{...O})}):x.jsx(nJ,{...O}),s&&g==="end"&&x.jsx(QL,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:h,children:p})]})});Yr.displayName="Button";function nJ(t){const{leftIcon:e,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:s}=t;return s?x.jsxs("span",{style:{display:"contents"},children:[e&&x.jsx(I3,{marginEnd:i,children:e}),r,n&&x.jsx(I3,{marginStart:i,children:n})]}):x.jsxs(x.Fragment,{children:[e&&x.jsx(I3,{marginEnd:i,children:e}),r,n&&x.jsx(I3,{marginStart:i,children:n})]})}const jje={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},zje={horizontal:t=>({"& > *:not(style) ~ *:not(style)":{marginStart:t}}),vertical:t=>({"& > *:not(style) ~ *:not(style)":{marginTop:t}})},cm=Ot(function(e,n){const{size:r,colorScheme:i,variant:s,className:o,spacing:a="0.5rem",isAttached:l,isDisabled:c,orientation:u="horizontal",...h}=e,d=un("chakra-button__group",o),p=_.useMemo(()=>({size:r,colorScheme:i,variant:s,isDisabled:c}),[r,i,s,c]);let g={display:"inline-flex",...l?jje[u]:zje[u](a)};const y=u==="vertical";return x.jsx(Bje,{value:p,children:x.jsx(ct.div,{ref:n,role:"group",__css:g,className:d,"data-attached":l?"":void 0,"data-orientation":u,flexDir:y?"column":void 0,...h})})});cm.displayName="ButtonGroup";const Br=Ot((t,e)=>{const{icon:n,children:r,isRound:i,"aria-label":s,...o}=t,a=n||r,l=_.isValidElement(a)?_.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return x.jsx(Yr,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:e,"aria-label":s,...o,children:l})});Br.displayName="IconButton";const[Hje,OH]=HNe("Card"),l1=Ot(function(e,n){const{className:r,children:i,direction:s="column",justify:o,align:a,...l}=ji(e),c=da("Card",e);return x.jsx(ct.div,{ref:n,className:un("chakra-card",r),__css:{display:"flex",flexDirection:s,justifyContent:o,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...l,children:x.jsx(Hje,{value:c,children:i})})}),c1=Ot(function(e,n){const{className:r,...i}=e,s=OH();return x.jsx(ct.div,{ref:n,className:un("chakra-card__body",r),__css:s.body,...i})}),IH=Ot(function(e,n){const{className:r,justify:i,...s}=e,o=OH();return x.jsx(ct.div,{ref:n,className:un("chakra-card__footer",r),__css:{display:"flex",justifyContent:i,...o.footer},...s})}),nde=Ot(function(e,n){const{className:r,...i}=e,s=OH();return x.jsx(ct.div,{ref:n,className:un("chakra-card__header",r),__css:s.header,...i})}),eO=ct("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});eO.displayName="Center";const Uje={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Ot(function(e,n){const{axis:r="both",...i}=e;return x.jsx(ct.div,{ref:n,__css:Uje[r],...i,position:"absolute"})});const[zqt,Vje]=Oi({name:"CheckboxGroupContext",strict:!1});function Wje(t){return x.jsx(ct.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...t,children:x.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function qje(t){return x.jsx(ct.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...t,children:x.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Gje(t){const{isIndeterminate:e,isChecked:n,...r}=t,i=e?qje:Wje;return n||e?x.jsx(ct.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:x.jsx(i,{...r})}):null}var Kje=()=>typeof document<"u",rJ=!1,HC=null,sb=!1,XL=!1,JL=new Set;
350function DH(t,e){JL.forEach(n=>n(t,e))}var Yje=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Qje(t){return!(t.metaKey||!Yje&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function iJ(t){sb=!0,Qje(t)&&(HC="keyboard",DH("keyboard",t))}function xv(t){if(HC="pointer",t.type==="mousedown"||t.type==="pointerdown"){sb=!0;const e=t.composedPath?t.composedPath()[0]:t.target;let n=!1;try{n=e.matches(":focus-visible")}catch{}if(n)return;DH("pointer",t)}}function Xje(t){return t.mozInputSource===0&&t.isTrusted?!0:t.detail===0&&!t.pointerType}function Jje(t){Xje(t)&&(sb=!0,HC="virtual")}function Zje(t){t.target===window||t.target===document||t.target instanceof Element&&t.target.hasAttribute("tabindex")||(!sb&&!XL&&(HC="virtual",DH("virtual",t)),sb=!1,XL=!1)}function eze(){sb=!1,XL=!0}function sJ(){return HC!=="pointer"}function tze(){if(!Kje()||rJ)return;const{focus:t}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){sb=!0,t.apply(this,n)},document.addEventListener("keydown",iJ,!0),document.addEventListener("keyup",iJ,!0),document.addEventListener("click",Jje,!0),window.addEventListener("focus",Zje,!0),window.addEventListener("blur",eze,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",xv,!0),document.addEventListener("pointermove",xv,!0),document.addEventListener("pointerup",xv,!0)):(document.addEventListener("mousedown",xv,!0),document.addEventListener("mousemove",xv,!0),document.addEventListener("mouseup",xv,!0)),rJ=!0}function rde(t){tze(),t(sJ());const e=()=>t(sJ());return JL.add(e),()=>{JL.delete(e)}}const[nze,ide]=Oi({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[rze,Ob]=Oi({strict:!1,name:"FormControlContext"});function ize(t){const{id:e,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:s,...o}=t,a=_.useId(),l=e||`field-${a}`,c=`${l}-label`,u=`${l}-feedback`,h=`${l}-helptext`,[d,p]=_.useState(!1),[g,y]=_.useState(!1),[b,w]=_.useState(!1),S=_.useCallback((P={},$=null)=>({id:h,...P,ref:Ss($,W=>{W&&y(!0)})}),[h]),T=_.useCallback((P={},$=null)=>({...P,ref:$,"data-focus":En(b),"data-disabled":En(i),"data-invalid":En(r),"data-readonly":En(s),id:P.id!==void 0?P.id:c,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,i,b,r,s,c]),D=_.useCallback((P={},$=null)=>({id:u,...P,ref:Ss($,W=>{W&&p(!0)}),"aria-live":"polite"}),[u]),E=_.useCallback((P={},$=null)=>({...P,...o,ref:$,role:"group","data-focus":En(b),"data-disabled":En(i),"data-invalid":En(r),"data-readonly":En(s)}),[o,i,b,r,s]),O=_.useCallback((P={},$=null)=>({...P,ref:$,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!s,isDisabled:!!i,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:d,setHasFeedbackText:p,hasHelpText:g,setHasHelpText:y,id:l,labelId:c,feedbackId:u,helpTextId:h,htmlProps:o,getHelpTextProps:S,getErrorMessageProps:D,getRootProps:E,getLabelProps:T,getRequiredIndicatorProps:O}}const as=Ot(function(e,n){const r=da("Form",e),i=ji(e),{getRootProps:s,htmlProps:o,...a}=ize(i),l=un("chakra-form-control",e.className);return x.jsx(rze,{value:a,children:x.jsx(nze,{value:r,children:x.jsx(ct.div,{...s({},n),className:l,__css:r.container})})})});as.displayName="FormControl";const pc=Ot(function(e,n){const r=Ob(),i=ide(),s=un("chakra-form__helper-text",e.className);return x.jsx(ct.div,{...r?.getHelpTextProps(e,n),__css:i.helperText,className:s})});pc.displayName="FormHelperText";function MH(t){const{isDisabled:e,isInvalid:n,isReadOnly:r,isRequired:i,...s}=sde(t);return{...s,disabled:e,readOnly:r,required:i,"aria-invalid":yh(n),"aria-required":yh(i),"aria-readonly":yh(r)}}function sde(t){const e=Ob(),{id:n,disabled:r,readOnly:i,required:s,isRequired:o,isInvalid:a,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:h,...d}=t,p=t["aria-describedby"]?[t["aria-describedby"]]:[];return e?.hasFeedbackText&&e?.isInvalid&&p.push(e.feedbackId),e?.hasHelpText&&p.push(e.helpTextId),{...d,"aria-describedby":p.join(" ")||void 0,id:n??e?.id,isDisabled:r??c??e?.isDisabled,isReadOnly:i??l??e?.isReadOnly,isRequired:s??o??e?.
350isRequired,isInvalid:a??e?.isInvalid,onFocus:Fn(e?.onFocus,u),onBlur:Fn(e?.onBlur,h)}}const ode={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function sze(t={}){const e=sde(t),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:s,id:o,onBlur:a,onFocus:l,"aria-describedby":c}=e,{defaultChecked:u,isChecked:h,isFocusable:d,onChange:p,isIndeterminate:g,name:y,value:b,tabIndex:w=void 0,"aria-label":S,"aria-labelledby":T,"aria-invalid":D,...E}=t,O=gw(E,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=zl(p),$=zl(a),W=zl(l),[H,K]=_.useState(!1),[Z,oe]=_.useState(!1),[te,re]=_.useState(!1),Y=_.useRef(!1);_.useEffect(()=>rde(xt=>{Y.current=xt}),[]);const z=_.useRef(null),[U,G]=_.useState(!0),[B,Q]=_.useState(!!u),ie=h!==void 0,q=ie?h:B,fe=_.useCallback(xt=>{if(r||n){xt.preventDefault();return}ie||Q(q?xt.currentTarget.checked:g?!0:xt.currentTarget.checked),P?.(xt)},[r,n,q,ie,g,P]);I0(()=>{z.current&&(z.current.indeterminate=!!g)},[g]),Ng(()=>{n&&K(!1)},[n,K]),I0(()=>{const xt=z.current;if(!xt?.form)return;const Nn=()=>{Q(!!u)};return xt.form.addEventListener("reset",Nn),()=>xt.form?.removeEventListener("reset",Nn)},[]);const ke=n&&!d,Be=_.useCallback(xt=>{xt.key===" "&&re(!0)},[re]),Qe=_.useCallback(xt=>{xt.key===" "&&re(!1)},[re]);I0(()=>{if(!z.current)return;z.current.checked!==q&&Q(z.current.checked)},[z.current]);
350const ft=_.useCallback((xt={},Nn=null)=>{const Hn=$n=>{H&&$n.preventDefault(),re(!0)};return{...xt,ref:Nn,"data-active":En(te),"data-hover":En(Z),"data-checked":En(q),"data-focus":En(H),"data-focus-visible":En(H&&Y.current),"data-indeterminate":En(g),"data-disabled":En(n),"data-invalid":En(s),"data-readonly":En(r),"aria-hidden":!0,onMouseDown:Fn(xt.onMouseDown,Hn),onMouseUp:Fn(xt.onMouseUp,()=>re(!1)),onMouseEnter:Fn(xt.onMouseEnter,()=>oe(!0)),onMouseLeave:Fn(xt.onMouseLeave,()=>oe(!1))}},[te,q,n,H,Z,g,s,r]),Ne=_.useCallback((xt={},Nn=null)=>({...xt,ref:Nn,"data-active":En(te),"data-hover":En(Z),"data-checked":En(q),"data-focus":En(H),"data-focus-visible":En(H&&Y.current),"data-indeterminate":En(g),"data-disabled":En(n),"data-invalid":En(s),"data-readonly":En(r)}),[te,q,n,H,Z,g,s,r]),rt=_.useCallback((xt={},Nn=null)=>({...O,...xt,ref:Ss(Nn,Hn=>{Hn&&G(Hn.tagName==="LABEL")}),onClick:Fn(xt.onClick,()=>{U||(z.current?.click(),requestAnimationFrame(()=>{z.current?.focus({preventScroll:!0})}))}),"data-disabled":En(n),"data-checked":En(q),"data-invalid":En(s)}),[O,n,q,s,U]),Mt=_.useCallback((xt={},Nn=null)=>({...xt,ref:Ss(z,Nn),type:"checkbox",name:y,value:b,id:o,tabIndex:w,onChange:Fn(xt.onChange,fe),onBlur:Fn(xt.onBlur,$,()=>K(!1)),onFocus:Fn(xt.onFocus,W,()=>K(!0)),onKeyDown:Fn(xt.onKeyDown,Be),onKeyUp:Fn(xt.onKeyUp,Qe),required:i,checked:q,disabled:ke,readOnly:r,"aria-label":S,"aria-labelledby":T,"aria-invalid":D?!!D:s,"aria-describedby":c,"aria-disabled":n,"aria-checked":g?"mixed":q,style:ode}),[y,b,o,w,fe,$,W,Be,Qe,i,q,ke,r,S,T,D,s,c,n,g]),it=_.useCallback((xt={},Nn=null)=>({...xt,ref:Nn,onMouseDown:Fn(xt.onMouseDown,oze),"data-disabled":En(n),"data-checked":En(q),"data-invalid":En(s)}),[q,n,s]);return{state:{isInvalid:s,isFocused:H,isChecked:q,isActive:te,isHovered:Z,isIndeterminate:g,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:rt,getCheckboxProps:ft,getIndicatorProps:Ne,getInputProps:Mt,getLabelProps:it,htmlProps:O}}function oze(t){t.preventDefault(),t.stopPropagation()}function aze(t){const[e,n]=_.useState(t),[r,i]=_.useState(!1);return t!==e&&(i(!0),n(t)),r}const lze={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},cze={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},uze=rp({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),hze=rp({from:{opacity:0}
350,to:{opacity:1}}),dze=rp({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),tO=Ot(function(e,n){const r=Vje(),i={...r,...e},s=da("Checkbox",i),o=ji(e),{spacing:a="0.5rem",className:l,children:c,iconColor:u,iconSize:h,icon:d=x.jsx(Gje,{}),isChecked:p,isDisabled:g=r?.isDisabled,onChange:y,inputProps:b,...w}=o;let S=p;r?.value&&o.value&&(S=r.value.includes(o.value));let T=y;r?.onChange&&o.value&&(T=xz(r.onChange,y));const{state:D,getInputProps:E,getCheckboxProps:O,getLabelProps:P,getRootProps:$}=sze({...w,isDisabled:g,isChecked:S,onChange:T}),W=aze(D.isChecked),H=_.useMemo(()=>({animation:W?D.isIndeterminate?`${hze} 20ms linear, ${dze} 200ms linear`:`${uze} 200ms linear`:void 0,...s.icon,...mw({fontSize:h,color:u})}),[u,h,W,D.isIndeterminate,s.icon]),K=_.cloneElement(d,{__css:H,isIndeterminate:D.isIndeterminate,isChecked:D.isChecked});return x.jsxs(ct.label,{__css:{...cze,...s.container},className:un("chakra-checkbox",l),...$(),children:[x.jsx("input",{className:"chakra-checkbox__input",...E(b,n)}),x.jsx(ct.span,{__css:{...lze,...s.control},className:"chakra-checkbox__control",...O(),children:K}),c&&x.jsx(ct.span,{className:"chakra-checkbox__label",...P(),__css:{marginStart:a,...s.label},children:c})]})});tO.displayName="Checkbox";const ade=Ot(function(e,n){const r=Hc("Code",e),{className:i,...s}=ji(e);return x.jsx(ct.code,{ref:n,className:un("chakra-code",e.className),...s,__css:{display:"inline-block",...r}})});ade.displayName="Code";const fze=new Set(["dark","light","system"]);function pze(t){let e=t;return fze.has(e)||(e="light"),e}function mze(t={}){const{initialColorMode:e="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=t,i=pze(e),s=n==="cookie",o=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); 351 `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); 352 `;return`!${s?o:a}`.trim()}function gze(t={}){const{nonce:e}=t;return x.jsx("script",{id:"chakra-script",nonce:e,dangerouslySetInnerHTML:{__html:mze(t)}})}const nO=Ot(function(e,n){const{className:r,centerContent:i,...s}=ji(e),o=Hc("Container",e);return x.jsx(ct.div,{ref:n,className:un("chakra-container",r),...s,__css:{...o,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});nO.displayName="Container";const wk=Ot(function(e,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:s,borderRightWidth:o,borderWidth:a,borderStyle:l,borderColor:c,...u}=Hc("Divider",e),{className:h,orientation:d="horizontal",__css:p,...g}=ji(e),y={vertical:{borderLeftWidth:r||o||a||"1px",height:"100%"},horizontal:{borderBottomWidth:i||s||a||"1px",width:"100%"}};return x.jsx(ct.hr,{ref:n,"aria-orientation":d,...g,__css:{...u,border:"0",borderColor:c,borderStyle:l,...y[d],...p},className:un("chakra-divider",h)})});wk.displayName="Divider";const[yze,lde]=Oi({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Editable />" `}),[bze,cde]=Oi({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in `<Editable />`"});function oJ(t,e){return t?t===e||t.contains(e):!1}function vze(t={}){const{onChange:e,onCancel:n,onSubmit:r,onBlur:i,value:s,isDisabled:o,defaultValue:a,startWithEditView:l,isPreviewFocusable:c=!0,submitOnBlur:u=!0,selectAllOnFocus:h=!0,placeholder:d,onEdit:p,finalFocusRef:g,...y}
352=t,b=zl(p),w=!!(l&&!o),[S,T]=_.useState(w),[D,E]=Sz({defaultValue:a||"",value:s,onChange:e}),[O,P]=_.useState(D),$=_.useRef(null),W=_.useRef(null),H=_.useRef(null),K=_.useRef(null),Z=_.useRef(null);XAe({ref:$,enabled:S,elements:[K,Z]});const oe=!S&&!o;I0(()=>{S&&($.current?.focus(),h&&$.current?.select())},[]),Ng(()=>{if(!S){g?g.current?.focus():H.current?.focus();return}$.current?.focus(),h&&$.current?.select(),b?.()},[S,b,h]);const te=_.useCallback(()=>{oe&&T(!0)},[oe]),re=_.useCallback(()=>{P(D)},[D]),Y=_.useCallback(()=>{T(!1),E(O),n?.(O),i?.(O)},[n,i,E,O]),z=_.useCallback(()=>{T(!1),P(D),r?.(D),i?.(O)},[D,r,i,O]);_.useEffect(()=>{if(S)return;const Ne=$.current;Ne?.ownerDocument.activeElement===Ne&&Ne?.blur()},[S]);const U=_.useCallback(Ne=>{E(Ne.currentTarget.value)},[E]),G=_.useCallback(Ne=>{const rt=Ne.key,it={Escape:Y,Enter:Rt=>{!Rt.shiftKey&&!Rt.metaKey&&z()}}[rt];it&&(Ne.preventDefault(),it(Ne))},[Y,z]),B=_.useCallback(Ne=>{const rt=Ne.key,it={Escape:Y}[rt];it&&(Ne.preventDefault(),it(Ne))},[Y]),Q=D.length===0,ie=_.useCallback(Ne=>{if(!S)return;const rt=Ne.currentTarget.ownerDocument,Mt=Ne.relatedTarget??rt.activeElement,it=oJ(K.current,Mt),Rt=oJ(Z.current,Mt);!it&&!Rt&&(u?z():Y())},[u,z,Y,S]),q=_.useCallback((Ne={},rt=null)=>{const Mt=oe&&c?0:void 0;return{...Ne,ref:Ss(rt,W),children:Q?d:D,hidden:S,"aria-disabled":yh(o),tabIndex:Mt,onFocus:Fn(Ne.onFocus,te,re)}},[o,S,oe,c,Q,te,re,d,D]),fe=_.useCallback((Ne={},rt=null)=>({...Ne,hidden:!S,placeholder:d,ref:Ss(rt,$),disabled:o,"aria-disabled":yh(o),value:D,onBlur:Fn(Ne.onBlur,ie),onChange:Fn(Ne.onChange,U),onKeyDown:Fn(Ne.onKeyDown,G),onFocus:Fn(Ne.onFocus,re)}),[o,S,ie,U,G,re,d,D]),ke=_.useCallback((Ne={},rt=null)=>({...Ne,hidden:!S,placeholder:d,ref:Ss(rt,$),disabled:o,"aria-disabled":yh(o),value:D,onBlur:Fn(Ne.onBlur,ie),onChange:Fn(Ne.onChange,U),onKeyDown:Fn(Ne.onKeyDown,B),onFocus:Fn(Ne.onFocus,re)}),[o,S,ie,U,B,re,d,D]),Be=_.useCallback((Ne={},rt=null)=>({"aria-label":"Edit",...Ne,type:"button",onClick:Fn(Ne.onClick,te),ref:Ss(rt,H),disabled:o}),[te,o]),Qe=_.useCallback((Ne={},rt=null)=>({...Ne,"aria-label":"Submit",ref:Ss(Z,rt),type:"button",onClick:Fn(Ne.onClick,z),disabled:o}),[z,o]),ft=_.useCallback((Ne={},rt=null)=>({"aria-label":"Cancel",id:"cancel",...Ne,ref:Ss(K,rt),type:"button",onClick:Fn(Ne.onClick,Y),disabled:o}),[Y,o]);return{isEditing:S,isDisabled:o,isValueEmpty:Q,value:D,onEdit:te,onCancel:Y,onSubmit:z,getPreviewProps:q,getInputProps:fe,getTextareaProps:ke,getEditButtonProps:Be,getSubmitButtonProps:Qe,getCancelButtonProps:ft,htmlProps:y}}const ude=Ot(function(e,n){const r=da("Editable",e),i=ji(e),{htmlProps:s,...o}=vze(i),{isEditing:a,onSubmit:l,onCancel:c,onEdit:u}=o,h=un("chakra-editable",e.className),d=Cc(e.children,{isEditing:a,onSubmit:l,onCancel:c,onEdit:u});return x.jsx(bze,{value:o,children:x.jsx(yze,{value:r,children:x.jsx(ct.div,{ref:n,...s,className:h,children:d})})})});ude.displayName="Editable";const hde={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},dde=Ot(function(e,n){const{getInputProps:r}=cde(),i=lde(),s=r(e,n),o=un("chakra-editable__input",e.className);return x.jsx(ct.input,{...s,__css:{outline:0,...hde,...i.input},className:o})});dde.displayName="EditableInput";const fde=Ot(function(e,n){const{getPreviewProps:r}=cde(),i=lde(),s=r(e,n),o=un("chakra-editable__preview",e.className);return x.jsx(ct.span,{...s,__css:{cursor:"text",display:"inline-block",...hde,...i.preview},className:o})});fde.displayName="EditablePreview";function D3(t){return typeof t=="function"}function xze(...t){return e=>t.reduce((n,r)=>r(n),e)}const wze=t=>function(...n){let r=[...n],i=n[n.length-1];return LMe(i)&&r.length>1?r=r.slice(0,r.length-1):i=t,xze(...r.map(s=>o=>D3(s)?s(o):pde(o,s)))(i)},Sze=wze(Yce);function pde(...t){return uh({},...t,mde)}function mde(t,e,n,r){if((D3(t)||D3(e))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const s=D3(t)?t(...i):t,o=D3(e)?e(...i):e;return uh({},s,o,mde)};if(Aa(t)&&mL(e)||mL(t)&&Aa(e))return e}function kze({colorScheme:t,components:e}){return n=>{let r=Object.keys(n.components||{});return Array.isArray(e)?r=e:Aa(e)&&(r=Object.keys(e)),pde(n,{components:Object.fromEntries(r.map(i=>[i,{defaultProps:{colorScheme:t}}]))})}}const qt=Ot(function(e,n){const{direction:r,align:i,justify:s,wrap:o,basis:a,grow:l,shrink:c,...u}=e,h={display:"flex",flexDirection:r,alignItems:i,justifyContent:s,flexWrap:o,flexBasis:a,flexGrow:l,flexShrink:c};return x.jsx(ct.div,{ref:n,__css:h,...u})});
vendor: 1,737 bytes, line 352
352qt.displayName="Flex";function rO(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}var hM={exports:{}},dM,aJ;function Cze(){if(aJ)return dM;aJ=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dM=t,dM}var fM,lJ;function _ze(){if(lJ)return fM;lJ=1;var t=Cze();function e(){}function n(){}return n.resetWarningCache=e,fM=function(){function r(o,a,l,c,u,h){if(h!==t){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},fM}var cJ;function Tze(){return cJ||(cJ=1,hM.exports=_ze()()),hM.exports}var Eze=Tze();const ss=zc(Eze);var ZL="data-focus-lock",gde="data-focus-lock-disabled",Aze="data-no-focus-lock",Pze="data-autofocus-inside",Oze="data-no-autofocus";function pM(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Ize(t,e){var n=_.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 Dze=typeof window<"u"?_.useLayoutEffect:_.useEffect,uJ=new WeakMap;function yde(t,e){var n=Ize(null,function(r){return t.forEach(function(i){return pM(i,r)})});return Dze(function(){var r=uJ.get(n);if(r){var i=new Set(r),s=new Set(t),o=n.current;
vendor: 4,238 bytes, line 352
352i.forEach(function(a){s.has(a)||pM(a,null)}),s.forEach(function(a){i.has(a)||pM(a,o)})}uJ.set(n,t)},[t]),n}var mM={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Af=function(){return Af=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Af.apply(this,arguments)};function bde(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 Vn(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(h){o(h)}}function l(u){try{c(r.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function hJ(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mze(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}function qr(t){return this instanceof qr?(this.v=t,this):new qr(t)}function Rf(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(g){return Promise.resolve(g).then(p,h)}}function a(p,g){r[p]&&(i[p]=function(y){return new Promise(function(b,w){s.push([p,y,b,w])>1||l(p,y)})},g&&(i[p]=g(i[p])))}function l(p,g){try{c(r[p](g))}catch(y){d(s[0][3],y)}}function c(p){p.value instanceof qr?Promise.resolve(p.value.v).then(u,h):d(s[0][2],p)}function u(p){l("next",p)}function h(p){l("throw",p)}function d(p,g){p(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function k6(t){var e,n;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,s){e[i]=t[i]?function(o){return(n=!n)?{value:qr(t[i](o)),done:!1}:s?s(o):o}:s}}function Yy(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof hJ=="function"?hJ(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function vde(t){return t}function xde(t,e){e===void 0&&(e=vde);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(s){var o=e(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var u=o;o=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return i}function NH(t,e){return e===void 0&&(e=vde),xde(t,e)}function wde(t){t===void 0&&(t={});var e=xde(null);return e.options=Af({async:!0,ssr:!1},t),e}var Sde=function(t){var e=t.sideCar,n=bde(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 _.createElement(r,Af({},n))};
352Sde.isSideCarExport=!0;function Nze(t,e){return t.useMedium(e),Sde}var kde=NH({},function(t){var e=t.target,n=t.currentTarget;return{target:e,currentTarget:n}}),Cde=NH(),Rze=NH(),Lze=wde({async:!0,ssr:typeof document<"u"}),Bze=_.createContext(void 0),Fze=[],RH=_.forwardRef(function(e,n){var r,i=_.useState(),s=i[0],o=i[1],a=_.useRef(),l=_.useRef(!1),c=_.useRef(null),u=_.useState({}),h=u[1],d=e.children,p=e.disabled,g=p===void 0?!1:p,y=e.noFocusGuards,b=y===void 0?!1:y,w=e.persistentFocus,S=w===void 0?!1:w,T=e.crossFrame,D=T===void 0?!0:T,E=e.autoFocus,O=E===void 0?!0:E;e.allowTextSelection;var P=e.group,$=e.className,W=e.whiteList,H=e.hasPositiveIndices,K=e.shards,Z=K===void 0?Fze:K,oe=e.as,te=oe===void 0?"div":oe,re=e.lockProps,Y=re===void 0?{}:re,z=e.sideCar,U=e.returnFocus,G=U===void 0?!1:U,B=e.focusOptions,Q=e.onActivation,ie=e.onDeactivation,q=_.useState({}),fe=q[0],ke=_.useCallback(function(Hn){var $n=Hn.captureFocusRestore;if(!c.current){var Wn,nr=(Wn=document)==null?void 0:Wn.activeElement;c.current=nr,nr!==document.body&&(c.current=$n(nr))}a.current&&Q&&Q(a.current),l.current=!0,h()},[Q]),Be=_.useCallback(function(){l.current=!1,ie&&ie(a.current),h()},[ie]),Qe=_.useCallback(function(Hn){var $n=c.current;if($n){var Wn=(typeof $n=="function"?$n():$n)||document.body,nr=typeof G=="function"?G(Wn):G;if(nr){var Cn=typeof nr=="object"?nr:void 0;c.current=null,Hn?Promise.resolve().then(function(){return Wn.focus(Cn)}):Wn.focus(Cn)}}},[G]),ft=_.useCallback(function(Hn){l.current&&kde.useMedium(Hn)},[]),Ne=Cde.useMedium,rt=_.useCallback(function(Hn){a.current!==Hn&&(a.current=Hn,o(Hn))},[]),Mt=Dd((r={},r[gde]=g&&"disabled",r[ZL]=P,r),Y),it=b!==!0,Rt=it&&b!=="tail",xt=yde([n,rt]),Nn=_.useMemo(function(){return{observed:a,shards:Z,enabled:!g,active:l.current}},[g,l.current,Z,s]);return ii.createElement(_.Fragment,null,it&&[ii.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:mM}),H?ii.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:mM}):null],!g&&ii.createElement(z,{id:fe,sideCar:Lze,observed:s,disabled:g,persistentFocus:S,crossFrame:D,autoFocus:O,whiteList:W,shards:Z,onActivation:ke,onDeactivation:Be,returnFocus:Qe,focusOptions:B,noFocusGuards:b}),ii.createElement(te,Dd({ref:xt},Mt,{className:$,onBlur:Ne,onFocus:ft}),ii.createElement(Bze.Provider,{value:Nn},d)),Rt&&ii.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:mM}))});RH.propTypes={};function ZA(t,e){return ZA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ZA(t,e)}function $ze(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ZA(t,e)}function ip(t){"@babel/helpers - typeof";return ip=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},ip(t)}function jze(t,e){if(ip(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _de(t){var e=jze(t,"string");return ip(e)=="symbol"?e:e+""}function vf(t,e,n){return(e=_de(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zze(t,e){function n(r){return r.displayName||r.name||"Component"}return function(i){var s=[],o;function a(){o=t(s.map(function(c){return c.props})),e(o)}var l=function(c){$ze(u,c);function u(){return c.apply(this,arguments)||this}u.peek=function(){return o};var h=u.prototype;return h.componentDidMount=function(){s.push(this),a()},h.componentDidUpdate=function(){a()},h.componentWillUnmount=function(){var p=s.indexOf(this);s.splice(p,1),a()},h.render=function(){return ii.createElement(i,this.props)},u}(_.PureComponent);return vf(l,"displayName","SideEffect("+n(i)+")"),l}}var mp=function(t){for(var e=Array(t.length),n=0;n<t.length;++n)e[n]=t[n];return e},ob=function(t){return Array.isArray(t)?t:[t]},Tde=function(t){return Array.isArray(t)?t[0]:t}
352,Hze=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t,null);return!e||!e.getPropertyValue?!1:e.getPropertyValue("display")==="none"||e.getPropertyValue("visibility")==="hidden"},Ede=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},Ade=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},Uze=function(t){return t.hasAttribute("inert")},Vze=function(t,e){return!t||Ade(t)||!Hze(t)&&!Uze(t)&&e(Ede(t))},Pde=function(t,e){var n=t.get(e);if(n!==void 0)return n;var r=Vze(e,Pde.bind(void 0,t));return t.set(e,r),r},Wze=function(t,e){return t&&!Ade(t)?Kze(t)?e(Ede(t)):!1:!0},Ode=function(t,e){var n=t.get(e);if(n!==void 0)return n;var r=Wze(e,Ode.bind(void 0,t));return t.set(e,r),r},Ide=function(t){return t.dataset},qze=function(t){return t.tagName==="BUTTON"},Dde=function(t){return t.tagName==="INPUT"},Mde=function(t){return Dde(t)&&t.type==="radio"},Gze=function(t){return!((Dde(t)||qze(t))&&(t.type==="hidden"||t.disabled))},Kze=function(t){var e=t.getAttribute(Oze);return![!0,"true",""].includes(e)},LH=function(t){var e;return!!(t&&(!((e=Ide(t))===null||e===void 0)&&e.focusGuard))},eB=function(t){return!LH(t)},Yze=function(t){return!!t},Qze=function(t,e){var n=Math.max(0,t.tabIndex),r=Math.max(0,e.tabIndex),i=n-r,s=t.index-e.index;if(i){if(!n)return 1;if(!r)return-1}return i||s},Xze=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},BH=function(t,e,n){return mp(t).map(function(r,i){var s=Xze(r);return{node:r,index:i,tabIndex:n&&s===-1?(r.dataset||{}).focusGuard?0:-1:s}}).filter(function(r){return!e||r.tabIndex>=0}).sort(Qze)},Jze=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],FH=Jze.join(","),Zze="".concat(FH,", [data-focus-guard]"),Nde=function(t,e){return mp((t.shadowRoot||t).children).reduce(function(n,r){return n.concat(r.matches(e?Zze:FH)?[r]:[],Nde(r))},[])},eHe=function(t,e){var n;return t instanceof HTMLIFrameElement&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?Tx([t.contentDocument.body],e):[t]},Tx=function(t,e){return t.reduce(function(n,r){var i,s=Nde(r,e),o=(i=[]).concat.apply(i,s.map(function(a){return eHe(a,e)}));return n.concat(o,r.parentNode?mp(r.parentNode.querySelectorAll(FH)).filter(function(a){return a===r}):[])},[])},tHe=function(t){var e=t.querySelectorAll("[".concat(Pze,"]"));return mp(e).map(function(n){return Tx([n])}).reduce(function(n,r){return n.concat(r)},[])},$H=function(t,e){return mp(t).filter(function(n){return Pde(e,n)}).filter(function(n){return Gze(n)})},dJ=function(t,e){return e===void 0&&(e=new Map),mp(t).filter(function(n){return Ode(e,n)})},jH=function(t,e,n){return BH($H(Tx(t,n),e),!0,n)},Sk=function(t,e){return BH($H(Tx(t),e),!1)},nHe=function(t,e){return $H(tHe(t),e)},Qy=function(t,e){return t.shadowRoot?Qy(t.shadowRoot,e):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,e)?!0:mp(t.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?Qy(i,e):!1}return Qy(n,e)})},rHe=function(t){for(var e=new Set,n=t.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var s=t[r].compareDocumentPosition(t[i]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&e.add(i),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&e.add(r)}return t.filter(function(o,a){return!e.has(a)})},Rde=function(t){return t.parentNode?Rde(t.parentNode):t},zH=function(t){var e=ob(t);return e.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(ZL);return n.push.apply(n,i?rHe(mp(Rde(r).querySelectorAll("[".concat(ZL,'="').concat(i,'"]:not([').concat(gde,'="disabled"])')))):[r]),n},[])},iHe=function(t){try{return t()}catch{return}},kk=function(t){if(t===void 0&&(t=document),!(!t||!t.activeElement)){var e=t.activeElement;return e.shadowRoot?kk(e.shadowRoot):e instanceof HTMLIFrameElement&&iHe(function(){return e.contentWindow.document})?kk(e.contentWindow.document):e}},sHe=function(t,e){return t===e},oHe=function(t,e){return!!mp(t.querySelectorAll("iframe")).some(function(n){return sHe(n,e)})},Lde=function(t,e){return e===void 0&&(e=kk(Tde(t).ownerDocument)),!e||e.dataset&&e.dataset.focusGuard?!1:zH(t).some(function(n){return Qy(n,e)||oHe(n,e)})},aHe=function(t){t===void 0&&(t=document);var e=kk(t);return e?mp(t.querySelectorAll("[".concat(Aze,"]"))).some(function(n){return Qy(n,e)}):!1},lHe=function(t,e){return e.filter(Mde).filter(function(n){return n.name===t.name}).filter(function(n){return n.checked})[0]||t},HH=function(t,e){return Mde(t)&&t.name?lHe(t,e):t},cHe=function(t){var e=new Set;return t.forEach(function(n){return e.add(HH(n,t))}),t.filter(function(n){return e.has(n)})},fJ=function(t){return t[0]&&t.length>1?HH(t[0],t):t[0]},pJ=function(t,e){return t.indexOf(HH(e,t))},tB="NEW_FOCUS",uHe=function(t,e,n,r,i){var s=t.length,o=t[0],a=t[s-1],l=LH(r);if(!(r&&t.indexOf(r)>=0)){var c=r!==void 0?n.indexOf(r):-1,u=i?n.indexOf(i):c,h=i?t.indexOf(i):-1;
352if(c===-1)return h!==-1?h:tB;if(h===-1)return tB;var d=c-u,p=n.indexOf(o),g=n.indexOf(a),y=cHe(n),b=r!==void 0?y.indexOf(r):-1,w=i?y.indexOf(i):b,S=y.filter(function($){return $.tabIndex>=0}),T=r!==void 0?S.indexOf(r):-1,D=i?S.indexOf(i):T,E=T>=0&&D>=0?D-T:w-b;if(!d&&h>=0||e.length===0)return h;var O=pJ(t,e[0]),P=pJ(t,e[e.length-1]);if(c<=p&&l&&Math.abs(d)>1)return P;if(c>=g&&l&&Math.abs(d)>1)return O;if(d&&Math.abs(E)>1)return h;if(c<=p)return P;if(c>g)return O;if(d)return Math.abs(d)>1?h:(s+h+d)%s}},hHe=function(t){return function(e){var n,r=(n=Ide(e))===null||n===void 0?void 0:n.autofocus;return e.autofocus||r!==void 0&&r!=="false"||t.indexOf(e)>=0}},mJ=function(t,e,n){var r=t.map(function(s){var o=s.node;return o}),i=dJ(r.filter(hHe(n)));return i&&i.length?fJ(i):fJ(dJ(e))},nB=function(t,e){return e===void 0&&(e=[]),e.push(t),t.parentNode&&nB(t.parentNode.host||t.parentNode,e),e},gM=function(t,e){for(var n=nB(t),r=nB(e),i=0;i<n.length;i+=1){var s=n[i];if(r.indexOf(s)>=0)return s}return!1},Bde=function(t,e,n){var r=ob(t),i=ob(e),s=r[0],o=!1;return i.filter(Boolean).forEach(function(a){o=gM(o||a,a)||o,n.filter(Boolean).forEach(function(l){var c=gM(s,l);c&&(!o||Qy(c,o)?o=c:o=gM(c,o))})}),o},gJ=function(t,e){return t.reduce(function(n,r){return n.concat(nHe(r,e))},[])},dHe=function(t,e){var n=new Map;return e.forEach(function(r){return n.set(r.node,r)}),t.map(function(r){return n.get(r)}).filter(Yze)},fHe=function(t,e){var n=kk(ob(t).length>0?document:Tde(t).ownerDocument),r=zH(t).filter(eB),i=Bde(n||t,t,r),s=new Map,o=Sk(r,s),a=o.filter(function(g){var y=g.node;return eB(y)});if(a[0]){var l=Sk([i],s).map(function(g){var y=g.node;return y}),c=dHe(l,a),u=c.map(function(g){var y=g.node;return y}),h=c.filter(function(g){var y=g.tabIndex;return y>=0}).map(function(g){var y=g.node;return y}),d=uHe(u,h,l,n,e);if(d===tB){var p=mJ(o,h,gJ(r,s))||mJ(o,u,gJ(r,s));if(p)return{node:p};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:c[d]}},pHe=function(t){var e=zH(t).filter(eB),n=Bde(t,t,e),r=BH(Tx([n],!0),!0,!0),i=Tx(e,!1);return r.map(function(s){var o=s.node,a=s.index;return{node:o,index:a,lockItem:i.indexOf(o)>=0,guard:LH(o)}})},UH=function(t,e){t&&("focus"in t&&t.focus(e),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},yM=0,bM=!1,Fde=function(t,e,n){n===void 0&&(n={});var r=fHe(t,e);if(!bM&&r){if(yM>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),bM=!0,setTimeout(function(){bM=!1},1);return}yM++,UH(r.node,n.focusOptions),yM--}};function LS(t){if(!t)return null;if(typeof WeakRef>"u")return function(){return t||null};var e=t?new WeakRef(t):null;return function(){return e?.deref()||null}}var mHe=function(t){if(!t)return null;for(var e=[],n=t;n&&n!==document.body;)e.push({current:LS(n),parent:LS(n.parentElement),left:LS(n.previousElementSibling),right:LS(n.nextElementSibling)}),n=n.parentElement;return{element:LS(t),stack:e,ownerDocument:t.ownerDocument}},gHe=function(t){var e,n,r,i,s;if(t)for(var o=t.stack,a=t.ownerDocument,l=new Map,c=0,u=o;c<u.length;c++){var h=u[c],d=(e=h.parent)===null||e===void 0?void 0:e.call(h);if(d&&a.contains(d)){for(var p=(n=h.left)===null||n===void 0?void 0:n.call(h),g=h.current(),y=d.contains(g)?g:void 0,b=(r=h.right)===null||r===void 0?void 0:r.call(h),w=jH([d],l),S=(s=(i=y??p?.nextElementSibling)!==null&&i!==void 0?i:b)!==null&&s!==void 0?s:p;S;){for(var T=0,D=w;T<D.length;T++){var E=D[T];if(S?.contains(E.node))return E.node}S=S.nextElementSibling}if(w.length)return w[0].node}}},$de=function(t){var e=mHe(t);return function(){return gHe(e)}},yHe=function(t,e,n){if(!t||!e)return console.error("no element or scope given"),{};var r=ob(e);if(r.every(function(o){return!Qy(o,t)}))return console.error("Active element is not contained in the scope"),{};var i=n?jH(r,new Map):Sk(r,new Map),s=i.findIndex(function(o){var a=o.node;return a===t});if(s!==-1)return{prev:i[s-1],next:i[s+1],first:i[0],last:i[i.length-1]}},bHe=function(t,e){var n=e?jH(ob(t),new Map):Sk(ob(t),new Map);return{first:n[0],last:n[n.length-1]}},vHe=function(t){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},t)},jde=function(t,e,n){e===void 0&&(e={});var r=vHe(e),i=yHe(t,r.scope,r.onlyTabbable);if(i){var s=n(i,r.cycle);
352s&&UH(s.node,r.focusOptions)}},xHe=function(t,e){e===void 0&&(e={}),jde(t,e,function(n,r){var i=n.next,s=n.first;return i||r&&s})},wHe=function(t,e){e===void 0&&(e={}),jde(t,e,function(n,r){var i=n.prev,s=n.last;return i||r&&s})},zde=function(t,e,n){var r,i=bHe(t,(r=e.onlyTabbable)!==null&&r!==void 0?r:!0),s=i[n];s&&UH(s.node,e.focusOptions)},SHe=function(t,e){e===void 0&&(e={}),zde(t,e,"first")},kHe=function(t,e){e===void 0&&(e={}),zde(t,e,"last")};function VH(t){setTimeout(t,1)}var CHe=function(e){return e&&"current"in e?e.current:e},Hde=function(){return document&&document.activeElement===document.body},_He=function(){return Hde()||aHe()},q2=null,uc=null,yJ=function(){return null},G2=null,Ck=!1,WH=!1,THe=function(){return!0},EHe=function(e){return(q2.whiteList||THe)(e)},AHe=function(e,n){G2={observerNode:e,portaledElement:n}},PHe=function(e){return G2&&G2.portaledElement===e};function bJ(t,e,n,r){var i=null,s=t;do{var o=r[s];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(s!==t)return;i=null}else break}while((s+=n)!==e);i&&(i.node.tabIndex=0)}var OHe=function(e){return e?!!Ck:Ck==="meanwhile"},IHe=function t(e,n,r){return n&&(n.host===e&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&t(e,n.parentNode,r))},DHe=function(e,n){return n.some(function(r){return IHe(e,r,r)})},Ude=function(e){return Sk(e,new Map)},MHe=function(e){return!Ude([e.parentNode]).some(function(n){return n.node===e})},e8=function(){var e=!1;if(q2){var n=q2,r=n.observed,i=n.persistentFocus,s=n.autoFocus,o=n.shards,a=n.crossFrame,l=n.focusOptions,c=n.noFocusGuards,u=r||G2&&G2.portaledElement;if(Hde()&&uc&&uc!==document.body&&(!document.body.contains(uc)||MHe(uc))){var h=yJ();h&&h.focus()}var d=document&&document.activeElement;
352if(u){var p=[u].concat(o.map(CHe).filter(Boolean)),g=function(){if(!OHe(a)||!c||!uc||WH)return!1;var T=Ude(p),D=T.findIndex(function(E){var O=E.node;return O===uc});return D===0||D===T.length-1};if((!d||EHe(d))&&(i||g()||!_He()||!uc&&s)&&(u&&!(Lde(p)||d&&DHe(d,p)||PHe(d))&&(document&&!uc&&d&&!s?(d.blur&&d.blur(),document.body.focus()):(e=Fde(p,uc,{focusOptions:l}),G2={})),uc=document&&document.activeElement,uc!==document.body&&(yJ=$de(uc)),Ck=!1),document&&d!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,b=pHe(p),w=b.map(function(S){var T=S.node;return T}).indexOf(y);w>-1&&(b.filter(function(S){var T=S.guard,D=S.node;return T&&D.dataset.focusAutoGuard}).forEach(function(S){var T=S.node;return T.removeAttribute("tabIndex")}),bJ(w,b.length,1,b),bJ(w,-1,-1,b))}}}return e},Vde=function(e){e8()&&e&&(e.stopPropagation(),e.preventDefault())},qH=function(){return VH(e8)},NHe=function(e){var n=e.target,r=e.currentTarget;r.contains(n)||AHe(r,n)},RHe=function(){return null},Wde=function(){WH=!0},qde=function(){WH=!1,Ck="just",VH(function(){Ck="meanwhile"})},LHe=function(){document.addEventListener("focusin",Vde),document.addEventListener("focusout",qH),window.addEventListener("focus",Wde),window.addEventListener("blur",qde)},BHe=function(){document.removeEventListener("focusin",Vde),document.removeEventListener("focusout",qH),window.removeEventListener("focus",Wde),window.removeEventListener("blur",qde)};function FHe(t){return t.filter(function(e){var n=e.disabled;return!n})}var Gde={moveFocusInside:Fde,focusInside:Lde,focusNextElement:xHe,focusPrevElement:wHe,focusFirstElement:SHe,focusLastElement:kHe,captureFocusRestore:$de};function $He(t){var e=t.slice(-1)[0];e&&!q2&&LHe();var n=q2,r=n&&e&&e.id===n.id;q2=e,n&&!r&&(n.onDeactivation(),t.filter(function(i){var s=i.id;return s===n.id}).length||n.returnFocus(!e)),e?(uc=null,(!r||n.observed!==e.observed)&&e.onActivation(Gde),e8(),VH(e8)):(BHe(),uc=null)}kde.assignSyncMedium(NHe);Cde.assignMedium(qH);Rze.assignMedium(function(t){return t(Gde)});const jHe=zze(FHe,$He)(RHe);var rB=_.forwardRef(function(e,n){return ii.createElement(RH,Dd({sideCar:jHe,ref:n},e))}),Kde=RH.propTypes||{};Kde.sideCar;rO(Kde,["sideCar"]);rB.propTypes={};const zHe=rB.default??rB,Yde=t=>{const{initialFocusRef:e,finalFocusRef:n,contentRef:r,restoreFocus:i,children:s,isDisabled:o,autoFocus:a,persistentFocus:l,lockFocusAcrossFrames:c}=t,u=_.useCallback(()=>{e?.current?e.current.focus():r?.current&&CAe(r.current).length===0&&requestAnimationFrame(()=>{r.current?.focus()})},[e,r]),h=_.useCallback(()=>{n?.current?.focus()},[n]),d=i&&!n;return x.jsx(zHe,{crossFrame:c,persistentFocus:l,autoFocus:a,disabled:o,onActivation:u,onDeactivation:h,returnFocus:d,children:s})};Yde.displayName="FocusLock";const[HHe,UHe]=Oi({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),md=Ot((t,e)=>{const n=da("FormError",t),r=ji(t),i=Ob();return i?.isInvalid?x.jsx(HHe,{value:n,children:x.jsx(ct.div,{...i?.getErrorMessageProps(r,e),className:un("chakra-form__error-message",t.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});md.displayName="FormErrorMessage";const VHe=Ot((t,e)=>{const n=UHe();if(!Ob()?.isInvalid)return null;const i=un("chakra-form__error-icon",t.className);return x.jsx(Lh,{ref:e,"aria-hidden":!0,...t,__css:n.icon,className:i,children:x.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});VHe.displayName="FormErrorIcon";const Ho=Ot(function(e,n){const r=Hc("FormLabel",e),i=ji(e),{className:s,children:o,requiredIndicator:a=x.jsx(Qde,{}),optionalIndicator:l=null,...c}=i,u=Ob(),h=u?.getLabelProps(c,n)??{ref:n,...c};return x.jsxs(ct.label,{...h,className:un("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r},children:[o,u?.isRequired?a:l]})});Ho.displayName="FormLabel";const Qde=Ot(function(e,n){const r=Ob(),i=ide();if(!r?.isRequired)return null;const s=un("chakra-form__required-indicator",e.className);return x.jsx(ct.span,{...r?.getRequiredIndicatorProps(e,n),__css:i.requiredIndicator,className:s})});Qde.displayName="RequiredIndicator";const UC=Ot(function(e,n){const{templateAreas:r,gap:i,rowGap:s,columnGap:o,column:a,row:l,autoFlow:c,autoRows:u,templateRows:h,autoColumns:d,templateColumns:p,...g}=e,y={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:s,gridColumnGap:o,gridAutoColumns:d,gridColumn:a,gridRow:l,gridAutoFlow:c,gridAutoRows:u,gridTemplateRows:h,gridTemplateColumns:p};return x.jsx(ct.div,{ref:n,__css:y,...g})});UC.displayName="Grid";function vJ(t){return LP(t,e=>e==="auto"?"auto":`span ${e}/span ${e}`)}const yd=Ot(function(e,n){const{area:r,colSpan:i,colStart:s,colEnd:o,rowEnd:a,rowSpan:l,rowStart:c,...u}=e,h=mw({gridArea:r,gridColumn:vJ(i),gridRow:vJ(l),gridColumnStart:s,gridColumnEnd:o,gridRowStart:c,gridRowEnd:a});return x.jsx(ct.div,{ref:n,__css:h,...u})});yd.displayName="GridItem";const Xde=Ot(function(e,n){const{columns:r,spacingX:i,spacingY:s,spacing:o,minChildWidth:a,...l}=e,c=a1(),u=a?qHe(a,c):GHe(r);return x.jsx(UC,{ref:n,gap:o,columnGap:i,rowGap:s,templateColumns:u,...l})});
352Xde.displayName="SimpleGrid";function WHe(t){return typeof t=="number"?`${t}px`:t}function qHe(t,e){return LP(t,n=>{const r=U$e("sizes",n,WHe(n))(e);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function GHe(t){return LP(t,e=>e===null?null:`repeat(${e}, minmax(0, 1fr))`)}const iB=Ot(function(e,n){const{htmlWidth:r,htmlHeight:i,alt:s,...o}=e;return x.jsx("img",{width:r,height:i,ref:n,alt:s,...o})});iB.displayName="NativeImage";const VC=Ot(function(e,n){const{fallbackSrc:r,fallback:i,src:s,srcSet:o,align:a,fit:l,loading:c,ignoreFallback:u,crossOrigin:h,fallbackStrategy:d="beforeLoadOrError",referrerPolicy:p,...g}=e,y=r!==void 0||i!==void 0,b=c!=null||u||!y,w=Zhe({...e,crossOrigin:h,ignoreFallback:b}),S=Rje(w,d),T={ref:n,objectFit:l,objectPosition:a,...b?g:gw(g,["onError","onLoad"])};return S?i||x.jsx(ct.img,{as:iB,className:"chakra-image__placeholder",src:r,...T}):x.jsx(ct.img,{as:iB,src:s,srcSet:o,crossOrigin:h,loading:c,referrerPolicy:p,className:"chakra-image",...T})});VC.displayName="Image";const fl=Ot(function(e,n){const{htmlSize:r,...i}=e,s=da("Input",i),o=ji(i),a=MH(o),l=un("chakra-input",e.className);return x.jsx(ct.input,{size:r,...a,__css:s.field,ref:n,className:l})});fl.displayName="Input";fl.id="Input";const[KHe,YHe]=Oi({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Kf=Ot(function(e,n){const r=da("Input",e),{children:i,className:s,...o}=ji(e),a=un("chakra-input__group",s),l={},c=wz(i),u=r.field;c.forEach(d=>{r&&(u&&d.type.id==="InputLeftElement"&&(l.paddingStart=u.height??u.h),u&&d.type.id==="InputRightElement"&&(l.paddingEnd=u.height??u.h),d.type.id==="InputRightAddon"&&(l.borderEndRadius=0),d.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const h=c.map(d=>{const p=mw({size:d.props?.size||e.size,variant:d.props?.variant||e.variant});return d.type.id!=="Input"?_.cloneElement(d,p):_.cloneElement(d,Object.assign(p,l,d.props))});return x.jsx(ct.div,{className:a,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...o,children:x.jsx(KHe,{value:r,children:h})})});Kf.displayName="InputGroup";const QHe=ct("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),iO=Ot(function(e,n){const{placement:r="left",...i}=e,s=YHe(),o=s.field,l={[r==="left"?"insetStart":"insetEnd"]:"0",width:o?.height??o?.h,height:o?.height??o?.h,fontSize:o?.fontSize,...s.element};return x.jsx(QHe,{ref:n,__css:l,...i})});iO.id="InputElement";iO.displayName="InputElement";const sO=Ot(function(e,n){const{className:r,...i}=e,s=un("chakra-input__left-element",r);return x.jsx(iO,{ref:n,placement:"left",className:s,...i})});sO.id="InputLeftElement";sO.displayName="InputLeftElement";const WC=Ot(function(e,n){const{className:r,...i}=e,s=un("chakra-input__right-element",r);return x.jsx(iO,{ref:n,placement:"right",className:s,...i})});WC.id="InputRightElement";WC.displayName="InputRightElement";const bd=Ot(function(e,n){const r=Hc("Kbd",e),{className:i,...s}=ji(e);return x.jsx(ct.kbd,{ref:n,className:un("chakra-kbd",i),...s,__css:{fontFamily:"mono",...r}})});bd.displayName="Kbd";const bh=Ot(function(e,n){const r=Hc("Link",e),{className:i,isExternal:s,...o}=ji(e);return x.jsx(ct.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:n,className:un("chakra-link",i),...o,__css:r})});bh.displayName="Link";const[XHe,Jde]=Oi({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),_k=Ot(function(e,n){const r=da("List",e),{children:i,styleType:s="none",stylePosition:o,spacing:a,...l}=ji(e),c=wz(i),h=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return x.jsx(XHe,{value:r,children:x.jsx(ct.ul,{ref:n,listStyleType:s,listStylePosition:o,role:"list",__css:{...r.container,...h},...l,children:c})})});_k.displayName="List";const JHe=Ot((t,e)=>{const{as:n,...r}=t;return x.jsx(_k,{ref:e,as:"ol",styleType:"decimal",marginStart:"1em",...r})});JHe.displayName="OrderedList";const ZHe=Ot(function(e,n){const{as:r,...i}=e;return x.jsx(_k,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});
352ZHe.displayName="UnorderedList";const sB=Ot(function(e,n){const r=Jde();return x.jsx(ct.li,{ref:n,...e,__css:r.item})});sB.displayName="ListItem";const eUe=Ot(function(e,n){const r=Jde();return x.jsx(Lh,{ref:n,role:"presentation",...e,__css:r.icon})});eUe.displayName="ListIcon";function Zde(t,e={}){const{ssr:n=!0,fallback:r}=e,{getWindow:i}=qNe(),s=Array.isArray(t)?t:[t];let o=Array.isArray(r)?r:[r];o=o.filter(c=>c!=null);const[a,l]=_.useState(()=>s.map((c,u)=>({media:c,matches:n?!!o[u]:i().matchMedia(c).matches})));return _.useEffect(()=>{const c=i();l(s.map(d=>({media:d,matches:c.matchMedia(d).matches})));const u=s.map(d=>c.matchMedia(d)),h=d=>{l(p=>p.slice().map(g=>g.media===d.media?{...g,matches:d.matches}:g))};return u.forEach(d=>{typeof d.addListener=="function"?d.addListener(h):d.addEventListener("change",h)}),()=>{u.forEach(d=>{typeof d.removeListener=="function"?d.removeListener(h):d.removeEventListener("change",h)})}},[i]),a.map(c=>c.matches)}function tUe(t,e,n,r){if(e==null)return r;if(!r)return t.find(o=>n(o).toLowerCase().startsWith(e.toLowerCase()));const i=t.filter(s=>n(s).toLowerCase().startsWith(e.toLowerCase()));if(i.length>0){let s;return i.includes(r)?(s=i.indexOf(r)+1,s===i.length&&(s=0),i[s]):(s=t.indexOf(i[0]),t[s])}return r}function nUe(t){const{key:e}=t;return e.length===1||e.length>1&&/[^a-zA-Z0-9]/.test(e)}function rUe(t={}){const{timeout:e=300,preventDefault:n=()=>!0}=t,[r,i]=_.useState([]),s=_.useRef(void 0),o=()=>{s.current&&(clearTimeout(s.current),s.current=null)},a=()=>{o(),s.current=setTimeout(()=>{i([]),s.current=null},e)};_.useEffect(()=>o,[]);function l(c){return u=>{if(u.key==="Backspace"){const h=[...r];h.pop(),i(h);return}if(nUe(u)){const h=r.concat(u.key);n(u)&&(u.preventDefault(),u.stopPropagation()),i(h),c(h.join("")),a()}}}return l}var Pc="top",_h="bottom",Th="right",Oc="left",GH="auto",qC=[Pc,_h,Th,Oc],Ex="start",Tk="end",iUe="clippingParents",efe="viewport",BS="popper",sUe="reference",xJ=qC.reduce(function(t,e){return t.concat([e+"-"+Ex,e+"-"+Tk])},[]),tfe=[].concat(qC,[GH]).reduce(function(t,e){return t.concat([e,e+"-"+Ex,e+"-"+Tk])},[]),oUe="beforeRead",aUe="read",lUe="afterRead",cUe="beforeMain",uUe="main",hUe="afterMain",dUe="beforeWrite",fUe="write",pUe="afterWrite",mUe=[oUe,aUe,lUe,cUe,uUe,hUe,dUe,fUe,pUe];function sp(t){return t?(t.nodeName||"").toLowerCase():null}function Mu(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ab(t){var e=Mu(t).Element;return t instanceof e||t instanceof Element}function vh(t){var e=Mu(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function KH(t){if(typeof ShadowRoot>"u")return!1;var e=Mu(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function gUe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];
vendor: 18,887 bytes, line 352
352!vh(s)||!sp(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function yUe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(l,c){return l[c]="",l},{});!vh(i)||!sp(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const bUe={name:"applyStyles",enabled:!0,phase:"write",fn:gUe,effect:yUe,requires:["computeStyles"]};function Yf(t){return t.split("-")[0]}var Xy=Math.max,t8=Math.min,Ax=Math.round;function oB(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nfe(){return!/^((?!chrome|android).)*safari/i.test(oB())}function Px(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,s=1;e&&vh(t)&&(i=t.offsetWidth>0&&Ax(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Ax(r.height)/t.offsetHeight||1);var o=ab(t)?Mu(t):window,a=o.visualViewport,l=!nfe()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/s,h=r.width/i,d=r.height/s;return{width:h,height:d,top:u,right:c+h,bottom:u+d,left:c,x:c,y:u}}function YH(t){var e=Px(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function rfe(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&KH(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K0(t){return Mu(t).getComputedStyle(t)}function vUe(t){return["table","td","th"].indexOf(sp(t))>=0}function u1(t){return((ab(t)?t.ownerDocument:t.document)||window.document).documentElement}function oO(t){return sp(t)==="html"?t:t.assignedSlot||t.parentNode||(KH(t)?t.host:null)||u1(t)}function wJ(t){return!vh(t)||K0(t).position==="fixed"?null:t.offsetParent}function xUe(t){var e=/firefox/i.test(oB()),n=/Trident/i.test(oB());if(n&&vh(t)){var r=K0(t);if(r.position==="fixed")return null}var i=oO(t);for(KH(i)&&(i=i.host);vh(i)&&["html","body"].indexOf(sp(i))<0;){var s=K0(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function GC(t){for(var e=Mu(t),n=wJ(t);n&&vUe(n)&&K0(n).position==="static";)n=wJ(n);return n&&(sp(n)==="html"||sp(n)==="body"&&K0(n).position==="static")?e:n||xUe(t)||e}function QH(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function T4(t,e,n){return Xy(t,t8(e,n))}function wUe(t,e,n){var r=T4(t,e,n);return r>n?n:r}function ife(){return{top:0,right:0,bottom:0,left:0}}function sfe(t){return Object.assign({},ife(),t)}function ofe(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var SUe=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,sfe(typeof e!="number"?e:ofe(e,qC))};function kUe(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Yf(n.placement),l=QH(a),c=[Oc,Th].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!o)){var h=SUe(i.padding,n),d=YH(s),p=l==="y"?Pc:Oc,g=l==="y"?_h:Th,y=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],b=o[l]-n.rects.reference[l],w=GC(s),S=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,T=y/2-b/2,D=h[p],E=S-d[u]-h[g],O=S/2-d[u]/2+T,P=T4(D,O,E),$=l;n.modifiersData[r]=(e={},e[$]=P,e.centerOffset=P-O,e)}}function CUe(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||rfe(e.elements.popper,i)&&(e.elements.arrow=i))}const _Ue={name:"arrow",enabled:!0,phase:"main",fn:kUe,effect:CUe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ox(t){return t.split("-")[1]}var TUe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function EUe(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Ax(n*i)/i||0,y:Ax(r*i)/i||0}}function SJ(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=t.isFixed,d=o.x,p=d===void 0?0:d,g=o.y,y=g===void 0?0:g,b=typeof u=="function"?u({x:p,y}):{x:p,y};p=b.x,y=b.y;var w=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),T=Oc,D=Pc,E=window;if(c){var O=GC(n),P="clientHeight",$="clientWidth";if(O===Mu(n)&&(O=u1(n),K0(O).position!=="static"&&a==="absolute"&&(P="scrollHeight",$="scrollWidth")),O=O,i===Pc||(i===Oc||i===Th)&&s===Tk){D=_h;var W=h&&O===E&&E.visualViewport?E.visualViewport.height:O[P];y-=W-r.height,y*=l?1:-1}if(i===Oc||(i===Pc||i===_h)&&s===Tk){T=Th;var H=h&&O===E&&E.visualViewport?E.visualViewport.width:O[$];p-=H-r.width,p*=l?1:-1}}var K=Object.assign({position:a},c&&TUe),Z=u===!0?EUe({x:p,y},Mu(n)):{x:p,y};if(p=Z.x,y=Z.y,l){var oe;return Object.assign({},K,(oe={},oe[D]=S?"0":"",oe[T]=w?"0":"",oe.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",oe))}return Object.assign({},K,(e={},e[D]=S?y+"px":"",e[T]=w?p+"px":"",e.transform="",e))}function AUe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Yf(e.placement),variation:Ox(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,SJ(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,SJ(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const PUe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AUe,data:{}};var g5={passive:!0};function OUe(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=Mu(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,g5)}),a&&l.addEventListener("resize",n.update,g5),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,g5)}),a&&l.removeEventListener("resize",n.update,g5)}}const IUe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OUe,data:{}};var DUe={left:"right",right:"left",bottom:"top",top:"bottom"};function C6(t){return t.replace(/left|right|bottom|top/g,function(e){return DUe[e]})}var MUe={start:"end",end:"start"};function kJ(t){return t.replace(/start|end/g,function(e){return MUe[e]})}function XH(t){var e=Mu(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function JH(t){return Px(u1(t)).left+XH(t).scrollLeft}function NUe(t,e){var n=Mu(t),r=u1(t),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var c=nfe();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+JH(t),y:l}}function RUe(t){var e,n=u1(t),r=XH(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Xy(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Xy(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+JH(t),l=-r.scrollTop;return K0(i||n).direction==="rtl"&&(a+=Xy(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function ZH(t){var e=K0(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function afe(t){return["html","body","#document"].indexOf(sp(t))>=0?t.ownerDocument.body:vh(t)&&ZH(t)?t:afe(oO(t))}function E4(t,e){var n;e===void 0&&(e=[]);var r=afe(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=Mu(r),o=i?[s].concat(s.visualViewport||[],ZH(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(E4(oO(o)))}function aB(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function LUe(t,e){var n=Px(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function CJ(t,e,n){return e===efe?aB(NUe(t,n)):ab(e)?LUe(e,n):aB(RUe(u1(t)))}function BUe(t){var e=E4(oO(t)),n=["absolute","fixed"].indexOf(K0(t).position)>=0,r=n&&vh(t)?GC(t):t;return ab(r)?e.filter(function(i){return ab(i)&&rfe(i,r)&&sp(i)!=="body"}):[]}function FUe(t,e,n,r){var i=e==="clippingParents"?BUe(t):[].concat(e),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,c){var u=CJ(t,c,r);return l.top=Xy(u.top,l.top),l.right=t8(u.right,l.right),l.bottom=t8(u.bottom,l.bottom),l.left=Xy(u.left,l.left),l},CJ(t,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function lfe(t){var e=t.reference,n=t.element,r=t.placement,i=r?Yf(r):null,s=r?Ox(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Pc:l={x:o,y:e.y-n.height};break;case _h:l={x:o,y:e.y+e.height};break;case Th:l={x:e.x+e.width,y:a};break;case Oc:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?QH(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Ex:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Tk:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Ek(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,a=n.boundary,l=a===void 0?iUe:a,c=n.rootBoundary,u=c===void 0?efe:c,h=n.elementContext,d=h===void 0?BS:h,p=n.altBoundary,g=p===void 0?!1:p,y=n.padding,b=y===void 0?0:y,w=sfe(typeof b!="number"?b:ofe(b,qC)),S=d===BS?sUe:BS,T=t.rects.popper,D=t.elements[g?S:d],E=FUe(ab(D)?D:D.contextElement||u1(t.elements.popper),l,u,o),O=Px(t.elements.reference),P=lfe({reference:O,element:T,placement:i}),$=aB(Object.assign({},T,P)),W=d===BS?$:O,H={top:E.top-W.top+w.top,bottom:W.bottom-E.bottom+w.bottom,left:E.left-W.left+w.left,right:W.right-E.right+w.right},K=t.modifiersData.offset;if(d===BS&&K){var Z=K[i];Object.keys(H).forEach(function(oe){var te=[Th,_h].indexOf(oe)>=0?1:-1,re=[Pc,_h].indexOf(oe)>=0?"y":"x";H[oe]+=Z[re]*te})}return H}function $Ue(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?tfe:l,u=Ox(r),h=u?a?xJ:xJ.filter(function(g){return Ox(g)===u}):qC,d=h.filter(function(g){return c.indexOf(g)>=0});d.length===0&&(d=h);var p=d.reduce(function(g,y){return g[y]=Ek(t,{placement:y,boundary:i,rootBoundary:s,padding:o})[Yf(y)],g},{});return Object.keys(p).sort(function(g,y){return p[g]-p[y]})}function jUe(t){if(Yf(t)===GH)return[];var e=C6(t);return[kJ(t),e,kJ(e)]}function zUe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,y=n.allowedAutoPlacements,b=e.options.placement,w=Yf(b),S=w===b,T=l||(S||!g?[C6(b)]:jUe(b)),D=[b].concat(T).reduce(function(fe,ke){return fe.concat(Yf(ke)===GH?$Ue(e,{placement:ke,boundary:u,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:y}):ke)},[]),E=e.rects.reference,O=e.rects.popper,P=new Map,$=!0,W=D[0],H=0;H<D.length;H++){var K=D[H],Z=Yf(K),oe=Ox(K)===Ex,te=[Pc,_h].indexOf(Z)>=0,re=te?"width":"height",Y=Ek(e,{placement:K,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),z=te?oe?Th:Oc:oe?_h:Pc;E[re]>O[re]&&(z=C6(z));var U=C6(z),G=[];if(s&&G.push(Y[Z]<=0),a&&G.push(Y[z]<=0,Y[U]<=0),G.every(function(fe){return fe})){W=K,$=!1;break}P.set(K,G)}if($)for(var B=g?3:1,Q=function(ke){var Be=D.find(function(Qe){var ft=P.get(Qe);if(ft)return ft.slice(0,ke).every(function(Ne){return Ne})});if(Be)return W=Be,"break"},ie=B;ie>0;ie--){var q=Q(ie);if(q==="break")break}e.placement!==W&&(e.modifiersData[r]._skip=!0,e.placement=W,e.reset=!0)}}const HUe={name:"flip",enabled:!0,phase:"main",fn:zUe,requiresIfExists:["offset"],data:{_skip:!1}};function _J(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function TJ(t){return[Pc,Th,_h,Oc].some(function(e){return t[e]>=0})}function UUe(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Ek(e,{elementContext:"reference"}),a=Ek(e,{altBoundary:!0}),l=_J(o,r),c=_J(a,i,s),u=TJ(l),h=TJ(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const VUe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:UUe};function WUe(t,e,n){var r=Yf(t),i=[Oc,Pc].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Oc,Th].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function qUe(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=tfe.reduce(function(u,h){return u[h]=WUe(h,e.rects,s),u},{}),a=o[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}const GUe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qUe};function KUe(t){var e=t.state,n=t.name;e.modifiersData[n]=lfe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const YUe={name:"popperOffsets",enabled:!0,phase:"read",fn:KUe,data:{}};function QUe(t){return t==="x"?"y":"x"}function XUe(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=d===void 0?!0:d,g=n.tetherOffset,y=g===void 0?0:g,b=Ek(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),w=Yf(e.placement),S=Ox(e.placement),T=!S,D=QH(w),E=QUe(D),O=e.modifiersData.popperOffsets,P=e.rects.reference,$=e.rects.popper,W=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,H=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(O){if(s){var oe,te=D==="y"?Pc:Oc,re=D==="y"?_h:Th,Y=D==="y"?"height":"width",z=O[D],U=z+b[te],G=z-b[re],B=p?-$[Y]/2:0,Q=S===Ex?P[Y]:$[Y],ie=S===Ex?-$[Y]:-P[Y],q=e.elements.arrow,fe=p&&q?YH(q):{width:0,height:0},ke=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ife(),Be=ke[te],Qe=ke[re],ft=T4(0,P[Y],fe[Y]),Ne=T?P[Y]/2-B-ft-Be-H.mainAxis:Q-ft-Be-H.mainAxis,rt=T?-P[Y]/2+B+ft+Qe+H.mainAxis:ie+ft+Qe+H.mainAxis,Mt=e.elements.arrow&&GC(e.elements.arrow),it=Mt?D==="y"?Mt.clientTop||0:Mt.clientLeft||0:0,Rt=(oe=K?.[D])!=null?oe:0,xt=z+Ne-Rt-it,Nn=z+rt-Rt,Hn=T4(p?t8(U,xt):U,z,p?Xy(G,Nn):G);O[D]=Hn,Z[D]=Hn-z}if(a){var $n,Wn=D==="x"?Pc:Oc,nr=D==="x"?_h:Th,Cn=O[E],Nr=E==="y"?"height":"width",ki=Cn+b[Wn],yr=Cn-b[nr],mt=[Pc,Oc].indexOf(w)!==-1,zt=($n=K?.[E])!=null?$n:0,ze=mt?ki:Cn-P[Nr]-$[Nr]-zt+H.altAxis,tt=mt?Cn+P[Nr]+$[Nr]-zt-H.altAxis:yr,wt=p&&mt?wUe(ze,Cn,tt):T4(p?ze:ki,Cn,p?tt:yr);O[E]=wt,Z[E]=wt-Cn}e.modifiersData[r]=Z}}const JUe={name:"preventOverflow",enabled:!0,phase:"main",fn:XUe,requiresIfExists:["offset"]};function ZUe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eVe(t){return t===Mu(t)||!vh(t)?XH(t):ZUe(t)}function tVe(t){var e=t.getBoundingClientRect(),n=Ax(e.width)/t.offsetWidth||1,r=Ax(e.height)/t.offsetHeight||1;return n!==1||r!==1}function nVe(t,e,n){n===void 0&&(n=!1);var r=vh(e),i=vh(e)&&tVe(e),s=u1(e),o=Px(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((sp(e)!=="body"||ZH(s))&&(a=eVe(e)),vh(e)?(l=Px(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=JH(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function rVe(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function iVe(t){var e=rVe(t);return mUe.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function sVe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function oVe(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var EJ={placement:"bottom",modifiers:[],strategy:"absolute"};function AJ(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function aVe(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?EJ:i;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},EJ,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],d=!1,p={state:u,setOptions:function(w){var S=typeof w=="function"?w(u.options):w;y(),u.options=Object.assign({},s,u.options,S),u.scrollParents={reference:ab(a)?E4(a):a.contextElement?E4(a.contextElement):[],popper:E4(l)};var T=iVe(oVe([].concat(r,u.options.modifiers)));return u.orderedModifiers=T.filter(function(D){return D.enabled}),g(),p.update()},forceUpdate:function(){if(!d){var w=u.elements,S=w.reference,T=w.popper;if(AJ(S,T)){u.rects={reference:nVe(S,GC(T),u.options.strategy==="fixed"),popper:YH(T)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(H){return u.modifiersData[H.name]=Object.assign({},H.data)});for(var D=0;D<u.orderedModifiers.length;D++){if(u.reset===!0){u.reset=!1,D=-1;continue}var E=u.orderedModifiers[D],O=E.fn,P=E.options,$=P===void 0?{}:P,W=E.name;typeof O=="function"&&(u=O({state:u,options:$,name:W,instance:p})||u)}}}},update:sVe(function(){return new Promise(function(b){p.forceUpdate(),b(u)})}),destroy:function(){y(),d=!0}};if(!AJ(a,l))return p;p.setOptions(c).then(function(b){!d&&c.onFirstUpdate&&c.onFirstUpdate(b)});
352function g(){u.orderedModifiers.forEach(function(b){var w=b.name,S=b.options,T=S===void 0?{}:S,D=b.effect;if(typeof D=="function"){var E=D({state:u,name:w,instance:p,options:T}),O=function(){};h.push(E||O)}})}function y(){h.forEach(function(b){return b()}),h=[]}return p}}var lVe=[IUe,YUe,PUe,bUe,GUe,HUe,JUe,_Ue,VUe],cVe=aVe({defaultModifiers:lVe});const wv=(t,e)=>({var:t,varRef:e?`var(${t}, ${e})`:`var(${t})`}),Ha={arrowShadowColor:wv("--popper-arrow-shadow-color"),arrowSize:wv("--popper-arrow-size","8px"),arrowSizeHalf:wv("--popper-arrow-size-half"),arrowBg:wv("--popper-arrow-bg"),transformOrigin:wv("--popper-transform-origin"),arrowOffset:wv("--popper-arrow-offset")};function uVe(t){if(t.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(t.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(t.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(t.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const hVe={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},dVe=t=>hVe[t],PJ={scroll:!0,resize:!0};function fVe(t){let e;return typeof t=="object"?e={enabled:!0,options:{...PJ,...t}}:e={enabled:t,options:PJ},e}const pVe={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:t})=>{t.styles.popper.width=`${t.rects.reference.width}px`},effect:({state:t})=>()=>{const e=t.elements.reference;t.elements.popper.style.width=`${e.offsetWidth}px`}},mVe={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:t})=>{OJ(t)},effect:({state:t})=>()=>{OJ(t)}},OJ=t=>{t.elements.popper.style.setProperty(Ha.transformOrigin.var,dVe(t.placement))},gVe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:t})=>{yVe(t)}},yVe=t=>{if(!t.placement)return;const e=bVe(t.placement);if(t.elements?.arrow&&e){Object.assign(t.elements.arrow.style,{[e.property]:e.value,width:Ha.arrowSize.varRef,height:Ha.arrowSize.varRef,zIndex:-1});const n={[Ha.arrowSizeHalf.var]:`calc(${Ha.arrowSize.varRef} / 2 - 1px)`,[Ha.arrowOffset.var]:`calc(${Ha.arrowSizeHalf.varRef} * -1)`};for(const r in n)t.elements.arrow.style.setProperty(r,n[r])}},bVe=t=>{if(t.startsWith("top"))return{property:"bottom",value:Ha.arrowOffset.varRef};if(t.startsWith("bottom"))return{property:"top",value:Ha.arrowOffset.varRef};if(t.startsWith("left"))return{property:"right",value:Ha.arrowOffset.varRef};if(t.startsWith("right"))return{property:"left",value:Ha.arrowOffset.varRef}},vVe={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:t})=>{IJ(t)},effect:({state:t})=>()=>{IJ(t)}},IJ=t=>{if(!t.elements.arrow)return;const e=t.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!e)return;const n=uVe(t.placement);n&&e.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(e.style,{transform:"rotate(45deg)",background:Ha.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},xVe={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},wVe={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function SVe(t,e="ltr"){const n=xVe[t]?.[e]||t;return e==="ltr"?n:wVe[t]??n}function cfe(t={}){const{enabled:e=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:s=8,eventListeners:o=!0,offset:a,gutter:l=8,flip:c=!0,boundary:u="clippingParents",preventOverflow:h=!0,matchWidth:d,direction:p="ltr"}=t,g=_.useRef(null),y=_.useRef(null),b=_.useRef(null),w=SVe(r,p),S=_.useRef(()=>{}),T=_.useCallback(()=>{!e||!g.current||!y.current||(S.current?.(),b.current=cVe(g.current,y.current,{placement:w,modifiers:[vVe,gVe,mVe,{...pVe,enabled:!!d},{name:"eventListeners",...fVe(o)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:u}},...n??[]],strategy:i}
352),b.current.forceUpdate(),S.current=b.current.destroy)},[w,e,n,d,o,s,a,l,c,h,u,i]);_.useEffect(()=>()=>{!g.current&&!y.current&&(b.current?.destroy(),b.current=null)},[]);const D=_.useCallback(H=>{g.current=H,T()},[T]),E=_.useCallback((H={},K=null)=>({...H,ref:Ss(D,K)}),[D]),O=_.useCallback(H=>{y.current=H,T()},[T]),P=_.useCallback((H={},K=null)=>({...H,ref:Ss(O,K),style:{...H.style,position:i,minWidth:d?void 0:"max-content",inset:"0 auto auto 0"}}),[i,O,d]),$=_.useCallback((H={},K=null)=>{const{size:Z,shadowColor:oe,bg:te,style:re,...Y}=H;return{...Y,ref:K,"data-popper-arrow":"",style:kVe(H)}},[]),W=_.useCallback((H={},K=null)=>({...H,ref:K,"data-popper-arrow-inner":""}),[]);return{update(){b.current?.update()},forceUpdate(){b.current?.forceUpdate()},transformOrigin:Ha.transformOrigin.varRef,referenceRef:D,popperRef:O,getPopperProps:P,getArrowProps:$,getArrowInnerProps:W,getReferenceProps:E}}function kVe(t){const{size:e,shadowColor:n,bg:r,style:i}=t,s={...i,position:"absolute"};return e&&(s["--popper-arrow-size"]=e),n&&(s["--popper-arrow-shadow-color"]=n),r&&(s["--popper-arrow-bg"]=r),s}function CVe(){const t=_.useRef(new Map),e=t.current,n=_.useCallback((i,s,o,a)=>{t.current.set(o,{type:s,el:i,options:a}),i.addEventListener(s,o,a)},[]),r=_.useCallback((i,s,o,a)=>{i.removeEventListener(s,o,a),t.current.delete(o)},[]);return _.useEffect(()=>()=>{e.forEach((i,s)=>{r(i.el,i.type,s,i.options)})},[r,e]),{add:n,remove:r}}function vM(t){const e=t.composedPath?.()?.[0]??t.target,{tagName:n,isContentEditable:r}=e;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function _Ve(t={}){const{ref:e,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:s=!0,onMouseDown:o,onMouseUp:a,onClick:l,onKeyDown:c,onKeyUp:u,tabIndex:h,onMouseOver:d,onMouseLeave:p,...g}=t,[y,b]=_.useState(!0),[w,S]=_.useState(!1),T=CVe(),D=z=>{z&&z.tagName!=="BUTTON"&&b(!1)},E=y?h:h||0,O=n&&!r,P=_.useCallback(z=>{if(n){z.stopPropagation(),z.preventDefault();return}z.currentTarget.focus(),l?.(z)},[n,l]),$=_.useCallback(z=>{w&&vM(z)&&(z.preventDefault(),z.stopPropagation(),S(!1),T.remove(document,"keyup",$,!1))},[w,T]),W=_.useCallback(z=>{if(c?.(z),n||z.defaultPrevented||z.metaKey||!vM(z.nativeEvent)||y)return;const U=i&&z.key==="Enter";s&&z.key===" "&&(z.preventDefault(),S(!0)),U&&(z.preventDefault(),z.currentTarget.click()),T.add(document,"keyup",$,!1)},[n,y,c,i,s,T,$]),H=_.useCallback(z=>{if(u?.(z),n||z.defaultPrevented||z.metaKey||!vM(z.nativeEvent)||y)return;s&&z.key===" "&&(z.preventDefault(),S(!1),z.currentTarget.click())},[s,y,n,u]),K=_.useCallback(z=>{z.button===0&&(S(!1),T.remove(document,"mouseup",K,!1))},[T]),Z=_.useCallback(z=>{if(z.button!==0)return;if(n){z.stopPropagation(),z.preventDefault();return}y||S(!0),z.currentTarget.focus({preventScroll:!0}),T.add(document,"mouseup",K,!1),o?.(z)},[n,y,o,T,K]),oe=_.useCallback(z=>{z.button===0&&(y||S(!1),a?.(z))},[a,y]),te=_.useCallback(z=>{if(n){z.preventDefault();return}d?.(z)},[n,d]),re=_.useCallback(z=>{w&&(z.preventDefault(),S(!1)),p?.(z)},[w,p]),Y=Ss(e,D);return y?{...g,ref:Y,type:"button","aria-disabled":O?void 0:n,disabled:O,onClick:P,onMouseDown:o,onMouseUp:a,onKeyUp:u,onKeyDown:c,onMouseOver:d,onMouseLeave:p}:{...g,ref:Y,role:"button","data-active":En(w),"aria-disabled":n?"true":void 0,tabIndex:O?void 0:E,onClick:P,onMouseDown:Z,onMouseUp:oe,onKeyUp:H,onKeyDown:W,onMouseOver:te,onMouseLeave:re}}const[TVe,EVe,AVe,PVe]=Yhe(),[OVe,KC]=Oi({strict:!1,name:"MenuContext"});function ufe(t){return t?.ownerDocument??document}function IVe(t){return ufe(t).activeElement===t}function DVe(t={}){const{id:e,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:s=!0,isLazy:o,isOpen:a,defaultIsOpen:l,onClose:c,onOpen:u,placement:h="bottom-start",lazyBehavior:d="unmount",direction:p,computePositionOnMount:g=!1,...y}=t,b=_.useRef(null),w=_.useRef(null),S=_.useRef(!0),T=AVe(),D=_.useCallback(()=>{requestAnimationFrame(()=>{b.current?.focus({preventScroll:!1})})},[]),E=_.useCallback(()=>{const q=setTimeout(()=>{if(i)i.current?.focus();else if(!T.count())b.current?.focus({preventScroll:!1});else{const fe=T.firstEnabled();fe&&te(fe.index)}});G.current.add(q)},[T,i]),O=_.useCallback(()=>{const q=setTimeout(()=>{if(!T.count())b.current?.focus({preventScroll:!1});else{const fe=T.lastEnabled();fe&&te(fe.index)}});G.current.add(q)},[T]),P=_.useCallback(()=>{u?.(),s?E():D()},[s,E,D,u]),{isOpen:$,onOpen:W,onClose:H,onToggle:K}=Id({isOpen:a,defaultIsOpen:l,onClose:c,onOpen:P});n8e({enabled:$&&r,ref:b,handler:q=>{const fe=q.composedPath?.()?.[0]??q.target;w.current?.contains(fe)||H()}});const Z=cfe({...y,enabled:$||g,placement:h,direction:p}),[oe,te]=_.useState(-1);VAe(b,{focusRef:w,visible:$});const re=$Ae({isOpen:$,ref:b}),[Y,z]=ZAe(e,"menu-button","menu-list"),U=_.useCallback(()=>{W(),D()},[W,D]),G=_.useRef(new Set([]));_.useEffect(()=>{const q=G.current;return()=>{q.forEach(fe=>clearTimeout(fe)),q.clear()}},[]),Ng(()=>{$||(te(-1),b.current?.scrollTo(0,0))},[$]),Ng(()=>{$&&oe===-1&&D()},[oe,$]),_.useEffect(()=>{if(!$)return;T.item(oe)?.node?.focus({preventScroll:!S.current})},[T,oe,$]);const B=_.useCallback(()=>{W(),E()},[E,W]),Q=_.useCallback(()=>{S.current=!0,W(),O()},[W,O]),ie=_.useCallback(()=>{const q=ufe(b.current),fe=b.current?.contains(q.activeElement);if(!($&&!fe))return;T.item(oe)?.node?.focus({preventScroll:!S.current})},[$,oe,T]);return{openAndFocusMenu:U,openAndFocusFirstItem:B,openAndFocusLastItem:Q,onTransitionEnd:ie,unstable__animationState:re,descendants:T,popper:Z,buttonId:Y,menuId:z,forceUpdate:Z.forceUpdate,orientation:"vertical",isOpen:$,onToggle:K,onOpen:W,onClose:H,menuRef:b,buttonRef:w,focusedIndex:oe,closeOnSelect:n,closeOnBlur:r,autoSelect:s,setFocusedIndex:te,isLazy:o,lazyBehavior:d,initialFocusRef:i,scrollIntoViewRef:S}}function MVe(t={},e=null){const n=KC(),{onToggle:r,popper:i,openAndFocusFirstItem:s,openAndFocusLastItem:o,scrollIntoViewRef:a}=n,l=_.useCallback(c=>{const u=c.key,d={Enter:s,ArrowDown:s,ArrowUp:o}[u];
352d&&(a.current=!0,c.preventDefault(),c.stopPropagation(),d(c))},[s,o,a]);return{...t,ref:Ss(n.buttonRef,e,i.referenceRef),id:n.buttonId,"data-active":En(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Fn(t.onClick,r),onKeyDown:Fn(t.onKeyDown,l)}}function lB(t){return BVe(t)&&!!t?.getAttribute("role")?.startsWith("menuitem")}function NVe(t={},e=null){const n=KC();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:r,setFocusedIndex:i,menuRef:s,isOpen:o,onClose:a,menuId:l,isLazy:c,lazyBehavior:u,scrollIntoViewRef:h,unstable__animationState:d}=n,p=EVe(),g=rUe({preventDefault:S=>S.key!==" "&&lB(S.target)}),y=_.useCallback(S=>{if(!S.currentTarget.contains(S.target))return;const T=S.key,E={Tab:P=>P.preventDefault(),Escape:P=>{P.stopPropagation(),a()},ArrowDown:()=>{h.current=!0;const P=p.nextEnabled(r)??p.firstEnabled();P&&i(P.index)},ArrowUp:()=>{h.current=!0;const P=p.prevEnabled(r)??p.firstEnabled();P&&i(P.index)}}[T];if(E){S.preventDefault(),E(S);return}const O=g(P=>{const $=tUe(p.values(),P,W=>W?.node?.textContent??"",p.item(r));if($){const W=p.indexOf($.node);i(W)}});lB(S.target)&&O(S)},[p,r,g,a,i,h]),b=_.useRef(!1);o&&(b.current=!0);const w=AAe({wasSelected:b.current,enabled:c,mode:u,isSelected:d.present});return{...t,ref:Ss(s,e),children:w?t.children:null,tabIndex:-1,role:"menu",id:l,style:{...t.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Fn(t.onKeyDown,y)}}function RVe(t={}){const{popper:e,isOpen:n}=KC();return e.getPopperProps({...t,style:{visibility:n?"visible":"hidden",...t.style}})}function LVe(t={},e=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:s,onFocus:o,isDisabled:a,isFocusable:l,closeOnSelect:c,type:u,...h}=t,d=KC(),{setFocusedIndex:p,focusedIndex:g,closeOnSelect:y,onClose:b,menuId:w,scrollIntoViewRef:S}=d,T=_.useRef(null),D=`${w}-menuitem-${_.useId()}`,{index:E,register:O}=PVe({disabled:a&&!l}),P=_.useCallback(te=>{n?.(te),!a&&(S.current=!1,p(E))},[p,E,a,n,S]),$=_.useCallback(te=>{r?.(te),T.current&&!IVe(T.current)&&P(te)},[P,r]),W=_.useCallback(te=>{i?.(te),!a&&p(-1)},[p,a,i]),H=_.useCallback(te=>{s?.(te),lB(te.currentTarget)&&(c??y)&&b()},[b,s,y,c]),K=_.useCallback(te=>{o?.(te),p(E)},[p,o,E]),Z=E===g,oe=_Ve({onClick:H,onFocus:K,onMouseEnter:P,onMouseMove:$,onMouseLeave:W,ref:Ss(O,T,e),isDisabled:a,isFocusable:l});return{...h,...oe,type:u??oe.type,id:D,role:"menuitem",tabIndex:Z?0:-1}}function BVe(t){if(!FVe(t))return!1;const e=t.ownerDocument.defaultView??window;return t instanceof e.HTMLElement}function FVe(t){return t!=null&&typeof t=="object"&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}const[$Ve,ww]=Oi({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),YC=t=>{const{children:e}=t,n=da("Menu",t),r=ji(t),{direction:i}=a1(),{descendants:s,...o}=DVe({...r,direction:i}),a=_.useMemo(()=>o,[o]),{isOpen:l,onClose:c,forceUpdate:u}=a;return x.jsx(TVe,{value:s,children:x.jsx(OVe,{value:a,children:x.jsx($Ve,{value:n,children:Cc(e,{isOpen:l,onClose:c,forceUpdate:u})})})})};YC.displayName="Menu";const jVe=Ot((t,e)=>{const n=ww();return x.jsx(ct.button,{ref:e,...t,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),QC=Ot((t,e)=>{const{children:n,as:r,...i}=t,s=MVe(i,e),o=r||jVe;return x.jsx(o,{...s,className:un("chakra-menu__menu-button",t.className),children:x.jsx(ct.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:t.children})})});QC.displayName="MenuButton";const hfe=Ot((t,e)=>{const n=ww();return x.jsx(ct.span,{ref:e,...t,__css:n.command,className:"chakra-menu__command"})});hfe.displayName="MenuCommand";const dfe=t=>{const{className:e,...n}=t,r=ww();return x.jsx(ct.hr,{"aria-orientation":"horizontal",className:un("chakra-menu__divider",e),...n,__css:r.divider})};dfe.displayName="MenuDivider";const ffe=t=>{const{className:e,children:n,...r}=t,i=ww(),s=_.Children.only(n),o=_.isValidElement(s)?_.cloneElement(s,{focusable:"false","aria-hidden":!0,
352className:un("chakra-menu__icon",s.props.className)}):null,a=un("chakra-menu__icon-wrapper",e);return x.jsx(ct.span,{className:a,...r,__css:i.icon,children:o})};ffe.displayName="MenuIcon";const zVe=Ot((t,e)=>{const{type:n,...r}=t,i=ww(),s=r.as||n?n??void 0:"button",o=_.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return x.jsx(ct.button,{ref:e,type:s,...r,__css:o})}),mg=Ot((t,e)=>{const{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:s="0.75rem",children:o,...a}=t,l=LVe(a,e),u=n||i?x.jsx("span",{style:{pointerEvents:"none",flex:1},children:o}):o;return x.jsxs(zVe,{...l,className:un("chakra-menu__menuitem",l.className),children:[n&&x.jsx(ffe,{fontSize:"0.8em",marginEnd:r,children:n}),u,i&&x.jsx(hfe,{marginStart:s,children:i})]})});mg.displayName="MenuItem";const HVe={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},UVe=ct(Rh.div),aO=Ot(function(e,n){const{rootProps:r,motionProps:i,...s}=e,{isOpen:o,onTransitionEnd:a,unstable__animationState:l}=KC(),c=NVe(s,n),u=RVe(r),h=ww();return x.jsx(ct.div,{...u,__css:{zIndex:e.zIndex??h.list?.zIndex},children:x.jsx(UVe,{variants:HVe,initial:!1,animate:o?"enter":"exit",__css:{outline:0,...h.list},...i,...c,className:un("chakra-menu__menu-list",c.className),onUpdate:a,onAnimationComplete:xz(l.onComplete,c.onAnimationComplete)})})});aO.displayName="MenuList";var VVe=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Sv=new WeakMap,y5=new WeakMap,b5={},xM=0,pfe=function(t){return t&&(t.host||pfe(t.parentNode))},WVe=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=pfe(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})},qVe=function(t,e,n,r){var i=WVe(e,Array.isArray(t)?t:[t]);b5[n]||(b5[n]=new WeakMap);var s=b5[n],o=[],a=new Set,l=new Set(i),c=function(h){!h||a.has(h)||(a.add(h),c(h.parentNode))};i.forEach(c);var u=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(d){if(a.has(d))u(d);else try{var p=d.getAttribute(r),g=p!==null&&p!=="false",y=(Sv.get(d)||0)+1,b=(s.get(d)||0)+1;Sv.set(d,y),s.set(d,b),o.push(d),y===1&&g&&y5.set(d,!0),b===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return u(e),a.clear(),xM++,function(){o.forEach(function(h){var d=Sv.get(h)-1,p=s.get(h)-1;Sv.set(h,d),s.set(h,p),d||(y5.has(h)||h.removeAttribute(r),y5.delete(h)),p||h.removeAttribute(n)}),xM--,xM||(Sv=new WeakMap,Sv=new WeakMap,y5=new WeakMap,b5={})}},GVe=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=VVe(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),qVe(r,i,n,"aria-hidden")):function(){return null}},KVe=Object.defineProperty,YVe=(t,e,n)=>e in t?KVe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,QVe=(t,e,n)=>(YVe(t,e+"",n),n);class XVe{constructor(){QVe(this,"modals"),this.modals=new Set}add(e){return this.modals.add(e),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){if(!e)return!1;const n=Array.from(this.modals)[this.modals.size-1];return e===n}}const cB=new XVe;function mfe(t,e){const[n,r]=_.useState(0);return _.useEffect(()=>{const i=t.current;if(i){if(e){const s=cB.add(i);r(s)}return()=>{cB.remove(i),r(0)}}},[e,t]),n}function JVe(t){const{isOpen:e,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:s=!0,useInert:o=!0,onOverlayClick:a,onEsc:l}=t,c=_.useRef(null),u=_.useRef(null),[h,d,p]=eWe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");ZVe(c,e&&o);const g=mfe(c,e),y=_.useRef(null),b=_.useCallback(W=>{y.current=W.target},[]),w=_.useCallback(W=>{W.key==="Escape"&&(W.stopPropagation(),s&&n?.(),l?.())},[s,n,l]),[S,T]=_.useState(!1),[D,E]=_.useState(!1),O=_.useCallback((W={},H=null)=>({role:"dialog",...W,ref:Ss(H,c),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?d:void 0,"aria-describedby":D?p:void 0,onClick:Fn(W.onClick,K=>K.stopPropagation())}),[p,D,h,d,S]),P=_.useCallback(W=>{W.stopPropagation(),y.current===W.target&&cB.isTopModal(c.current)&&(i&&n?.(),a?.())},[n,i,a]),$=_.useCallback((W={},H=null)=>({...W,ref:Ss(H,u),onClick:Fn(W.onClick,P),onKeyDown:Fn(W.onKeyDown,w),onMouseDown:Fn(W.onMouseDown,b)}),[w,b,P]);return{isOpen:e,onClose:n,headerId:d,bodyId:p,setBodyMounted:E,setHeaderMounted:T,dialogRef:c,overlayRef:u,getDialogProps:O,getDialogContainerProps:$,index:g}}function ZVe(t,e){const n=t.current;_.useEffect(()=>{if(!(!t.current||!e))return GVe(t.current)},[e,t,n])}function eWe(t,...e){const n=_.useId(),r=t||n;return _.useMemo(()=>e.map(i=>`${i}-${r}`),[r,e])}const[tWe,Ib]=Oi({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[nWe,Bg]=Oi({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `
352context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),lb=t=>{const e={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...t,lockFocusAcrossFrames:t.lockFocusAcrossFrames||!0},{portalProps:n,children:r,autoFocus:i,trapFocus:s,initialFocusRef:o,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:u,preserveScrollBarGap:h,motionPreset:d,lockFocusAcrossFrames:p,animatePresenceProps:g,onCloseComplete:y}=e,b=da("Modal",e),S={...JVe(e),autoFocus:i,trapFocus:s,initialFocusRef:o,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:u,preserveScrollBarGap:h,motionPreset:d,lockFocusAcrossFrames:p};return x.jsx(nWe,{value:S,children:x.jsx(tWe,{value:b,children:x.jsx(s1,{...g,onExitComplete:y,children:S.isOpen&&x.jsx(xw,{...n,children:r})})})})};lb.displayName="Modal";var _6="right-scroll-bar-position",T6="width-before-scroll-bar",rWe="with-scroll-bars-hidden",iWe="--removed-body-scroll-bar-size",gfe=wde(),wM=function(){},lO=_.forwardRef(function(t,e){var n=_.useRef(null),r=_.useState({onScrollCapture:wM,onWheelCapture:wM,onTouchMoveCapture:wM}),i=r[0],s=r[1],o=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,h=t.shards,d=t.sideCar,p=t.noIsolation,g=t.inert,y=t.allowPinchZoom,b=t.as,w=b===void 0?"div":b,S=t.gapMode,T=bde(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=d,E=yde([n,e]),O=Af(Af({},T),i);return _.createElement(_.Fragment,null,u&&_.createElement(D,{sideCar:gfe,removeScrollBar:c,shards:h,noIsolation:p,inert:g,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),o?_.cloneElement(_.Children.only(a),Af(Af({},O),{ref:E})):_.createElement(w,Af({},O,{className:l,ref:E}),a))});lO.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lO.classNames={fullWidth:T6,zeroRight:_6};var sWe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oWe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=sWe();return e&&t.setAttribute("nonce",e),t}function aWe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function lWe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var cWe=function(){var t=0,e=null;return{add:function(n){t==0&&(e=oWe())&&(aWe(e,n),lWe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},uWe=function(){var t=cWe();return function(e,n){_.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},yfe=function(){var t=uWe(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},hWe={left:0,top:0,right:0,gap:0},SM=function(t){return parseInt(t||"",10)||0},dWe=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[SM(n),SM(r),SM(i)]},fWe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return hWe;var e=dWe(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])}},pWe=yfe(),K2="data-scroll-locked",mWe=function(t,e,n,r){var i=t.left,s=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),` 353 .`.concat(rWe,` { 354 overflow: hidden `).concat(r,`; 355 padding-right: `).concat(a,"px ").concat(r,`; 356 } 357 body[`).concat(K2,`] { 358 overflow: hidden `).concat(r,`; 359 overscroll-behavior: contain; 360 `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&` 361 padding-left: `.concat(i,`px; 362 padding-top: `).concat(s,`px; 363 padding-right: `).concat(o,`px; 364 margin-left:0; 365 margin-top:0; 366 margin-right: `).concat(a,"px ").concat(r,`; 367 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 368 } 369 370 .`).concat(_6,` { 371 right: `).concat(a,"px ").concat(r,`; 372 } 373 374 .`).concat(T6,` { 375 margin-right: `).concat(a,"px ").concat(r,`; 376 } 377 378 .`).concat(_6," .").concat(_6,` { 379 right: 0 `).concat(r,`; 380 } 381 382 .`).concat(T6," .").concat(T6,` { 383 margin-right: 0 `).concat(r,`; 384 } 385 386 body[`).concat(K2,`] { 387 `).concat(iWe,": ").concat(a,`px; 388 } 389`)},DJ=function(){var t=parseInt(document.body.getAttribute(K2)||"0",10);return isFinite(t)?t:0},gWe=function(){_.useEffect(function(){return document.body.setAttribute(K2,(DJ()+1).toString()),function(){var t=DJ()-1;t<=0?document.body.removeAttribute(K2):document.body.setAttribute(K2,t.toString())}},[])},yWe=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;gWe();var s=_.useMemo(function(){return fWe(i)},[i]);return _.createElement(pWe,{styles:mWe(s,!e,i,n?"":"!important")})},uB=!1;if(typeof window<"u")try{var v5=Object.defineProperty({},"passive",{get:function(){return uB=!0,!0}});window.addEventListener("test",v5,v5),window.removeEventListener("test",v5,v5)}catch{uB=!1}var kv=uB?{passive:!1}:!1,bWe=function(t){return t.tagName==="TEXTAREA"},bfe=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!bWe(t)&&n[e]==="visible")},vWe=function(t){return bfe(t,"overflowY")},xWe=function(t){return bfe(t,"overflowX")},MJ=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=vfe(t,r);
vendor: 2,626 bytes, lines 389-392
389if(i){var s=xfe(t,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wWe=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},SWe=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},vfe=function(t,e){return t==="v"?vWe(e):xWe(e)},xfe=function(t,e){return t==="v"?wWe(e):SWe(e)},kWe=function(t,e){return t==="h"&&e==="rtl"?-1:1},CWe=function(t,e,n,r,i){var s=kWe(t,window.getComputedStyle(e).direction),o=s*r,a=n.target,l=e.contains(a),c=!1,u=o>0,h=0,d=0;do{var p=xfe(t,a),g=p[0],y=p[1],b=p[2],w=y-b-s*g;(g||w)&&vfe(t,a)&&(h+=w,d+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&Math.abs(h)<1||!u&&Math.abs(d)<1)&&(c=!0),c},x5=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},NJ=function(t){return[t.deltaX,t.deltaY]},RJ=function(t){return t&&"current"in t?t.current:t},_We=function(t,e){return t[0]===e[0]&&t[1]===e[1]},TWe=function(t){return` 390 .block-interactivity-`.concat(t,` {pointer-events: none;} 391 .allow-interactivity-`).concat(t,` {pointer-events: all;} 392`)},EWe=0,Cv=[];function AWe(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(EWe++)[0],s=_.useState(yfe)[0],o=_.useRef(t);_.useEffect(function(){o.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=Mze([t.lockRef.current],(t.shards||[]).map(RJ),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=_.useCallback(function(y,b){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var w=x5(y),S=n.current,T="deltaX"in y?y.deltaX:S[0]-w[0],D="deltaY"in y?y.deltaY:S[1]-w[1],E,O=y.target,P=Math.abs(T)>Math.abs(D)?"h":"v";if("touches"in y&&P==="h"&&O.type==="range")return!1;var $=MJ(P,O);if(!$)return!0;if($?E=P:(E=P==="v"?"h":"v",$=MJ(P,O)),!$)return!1;if(!r.current&&"changedTouches"in y&&(T||D)&&(r.current=E),!E)return!0;var W=r.current||E;return CWe(W,b,y,W==="h"?T:D)},[]),l=_.useCallback(function(y){var b=y;if(!(!Cv.length||Cv[Cv.length-1]!==s)){var w="deltaY"in b?NJ(b):x5(b),S=e.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&_We(E.delta,w)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}
392if(!S){var T=(o.current.shards||[]).map(RJ).filter(Boolean).filter(function(E){return E.contains(b.target)}),D=T.length>0?a(b,T[0]):!o.current.noIsolation;D&&b.cancelable&&b.preventDefault()}}},[]),c=_.useCallback(function(y,b,w,S){var T={name:y,delta:b,target:w,should:S,shadowParent:PWe(w)};e.current.push(T),setTimeout(function(){e.current=e.current.filter(function(D){return D!==T})},1)},[]),u=_.useCallback(function(y){n.current=x5(y),r.current=void 0},[]),h=_.useCallback(function(y){c(y.type,NJ(y),y.target,a(y,t.lockRef.current))},[]),d=_.useCallback(function(y){c(y.type,x5(y),y.target,a(y,t.lockRef.current))},[]);_.useEffect(function(){return Cv.push(s),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",l,kv),document.addEventListener("touchmove",l,kv),document.addEventListener("touchstart",u,kv),function(){Cv=Cv.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,kv),document.removeEventListener("touchmove",l,kv),document.removeEventListener("touchstart",u,kv)}},[]);var p=t.removeScrollBar,g=t.inert;return _.createElement(_.Fragment,null,g?_.createElement(s,{styles:TWe(i)}):null,p?_.createElement(yWe,{gapMode:t.gapMode}):null)}function PWe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const OWe=Nze(gfe,AWe);var wfe=_.forwardRef(function(t,e){return _.createElement(lO,Af({},t,{ref:e,sideCar:OWe}))});wfe.classNames=lO.classNames;function Sfe(t){const{autoFocus:e,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:s,allowPinchZoom:o,finalFocusRef:a,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:u,isOpen:h}=Bg(),[d,p]=Uz();_.useEffect(()=>{!d&&p&&setTimeout(p)},[d,p]);const g=mfe(r,h);return x.jsx(Yde,{autoFocus:e,isDisabled:!n,initialFocusRef:i,finalFocusRef:a,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:u,children:x.jsx(wfe,{removeScrollBar:!c,allowPinchZoom:o,enabled:g===1&&s,forwardProps:!0,children:t.children})})}const IWe={initial:({offsetX:t,offsetY:e,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:t,y:e,transition:n?.exit??Sd.exit(Ky.exit,i),transitionEnd:r?.exit}),enter:({transition:t,transitionEnd:e,delay:n})=>({opacity:1,x:0,y:0,transition:t?.enter??Sd.enter(Ky.enter,n),transitionEnd:e?.enter}),exit:({offsetY:t,offsetX:e,transition:n,transitionEnd:r,reverse:i,delay:s})=>{const o={x:e,y:t};return{opacity:0,transition:n?.exit??Sd.exit(Ky.exit,s),...i?{...o,transitionEnd:r?.exit}:{transitionEnd:{...o,...r?.exit}}}}},M3={initial:"initial",animate:"enter",exit:"exit",variants:IWe},DWe=_.forwardRef(function(e,n){const{unmountOnExit:r,in:i,reverse:s=!0,className:o,offsetX:a=0,offsetY:l=8,transition:c,transitionEnd:u,delay:h,animatePresenceProps:d,...p}=e,g=r?i&&r:!0,y=i||r?"enter":"exit",b={offsetX:a,offsetY:l,reverse:s,transition:c,transitionEnd:u,delay:h};return x.jsx(s1,{...d,custom:b,children:g&&x.jsx(Rh.div,{ref:n,className:un("chakra-offset-slide",o),custom:b,...M3,animate:y,...p})})});DWe.displayName="SlideFade";const MWe={exit:({reverse:t,initialScale:e,transition:n,transitionEnd:r,delay:i})=>({opacity:0,...t?{scale:e,transitionEnd:r?.exit}:{transitionEnd:{scale:e,...r?.exit}},transition:n?.exit??Sd.exit(Ky.exit,i)}),enter:({transitionEnd:t,transition:e,delay:n})=>({opacity:1,scale:1,transition:e?.enter??Sd.enter(Ky.enter,n),transitionEnd:t?.enter})},kfe={initial:"exit",animate:"enter",exit:"exit",variants:MWe},NWe=_.forwardRef(function(e,n){const{unmountOnExit:r,in:i,reverse:s=!0,initialScale:o=.95,className:a,transition:l,transitionEnd:c,delay:u,animatePresenceProps:h,...d}=e,p=r?i&&r:!0,g=i||r?"enter":"exit",y={initialScale:o,reverse:s,transition:l,transitionEnd:c,delay:u};return x.jsx(s1,{...h,custom:y,children:p&&x.jsx(Rh.div,{ref:n,className:un("chakra-offset-slide",a),...kfe,animate:g,custom:y,...d})})});NWe.displayName="ScaleFade";const RWe={slideInBottom:{...M3,custom:{offsetY:16,reverse:!0}},slideInRight:{...M3,custom:{offsetX:16,reverse:!0}},slideInTop:{...M3,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...M3,custom:{offsetX:-16,reverse:!0}},scale:{...kfe,custom:{initialScale:.95,reverse:!0}},none:{}},LWe=ct(Rh.section),BWe=t=>RWe[t||"none"],Cfe=_.forwardRef((t,e)=>
392{const{preset:n,motionProps:r=BWe(n),...i}=t;return x.jsx(LWe,{ref:e,...r,...i})});Cfe.displayName="ModalTransition";const Ix=Ot((t,e)=>{const{className:n,children:r,containerProps:i,motionProps:s,...o}=t,{getDialogProps:a,getDialogContainerProps:l}=Bg(),c=a(o,e),u=l(i),h=un("chakra-modal__content",n),d=Ib(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...d.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...d.dialogContainer},{motionPreset:y}=Bg();return x.jsx(Sfe,{children:x.jsx(ct.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:x.jsx(Cfe,{preset:y,motionProps:s,className:h,...c,__css:p,children:r})})})});Ix.displayName="ModalContent";const cb=Ot((t,e)=>{const{className:n,...r}=t,{bodyId:i,setBodyMounted:s}=Bg();_.useEffect(()=>(s(!0),()=>s(!1)),[s]);const o=un("chakra-modal__body",n),a=Ib();return x.jsx(ct.div,{ref:e,className:o,id:i,...r,__css:a.body})});cb.displayName="ModalBody";const ub=Ot((t,e)=>{const{onClick:n,className:r,...i}=t,{onClose:s}=Bg(),o=un("chakra-modal__close-btn",r),a=Ib();return x.jsx(zC,{ref:e,__css:a.closeButton,className:o,onClick:Fn(n,l=>{l.stopPropagation(),s()}),...i})});ub.displayName="ModalCloseButton";const eU=Ot((t,e)=>{const{className:n,...r}=t,i=un("chakra-modal__footer",n),s=Ib(),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return x.jsx(ct.footer,{ref:e,...r,__css:o,className:i})});eU.displayName="ModalFooter";const Dx=Ot((t,e)=>{const{className:n,...r}=t,{headerId:i,setHeaderMounted:s}=Bg();_.useEffect(()=>(s(!0),()=>s(!1)),[s]);const o=un("chakra-modal__header",n),a=Ib(),l={flex:0,...a.header};return x.jsx(ct.header,{ref:e,className:o,id:i,...r,__css:l})});Dx.displayName="ModalHeader";const FWe={enter:({transition:t,transitionEnd:e,delay:n}={})=>({opacity:1,transition:t?.enter??Sd.enter(Ky.enter,n),transitionEnd:e?.enter}),exit:({transition:t,transitionEnd:e,delay:n}={})=>({opacity:0,transition:t?.exit??Sd.exit(Ky.exit,n),transitionEnd:e?.exit})},_fe={initial:"exit",animate:"enter",exit:"exit",variants:FWe},$We=_.forwardRef(function(e,n){const{unmountOnExit:r,in:i,className:s,transition:o,transitionEnd:a,delay:l,animatePresenceProps:c,...u}=e,h=i||r?"enter":"exit",d=r?i&&r:!0,p={transition:o,transitionEnd:a,delay:l};return x.jsx(s1,{...c,custom:p,children:d&&x.jsx(Rh.div,{ref:n,className:un("chakra-fade",s),custom:p,..._fe,animate:h,...u})})});$We.displayName="Fade";const jWe=ct(Rh.div),hb=Ot((t,e)=>{const{className:n,transition:r,motionProps:i,...s}=t,o=un("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ib().overlay},{motionPreset:c}=Bg(),h=i||(c==="none"?{}:_fe);return x.jsx(jWe,{...h,__css:l,ref:e,className:o,...s})});hb.displayName="ModalOverlay";const[zWe,HWe]=Oi(),UWe={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function VWe(t,e){if(t)return UWe[t]?.[e]??t}function WWe(t){const{isOpen:e,onClose:n,placement:r="right",children:i,...s}=t,o=a1(),a=o.components?.Drawer,l=VWe(r,o.direction);return x.jsx(zWe,{value:{placement:l},children:x.jsx(lb,{isOpen:e,onClose:n,styleConfig:a,...s,children:i})})}const LJ={exit:{duration:.15,ease:_y.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},qWe={exit:({direction:t,transition:e,transitionEnd:n,delay:r})=>{const{exit:i}=YL({direction:t});return{...i,transition:e?.exit??Sd.exit(LJ.exit,r),transitionEnd:n?.exit}},enter:({direction:t,transitionEnd:e,transition:n,delay:r})=>{const{enter:i}=YL({direction:t});return{...i,transition:n?.enter??Sd.enter(LJ.enter,r),transitionEnd:e?.enter}}},Tfe=_.forwardRef(function(e,n){const{direction:r="right",style:i,unmountOnExit:s,in:o,className:a,transition:l,transitionEnd:c,delay:u,motionProps:h,animatePresenceProps:d,...p}=e,g=YL({direction:r}),y=Object.assign({position:"fixed"},g.position,i),b=s?o&&s:!0,w=o||s?"enter":"exit",S={transitionEnd:c,transition:l,direction:r,delay:u};return x.jsx(s1,{...d,custom:S,children:b&&x.jsx(Rh.div,{...p,ref:n,initial:"exit",className:un("chakra-slide",a),animate:w,exit:"exit",custom:S,variants:qWe,style:y,...h})})});Tfe.displayName="Slide";const GWe=ct(Tfe),Efe=Ot((t,e)=>{const{className:n,children:r,motionProps:i,containerProps:s,...o}=t,{getDialogProps:a,getDialogContainerProps:l,isOpen:c}=Bg(),u=a(o,e),h=l(s),d=un("chakra-modal__content",n),p=Ib(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{placement:b}=HWe();return x.jsx(Sfe,{children:x.jsx(ct.div,{...h,className:"chakra-modal__content-container",__css:y,children:x.jsx(GWe,{motionProps:i,direction:b,in:c,className:d,...u,__css:g,children:r})})})});Efe.displayName="DrawerContent";function KWe(t){const e=_.version;return typeof e!="string"||e.startsWith("18.")?t?.ref:t?.props?.ref}const hB=t=>x.jsx(ct.circle,{cx:50,cy:50,r:42,fill:"transparent",...t});hB.displayName="Circle";function YWe(t,e,n){return(t-e)*100/(n-e)}const QWe=rp({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),XWe=rp({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),JWe=rp({"0%":{left:"-40%"},"100%":{left:"100%"}}),ZWe=rp({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Afe(t){const{value:e=0,min:n,max:r,valueText:i,getValueText:s,isIndeterminate:o,role:a="progressbar"}=t,l=YWe(e,n,r);return{bind:{"data-indeterminate":o?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":o?void 0:e,"aria-valuetext":(()=>
392{if(e!=null)return typeof s=="function"?s(e,l):i})(),role:a},percent:l,value:e}}const Pfe=t=>{const{size:e,isIndeterminate:n,...r}=t;return x.jsx(ct.svg,{viewBox:"0 0 100 100",__css:{width:e,height:e,animation:n?`${XWe} 2s linear infinite`:void 0},...r})};Pfe.displayName="Shape";const Ofe=Ot((t,e)=>{const{size:n="48px",max:r=100,min:i=0,valueText:s,getValueText:o,value:a,capIsRound:l,children:c,thickness:u="10px",color:h="#0078d4",trackColor:d="#edebe9",isIndeterminate:p,...g}=t,y=Afe({min:i,max:r,value:a,valueText:s,getValueText:o,isIndeterminate:p}),b=p?void 0:(y.percent??0)*2.64,w=b==null?void 0:`${b} ${264-b}`,S=p?{css:{animation:`${QWe} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:w,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},T={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:n};return x.jsxs(ct.div,{ref:e,className:"chakra-progress",...y.bind,...g,__css:T,children:[x.jsxs(Pfe,{size:n,isIndeterminate:p,children:[x.jsx(hB,{stroke:d,strokeWidth:u,className:"chakra-progress__track"}),x.jsx(hB,{stroke:h,strokeWidth:u,className:"chakra-progress__indicator",strokeLinecap:l?"round":void 0,opacity:y.value===0&&!p?0:void 0,...S})]}),c]})});Ofe.displayName="CircularProgress";const[eqe,tqe]=Oi({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),nqe=Ot((t,e)=>{const{min:n,max:r,value:i,isIndeterminate:s,role:o,...a}=t,l=Afe({value:i,min:n,max:r,isIndeterminate:s,role:o}),u={height:"100%",...tqe().filledTrack};return x.jsx(ct.div,{ref:e,style:{width:`${l.percent}%`,...a.style},...l.bind,...a,__css:u})}),Ife=Ot((t,e)=>{const{value:n,min:r=0,max:i=100,hasStripe:s,isAnimated:o,children:a,borderRadius:l,isIndeterminate:c,"aria-label":u,"aria-labelledby":h,"aria-valuetext":d,title:p,role:g,...y}=ji(t),b=da("Progress",t),w=l??b.track?.borderRadius,S={animation:`${ZWe} 1s linear infinite`},E={...!c&&s&&o&&S,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${JWe} 1s ease infinite normal none running`}},O={overflow:"hidden",position:"relative",...b.track};return x.jsx(ct.div,{ref:e,borderRadius:w,__css:O,...y,children:x.jsxs(eqe,{value:b,children:[x.jsx(nqe,{"aria-label":u,"aria-labelledby":h,"aria-valuetext":d,min:r,max:i,value:n,isIndeterminate:c,css:E,borderRadius:w,title:p,role:g}),a]})})});Ife.displayName="Progress";function rqe(t){return t&&Aa(t)&&Aa(t.target)}function iqe(t={}){const{onChange:e,value:n,defaultValue:r,name:i,isDisabled:s,isFocusable:o,isNative:a,...l}=t,[c,u]=_.useState(r||""),h=typeof n<"u",d=h?n:c,p=_.useRef(null),g=_.useCallback(()=>{const E=p.current;if(!E)return;let O="input:not(:disabled):checked";const P=E.querySelector(O);if(P){P.focus();return}O="input:not(:disabled)",E.querySelector(O)?.focus()},[]),b=`radio-${_.useId()}`,w=i||b,S=_.useCallback(E=>{const O=rqe(E)?E.target.value:E;h||u(O),e?.(String(O))},[e,h]),T=_.useCallback((E={},O=null)=>({...E,ref:Ss(O,p),role:"radiogroup"}),[]),D=_.useCallback((E={},O=null)=>({...E,ref:O,name:w,[a?"checked":"isChecked"]:d!=null?E.value===d:void 0,onChange($){S($)},"data-radiogroup":!0}),[a,w,S,d]);return{getRootProps:T,getRadioProps:D,name:w,ref:p,focus:g,setValue:u,value:d,onChange:S,isDisabled:s,isFocusable:o,htmlProps:l}}const[sqe,Dfe]=Oi({name:"RadioGroupContext",strict:!1}),Mfe=Ot((t,e)=>{const{colorScheme:n,size:r,variant:i,children:s,className:o,isDisabled:a,isFocusable:l,...c}=t,{value:u,onChange:h,getRootProps:d,name:p,htmlProps:g}=iqe(c),y=_.useMemo(()=>({name:p,size:r,onChange:h,colorScheme:n,value:u,variant:i,isDisabled:a,isFocusable:l}),[p,r,h,n,u,i,a,l]);return x.jsx(sqe,{value:y,children:x.jsx(ct.div,{...d(g,e),className:un("chakra-radio-group",o),children:s})})});Mfe.displayName="RadioGroup";function oqe(t={}){const{defaultChecked:e,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:s,isRequired:o,onChange:a,isInvalid:l,name:c,value:u,id:h,"data-radiogroup":d,"aria-describedby":p,...g}=t,y=`radio-${_.useId()}`,b=Ob(),S=!!Dfe()||!!d;let D=!!b&&!S?b.id:y;D=h??D;const E=i??b?.isDisabled,O=s??b?.isReadOnly,P=o??b?.isRequired,$=l??b?.isInvalid,[W,H]=_.useState(!1),[K,Z]=_.useState(!1),[oe,te]=_.useState(!1),[re,Y]=_.useState(!!e),z=typeof n<"u",U=z?n:re,G=_.useRef(!1);_.useEffect(()=>rde(rt=>{G.current=rt}),[]);const B=_.useCallback(rt=>{if(O||E){rt.preventDefault();return}
392z||Y(rt.currentTarget.checked),a?.(rt)},[z,E,O,a]),Q=_.useCallback(rt=>{rt.key===" "&&te(!0)},[te]),ie=_.useCallback(rt=>{rt.key===" "&&te(!1)},[te]),q=_.useCallback((rt={},Mt=null)=>({...rt,ref:Mt,"data-active":En(oe),"data-hover":En(K),"data-disabled":En(E),"data-invalid":En($),"data-checked":En(U),"data-focus":En(W),"data-focus-visible":En(W&&G.current),"data-readonly":En(O),"aria-hidden":!0,onMouseDown:Fn(rt.onMouseDown,()=>te(!0)),onMouseUp:Fn(rt.onMouseUp,()=>te(!1)),onMouseEnter:Fn(rt.onMouseEnter,()=>Z(!0)),onMouseLeave:Fn(rt.onMouseLeave,()=>Z(!1))}),[oe,K,E,$,U,W,O]),{onFocus:fe,onBlur:ke}=b??{},Be=_.useCallback((rt={},Mt=null)=>{const it=E&&!r;return{...rt,id:D,ref:Mt,type:"radio",name:c,value:u,onChange:Fn(rt.onChange,B),onBlur:Fn(ke,rt.onBlur,()=>H(!1)),onFocus:Fn(fe,rt.onFocus,()=>H(!0)),onKeyDown:Fn(rt.onKeyDown,Q),onKeyUp:Fn(rt.onKeyUp,ie),checked:U,disabled:it,readOnly:O,required:P,"aria-invalid":yh($),"aria-disabled":yh(it),"aria-required":yh(P),"data-readonly":En(O),"aria-describedby":p,style:ode}},[E,r,D,c,u,B,ke,fe,Q,ie,U,O,P,$,p]);return{state:{isInvalid:$,isFocused:W,isChecked:U,isActive:oe,isHovered:K,isDisabled:E,isReadOnly:O,isRequired:P},getRadioProps:q,getInputProps:Be,getLabelProps:(rt={},Mt=null)=>({...rt,ref:Mt,onMouseDown:Fn(rt.onMouseDown,aqe),"data-disabled":En(E),"data-checked":En(U),"data-invalid":En($)}),getRootProps:(rt,Mt=null)=>({htmlFor:D,...rt,ref:Mt,"data-disabled":En(E),"data-checked":En(U),"data-invalid":En($)}),htmlProps:g}}function aqe(t){t.preventDefault(),t.stopPropagation()}const dB=Ot((t,e)=>{const n=Dfe(),{onChange:r,value:i}=t,s=da("Radio",{...n,...t}),o=ji(t),{spacing:a="0.5rem",children:l,isDisabled:c=n?.isDisabled,isFocusable:u=n?.isFocusable,inputProps:h,...d}=o;let p=t.isChecked;n?.value!=null&&i!=null&&(p=n.value===i);let g=r;n?.onChange&&i!=null&&(g=xz(n.onChange,r));const y=t?.name??n?.name,{getInputProps:b,getRadioProps:w,getLabelProps:S,getRootProps:T,htmlProps:D}=oqe({...d,isChecked:p,isFocusable:u,isDisabled:c,onChange:g,name:y}),[E,O]=Sce(D,Mce),P=w(O),$=b(h,e),W=S(),H=Object.assign({},E,T()),K={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},Z={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},oe={userSelect:"none",marginStart:a,...s.label};return x.jsxs(ct.label,{className:"chakra-radio",...H,__css:K,children:[x.jsx("input",{className:"chakra-radio__input",...$}),x.jsx(ct.span,{className:"chakra-radio__control",...P,__css:Z}),l&&x.jsx(ct.span,{className:"chakra-radio__label",...W,__css:oe,children:l})]})});dB.displayName="Radio";const Nfe=Ot(function(e,n){const{children:r,placeholder:i,className:s,...o}=e;return x.jsxs(ct.select,{...o,ref:n,className:un("chakra-select",s),children:[i&&x.jsx("option",{value:"",children:i}),r]})});Nfe.displayName="SelectField";const n8=Ot((t,e)=>{const n=da("Select",t),{rootProps:r,placeholder:i,icon:s,color:o,height:a,h:l,minH:c,minHeight:u,iconColor:h,iconSize:d,...p}=ji(t),[g,y]=Sce(p,Mce),b=MH(y),w={width:"100%",height:"fit-content",position:"relative",color:o},S={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...n.field?._focus}};return x.jsxs(ct.div,{className:"chakra-select__wrapper",__css:w,...g,...r,children:[x.jsx(Nfe,{ref:e,height:l??a,minH:c??u,placeholder:i,...b,__css:S,children:t.children}),x.jsx(Rfe,{"data-disabled":En(b.disabled),...(h||o)&&{color:h||o},__css:n.icon,...d&&{fontSize:d},children:s})]})});n8.displayName="Select";const lqe=t=>x.jsx("svg",{viewBox:"0 0 24 24",...t,children:x.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),cqe=ct("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Rfe=t=>{const{children:e=x.jsx(lqe,{}),...n}=t,r=_.cloneElement(e,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return x.jsx(cqe,{...n,className:"chakra-select__icon-wrapper",children:_.isValidElement(e)?r:null})};Rfe.displayName="SelectIcon";function kM(t){const{orientation:e,vertical:n,horizontal:r}=t;return e==="vertical"?n:r}function uqe(t){const{orientation:e,thumbPercents:n,isReversed:r}=t,i=p=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...kM({orientation:e,vertical:{bottom:`calc(${n[p]}% - var(--slider-thumb-size) / 2)`},horizontal:{left:`calc(${n[p]}% - var(--slider-thumb-size) / 2)`}})}),s={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},o={position:"absolute",...kM({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},a=n.length===1,l=[0,r?100-n[0]:n[0]],c=a?l:n;let u=c[0];!a&&r&&(u=100-u);const h=Math.abs(c[c.length-1]-c[0]),d={...o,...kM({orientation:e,vertical:r?{height:`${h}%`,top:`${u}%`}:{height:`${h}%`,bottom:`${u}%`},horizontal:r?{width:`${h}%`,right:`${u}%`}:{width:`${h}%`,left:`${u}%`}})};return{trackStyle:o,innerTrackStyle:d,rootStyle:s,getThumbStyle:i}}function hqe(t){const{isReversed:e,direction:n,orientation:r}=t;return n==="ltr"||r==="vertical"?e:!e}function dqe(t){const{min:e=0,max:n=100,onChange:r,value:i,defaultValue:s,isReversed:o,direction:a="ltr",orientation:l="horizontal",id:c,isDisabled:u,isReadOnly:h,onChangeStart:d,onChangeEnd:p,step:g=1,getAriaValueText:y,"aria-valuetext":b,"aria-label":w,"aria-labelledby":S,name:T,focusThumbOnChange:D=!0,...E}=t,O=zl(d),P=zl(p),$=zl(y),W=hqe({isReversed:o,direction:a,orientation:l}),[H,K]=Sz({value:i,defaultValue:s??pqe(e,n),onChange:r}),[Z,oe]=_.useState(!1),[te,re]=_.useState(!1),Y=!(u||h),z=(n-e)/10,U=g||(n-e)/100,G=CD(H,e,n),B=n-G+e,ie=UY(W?B:G,e,n),q=l==="vertical",fe=Cce({min:e,max:n,step:g,isDisabled:u,value:G,isInteractive:Y,isReversed:W,isVertical:q,eventSource:null,focusThumbOnChange:D,orientation:l}),ke=_.useRef(null),Be=_.useRef(null),Qe=_.useRef(null),ft=_.useId(),Ne=c??ft,[rt,Mt]=[`slider-thumb-${Ne}`,`slider-track-${Ne}`],it=_.useCallback(ot=>{if(!ke.current)return;const jt=fe.current;jt.eventSource="pointer";const _r=ke.current.getBoundingClientRect(),{clientX:fr,clientY:Rr}=ot.touches?.[0]??ot,Zt=q?_r.bottom-Rr:fr-_r.left,lt=q?_r.height:_r.width;let Hr=Zt/lt;W&&(Hr=1-Hr);let Un=DAe(Hr,jt.min,jt.max);
392return jt.step&&(Un=parseFloat(VY(Un,jt.min,jt.step))),Un=CD(Un,jt.min,jt.max),Un},[q,W,fe]),Rt=_.useCallback(ot=>{const jt=fe.current;jt.isInteractive&&(ot=parseFloat(VY(ot,jt.min,U)),ot=CD(ot,jt.min,jt.max),K(ot))},[U,K,fe]),xt=_.useMemo(()=>({stepUp(ot=U){const jt=W?G-ot:G+ot;Rt(jt)},stepDown(ot=U){const jt=W?G+ot:G-ot;Rt(jt)},reset(){Rt(s||0)},stepTo(ot){Rt(ot)}}),[Rt,W,G,U,s]),Nn=_.useCallback(ot=>{const jt=fe.current,fr={ArrowRight:()=>xt.stepUp(),ArrowUp:()=>xt.stepUp(),ArrowLeft:()=>xt.stepDown(),ArrowDown:()=>xt.stepDown(),PageUp:()=>xt.stepUp(z),PageDown:()=>xt.stepDown(z),Home:()=>Rt(jt.min),End:()=>Rt(jt.max)}[ot.key];fr&&(ot.preventDefault(),ot.stopPropagation(),fr(ot),jt.eventSource="keyboard")},[xt,Rt,z,fe]),Hn=$?.(G)??b,{getThumbStyle:$n,rootStyle:Wn,trackStyle:nr,innerTrackStyle:Cn}=_.useMemo(()=>{const ot=fe.current;return uqe({isReversed:W,orientation:ot.orientation,thumbPercents:[ie]})},[W,ie,fe]),Nr=_.useCallback(()=>{fe.current.focusThumbOnChange&&setTimeout(()=>Be.current?.focus())},[fe]);Ng(()=>{const ot=fe.current;
392Nr(),ot.eventSource==="keyboard"&&P?.(ot.value)},[G,P]);function ki(ot){const jt=it(ot);jt!=null&&jt!==fe.current.value&&K(jt)}b8e(Qe,{onPanSessionStart(ot){const jt=fe.current;jt.isInteractive&&(oe(!0),Nr(),ki(ot),O?.(jt.value))},onPanSessionEnd(){const ot=fe.current;ot.isInteractive&&(oe(!1),P?.(ot.value))},onPan(ot){fe.current.isInteractive&&ki(ot)}});const yr=_.useCallback((ot={},jt=null)=>({...ot,...E,ref:Ss(jt,Qe),tabIndex:-1,"aria-disabled":yh(u),"data-focused":En(te),style:{...ot.style,...Wn}}),[E,u,te,Wn]),mt=_.useCallback((ot={},jt=null)=>({...ot,ref:Ss(jt,ke),id:Mt,"data-disabled":En(u),style:{...ot.style,...nr}}),[u,Mt,nr]),zt=_.useCallback((ot={},jt=null)=>({...ot,ref:jt,style:{...ot.style,...Cn}}),[Cn]),ze=_.useCallback((ot={},jt=null)=>({...ot,ref:Ss(jt,Be),role:"slider",tabIndex:Y?0:void 0,id:rt,"data-active":En(Z),"aria-valuetext":Hn,"aria-valuemin":e,"aria-valuemax":n,"aria-valuenow":G,"aria-orientation":l,"aria-disabled":yh(u),"aria-readonly":yh(h),"aria-label":w,"aria-labelledby":w?void 0:S,style:{...ot.style,...$n(0)},onKeyDown:Fn(ot.onKeyDown,Nn),onFocus:Fn(ot.onFocus,()=>re(!0)),onBlur:Fn(ot.onBlur,()=>re(!1))}),[Y,rt,Z,Hn,e,n,G,l,u,h,w,S,$n,Nn]),tt=_.useCallback((ot,jt=null)=>{const _r=!(ot.value<e||ot.value>n),fr=G>=ot.value,Rr=UY(ot.value,e,n),Zt={position:"absolute",pointerEvents:"none",...fqe({orientation:l,vertical:{bottom:W?`${100-Rr}%`:`${Rr}%`},horizontal:{left:W?`${100-Rr}%`:`${Rr}%`}})};return{...ot,ref:jt,role:"presentation","aria-hidden":!0,"data-disabled":En(u),"data-invalid":En(!_r),"data-highlighted":En(fr),style:{...ot.style,...Zt}}},[u,W,n,e,l,G]),wt=_.useCallback((ot={},jt=null)=>({...ot,ref:jt,type:"hidden",value:G,name:T}),[T,G]);return{state:{value:G,isFocused:te,isDragging:Z},actions:xt,getRootProps:yr,getTrackProps:mt,getInnerTrackProps:zt,getThumbProps:ze,getMarkerProps:tt,getInputProps:wt}}function fqe(t){const{orientation:e,vertical:n,horizontal:r}=t;return e==="vertical"?n:r}function pqe(t,e){return e<t?t:t+(e-t)/2}const[mqe,cO]=Oi({name:"SliderContext",hookName:"useSliderContext",providerName:"<Slider />"}),[gqe,uO]=Oi({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:"<Slider />"}),A4=Ot((t,e)=>{const n={...t,orientation:t?.orientation??"horizontal"},r=da("Slider",n),i=ji(n),{direction:s}=a1();i.direction=s;const{getInputProps:o,getRootProps:a,...l}=dqe(i),c=a(),u=o({},e);return x.jsx(mqe,{value:l,children:x.jsx(gqe,{value:r,children:x.jsxs(ct.div,{...c,className:un("chakra-slider",n.className),__css:r.container,children:[n.children,x.jsx("input",{...u})]})})})});A4.displayName="Slider";const P4=Ot((t,e)=>{const{getThumbProps:n}=cO(),r=uO(),i=n(t,e);return x.jsx(ct.div,{...i,className:un("chakra-slider__thumb",t.className),__css:r.thumb})});P4.displayName="SliderThumb";const O4=Ot((t,e)=>{const{getTrackProps:n}=cO(),r=uO(),i=n(t,e);return x.jsx(ct.div,{...i,className:un("chakra-slider__track",t.className),__css:r.track})});O4.displayName="SliderTrack";const I4=Ot((t,e)=>{const{getInnerTrackProps:n}=cO(),r=uO(),i=n(t,e);return x.jsx(ct.div,{...i,className:un("chakra-slider__filled-track",t.className),__css:r.filledTrack})});I4.displayName="SliderFilledTrack";const yqe=Ot((t,e)=>{const{getMarkerProps:n}=cO(),r=uO(),i=n(t,e);return x.jsx(ct.div,{...i,className:un("chakra-slider__marker",t.className),__css:r.mark})});yqe.displayName="SliderMark";const Lfe=ct("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Lfe.displayName="Spacer";const Bfe=t=>x.jsx(ct.div,{className:"chakra-stack__item",...t,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...t.__css}});Bfe.displayName="StackItem";function bqe(t){const{spacing:e,direction:n}=t,r={column:{my:e,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:e,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:e,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:e,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":LP(n,i=>r[i])}}const Ak=Ot((t,e)=>{const{isInline:n,direction:r,align:i,justify:s,spacing:o="0.5rem",wrap:a,children:l,divider:c,className:u,shouldWrapChildren:h,...d}=t,p=n?"row":r??"column",g=_.useMemo(()=>bqe({spacing:o,direction:p}),[o,p]),y=!!c,b=!h&&!y,w=_.useMemo(()=>{const T=wz(l);return b?T:T.map((D,E)=>{const O=typeof D.key<"u"?D.key:E,P=E+1===T.length,W=h?x.jsx(Bfe,{children:D},O):D;if(!y)return W;const H=_.cloneElement(c,{__css:g}),K=P?null:H;return x.jsxs(_.Fragment,{children:[W,K]},O)})},[c,g,y,b,h,l]),S=un("chakra-stack",u);return x.jsx(ct.div,{ref:e,display:"flex",alignItems:i,justifyContent:s,flexDirection:p,flexWrap:a,gap:y?void 0:o,className:S,...d,children:w})});Ak.displayName="Stack";const Ffe=Ot((t,e)=>x.jsx(Ak,{align:"center",...t,direction:"row",ref:e}));Ffe.displayName="HStack";const Nu=Ot((t,e)=>x.jsx(Ak,{align:"center",...t,direction:"column",ref:e}));Nu.displayName="VStack";const[vqe,XC]=Oi({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),fB=Ot((t,e)=>{const n=da("Table",t),{className:r,layout:i,...s}=ji(t);return x.jsx(vqe,{value:n,children:x.jsx(ct.table,{ref:e,__css:{tableLayout:i,...n.table},className:un("chakra-table",r),...s})})});fB.displayName="Table";const BJ=Ot((t,e)=>{const n=XC();return x.jsx(ct.tbody,{...t,ref:e,__css:n.tbody})}),ru=Ot(({isNumeric:t,...e},n)=>{const r=XC();return x.jsx(ct.td,{...e,ref:n,__css:r.td,"data-is-numeric":t})}),Hm=Ot(({isNumeric:t,...e},n)=>{const r=XC();return x.jsx(ct.th,{...e,ref:n,__css:r.th,"data-is-numeric":t})}),FJ=Ot((t,e)=>{const n=XC();return x.jsx(ct.thead,{...t,ref:e,__css:n.thead})}),FS=Ot((t,e)=>{const n=XC();return x.jsx(ct.tr,{...t,ref:e,__css:n.tr})}),[xqe,$fe]=Oi({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),r8=Ot((t,e)=>{const n=da("Tag",t),r=ji(t),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return x.jsx(xqe,{value:n,children:x.jsx(ct.span,{ref:e,...r,__css:i})})});r8.displayName="Tag";const wqe=Ot((t,e)=>{const n=$fe();return x.jsx(ct.span,{ref:e,noOfLines:1,...t,__css:n.label})});wqe.displayName="TagLabel";const Sqe=Ot((t,e)=>x.jsx(Lh,{ref:e,verticalAlign:"top",marginEnd:"0.5rem",...t}));Sqe.displayName="TagLeftIcon";
392const kqe=Ot((t,e)=>x.jsx(Lh,{ref:e,verticalAlign:"top",marginStart:"0.5rem",...t}));kqe.displayName="TagRightIcon";const jfe=t=>x.jsx(Lh,{verticalAlign:"inherit",viewBox:"0 0 512 512",...t,children:x.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});jfe.displayName="TagCloseIcon";const Cqe=Ot((t,e)=>{const{isDisabled:n,children:r,...i}=t,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...$fe().closeButton};return x.jsx(ct.button,{ref:e,"aria-label":"close",...i,type:"button",disabled:n,__css:o,children:r||x.jsx(jfe,{})})});Cqe.displayName="TagCloseButton";const _qe=["h","minH","height","minHeight"],JC=Ot((t,e)=>{const n=Hc("Textarea",t),{className:r,rows:i,...s}=ji(t),o=MH(s),a=i?gw(n,_qe):n;return x.jsx(ct.textarea,{ref:e,rows:i,...o,className:un("chakra-textarea",r),__css:a})});JC.displayName="Textarea";function Tqe(t,e){const n=t??"bottom";return{"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n]?.[e]??n}function Eqe(t,e){const n=i=>({...e,...i,position:Tqe(i?.position??e?.position,t)}),r=i=>{const s=n(i),o=Ghe(s);return Ef.notify(o,s)};return r.update=(i,s)=>{Ef.update(i,n(s))},r.promise=(i,s)=>{const o=r({...s.loading,status:"loading",duration:null});i.then(a=>r.update(o,{status:"success",duration:5e3,...Cc(s.success,a)})).catch(a=>r.update(o,{status:"error",duration:5e3,...Cc(s.error,a)}))},r.closeAll=Ef.closeAll,r.close=Ef.close,r.isActive=Ef.isActive,r}function Aqe(t){const{theme:e}=Uhe(),n=uje();return _.useMemo(()=>Eqe(e.direction,{...n,...t}),[t,e.direction,n])}const Pqe={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},pB=t=>t.current?.ownerDocument||document,E6=t=>t.current?.ownerDocument?.defaultView||window;function Oqe(t={}){const{openDelay:e=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:s,closeOnPointerDown:o=i,closeOnEsc:a=!0,onOpen:l,onClose:c,placement:u,id:h,isOpen:d,defaultIsOpen:p,arrowSize:g=10,arrowShadowColor:y,arrowPadding:b,modifiers:w,isDisabled:S,gutter:T,offset:D,direction:E,...O}=t,{isOpen:P,onOpen:$,onClose:W}=Id({isOpen:d,defaultIsOpen:p,onOpen:l,onClose:c}),{referenceRef:H,getPopperProps:K,getArrowInnerProps:Z,getArrowProps:oe}=cfe({enabled:P,placement:u,arrowPadding:b,modifiers:w,gutter:T,offset:D,direction:E}),te=_.useId(),Y=`tooltip-${h??te}`,z=_.useRef(null),U=_.useRef(void 0),G=_.useCallback(()=>{U.current&&(clearTimeout(U.current),U.current=void 0)},[]),B=_.useRef(void 0),Q=_.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=void 0)},[]),ie=_.useCallback(()=>{Q(),W()},[W,Q]),q=Iqe(z,ie),fe=_.useCallback(()=>{if(!S&&!U.current){P&&q();const it=E6(z);U.current=it.setTimeout($,e)}},[q,S,P,$,e]),ke=_.useCallback(()=>{G();const it=E6(z);B.current=it.setTimeout(ie,n)},[n,ie,G]),Be=_.useCallback(()=>{P&&r&&ke()},[r,ke,P]),Qe=_.useCallback(()=>{P&&o&&ke()},[o,ke,P]),ft=_.useCallback(it=>{P&&it.key==="Escape"&&ke()},[P,ke]);d4(()=>pB(z),"keydown",a?ft:void 0),d4(()=>{if(!s)return null;const it=z.current;if(!it)return null;const Rt=wce(it);return Rt.localName==="body"?E6(z):Rt},"scroll",()=>{P&&s&&ie()},{passive:!0,capture:!0}),_.useEffect(()=>{S&&(G(),P&&W())},[S,P,W,G]),_.useEffect(()=>()=>{G(),Q()},[G,Q]),d4(()=>z.current,"pointerleave",ke);const Ne=_.useCallback((it={},Rt=null)=>({...it,ref:Ss(z,Rt,H),onPointerEnter:Fn(it.onPointerEnter,Nn=>{Nn.pointerType!=="touch"&&fe()}),onClick:Fn(it.onClick,Be),onPointerDown:Fn(it.onPointerDown,Qe),onFocus:Fn(it.onFocus,fe),onBlur:Fn(it.onBlur,ke),"aria-describedby":P?Y:void 0}),[fe,ke,Qe,P,Y,Be,H]),rt=_.useCallback((it={},Rt=null)=>K({...it,style:{...it.style,[Ha.arrowSize.var]:g?`${g}px`:void 0,[Ha.arrowShadowColor.var]:y}},Rt),[K,g,y]),Mt=_.useCallback((it={},Rt=null)=>{const xt={...it.style,position:"relative",transformOrigin:Ha.transformOrigin.varRef};return{ref:Rt,...O,...it,id:Y,role:"tooltip",style:xt}},[O,Y]);return{isOpen:P,show:fe,hide:ke,getTriggerProps:Ne,getTooltipProps:Mt,getTooltipPositionerProps:rt,getArrowProps:oe,getArrowInnerProps:Z}}const CM="chakra-ui:close-tooltip";function Iqe(t,e){return _.useEffect(()=>{const n=pB(t);return n.addEventListener(CM,e),()=>n.removeEventListener(CM,e)},[e,t]),()=>{const n=pB(t),r=E6(t);n.dispatchEvent(new r.CustomEvent(CM))}}const Dqe=ct(Rh.div),Cd=Ot((t,e)=>{const n=Hc("Tooltip",t),r=ji(t),i=a1(),{children:s,label:o,shouldWrapChildren:a,"aria-label":l,hasArrow:c,bg:u,portalProps:h,background:d,backgroundColor:p,bgColor:g,motionProps:y,animatePresenceProps:b,...w}=r,S=d??p??u??g;if(S){n.bg=S;const H=a7e(i,"colors",S);n[Ha.arrowBg.var]=H}const T=Oqe({...w,direction:i.direction}),D=!_.isValidElement(s)||a;let E;if(D)E=x.jsx(ct.span,{display:"inline-block",tabIndex:0,...T.getTriggerProps(),children:s});else{const H=_.Children.only(s);E=_.cloneElement(H,T.getTriggerProps(H.props,KWe(H)))}const O=!!l,P=T.getTooltipProps({},e),$=O?gw(P,["role","id"]):P,W=xce(P,["role","id"]);return o?x.jsxs(x.Fragment,{children:[E,x.jsx(s1,{...b,children:T.isOpen&&x.jsx(xw,{...h,children:x.jsx(ct.div,{...T.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:x.jsxs(Dqe,{variants:Pqe,initial:"exit",animate:"enter",exit:"exit",...y,...$,__css:n,children:[o,O&&x.jsx(ct.span,{srOnly:!0,...W,children:l}),c&&x.jsx(ct.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:x.jsx(ct.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):x.jsx(x.Fragment,{children:s})});Cd.displayName="Tooltip";const Qf=Ot(function(e,n){const r=Hc("Heading",e),{className:i,...s}=ji(e);return x.jsx(ct.h2,{ref:n,className:un("chakra-heading",e.className),...s,__css:r})});Qf.displayName="Heading";const zr=Ot(function(e,n){const r=Hc("Text",e),{className:i,align:s,decoration:o,casing:a,...l}=ji(e),c=mw({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return x.jsx(ct.p,{ref:n,className:un("chakra-text",e.className),...c,...l,__css:r})});zr.displayName="Text";/** 393 * @remix-run/router v1.23.0 394 * 395 * Copyright (c) Remix Software Inc. 396 * 397 * This source code is licensed under the MIT license found in the 398 * LICENSE.md file in the root directory of this source tree. 399 * 400 * @license MIT 401 */function Ds(){return Ds=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ds.apply(this,arguments)}var Bo;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Bo||(Bo={}));const $J="popstate";function Mqe(t){t===void 0&&(t={});function e(r,i){let{pathname:s,search:o,hash:a}=r.location;return Pk("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Fg(i)}return Rqe(e,n,null,t)}function Ir(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Mx(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Nqe(){return Math.random().toString(36).substr(2,8)}function jJ(t,e){return{usr:t.state,key:t.key,idx:e}}function Pk(t,e,n,r){return n===void 0&&(n=null),Ds({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?h1(e):e,{state:n,key:e&&e.key||r||Nqe()})}function Fg(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function h1(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Rqe(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Bo.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Ds({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function h(){a=Bo.Pop;let b=u(),w=b==null?null:b-c;c=b,l&&l({action:a,location:y.location,delta:w})}function d(b,w){a=Bo.Push;let S=Pk(y.location,b,w);c=u()+1;let T=jJ(S,c),D=y.createHref(S);try{o.pushState(T,"",D)}
vendor: 4,100 bytes, line 401
401catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(D)}s&&l&&l({action:a,location:y.location,delta:1})}function p(b,w){a=Bo.Replace;let S=Pk(y.location,b,w);c=u();let T=jJ(S,c),D=y.createHref(S);o.replaceState(T,"",D),s&&l&&l({action:a,location:y.location,delta:0})}function g(b){let w=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof b=="string"?b:Fg(b);return S=S.replace(/ $/,"%20"),Ir(w,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,w)}let y={get action(){return a},get location(){return t(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($J,h),l=b,()=>{i.removeEventListener($J,h),l=null}},createHref(b){return e(i,b)},createURL:g,encodeLocation(b){let w=g(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:d,replace:p,go(b){return o.go(b)}};return y}var Zi;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Zi||(Zi={}));const Lqe=new Set(["lazy","caseSensitive","path","id","index","children"]);function Bqe(t){return t.index===!0}function i8(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((i,s)=>{let o=[...n,String(s)],a=typeof i.id=="string"?i.id:o.join("-");if(Ir(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ir(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Bqe(i)){let l=Ds({},i,e(i),{id:a});return r[a]=l,l}else{let l=Ds({},i,e(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=i8(i.children,e,o,r)),l}})}function gy(t,e,n){return n===void 0&&(n="/"),A6(t,e,n,!1)}function A6(t,e,n,r){let i=typeof e=="string"?h1(e):e,s=Y0(i.pathname||"/",n);if(s==null)return null;let o=Hfe(t);Fqe(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=Yqe(s);a=Gqe(o[l],c,r)}return a}function zfe(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],handle:n.handle}}function Hfe(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ir(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Xf([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(Ir(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hfe(s.children,e,u,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:Wqe(c,s.index),routesMeta:u})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Ufe(s.path))i(s,o,l)}),e}function Ufe(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Ufe(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Fqe(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:qqe(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $qe=/^:[\w-]+$/,jqe=3,zqe=2,Hqe=1,Uqe=10,Vqe=-2,zJ=t=>t==="*";function Wqe(t,e){let n=t.split("/"),r=n.length;return n.some(zJ)&&(r+=Vqe),e&&(r+=zqe),n.filter(i=>!zJ(i)).reduce((i,s)=>i+($qe.test(s)?jqe:s===""?Hqe:Uqe),r)}function qqe(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Gqe(t,e,n){n===void 0&&(n=!1);let{routesMeta:r}=t,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=s==="/"?e:e.slice(s.length)||"/",h=HJ({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),d=l.route;if(!h&&c&&n&&!r[r.length-1].route.index&&(h=HJ({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!h)return null;
vendor: 3,488 bytes, line 401
401Object.assign(i,h.params),o.push({params:i,pathname:Xf([s,h.pathname]),pathnameBase:Jqe(Xf([s,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(s=Xf([s,h.pathnameBase]))}return o}function HJ(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Kqe(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,u,h)=>{let{paramName:d,isOptional:p}=u;if(d==="*"){let y=a[h]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[h];return p&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:t}}function Kqe(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Mx(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Yqe(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Mx(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Y0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Qqe(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?h1(t):t;return{pathname:n?n.startsWith("/")?n:Xqe(n,e):e,search:Zqe(r),hash:eGe(i)}}function Xqe(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function _M(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Vfe(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function hO(t,e){let n=Vfe(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dO(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=h1(t):(i=Ds({},t),Ir(!i.pathname||!i.pathname.includes("?"),_M("?","pathname","search",i)),Ir(!i.pathname||!i.pathname.includes("#"),_M("#","pathname","hash",i)),Ir(!i.search||!i.search.includes("#"),_M("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let h=e.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),h-=1;i.pathname=d.join("/")}a=h>=0?e[h]:"/"}let l=Qqe(i,a),c=o&&o!=="/"&&o.endsWith("/"),u=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Xf=t=>t.join("/").replace(/\/\/+/g,"/"),Jqe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Zqe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,eGe=t=>
vendor: 42,488 bytes, lines 401-411
401!t||t==="#"?"":t.startsWith("#")?t:"#"+t,No=function(e,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",e),new Response(null,Ds({},r,{headers:i}))};class s8{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ok(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Wfe=["post","put","patch","delete"],tGe=new Set(Wfe),nGe=["get",...Wfe],rGe=new Set(nGe),iGe=new Set([301,302,303,307,308]),sGe=new Set([307,308]),TM={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qfe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$S={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},tU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oGe=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),Gfe="remix-router-transitions";function aGe(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;Ir(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let xe=t.detectErrorBoundary;i=Se=>({hasErrorBoundary:xe(Se)})}else i=oGe;let s={},o=i8(t.routes,i,void 0,s),a,l=t.basename||"/",c=t.dataStrategy||hGe,u=t.patchRoutesOnNavigation,h=Ds({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),d=null,p=new Set,g=null,y=null,b=null,w=t.hydrationData!=null,S=gy(o,t.history.location,l),T=!1,D=null;if(S==null&&!u){let xe=hc(404,{pathname:t.history.location.pathname}),{matches:Se,route:Fe}=ZJ(o);S=Se,D={[Fe.id]:xe}}S&&!t.hydrationData&&Yo(S,o,t.history.location.pathname).active&&(S=null);let E;if(S)if(S.some(xe=>xe.route.lazy))E=!1;else if(!S.some(xe=>xe.route.loader))E=!0;else if(h.v7_partialHydration){let xe=t.hydrationData?t.hydrationData.loaderData:null,Se=t.hydrationData?t.hydrationData.errors:null;if(Se){let Fe=S.findIndex(at=>Se[at.route.id]!==void 0);E=S.slice(0,Fe+1).every(at=>!gB(at.route,xe,Se))}else E=S.every(Fe=>!gB(Fe.route,xe,Se))}else E=t.hydrationData!=null;else if(E=!1,S=[],h.v7_partialHydration){let xe=Yo(null,o,t.history.location.pathname);xe.active&&xe.matches&&(T=!0,S=xe.matches)}let O,P={historyAction:t.history.action,location:t.history.location,matches:S,initialized:E,navigation:TM,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||D,fetchers:new Map,blockers:new Map},$=Bo.Pop,W=!1,H,K=!1,Z=new Map,oe=null,te=!1,re=!1,Y=[],z=new Set,U=new Map,G=0,B=-1,Q=new Map,ie=new Set,q=new Map,fe=new Map,ke=new Set,Be=new Map,Qe=new Map,ft;function Ne(){if(d=t.history.listen(xe=>{let{action:Se,location:Fe,delta:at}=xe;if(ft){ft(),ft=void 0;return}Mx(Qe.size===0||at!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let _t=ut({currentLocation:P.location,nextLocation:Fe,historyAction:Se});if(_t&&at!=null){let cn=new Promise(wn=>{ft=wn});t.history.go(at*-1),xn(_t,{state:"blocked",location:Fe,proceed(){xn(_t,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),cn.then(()=>t.history.go(at))},reset(){let wn=new Map(P.blockers);wn.set(_t,$S),it({blockers:wn})}});return}return Hn(Se,Fe)}),n){_Ge(e,Z);let xe=()=>TGe(e,Z);e.addEventListener("pagehide",xe),oe=()=>e.removeEventListener("pagehide",xe)}return P.initialized||Hn(Bo.Pop,P.location,{initialHydration:!0}),O}function rt(){d&&d(),oe&&oe(),p.clear(),H&&H.abort(),P.fetchers.forEach((xe,Se)=>jt(Se)),P.blockers.forEach((xe,Se)=>Un(Se))}function Mt(xe){return p.add(xe),()=>p.delete(xe)}function it(xe,Se){Se===void 0&&(Se={}),P=Ds({},P,xe);let Fe=[],at=[];h.v7_fetcherPersist&&P.fetchers.forEach((_t,cn)=>{_t.state==="idle"&&(ke.has(cn)?at.push(cn):Fe.push(cn))}),ke.forEach(_t=>{!P.fetchers.has(_t)&&!U.has(_t)&&at.push(_t)}),[...p].forEach(_t=>_t(P,{deletedFetchers:at,viewTransitionOpts:Se.viewTransitionOpts,flushSync:Se.flushSync===!0})),h.v7_fetcherPersist?(Fe.forEach(_t=>P.fetchers.delete(_t)),at.forEach(_t=>jt(_t))):at.forEach(_t=>ke.delete(_t))}function Rt(xe,Se,Fe){var at,_t;let{flushSync:cn}=Fe===void 0?{}:Fe,wn=P.actionData!=null&&P.navigation.formMethod!=null&&ud(P.navigation.formMethod)&&P.navigation.state==="loading"&&((at=xe.state)==null?void 0:at._isRedirect)!==!0,nn;Se.actionData?Object.keys(Se.actionData).length>0?nn=Se.actionData:nn=null:wn?nn=P.actionData:nn=null;let Ut=Se.loaderData?XJ(P.loaderData,Se.loaderData,Se.matches||[],Se.errors):P.loaderData,Kt=P.blockers;Kt.size>0&&(Kt=new Map(Kt),Kt.forEach((Ar,Ci)=>Kt.set(Ci,$S)));let Ht=W===!0||P.navigation.formMethod!=null&&ud(P.navigation.formMethod)&&((_t=xe.state)==null?void 0:_t._isRedirect)!==!0;a&&(o=a,a=void 0),te||$===Bo.Pop||($===Bo.Push?t.history.push(xe,xe.state):$===Bo.Replace&&t.history.replace(xe,xe.state));let jn;if($===Bo.Pop){let Ar=Z.get(P.location.pathname);Ar&&Ar.has(xe.pathname)?jn={currentLocation:P.location,nextLocation:xe}:Z.has(xe.pathname)&&(jn={currentLocation:xe,nextLocation:P.location})}else if(K){let Ar=Z.get(P.location.pathname);Ar?Ar.add(xe.pathname):(Ar=new Set([xe.pathname]),Z.set(P.location.pathname,Ar)),jn={currentLocation:P.location,nextLocation:xe}}it(Ds({},Se,{actionData:nn,loaderData:Ut,historyAction:$,location:xe,initialized:!0,navigation:TM,revalidation:"idle",restoreScrollPosition:Po(xe,Se.matches||P.matches),preventScrollReset:Ht,blockers:Kt}),{viewTransitionOpts:jn,flushSync:cn===!0}),$=Bo.Pop,W=!1,K=!1,te=!1,re=!1,Y=[]}async function xt(xe,Se){if(typeof xe=="number"){t.history.go(xe);return}let Fe=mB(P.location,P.matches,l,h.v7_prependBasename,xe,h.v7_relativeSplatPath,Se?.fromRouteId,Se?.relative),{path:at,submission:_t,error:cn}=UJ(h.v7_normalizeFormMethod,!1,Fe,Se),wn=P.location,nn=Pk(P.location,at,Se&&Se.state);nn=Ds({},nn,t.history.encodeLocation(nn));let Ut=Se&&Se.replace!=null?Se.replace:void 0,Kt=Bo.Push;Ut===!0?Kt=Bo.Replace:Ut===!1||_t!=null&&ud(_t.formMethod)&&_t.formAction===P.location.pathname+P.location.search&&(Kt=Bo.Replace);let Ht=Se&&"preventScrollReset"in Se?Se.preventScrollReset===!0:void 0,jn=(Se&&Se.flushSync)===!0,Ar=ut({currentLocation:wn,nextLocation:nn,historyAction:Kt});if(Ar){xn(Ar,{state:"blocked",location:nn,proceed(){xn(Ar,{state:"proceeding",proceed:void 0,reset:void 0,location:nn}),xt(xe,Se)},reset(){let Ci=new Map(P.blockers);Ci.set(Ar,$S),it({blockers:Ci})}});return}return await Hn(Kt,nn,{submission:_t,pendingError:cn,preventScrollReset:Ht,replace:Se&&Se.replace,enableViewTransition:Se&&Se.viewTransition,flushSync:jn})}function Nn(){if(tt(),it({revalidation:"loading"}),P.navigation.state!=="submitting"){if(P.navigation.state==="idle"){Hn(P.historyAction,P.location,{startUninterruptedRevalidation:!0});return}Hn($||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:K===!0})}}async function Hn(xe,Se,Fe){H&&H.abort(),H=null,$=xe,te=(Fe&&Fe.startUninterruptedRevalidation)===!0,oi(P.location,P.matches),W=(Fe&&Fe.preventScrollReset)===!0,K=(Fe&&Fe.enableViewTransition)===!0;let at=a||o,_t=Fe&&Fe.overrideNavigation,cn=Fe!=null&&Fe.initialHydration&&P.matches&&P.matches.length>0&&!T?P.matches:gy(at,Se,l),wn=(Fe&&Fe.flushSync)===!0;if(cn&&P.initialized&&!re&&yGe(P.location,Se)&&!(Fe&&Fe.submission&&ud(Fe.submission.formMethod))){Rt(Se,{matches:cn},{flushSync:wn});return}let nn=Yo(cn,at,Se.pathname);if(nn.active&&nn.matches&&(cn=nn.matches),!cn){let{error:Nt,notFoundMatches:ye,route:st}=kr(Se.pathname);Rt(Se,{matches:ye,loaderData:{},errors:{[st.id]:Nt}},{flushSync:wn});return}H=new AbortController;let Ut=_v(t.history,Se,H.signal,Fe&&Fe.submission),Kt;if(Fe&&Fe.pendingError)Kt=[yy(cn).route.id,{type:Zi.error,error:Fe.pendingError}];else if(Fe&&Fe.submission&&ud(Fe.submission.formMethod)){let Nt=await $n(Ut,Se,Fe.submission,cn,nn.active,{replace:Fe.replace,flushSync:wn});if(Nt.shortCircuited)return;if(Nt.pendingActionResult){let[ye,st]=Nt.pendingActionResult;if(bu(st)&&Ok(st.error)&&st.error.status===404){H=null,Rt(Se,{matches:Nt.matches,loaderData:{},errors:{[ye]:st.error}});return}}cn=Nt.matches||cn,Kt=Nt.pendingActionResult,_t=EM(Se,Fe.submission),wn=!1,nn.active=!1,Ut=_v(t.history,Ut.url,Ut.signal)}let{shortCircuited:Ht,matches:jn,loaderData:Ar,errors:Ci}=await Wn(Ut,Se,cn,nn.active,_t,Fe&&Fe.submission,Fe&&Fe.fetcherSubmission,Fe&&Fe.replace,Fe&&Fe.initialHydration===!0,wn,Kt);Ht||(H=null,Rt(Se,Ds({matches:jn||cn},JJ(Kt),{loaderData:Ar,errors:Ci})))}async function $n(xe,Se,Fe,at,_t,cn){cn===void 0&&(cn={}),tt();let wn=kGe(Se,Fe);if(it({navigation:wn},{flushSync:cn.flushSync===!0}),_t){let Kt=await is(at,Se.pathname,xe.signal);if(Kt.type==="aborted")return{shortCircuited:!0};if(Kt.type==="error"){let Ht=yy(Kt.partialMatches).route.id;return{matches:Kt.partialMatches,pendingActionResult:[Ht,{type:Zi.error,error:Kt.error}]}}else if(Kt.matches)at=Kt.matches;else{let{notFoundMatches:Ht,error:jn,route:Ar}=kr(Se.pathname);return{matches:Ht,pendingActionResult:[Ar.id,{type:Zi.error,error:jn}]}}}let nn,Ut=N3(at,Se);if(!Ut.route.action&&!Ut.route.lazy)nn={type:Zi.error,error:hc(405,{method:xe.method,pathname:Se.pathname,routeId:Ut.route.id})};else if(nn=(await zt("action",P,xe,[Ut],at,null))[Ut.route.id],xe.signal.aborted)return{shortCircuited:!0};if(Ty(nn)){let Kt;return cn&&cn.replace!=null?Kt=cn.replace:Kt=KJ(nn.response.headers.get("Location"),new URL(xe.url),l)===P.location.pathname+P.location.search,await mt(xe,nn,!0,{submission:Fe,replace:Kt}),{shortCircuited:!0}}if(bg(nn))throw hc(400,{type:"defer-action"});if(bu(nn)){let Kt=yy(at,Ut.route.id);return(cn&&cn.replace)!==!0&&($=Bo.Push),{matches:at,pendingActionResult:[Kt.route.id,nn]}}return{matches:at,pendingActionResult:[Ut.route.id,nn]}}async function Wn(xe,Se,Fe,at,_t,cn,wn,nn,Ut,Kt,Ht){let jn=_t||EM(Se,cn),Ar=cn||wn||tZ(jn),Ci=!te&&(!h.v7_partialHydration||!Ut);if(at){if(Ci){let yi=nr(Ht);it(Ds({navigation:jn},yi!==void 0?{actionData:yi}:{}),{flushSync:Kt})}let pr=await is(Fe,Se.pathname,xe.signal);if(pr.type==="aborted")return{shortCircuited:!0};if(pr.type==="error"){let yi=yy(pr.partialMatches).route.id;return{matches:pr.partialMatches,loaderData:{},errors:{[yi]:pr.error}}}else if(pr.matches)Fe=pr.matches;else{let{error:yi,notFoundMatches:Bs,route:$u}=kr(Se.pathname);return{matches:Bs,loaderData:{},errors:{[$u.id]:yi}}}}let Nt=a||o,[ye,st]=WJ(t.history,P,Fe,Ar,Se,h.v7_partialHydration&&Ut===!0,h.v7_skipActionErrorRevalidation,re,Y,z,ke,q,ie,Nt,l,Ht);if(di(pr=>!(Fe&&Fe.some(yi=>yi.route.id===pr))||ye&&ye.some(yi=>yi.route.id===pr)),B=++G,ye.length===0&&st.length===0){let pr=Zt();return Rt(Se,Ds({matches:Fe,loaderData:{},errors:Ht&&bu(Ht[1])?{[Ht[0]]:Ht[1].error}:null},JJ(Ht),pr?{fetchers:new Map(P.fetchers)}:{}),{flushSync:Kt}),{shortCircuited:!0}}if(Ci){let pr={};if(!at){pr.navigation=jn;let yi=nr(Ht);yi!==void 0&&(pr.actionData=yi)}st.length>0&&(pr.fetchers=Cn(st)),it(pr,{flushSync:Kt})}st.forEach(pr=>{fr(pr.key),pr.controller&&U.set(pr.key,pr.controller)});let Yt=()=>st.forEach(pr=>fr(pr.key));H&&H.signal.addEventListener("abort",Yt);let{loaderResults:Rn,fetcherResults:Ur}=await ze(P,Fe,ye,st,xe);if(xe.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",Yt),st.forEach(pr=>U.delete(pr.key));let pn=w5(Rn);if(pn)return await mt(xe,pn.result,!0,{replace:nn}),{shortCircuited:!0};if(pn=w5(Ur),pn)return ie.add(pn.key),await mt(xe,pn.result,!0,{replace:nn}),{shortCircuited:!0};let{loaderData:_s,errors:_i}=QJ(P,Fe,Rn,Ht,st,Ur,Be);Be.forEach((pr,yi)=>{pr.subscribe(Bs=>{(Bs||pr.done)&&Be.delete(yi)})}),h.v7_partialHydration&&Ut&&P.errors&&(_i=Ds({},P.errors,_i));let Ls=Zt(),Di=lt(B),Sl=Ls||Di||st.length>0;return Ds({matches:Fe,loaderData:_s,errors:_i},Sl?{fetchers:new Map(P.fetchers)}:{})}function nr(xe){if(xe&&!bu(xe[1]))return{[xe[0]]:xe[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function Cn(xe){return xe.forEach(Se=>{let Fe=P.fetchers.get(Se.key),at=jS(void 0,Fe?Fe.data:void 0);P.fetchers.set(Se.key,at)}),new Map(P.fetchers)}function Nr(xe,Se,Fe,at){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");fr(xe);let _t=(at&&at.flushSync)===!0,cn=a||o,wn=mB(P.location,P.matches,l,h.v7_prependBasename,Fe,h.v7_relativeSplatPath,Se,at?.relative),nn=gy(cn,wn,l),Ut=Yo(nn,cn,wn);if(Ut.active&&Ut.matches&&(nn=Ut.matches),!nn){tn(xe,Se,hc(404,{pathname:wn}),{flushSync:_t});return}let{path:Kt,submission:Ht,error:jn}=UJ(h.v7_normalizeFormMethod,!0,wn,at);if(jn){tn(xe,Se,jn,{flushSync:_t});return}let Ar=N3(nn,Kt),Ci=(at&&at.preventScrollReset)===!0;if(Ht&&ud(Ht.formMethod)){ki(xe,Se,Kt,Ar,nn,Ut.active,_t,Ci,Ht);return}q.set(xe,{routeId:Se,path:Kt}),yr(xe,Se,Kt,Ar,nn,Ut.active,_t,Ci,Ht)}async function ki(xe,Se,Fe,at,_t,cn,wn,nn,Ut){tt(),q.delete(xe);function Kt(on){if(!on.route.action&&!on.route.lazy){let qc=hc(405,{method:Ut.formMethod,pathname:Fe,routeId:Se});return tn(xe,Se,qc,{flushSync:wn}),!0}return!1}if(!cn&&Kt(at))return;let Ht=P.fetchers.get(xe);wt(xe,CGe(Ut,Ht),{flushSync:wn});let jn=new AbortController,Ar=_v(t.history,Fe,jn.signal,Ut);if(cn){let on=await is(_t,new URL(Ar.url).pathname,Ar.signal,xe);if(on.type==="aborted")return;if(on.type==="error"){tn(xe,Se,on.error,{flushSync:wn});return}else if(on.matches){if(_t=on.matches,at=N3(_t,Fe),Kt(at))return}else{tn(xe,Se,hc(404,{pathname:Fe}),{flushSync:wn});return}}U.set(xe,jn);let Ci=G,ye=(await zt("action",P,Ar,[at],_t,xe))[at.route.id];if(Ar.signal.aborted){U.get(xe)===jn&&U.delete(xe);return}if(h.v7_fetcherPersist&&ke.has(xe)){if(Ty(ye)||bu(ye)){wt(xe,eg(void 0));return}}else{if(Ty(ye))if(U.delete(xe),B>Ci){wt(xe,eg(void 0));return}else return ie.add(xe),wt(xe,jS(Ut)),mt(Ar,ye,!1,{fetcherSubmission:Ut,preventScrollReset:nn});if(bu(ye)){tn(xe,Se,ye.error);return}}if(bg(ye))throw hc(400,{type:"defer-action"});let st=P.navigation.location||P.location,Yt=_v(t.history,st,jn.signal),Rn=a||o,Ur=P.navigation.state!=="idle"?gy(Rn,P.navigation.location,l):P.matches;Ir(Ur,"Didn't find any matches after fetcher action");let pn=++G;Q.set(xe,pn);let _s=jS(Ut,ye.data);P.fetchers.set(xe,_s);let[_i,Ls]=WJ(t.history,P,Ur,Ut,st,!1,h.v7_skipActionErrorRevalidation,re,Y,z,ke,q,ie,Rn,l,[at.route.id,ye]);Ls.filter(on=>on.key!==xe).forEach(on=>{let qc=on.key,Ep=P.fetchers.get(qc),vm=jS(void 0,Ep?Ep.data:void 0);P.fetchers.set(qc,vm),fr(qc),on.controller&&U.set(qc,on.controller)}),it({fetchers:new Map(P.fetchers)});let Di=()=>Ls.forEach(on=>fr(on.key));jn.signal.addEventListener("abort",Di);let{loaderResults:Sl,fetcherResults:pr}=await ze(P,Ur,_i,Ls,Yt);if(jn.signal.aborted)return;jn.signal.removeEventListener("abort",Di),Q.delete(xe),U.delete(xe),Ls.forEach(on=>U.delete(on.key));let yi=w5(Sl);if(yi)return mt(Yt,yi.result,!1,{preventScrollReset:nn});if(yi=w5(pr),yi)return ie.add(yi.key),mt(Yt,yi.result,!1,{preventScrollReset:nn});let{loaderData:Bs,errors:$u}=QJ(P,Ur,Sl,void 0,Ls,pr,Be);if(P.fetchers.has(xe)){let on=eg(ye.data);P.fetchers.set(xe,on)}lt(pn),P.navigation.state==="loading"&&pn>B?(Ir($,"Expected pending action"),H&&H.abort(),Rt(P.navigation.location,{matches:Ur,loaderData:Bs,errors:$u,fetchers:new Map(P.fetchers)})):(it({errors:$u,loaderData:XJ(P.loaderData,Bs,Ur,$u),fetchers:new Map(P.fetchers)}),re=!1)}async function yr(xe,Se,Fe,at,_t,cn,wn,nn,Ut){let Kt=P.fetchers.get(xe);wt(xe,jS(Ut,Kt?Kt.data:void 0),{flushSync:wn});let Ht=new AbortController,jn=_v(t.history,Fe,Ht.signal);if(cn){let ye=await is(_t,new URL(jn.url).pathname,jn.signal,xe);if(ye.type==="aborted")return;if(ye.type==="error"){tn(xe,Se,ye.error,{flushSync:wn});return}else if(ye.matches)_t=ye.matches,at=N3(_t,Fe);else{tn(xe,Se,hc(404,{pathname:Fe}),{flushSync:wn});return}}U.set(xe,Ht);let Ar=G,Nt=(await zt("loader",P,jn,[at],_t,xe))[at.route.id];if(bg(Nt)&&(Nt=await nU(Nt,jn.signal,!0)||Nt),U.get(xe)===Ht&&U.delete(xe),!jn.signal.aborted){if(ke.has(xe)){wt(xe,eg(void 0));return}if(Ty(Nt))if(B>Ar){wt(xe,eg(void 0));return}else{ie.add(xe),await mt(jn,Nt,!1,{preventScrollReset:nn});return}if(bu(Nt)){tn(xe,Se,Nt.error);return}Ir(!bg(Nt),"Unhandled fetcher deferred data"),wt(xe,eg(Nt.data))}}async function mt(xe,Se,Fe,at){let{submission:_t,fetcherSubmission:cn,preventScrollReset:wn,replace:nn}=at===void 0?{}:at;Se.response.headers.has("X-Remix-Revalidate")&&(re=!0);let Ut=Se.response.headers.get("Location");Ir(Ut,"Expected a Location header on the redirect Response"),Ut=KJ(Ut,new URL(xe.url),l);let Kt=Pk(P.location,Ut,{_isRedirect:!0});if(n){let ye=!1;if(Se.response.headers.has("X-Remix-Reload-Document"))ye=!0;else if(tU.test(Ut)){const st=t.history.createURL(Ut);ye=st.origin!==e.location.origin||Y0(st.pathname,l)==null}if(ye){nn?e.location.replace(Ut):e.location.assign(Ut);return}}H=null;let Ht=nn===!0||Se.response.headers.has("X-Remix-Replace")?Bo.Replace:Bo.Push,{formMethod:jn,formAction:Ar,formEncType:Ci}=P.navigation;!_t&&!cn&&jn&&Ar&&Ci&&(_t=tZ(P.navigation));let Nt=_t||cn;if(sGe.has(Se.response.status)&&Nt&&ud(Nt.formMethod))await Hn(Ht,Kt,{submission:Ds({},Nt,{formAction:Ut}),preventScrollReset:wn||W,enableViewTransition:Fe?K:void 0});else{let ye=EM(Kt,_t);await Hn(Ht,Kt,{overrideNavigation:ye,fetcherSubmission:cn,preventScrollReset:wn||W,enableViewTransition:Fe?K:void 0})}}async function zt(xe,Se,Fe,at,_t,cn){let wn,nn={};try{wn=await dGe(c,xe,Se,Fe,at,_t,cn,s,i)}catch(Ut){return at.forEach(Kt=>{nn[Kt.route.id]={type:Zi.error,error:Ut}}),nn}for(let[Ut,Kt]of Object.entries(wn))if(bGe(Kt)){let Ht=Kt.result;nn[Ut]={type:Zi.redirect,response:mGe(Ht,Fe,Ut,_t,l,h.v7_relativeSplatPath)}}else nn[Ut]=await pGe(Kt);return nn}async function ze(xe,Se,Fe,at,_t){let cn=xe.matches,wn=zt("loader",xe,_t,Fe,Se,null),nn=Promise.all(at.map(async Ht=>{if(Ht.matches&&Ht.match&&Ht.controller){let Ar=(await zt("loader",xe,_v(t.history,Ht.path,Ht.controller.signal),[Ht.match],Ht.matches,Ht.key))[Ht.match.route.id];return{[Ht.key]:Ar}}else return Promise.resolve({[Ht.key]:{type:Zi.error,error:hc(404,{pathname:Ht.path})}})})),Ut=await wn,Kt=(await nn).reduce((Ht,jn)=>Object.assign(Ht,jn),{});return await Promise.all([wGe(Se,Ut,_t.signal,cn,xe.loaderData),SGe(Se,Kt,at)]),{loaderResults:Ut,fetcherResults:Kt}}function tt(){re=!0,Y.push(...di()),q.forEach((xe,Se)=>{U.has(Se)&&z.add(Se),fr(Se)})}function wt(xe,Se,Fe){Fe===void 0&&(Fe={}),P.fetchers.set(xe,Se),it({fetchers:new Map(P.fetchers)},{flushSync:(Fe&&Fe.flushSync)===!0})}function tn(xe,Se,Fe,at){at===void 0&&(at={});let _t=yy(P.matches,Se);jt(xe),it({errors:{[_t.route.id]:Fe},fetchers:new Map(P.fetchers)},{flushSync:(at&&at.flushSync)===!0})}function ot(xe){return fe.set(xe,(fe.get(xe)||0)+1),ke.has(xe)&&ke.delete(xe),P.fetchers.get(xe)||qfe}function jt(xe){let Se=P.fetchers.get(xe);U.has(xe)&&!(Se&&Se.state==="loading"&&Q.has(xe))&&fr(xe),q.delete(xe),Q.delete(xe),ie.delete(xe),h.v7_fetcherPersist&&ke.delete(xe),z.delete(xe),P.fetchers.delete(xe)}function _r(xe){let Se=(fe.get(xe)||0)-1;Se<=0?(fe.delete(xe),ke.add(xe),h.v7_fetcherPersist||jt(xe)):fe.set(xe,Se),it({fetchers:new Map(P.fetchers)})}function fr(xe){let Se=U.get(xe);Se&&(Se.abort(),U.delete(xe))}function Rr(xe){for(let Se of xe){let Fe=ot(Se),at=eg(Fe.data);P.fetchers.set(Se,at)}}function Zt(){let xe=[],Se=!1;for(let Fe of ie){let at=P.fetchers.get(Fe);Ir(at,"Expected fetcher: "+Fe),at.state==="loading"&&(ie.delete(Fe),xe.push(Fe),Se=!0)}return Rr(xe),Se}function lt(xe){let Se=[];for(let[Fe,at]of Q)if(at<xe){let _t=P.fetchers.get(Fe);Ir(_t,"Expected fetcher: "+Fe),_t.state==="loading"&&(fr(Fe),Q.delete(Fe),Se.push(Fe))}return Rr(Se),Se.length>0}function Hr(xe,Se){let Fe=P.blockers.get(xe)||$S;return Qe.get(xe)!==Se&&Qe.set(xe,Se),Fe}function Un(xe){P.blockers.delete(xe),Qe.delete(xe)}function xn(xe,Se){let Fe=P.blockers.get(xe)||$S;Ir(Fe.state==="unblocked"&&Se.state==="blocked"||Fe.state==="blocked"&&Se.state==="blocked"||Fe.state==="blocked"&&Se.state==="proceeding"||Fe.state==="blocked"&&Se.state==="unblocked"||Fe.state==="proceeding"&&Se.state==="unblocked","Invalid blocker state transition: "+Fe.state+" -> "+Se.state);let at=new Map(P.blockers);at.set(xe,Se),it({blockers:at})}function ut(xe){let{currentLocation:Se,nextLocation:Fe,historyAction:at}=xe;if(Qe.size===0)return;Qe.size>1&&Mx(!1,"A router only supports one blocker at a time");let _t=Array.from(Qe.entries()),[cn,wn]=_t[_t.length-1],nn=P.blockers.get(cn);if(!(nn&&nn.state==="proceeding")&&wn({currentLocation:Se,nextLocation:Fe,historyAction:at}))return cn}function kr(xe){let Se=hc(404,{pathname:xe}),Fe=a||o,{matches:at,route:_t}=ZJ(Fe);return di(),{notFoundMatches:at,route:_t,error:Se}}function di(xe){let Se=[];return Be.forEach((Fe,at)=>{(!xe||xe(at))&&(Fe.cancel(),Se.push(at),Be.delete(at))}),Se}function Kr(xe,Se,Fe){if(g=xe,b=Se,y=Fe||null,!w&&P.navigation===TM){w=!0;let at=Po(P.location,P.matches);at!=null&&it({restoreScrollPosition:at})}return()=>{g=null,b=null,y=null}}function Ao(xe,Se){return y&&y(xe,Se.map(at=>zfe(at,P.loaderData)))||xe.key}function oi(xe,Se){if(g&&b){let Fe=Ao(xe,Se);g[Fe]=b()}}function Po(xe,Se){if(g){let Fe=Ao(xe,Se),at=g[Fe];if(typeof at=="number")return at}return null}function Yo(xe,Se,Fe){if(u)if(xe){if(Object.keys(xe[0].params).length>0)return{active:!0,matches:A6(Se,Fe,l,!0)}}else return{active:!0,matches:A6(Se,Fe,l,!0)||[]};return{active:!1,matches:null}}async function is(xe,Se,Fe,at){if(!u)return{type:"success",matches:xe};let _t=xe;for(;;){let cn=a==null,wn=a||o,nn=s;try{await u({signal:Fe,path:Se,matches:_t,fetcherKey:at,patch:(Ht,jn)=>{Fe.aborted||GJ(Ht,jn,wn,nn,i)}})}catch(Ht){return{type:"error",error:Ht,partialMatches:_t}}finally{cn&&!Fe.aborted&&(o=[...o])}if(Fe.aborted)return{type:"aborted"};let Ut=gy(wn,Se,l);if(Ut)return{type:"success",matches:Ut};let Kt=A6(wn,Se,l,!0);if(!Kt||_t.length===Kt.length&&_t.every((Ht,jn)=>Ht.route.id===Kt[jn].route.id))return{type:"success",matches:null};_t=Kt}}function Ii(xe){s={},a=i8(xe,i,void 0,s)}function Oo(xe,Se){let Fe=a==null;GJ(xe,Se,a||o,s,i),Fe&&(o=[...o],it({}))}return O={get basename(){return l},get future(){return h},get state(){return P},get routes(){return o},get window(){return e},initialize:Ne,subscribe:Mt,enableScrollRestoration:Kr,navigate:xt,fetch:Nr,revalidate:Nn,createHref:xe=>t.history.createHref(xe),encodeLocation:xe=>t.history.encodeLocation(xe),getFetcher:ot,deleteFetcher:_r,dispose:rt,getBlocker:Hr,deleteBlocker:Un,patchRoutes:Oo,_internalFetchControllers:U,_internalActiveDeferreds:Be,_internalSetRoutes:Ii},O}function lGe(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function mB(t,e,n,r,i,s,o,a){let l,c;if(o){l=[];for(let h of e)if(l.push(h),h.route.id===o){c=h;break}}else l=e,c=e[e.length-1];let u=dO(i||".",hO(l,s),Y0(t.pathname,n)||t.pathname,a==="path");if(i==null&&(u.search=t.search,u.hash=t.hash),(i==null||i===""||i===".")&&c){let h=rU(u.search);if(c.route.index&&!h)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&h){let d=new URLSearchParams(u.search),p=d.getAll("index");d.delete("index"),p.filter(y=>y).forEach(y=>d.append("index",y));let g=d.toString();u.search=g?"?"+g:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Xf([n,u.pathname])),Fg(u)}function UJ(t,e,n,r){if(!r||!lGe(r))return{path:n};if(r.formMethod&&!xGe(r.formMethod))return{path:n,error:hc(405,{method:r.formMethod})};let i=()=>({path:n,error:hc(400,{type:"invalid-body"})}),s=r.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=Qfe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ud(o))return i();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,g)=>{let[y,b]=g;return""+p+y+"="+b+` 402`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!ud(o))return i();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}Ir(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=yB(r.formData),c=r.formData;else if(r.body instanceof FormData)l=yB(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=YJ(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=YJ(l)}catch{return i()}let u={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(ud(u.formMethod))return{path:n,submission:u};let h=h1(n);return e&&h.search&&rU(h.search)&&l.append("index",""),h.search="?"+l,{path:Fg(h),submission:u}}function VJ(t,e,n){n===void 0&&(n=!1);let r=t.findIndex(i=>i.route.id===e);return r>=0?t.slice(0,n?r+1:r):t}function WJ(t,e,n,r,i,s,o,a,l,c,u,h,d,p,g,y){let b=y?bu(y[1])?y[1].error:y[1].data:void 0,w=t.createURL(e.location),S=t.createURL(i),T=n;s&&e.errors?T=VJ(n,Object.keys(e.errors)[0],!0):y&&bu(y[1])&&(T=VJ(n,y[0]));let D=y?y[1].statusCode:void 0,E=o&&D&&D>=400,O=T.filter(($,W)=>{let{route:H}=$;if(H.lazy)return!0;if(H.loader==null)return!1;if(s)return gB(H,e.loaderData,e.errors);if(cGe(e.loaderData,e.matches[W],$)||l.some(oe=>oe===$.route.id))return!0;let K=e.matches[W],Z=$;return qJ($,Ds({currentUrl:w,currentParams:K.params,nextUrl:S,nextParams:Z.params},r,{actionResult:b,actionStatus:D,defaultShouldRevalidate:E?!1:a||w.pathname+w.search===S.pathname+S.search||w.search!==S.search||Kfe(K,Z)}))}),P=[];return h.forEach(($,W)=>{if(s||!n.some(te=>te.route.id===$.routeId)||u.has(W))return;let H=gy(p,$.path,g);if(!H){P.push({key:W,routeId:$.routeId,path:$.path,matches:null,match:null,controller:null});return}let K=e.fetchers.get(W),Z=N3(H,$.path),oe=!1;d.has(W)?oe=!1:c.has(W)?(c.delete(W),oe=!0):K&&K.state!=="idle"&&K.data===void 0?oe=a:oe=qJ(Z,Ds({currentUrl:w,currentParams:e.matches[e.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:b,actionStatus:D,defaultShouldRevalidate:E?!1:a})),oe&&P.push({key:W,routeId:$.routeId,path:$.path,matches:H,match:Z,controller:new AbortController})}),[O,P]}function gB(t,e,n){if(t.lazy)return!0;if(!t.loader)return!1;let r=e!=null&&e[t.id]!==void 0,i=n!=null&&n[t.id]!==void 0;return!r&&i?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!i}function cGe(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function Kfe(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function qJ(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function GJ(t,e,n,r,i){var s;let o;if(t){let c=r[t];Ir(c,"No route found to patch children into: routeId = "+t),c.children||(c.children=[]),o=c.children}else o=n;let a=e.filter(c=>!o.some(u=>Yfe(c,u))),l=i8(a,i,[t||"_","patch",String(((s=o)==null?void 0:s.length)||"0")],r);o.push(...l)}function Yfe(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,r)=>{var i;return(i=e.children)==null?void 0:i.some(s=>Yfe(n,s))}):!1}async function uGe(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let i=n[t.id];Ir(i,"No route found in manifest");let s={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Mx(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Lqe.has(o)&&(s[o]=r[o])}Object.assign(i,s),Object.assign(i,Ds({},e(i),{lazy:void 0}))}async function hGe(t){let{matches:e}=t,n=e.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,s,o)=>Object.assign(i,{[n[o].route.id]:s}),{})}async function dGe(t,e,n,r,i,s,o,a,l,c){let u=s.map(p=>p.route.lazy?uGe(p.route,l,a):void 0),h=s.map((p,g)=>{let y=u[g],b=i.some(S=>S.route.id===p.route.id);return Ds({},p,{shouldLoad:b,resolve:async S=>(S&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(b=!0),b?fGe(e,r,p,y,S,c):Promise.resolve({type:Zi.data,result:void 0}))})}),d=await t({matches:h,request:r,params:s[0].params,fetcherKey:o,context:c});try{await Promise.all(u)}catch{}return d}async function fGe(t,e,n,r,i,s){let o,a,l=c=>{let u,h=new Promise((g,y)=>u=y);a=()=>u(),e.signal.addEventListener("abort",a);let d=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):c({request:e,params:n.params,context:s},...g!==void 0?[g]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(y=>d(y)):d())}}catch(g){return{type:"error",result:g}}})();return Promise.race([p,h])};try{let c=n.route[t];if(r)if(c){let u,[h]=await Promise.all([l(c).catch(d=>{u=d}),r]);if(u!==void 0)throw u;o=h}else if(await r,c=n.route[t],c)o=await l(c);else if(t==="action"){let u=new URL(e.url),h=u.pathname+u.search;throw hc(405,{method:e.method,pathname:h,routeId:n.route.id})}else return{type:Zi.data,result:void 0};else if(c)o=await l(c);else{let u=new URL(e.url),h=u.pathname+u.search;throw hc(404,{pathname:h})}Ir(o.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Zi.error,result:c}}finally{a&&e.signal.removeEventListener("abort",a)}return o}async function pGe(t){let{result:e,type:n}=t;if(Xfe(e)){let h;try{let d=e.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?e.body==null?h=null:h=await e.json():h=await e.text()}catch(d){return{type:Zi.error,error:d}}return n===Zi.error?{type:Zi.error,error:new s8(e.status,e.statusText,h),statusCode:e.status,headers:e.headers}:{type:Zi.data,data:h,statusCode:e.status,headers:e.headers}}if(n===Zi.error){if(eZ(e)){var r,i;if(e.data instanceof Error){var s,o;return{type:Zi.error,error:e.data,statusCode:(s=e.init)==null?void 0:s.status,headers:(o=e.init)!=null&&o.headers?new Headers(e.init.headers):void 0}}return{type:Zi.error,error:new s8(((r=e.init)==null?void 0:r.status)||500,void 0,e.data),statusCode:Ok(e)?e.status:void 0,headers:(i=e.init)!=null&&i.headers?new Headers(e.init.headers):void 0}}return{type:Zi.error,error:e,statusCode:Ok(e)?e.status:void 0}}if(vGe(e)){var a,l;return{type:Zi.deferred,deferredData:e,statusCode:(a=e.init)==null?void 0:a.status,headers:((l=e.init)==null?void 0:l.headers)&&new Headers(e.init.headers)}}if(eZ(e)){var c,u;return{type:Zi.data,data:e.data,statusCode:(c=e.init)==null?void 0:c.status,headers:(u=e.init)!=null&&u.headers?new Headers(e.init.headers):void 0}}return{type:Zi.data,data:e}}function mGe(t,e,n,r,i,s){let o=t.headers.get("Location");if(Ir(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!tU.test(o)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);o=mB(new URL(e.url),a,i,!0,o,s),t.headers.set("Location",o)}return t}function KJ(t,e,n){if(tU.test(t)){let r=t,i=r.startsWith("//")?new URL(e.protocol+r):new URL(r),s=Y0(i.pathname,n)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return t}function _v(t,e,n,r){let i=t.createURL(Qfe(e)).toString(),s={signal:n};if(r&&ud(r.formMethod)){let{formMethod:o,formEncType:a}=r;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(r.json)):a==="text/plain"?s.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?s.body=yB(r.formData):s.body=r.formData}return new Request(i,s)}function yB(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function YJ(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function gGe(t,e,n,r,i){let s={},o=null,a,l=!1,c={},u=n&&bu(n[1])?n[1].error:void 0;return t.forEach(h=>{if(!(h.route.id in e))return;let d=h.route.id,p=e[d];if(Ir(!Ty(p),"Cannot handle redirect results in processLoaderData"),bu(p)){let g=p.error;u!==void 0&&(g=u,u=void 0),o=o||{};{let y=yy(t,d);o[y.route.id]==null&&(o[y.route.id]=g)}s[d]=void 0,l||(l=!0,a=Ok(p.error)?p.error.status:500),p.headers&&(c[d]=p.headers)}else bg(p)?(r.set(d,p.deferredData),s[d]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[d]=p.headers)):(s[d]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[d]=p.headers))}),u!==void 0&&n&&(o={[n[0]]:u},s[n[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function QJ(t,e,n,r,i,s,o){let{loaderData:a,errors:l}=gGe(e,n,r,o);return i.forEach(c=>{let{key:u,match:h,controller:d}=c,p=s[u];if(Ir(p,"Did not find corresponding fetcher result"),!(d&&d.signal.aborted))if(bu(p)){let g=yy(t.matches,h?.route.id);l&&l[g.route.id]||(l=Ds({},l,{[g.route.id]:p.error})),t.fetchers.delete(u)}else if(Ty(p))Ir(!1,"Unhandled fetcher revalidation redirect");else if(bg(p))Ir(!1,"Unhandled fetcher deferred data");else{let g=eg(p.data);t.fetchers.set(u,g)}}),{loaderData:a,errors:l}}function XJ(t,e,n,r){let i=Ds({},e);for(let s of n){let o=s.route.id;if(e.hasOwnProperty(o)?e[o]!==void 0&&(i[o]=e[o]):t[o]!==void 0&&s.route.loader&&(i[o]=t[o]),r&&r.hasOwnProperty(o))break}return i}function JJ(t){return t?bu(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function yy(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function ZJ(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function hc(t,e){let{pathname:n,routeId:r,method:i,type:s,message:o}=e===void 0?{}:e,a="Unknown Server Error",l="Unknown @remix-run/router error";return t===400?(a="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?l="defer() is not supported in actions":s==="invalid-body"&&(l="Unable to encode submission body")):t===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):t===404?(a="Not Found",l='No route matches URL "'+n+'"'):t===405&&(a="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new s8(t||500,a,new Error(l),!0)}function w5(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[r,i]=e[n];if(Ty(i))return{key:r,result:i}}}function Qfe(t){let e=typeof t=="string"?h1(t):t;return Fg(Ds({},e,{hash:""}))}function yGe(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function bGe(t){return Xfe(t.result)&&iGe.has(t.result.status)}function bg(t){return t.type===Zi.deferred}function bu(t){return t.type===Zi.error}function Ty(t){return(t&&t.type)===Zi.redirect}function eZ(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function vGe(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Xfe(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function xGe(t){return rGe.has(t.toLowerCase())}function ud(t){return tGe.has(t.toLowerCase())}async function wGe(t,e,n,r,i){let s=Object.entries(e);for(let o=0;o<s.length;o++){let[a,l]=s[o],c=t.find(d=>d?.route.id===a);if(!c)continue;let u=r.find(d=>d.route.id===c.route.id),h=u!=null&&!Kfe(u,c)&&(i&&i[c.route.id])!==void 0;bg(l)&&h&&await nU(l,n,!1).then(d=>{d&&(e[a]=d)})}}async function SGe(t,e,n){for(let r=0;r<n.length;r++){let{key:i,routeId:s,controller:o}=n[r],a=e[i];t.find(c=>c?.route.id===s)&&bg(a)&&(Ir(o,"Expected an AbortController for revalidating fetcher deferred result"),await nU(a,o.signal,!0).then(c=>{c&&(e[i]=c)}))}}async function nU(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Zi.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Zi.error,error:i}}return{type:Zi.data,data:t.deferredData.data}}}function rU(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function N3(t,e){let n=typeof e=="string"?h1(e).search:e.search;if(t[t.length-1].route.index&&rU(n||""))return t[t.length-1];let r=Vfe(t);return r[r.length-1]}function tZ(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:s,json:o}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function EM(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function kGe(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function jS(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function CGe(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function eg(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function _Ge(t,e){try{let n=t.sessionStorage.getItem(Gfe);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function TGe(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(Gfe,JSON.stringify(n))}catch(r){Mx(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** 403 * React Router v6.30.0 404 * 405 * Copyright (c) Remix Software Inc. 406 * 407 * This source code is licensed under the MIT license found in the 408 * LICENSE.md file in the root directory of this source tree. 409 * 410 * @license MIT 411 */function o8(){return o8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o8.apply(this,arguments)}const ZC=_.createContext(null),iU=_.createContext(null),Bd=_.createContext(null),sU=_.createContext(null),Fd=_.createContext({outlet:null,matches:[],isDataRoute:!1}),Jfe=_.createContext(null);function EGe(t,e){let{relative:n}=e===void 0?{}:e;Sw()||Ir(!1);let{basename:r,navigator:i}=_.useContext(Bd),{hash:s,pathname:o,search:a}=aU(t,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Xf([r,o])),i.createHref({pathname:l,search:a,hash:s})}function Sw(){return _.useContext(sU)!=null}function d1(){return Sw()||Ir(!1),_.useContext(sU).location}function Zfe(t){_.useContext(Bd).static||_.useLayoutEffect(t)}function oU(){let{isDataRoute:t}=_.useContext(Fd);return t?zGe():AGe()}function AGe(){Sw()||Ir(!1);let t=_.useContext(ZC),{basename:e,future:n,navigator:r}=_.useContext(Bd),{matches:i}=_.useContext(Fd),{pathname:s}=d1(),o=JSON.stringify(hO(i,n.v7_relativeSplatPath)),a=_.useRef(!1);return Zfe(()=>{a.current=!0}),_.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=dO(c,JSON.parse(o),s,u.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:Xf([e,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[e,r,o,s,t])}function PGe(){let{matches:t}=_.useContext(Fd),e=t[t.length-1];return e?e.params:{}}function aU(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=_.useContext(Bd),{matches:i}=_.useContext(Fd),{pathname:s}=d1(),o=JSON.stringify(hO(i,r.v7_relativeSplatPath));return _.useMemo(()=>dO(t,JSON.parse(o),s,n==="path"),[t,o,s,n])}function OGe(t,e,n,r){Sw()||Ir(!1);let{navigator:i,static:s}=_.useContext(Bd),{matches:o}=_.useContext(Fd),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=d1(),h;h=u;let d=h.pathname||"/",p=d;if(c!=="/"){let b=c.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let g=!s&&n&&n.matches&&n.matches.length>0?n.matches:gy(t,{pathname:p});return RGe(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:Xf([c,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Xf([c,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r)}function IGe(){let t=npe(),e=Ok(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application
411Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},e),n?_.createElement("pre",{style:i},n):null,null)}const DGe=_.createElement(IGe,null);class MGe extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?_.createElement(Fd.Provider,{value:this.props.routeContext},_.createElement(Jfe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function NGe(t){let{routeContext:e,match:n,children:r}=t,i=_.useContext(ZC);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Fd.Provider,{value:e},r)}function RGe(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=o.findIndex(h=>h.route.id&&a?.[h.route.id]!==void 0);u>=0||Ir(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=u),h.route.id){let{loaderData:d,errors:p}=n,g=h.route.loader&&d[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||g){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,h,d)=>{let p,g=!1,y=null,b=null;n&&(p=a&&h.route.id?a[h.route.id]:void 0,y=h.route.errorElement||DGe,l&&(c<0&&d===0?(HGe("route-fallback"),g=!0,b=null):c===d&&(g=!0,b=h.route.hydrateFallbackElement||null)));let w=e.concat(o.slice(0,d+1)),S=()=>{let T;return p?T=y:g?T=b:h.route.Component?T=_.createElement(h.route.Component,null):h.route.element?T=h.route.element:T=u,_.createElement(NGe,{match:h,routeContext:{outlet:u,matches:w,isDataRoute:n!=null},children:T})};return n&&(h.route.ErrorBoundary||h.route.errorElement||d===0)?_.createElement(MGe,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:S(),routeC
411ontext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}var epe=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(epe||{}),tpe=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(tpe||{});function LGe(t){let e=_.useContext(ZC);return e||Ir(!1),e}function fO(t){let e=_.useContext(iU);return e||Ir(!1),e}function BGe(t){let e=_.useContext(Fd);return e||Ir(!1),e}function pO(t){let e=BGe(),n=e.matches[e.matches.length-1];return n.route.id||Ir(!1),n.route.id}function FGe(){return pO()}function $Ge(){return fO().navigation}function jGe(){let{matches:t,loaderData:e}=fO();return _.useMemo(()=>t.map(n=>zfe(n,e)),[t,e])}function lU(){let t=fO(),e=pO();if(t.errors&&t.errors[e]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+e+")");return}return t.loaderData[e]}function npe(){var t;let e=_.useContext(Jfe),n=fO(),r=pO();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function zGe(){let{router:t}=LGe(epe.UseNavigateStable),e=pO(tpe.UseNavigateStable),n=_.useRef(!1);return Zfe(()=>{n.current=!0}),_.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,o8({fromRouteId:e},s)))},[t,e])}const nZ={};function HGe(t,e,n){nZ[t]||(nZ[t]=!0)}function UGe(t,e){t?.v7_startTransition,t?.v7_relativeSplatPath===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function AM(t){let{to:e,replace:n,state:r,relative:i}=t;Sw()||Ir(!1);let{future:s,static:o}=_.useContext(Bd),{matches:a}=_.useContext(Fd),{pathname:l}=d1(),c=oU(),u=dO(e,hO(a,s.v7_relativeSplatPath),l,i==="path"),h=JSON.stringify(u);return _.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:i}),[c,h,i,n,r]),null}function VGe(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Bo.Pop,navigator:s,static:o=!1,future:a}=t;Sw()&&Ir(!1);let l=e.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:l,navigator:s,static:o,future:o8({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=h1(r));let{pathname:u="/",search:h="",hash:d="",state:p=null,key:g="default"}=r,y=_.useMemo(()=>{let b=Y0(u,l);return b==null?null:{location:{pathname:b,search:h,hash:d,state:p,key:g},navigationType:i}},[l,u,h,d,p,g,i]);return y==null?null:_.createElement(Bd.Provider,{value:c},_.createElement(sU.Provider,{children:n,value:y}))}new Promise(()=>{});function WGe(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:_.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:_.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:_.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** 412 * React Router DOM v6.30.0 413 * 414 * Copyright (c) Remix Software Inc. 415 * 416 * This source code is licensed under the MIT license found in the 417 * LICENSE.md file in the root directory of this source tree. 418 * 419 * @license MIT 420 */function _d(){return _d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_d.apply(this,arguments)}function rpe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}const P6="get",PM="application/x-www-form-urlencoded";function mO(t){return t!=null&&typeof t.tagName=="string"}function qGe(t){return mO(t)&&t.tagName.toLowerCase()==="button"}function GGe(t){return mO(t)&&t.tagName.toLowerCase()==="form"}function KGe(t){return mO(t)&&t.tagName.toLowerCase()==="input"}function YGe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function QGe(t,e){return t.button===0&&(!e||e==="_self")&&!YGe(t)}let S5=null;function XGe(){if(S5===null)try{new FormData(document.createElement("form"),0),S5=!1}catch{S5=!0}return S5}const JGe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function OM(t){return t!=null&&!JGe.has(t)?null:t}function ZGe(t,e){let n,r,i,s,o;if(GGe(t)){let a=t.getAttribute("action");r=a?Y0(a,e):null,n=t.getAttribute("method")||P6,i=OM(t.getAttribute("enctype"))||PM,s=new FormData(t)}else if(qGe(t)||KGe(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(r=l?Y0(l,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||P6,i=OM(t.getAttribute("formenctype"))||OM(a.getAttribute("enctype"))||PM,s=new FormData(a,t),!XGe()){let{name:c,type:u,value:h}=t;if(u==="image"){let d=c?c+".":"";s.append(d+"x","0"),s.append(d+"y","0")}else c&&s.append(c,h)}}else{if(mO(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=P6,r=null,i=PM,o=t}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}const eKe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tKe=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],nKe="6";try{window.__reactRouterVersion=nKe}catch{}function rKe(t,e){return aGe({basename:void 0,future:_d({}
vendor: 6,339 bytes, line 420
420,void 0,{v7_prependBasename:!0}),history:Mqe({window:void 0}),hydrationData:iKe(),routes:t,mapRouteProperties:WGe,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function iKe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=_d({},e,{errors:sKe(e.errors)})),e}function sKe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new s8(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}const oKe=_.createContext({isTransitioning:!1}),ipe=_.createContext(new Map),aKe="startTransition",rZ=jA[aKe],lKe="flushSync",iZ=rje[lKe],cKe="useId",sZ=jA[cKe];function uKe(t){rZ?rZ(t):t()}function zS(t){iZ?iZ(t):t()}class hKe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function dKe(t){let{fallbackElement:e,router:n,future:r}=t,[i,s]=_.useState(n.state),[o,a]=_.useState(),[l,c]=_.useState({isTransitioning:!1}),[u,h]=_.useState(),[d,p]=_.useState(),[g,y]=_.useState(),b=_.useRef(new Map),{v7_startTransition:w}=r||{},S=_.useCallback($=>{w?uKe($):$()},[w]),T=_.useCallback(($,W)=>{let{deletedFetchers:H,flushSync:K,viewTransitionOpts:Z}=W;$.fetchers.forEach((te,re)=>{te.data!==void 0&&b.current.set(re,te.data)}),H.forEach(te=>b.current.delete(te));let oe=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!Z||oe){K?zS(()=>s($)):S(()=>s($));return}if(K){zS(()=>{d&&(u&&u.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation})});let te=n.window.document.startViewTransition(()=>{zS(()=>s($))});te.finished.finally(()=>{zS(()=>{h(void 0),p(void 0),a(void 0),c({isTransitioning:!1})})}),zS(()=>p(te));return}d?(u&&u.resolve(),d.skipTransition(),y({state:$,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation})):(a($),c({isTransitioning:!0,flushSync:!1,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation}))},[n.window,d,u,b,S]);_.useLayoutEffect(()=>n.subscribe(T),[n,T]),_.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new hKe)},[l]),_.useEffect(()=>{if(u&&o&&n.window){let $=o,W=u.promise,H=n.window.document.startViewTransition(async()=>{S(()=>s($)),await W});H.finished.finally(()=>{h(void 0),p(void 0),a(void 0),c({isTransitioning:!1})}),p(H)}},[S,o,u,n.window]),_.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,d,i.location,o]),_.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[l.isTransitioning,g]),_.useEffect(()=>{},[]);let D=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,W,H)=>n.navigate($,{state:W,preventScrollReset:H?.preventScrollReset}),replace:($,W,H)=>n.navigate($,{replace:!0,state:W,preventScrollReset:H?.preventScrollReset})}),[n]),E=n.basename||"/",O=_.useMemo(()=>({router:n,navigator:D,static:!1,basename:E}),[n,D,E]),P=_.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return _.useEffect(()=>UGe(r,n.future),[r,n.future]),_.createElement(_.Fragment,null,_.createElement(ZC.Provider,{value:O},_.createElement(iU.Provider,{value:i},_.createElement(ipe.Provider,{value:b.current},_.createElement(oKe.Provider,{value:l},_.createElement(VGe,{basename:E,location:i.location,navigationType:i.historyAction,navigator:D,future:P},i.initialized||n.future.v7_partialHydration?_.createElement(fKe,{routes:n.routes,future:n.future,state:i}):e))))),null)}const fKe=_.memo(pKe);function pKe(t){let{routes:e,future:n,state:r}=t;return OGe(e,void 0,r,n)}const mKe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gKe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Td=_.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:u,viewTransition:h}=e,d=rpe(e,eKe),{basename:p}=_.useContext(Bd),g,y=!1;if(typeof c=="string"&&gKe.test(c)&&(g=c,mKe))try{let T=new URL(window.location.href),D=c.startsWith("//")?new URL(T.protocol+c):new URL(c),E=Y0(D.pathname,p);D.origin===T.origin&&E!=null?c=E+D.search+D.hash:y=!0}catch{}let b=EGe(c,{relative:i}),w=bKe(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:h});function S(T){r&&r(T),T.defaultPrevented||w(T)}return _.createElement("a",_d({},d,{href:g||b,onClick:y||s?r:S,ref:n,target:l}))}),cU=_.forwardRef((t,e)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:o,method:a=P6,action:l,onSubmit:c,relative:u,preventScrollReset:h,viewTransition:d}=t,p=rpe(t,tKe),g=ape(),y=wKe(l,{relative:u}),b=a.toLowerCase()==="get"?"get":"post",w=S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let T=S.nativeEvent.submitter,D=T?.getAttribute("formmethod")||a;g(T||S.currentTarget,{fetcherKey:n,method:D,navigate:r,replace:s,state:o,relative:u,preventScrollReset:h,viewTransition:d})};return _.createElement("form",_d({ref:e,method:b,action:y,onSubmit:i?c:w},p))});function yKe(t){let{getKey:e,storageKey:n}=t;return kKe({getKey:e,storageKey:n}),null}var Ik;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Ik||(Ik={}));var a8;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(a8||(a8={}));function uU(t){let e=_.useContext(ZC);return e||Ir(!1),e}function spe(t){let e=_.useContext(iU);return e||Ir(!1),e}function bKe(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=e===void 0?{}:e,l=oU(),c=d1(),u=aU(t,{relative:o});return _.useCallback(h=>{if(QGe(h,n)){h.preventDefault();let d=r!==void 0?r:Fg(c)===Fg(u);l(t,{replace:d,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[c,l,u,r,i,n,t,s,o,a])}
420function vKe(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let xKe=0,ope=()=>"__"+String(++xKe)+"__";function ape(){let{router:t}=uU(Ik.UseSubmit),{basename:e}=_.useContext(Bd),n=FGe();return _.useCallback(function(r,i){i===void 0&&(i={}),vKe();let{action:s,method:o,encType:a,formData:l,body:c}=ZGe(r,e);if(i.navigate===!1){let u=i.fetcherKey||ope();t.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||o,formEncType:i.encType||a,flushSync:i.flushSync})}else t.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||o,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function wKe(t,e){let{relative:n}=e===void 0?{}:e,{basename:r}=_.useContext(Bd),i=_.useContext(Fd);i||Ir(!1);let[s]=i.matches.slice(-1),o=_d({},aU(t||".",{relative:n})),a=d1();if(t==null){o.search=a.search;let l=new URLSearchParams(o.search),c=l.getAll("index");if(c.some(h=>h==="")){l.delete("index"),c.filter(d=>d).forEach(d=>l.append("index",d));let h=l.toString();o.search=h?"?"+h:""}}return(!t||t===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Xf([r,o.pathname])),Fg(o)}function SKe(t){var e;let{key:n}={},{router:r}=uU(Ik.UseFetcher),i=spe(a8.UseFetcher),s=_.useContext(ipe),o=_.useContext(Fd),a=(e=o.matches[o.matches.length-1])==null?void 0:e.route.id;s||Ir(!1),o||Ir(!1),a==null&&Ir(!1);let l=sZ?sZ():"",[c,u]=_.useState(n||l);n&&n!==c?u(n):c||u(ope()),_.useEffect(()=>(r.getFetcher(c),()=>{r.deleteFetcher(c)}),[r,c]);let h=_.useCallback((S,T)=>{a||Ir(!1),r.fetch(c,a,S,T)},[c,a,r]),d=ape(),p=_.useCallback((S,T)=>{d(S,_d({},T,{navigate:!1,fetcherKey:c}))},[c,d]),g=_.useMemo(()=>_.forwardRef((T,D)=>_.createElement(cU,_d({},T,{navigate:!1,fetcherKey:c,ref:D}))),[c]),y=i.fetchers.get(c)||qfe,b=s.get(c);return _.useMemo(()=>_d({Form:g,submit:p,load:h},y,{data:b}),[g,p,h,y,b])}const oZ="react-router-scroll-positions";let k5={};function kKe(t){let{getKey:e,storageKey:n}=t===void 0?{}:t,{router:r}=uU(Ik.UseScrollRestoration),{restoreScrollPosition:i,preventScrollReset:s}=spe(a8.UseScrollRestoration),{basename:o}=_.useContext(Bd),a=d1(),l=jGe(),c=$Ge();_.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),CKe(_.useCallback(()=>{if(c.state==="idle"){let u=(e?e(a,l):null)||a.key;k5[u]=window.scrollY}try{sessionStorage.setItem(n||oZ,JSON.stringify(k5))}catch{}window.history.scrollRestoration="auto"},[n,e,c.state,a,l])),typeof document<"u"&&(_.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(n||oZ);u&&(k5=JSON.parse(u))}catch{}},[n]),_.useLayoutEffect(()=>{let u=e&&o!=="/"?(d,p)=>e(_d({},d,{pathname:Y0(d.pathname,o)||d.pathname}),p):e,h=r?.enableScrollRestoration(k5,()=>window.scrollY,u);return()=>h&&h()},[r,o,e]),_.useLayoutEffect(()=>{if(i!==!1){if(typeof i=="number"){window.scrollTo(0,i);return}if(a.hash){let u=document.getElementById(decodeURIComponent(a.hash.slice(1)));if(u){u.scrollIntoView();return}}s!==!0&&window.scrollTo(0,0)}},[a,i,s]))}function CKe(t,e){let{capture:n}={};_.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",t,r),()=>{window.removeEventListener("pagehide",t,r)}},[t,n])}const _Ke="modulepreload",TKe=function(t){return"/"+t},aZ={},ge=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=o?.nonce||o?.getAttribute("nonce");i=Promise.allSettled(n.map(l=>{if(l=TKe(l),l in aZ)return;aZ[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":_Ke,c||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((d,p)=>{h.addEventListener("load",d),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};
vendor: 6,109 bytes, lines 420-422
420var O6={exports:{}},EKe=O6.exports,lZ;function AKe(){return lZ||(lZ=1,function(t,e){(function(n,r){t.exports=r()})(EKe,function(){var n=function(k,A){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,V){R.__proto__=V}||function(R,V){for(var X in V)Object.prototype.hasOwnProperty.call(V,X)&&(R[X]=V[X])})(k,A)},r=function(){return(r=Object.assign||function(k){for(var A,R=1,V=arguments.length;R<V;R++)for(var X in A=arguments[R])Object.prototype.hasOwnProperty.call(A,X)&&(k[X]=A[X]);return k}).apply(this,arguments)};function i(k,A,R){for(var V,X=0,ne=A.length;X<ne;X++)!V&&X in A||((V=V||Array.prototype.slice.call(A,0,X))[X]=A[X]);return k.concat(V||Array.prototype.slice.call(A))}var s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:w3,o=Object.keys,a=Array.isArray;function l(k,A){return typeof A!="object"||o(A).forEach(function(R){k[R]=A[R]}),k}typeof Promise>"u"||s.Promise||(s.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function h(k,A){return u.call(k,A)}function d(k,A){typeof A=="function"&&(A=A(c(k))),(typeof Reflect>"u"?o:Reflect.ownKeys)(A).forEach(function(R){g(k,R,A[R])})}var p=Object.defineProperty;function g(k,A,R,V){p(k,A,l(R&&h(R,"get")&&typeof R.get=="function"?{get:R.get,set:R.set,configurable:!0}:{value:R,configurable:!0,writable:!0},V))}function y(k){return{from:function(A){return k.prototype=Object.create(A.prototype),g(k.prototype,"constructor",k),{extend:d.bind(null,k.prototype)}}}}var b=Object.getOwnPropertyDescriptor,w=[].slice;function S(k,A,R){return w.call(k,A,R)}function T(k,A){return A(k)}function D(k){if(!k)throw new Error("Assertion Failed")}function E(k){s.setImmediate?setImmediate(k):setTimeout(k,0)}function O(k,A){if(typeof A=="string"&&h(k,A))return k[A];if(!A)return k;if(typeof A!="string"){for(var R=[],V=0,X=A.length;V<X;++V){var ne=O(k,A[V]);R.push(ne)}return R}var le=A.indexOf(".");if(le!==-1){var pe=k[A.substr(0,le)];return pe==null?void 0:O(pe,A.substr(le+1))}}function P(k,A,R){if(k&&A!==void 0&&!("isFrozen"in Object&&Object.isFrozen(k)))if(typeof A!="string"&&"length"in A){D(typeof R!="string"&&"length"in R);for(var V=0,X=A.length;V<X;++V)P(k,A[V],R[V])}else{var ne,le,pe=A.indexOf(".");pe!==-1?(ne=A.substr(0,pe),(le=A.substr(pe+1))===""?R===void 0?a(k)&&!isNaN(parseInt(ne))?k.splice(ne,1):delete k[ne]:k[ne]=R:P(pe=!(pe=k[ne])||!h(k,ne)?k[ne]={}:pe,le,R)):R===void 0?a(k)&&!isNaN(parseInt(A))?k.splice(A,1):delete k[A]:k[A]=R}}function $(k){var A,R={};for(A in k)h(k,A)&&(R[A]=k[A]);return R}var W=[].concat;function H(k){return W.apply([],k)}var ze="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(H([8,16,32,64].map(function(k){return["Int","Uint","Float"].map(function(A){return A+k+"Array"})}))).filter(function(k){return s[k]}),K=new Set(ze.map(function(k){return s[k]})),Z=null;function oe(k){return Z=new WeakMap,k=function A(R){if(!R||typeof R!="object")return R;var V=Z.get(R);if(V)return V;if(a(R)){V=[],Z.set(R,V);for(var X=0,ne=R.length;X<ne;++X)V.push(A(R[X]))}else if(K.has(R.constructor))V=R;else{var le,pe=c(R);for(le in V=pe===Object.prototype?{}:Object.create(pe),Z.set(R,V),R)h(R,le)&&(V[le]=A(R[le]))}return V}(k),Z=null,k}var te={}.toString;function re(k){return te.call(k).slice(8,-1)}var Y=typeof Symbol<"u"?Symbol.iterator:"@@iterator",z=typeof Y=="symbol"?function(k){var A;return k!=null&&(A=k[Y])&&A.apply(k)}:function(){return null};function U(k,A){return A=k.indexOf(A),0<=A&&k.splice(A,1),0<=A}var G={};function B(k){var A,R,V,X;if(arguments.length===1){if(a(k))return k.slice();if(this===G&&typeof k=="string")return[k];if(X=z(k)){for(R=[];!(V=X.next()).done;)R.push(V.value);return R}if(k==null)return[k];if(typeof(A=k.length)!="number")return[k];for(R=new Array(A);A--;)R[A]=k[A];return R}for(A=arguments.length,R=new Array(A);A--;)R[A]=arguments[A];return R}var Q=typeof Symbol<"u"?function(k){return k[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},zt=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Zl=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(zt),ie={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function q(k,A){this.name=k,this.message=A}function fe(k,A){return k+". Errors: "+Object.keys(A).map(function(R){return A[R].toString()}).filter(function(R,V,X){return X.indexOf(R)===V}).join(` 421`)}function ke(k,A,R,V){this.failures=A,this.failedKeys=V,this.successCount=R,this.message=fe(k,A)}function Be(k,A){this.name="BulkError",this.failures=Object.keys(A).map(function(R){return A[R]}),this.failuresByPos=A,this.message=fe(k,this.failures)}y(q).from(Error).extend({toString:function(){return this.name+": "+this.message}}),y(ke).from(q),y(Be).from(q);var Qe=Zl.reduce(function(k,A){return k[A]=A+"Error",k},{}),ft=q,Ne=Zl.reduce(function(k,A){var R=A+"Error";function V(X,ne){this.name=R,X?typeof X=="string"?(this.message="".concat(X).concat(ne?` 422 `+ne:""),this.inner=ne||null):typeof X=="object"&&(this.message="".concat(X.name," ").concat(X.message),this.inner=X):(this.message=ie[A]||R,this.inner=null)}return y(V).from(ft),k[A]=V,k},{});Ne.Syntax=SyntaxError,Ne.Type=TypeError,Ne.Range=RangeError;var rt=zt.reduce(function(k,A){return k[A+"Error"]=Ne[A],k},{}),Mt=Zl.reduce(function(k,A){return["Syntax","Type","Range"].indexOf(A)===-1&&(k[A+"Error"]=Ne[A]),k},{});function it(){}function Rt(k){return k}function xt(k,A){return k==null||k===Rt?A:function(R){return A(k(R))}}
422function Nn(k,A){return function(){k.apply(this,arguments),A.apply(this,arguments)}}function Hn(k,A){return k===it?A:function(){var R=k.apply(this,arguments);R!==void 0&&(arguments[0]=R);var V=this.onsuccess,X=this.onerror;this.onsuccess=null,this.onerror=null;var ne=A.apply(this,arguments);return V&&(this.onsuccess=this.onsuccess?Nn(V,this.onsuccess):V),X&&(this.onerror=this.onerror?Nn(X,this.onerror):X),ne!==void 0?ne:R}}function $n(k,A){return k===it?A:function(){k.apply(this,arguments);var R=this.onsuccess,V=this.onerror;this.onsuccess=this.onerror=null,A.apply(this,arguments),R&&(this.onsuccess=this.onsuccess?Nn(R,this.onsuccess):R),V&&(this.onerror=this.onerror?Nn(V,this.onerror):V)}}function Wn(k,A){return k===it?A:function(R){var V=k.apply(this,arguments);l(R,V);var X=this.onsuccess,ne=this.onerror;return this.onsuccess=null,this.onerror=null,R=A.apply(this,arguments),X&&(this.onsuccess=this.onsuccess?Nn(X,this.onsuccess):X),ne&&(this.onerror=this.onerror?Nn(ne,this.onerror):ne),V===void 0?R===void 0?void 0:R:l(V,R)}}function nr(k,A){return k===it?A:function(){return A.apply(this,arguments)!==!1&&k.apply(this,arguments)}}function Cn(k,A){return k===it?A:function(){var R=k.apply(this,arguments);if(R&&typeof R.then=="function"){for(var V=this,X=arguments.length,ne=new Array(X);X--;)ne[X]=arguments[X];return R.then(function(){return A.apply(V,ne)})}return A.apply(this,arguments)}}Mt.ModifyError=ke,Mt.DexieError=q,Mt.BulkError=Be;var Nr=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ki(k){Nr=k}var yr={},mt=100,ze=typeof Promise>"u"?[]:function(){var k=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[k,c(k),k];var A=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[A,c(A),k]}(),zt=ze[0],Zl=ze[1],ze=ze[2],Zl=Zl&&Zl.then,tt=zt&&zt.constructor,wt=!!ze,tn=function(k,A){Hr.push([k,A]),jt&&(queueMicrotask(Yo),jt=!1)},ot=!0,jt=!0,_r=[],fr=[],Rr=Rt,Zt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:it,pgp:!1,env:{},finalize:it},lt=Zt,Hr=[],Un=0,xn=[];function ut(k){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var A=this._PSD=lt;if(typeof k!="function"){if(k!==yr)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Kr(this,this._value))}this._state=null,this._value=null,++A.ref,function R(V,X){try{X(function(ne){if(V._state===null){if(ne===V)throw new TypeError("A promise cannot be resolved with itself.");var le=V._lib&&is();ne&&typeof ne.then=="function"?R(V,function(pe,_e){ne instanceof ut?ne._then(pe,_e):ne.then(pe,_e)}):(V._state=!0,V._value=ne,Ao(V)),le&&Ii()}},Kr.bind(null,V))}catch(ne){Kr(V,ne)}}(this,k)}var kr={get:function(){var k=lt,A=wn;function R(V,X){var ne=this,le=!k.global&&(k!==lt||A!==wn),pe=le&&!Ht(),_e=new ut(function(Ae,Le){oi(ne,new di(st(V,k,le,pe),st(X,k,le,pe),Ae,Le,k))});return this._consoleTask&&(_e._consoleTask=this._consoleTask),_e}return R.prototype=yr,R},set:function(k){g(this,"then",k&&k.prototype===yr?kr:{get:function(){return k},set:kr.set})}};function di(k,A,R,V,X){this.onFulfilled=typeof k=="function"?k:null,this.onRejected=typeof A=="function"?A:null,this.resolve=R,this.reject=V,this.psd=X}function Kr(k,A){var R,V;fr.push(A),k._state===null&&(R=k._lib&&is(),A=Rr(A),k._state=!1,k._value=A,V=k,_r.some(function(X){return X._value===V._value})||_r.push(V),Ao(k),R&&Ii())}function Ao(k){var A=k._listeners;k._listeners=[];for(var R=0,V=A.length;R<V;++R)oi(k,A[R]);var X=k._PSD;--X.ref||X.finalize(),Un===0&&(++Un,tn(function(){--Un==0&&Oo()},[]))}function oi(k,A){if(k._state!==null){var R=k._state?A.onFulfilled:A.onRejected;if(R===null)return(k._state?A.resolve:A.reject)(k._value);++A.psd.ref,++Un,tn(Po,[R,k,A])}else k._listeners.push(A)}function Po(k,A,R){try{var V,X=A._value;!A._state&&fr.length&&(fr=[]),V=Nr&&A._consoleTask?A._consoleTask.run(function(){return k(X)}):k(X),A._state||fr.indexOf(X)!==-1||function(ne){for(var le=_r.length;le;)if(_r[--le]._value===ne._value)return _r.splice(le,1)}(A),R.resolve(V)}catch(ne){R.reject(ne)}finally{--Un==0&&Oo(),--R.psd.ref||R.psd.finalize()}}function Yo(){ye(Zt,function(){is()&&Ii()})}function is(){var k=ot;return jt=ot=!1,k}function Ii(){var k,A,R;do for(;0<Hr.length;)for(k=Hr,Hr=[],R=k.length,A=0;A<R;++A){var V=k[A];V[0].apply(null,V[1])}while(0<Hr.length);jt=ot=!0}function Oo(){var k=_r;
vendor: 5,459 bytes, line 422
422_r=[],k.forEach(function(V){V._PSD.onunhandled.call(null,V._value,V)});for(var A=xn.slice(0),R=A.length;R;)A[--R]()}function xe(k){return new ut(yr,!1,k)}function Se(k,A){var R=lt;return function(){var V=is(),X=lt;try{return Ci(R,!0),k.apply(this,arguments)}catch(ne){A&&A(ne)}finally{Ci(X,!1),V&&Ii()}}}d(ut.prototype,{then:kr,_then:function(k,A){oi(this,new di(null,null,k,A,lt))},catch:function(k){if(arguments.length===1)return this.then(null,k);var A=k,R=arguments[1];return typeof A=="function"?this.then(null,function(V){return(V instanceof A?R:xe)(V)}):this.then(null,function(V){return(V&&V.name===A?R:xe)(V)})},finally:function(k){return this.then(function(A){return ut.resolve(k()).then(function(){return A})},function(A){return ut.resolve(k()).then(function(){return xe(A)})})},timeout:function(k,A){var R=this;return k<1/0?new ut(function(V,X){var ne=setTimeout(function(){return X(new Ne.Timeout(A))},k);R.then(V,X).finally(clearTimeout.bind(null,ne))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&g(ut.prototype,Symbol.toStringTag,"Dexie.Promise"),Zt.env=Nt(),d(ut,{all:function(){var k=B.apply(null,arguments).map(jn);return new ut(function(A,R){k.length===0&&A([]);var V=k.length;k.forEach(function(X,ne){return ut.resolve(X).then(function(le){k[ne]=le,--V||A(k)},R)})})},resolve:function(k){return k instanceof ut?k:k&&typeof k.then=="function"?new ut(function(A,R){k.then(A,R)}):new ut(yr,!0,k)},reject:xe,race:function(){var k=B.apply(null,arguments).map(jn);return new ut(function(A,R){k.map(function(V){return ut.resolve(V).then(A,R)})})},PSD:{get:function(){return lt},set:function(k){return lt=k}},totalEchoes:{get:function(){return wn}},newPSD:Ut,usePSD:ye,scheduler:{get:function(){return tn},set:function(k){tn=k}},rejectionMapper:{get:function(){return Rr},set:function(k){Rr=k}},follow:function(k,A){return new ut(function(R,V){return Ut(function(X,ne){var le=lt;le.unhandleds=[],le.onunhandled=ne,le.finalize=Nn(function(){var pe,_e=this;pe=function(){_e.unhandleds.length===0?X():ne(_e.unhandleds[0])},xn.push(function Ae(){pe(),xn.splice(xn.indexOf(Ae),1)}),++Un,tn(function(){--Un==0&&Oo()},[])},le.finalize),k()},A,R,V)})}}),tt&&(tt.allSettled&&g(ut,"allSettled",function(){var k=B.apply(null,arguments).map(jn);return new ut(function(A){k.length===0&&A([]);var R=k.length,V=new Array(R);k.forEach(function(X,ne){return ut.resolve(X).then(function(le){return V[ne]={status:"fulfilled",value:le}},function(le){return V[ne]={status:"rejected",reason:le}}).then(function(){return--R||A(V)})})})}),tt.any&&typeof AggregateError<"u"&&g(ut,"any",function(){var k=B.apply(null,arguments).map(jn);return new ut(function(A,R){k.length===0&&R(new AggregateError([]));var V=k.length,X=new Array(V);k.forEach(function(ne,le){return ut.resolve(ne).then(function(pe){return A(pe)},function(pe){X[le]=pe,--V||R(new AggregateError(X))})})})}),tt.withResolvers&&(ut.withResolvers=tt.withResolvers));var Fe={awaits:0,echoes:0,id:0},at=0,_t=[],cn=0,wn=0,nn=0;function Ut(k,A,R,V){var X=lt,ne=Object.create(X);return ne.parent=X,ne.ref=0,ne.global=!1,ne.id=++nn,Zt.env,ne.env=wt?{Promise:ut,PromiseProp:{value:ut,configurable:!0,writable:!0},all:ut.all,race:ut.race,allSettled:ut.allSettled,any:ut.any,resolve:ut.resolve,reject:ut.reject}:{},A&&l(ne,A),++X.ref,ne.finalize=function(){--this.parent.ref||this.parent.finalize()},V=ye(ne,k,R,V),ne.ref===0&&ne.finalize(),V}function Kt(){return Fe.id||(Fe.id=++at),++Fe.awaits,Fe.echoes+=mt,Fe.id}function Ht(){return!!Fe.awaits&&(--Fe.awaits==0&&(Fe.id=0),Fe.echoes=Fe.awaits*mt,!0)}function jn(k){return Fe.echoes&&k&&k.constructor===tt?(Kt(),k.then(function(A){return Ht(),A},function(A){return Ht(),Rn(A)})):k}function Ar(){var k=_t[_t.length-1];_t.pop(),Ci(k,!1)}function Ci(k,A){var R,V=lt;(A?!Fe.echoes||cn++&&k===lt:!cn||--cn&&k===lt)||queueMicrotask(A?function(X){++wn,Fe.echoes&&--Fe.echoes!=0||(Fe.echoes=Fe.awaits=Fe.id=0),_t.push(lt),Ci(X,!0)}.bind(null,k):Ar),k!==lt&&(lt=k,V===Zt&&(Zt.env=Nt()),wt&&(R=Zt.env.Promise,A=k.env,(V.global||k.global)&&(Object.defineProperty(s,"Promise",A.PromiseProp),R.all=A.all,R.race=A.race,R.resolve=A.resolve,R.reject=A.reject,A.allSettled&&(R.allSettled=A.allSettled),A.any&&(R.any=A.any))))}function Nt(){var k=s.Promise;return wt?{Promise:k,PromiseProp:Object.getOwnPropertyDescriptor(s,"Promise"),all:k.all,race:k.race,allSettled:k.allSettled,any:k.any,resolve:k.resolve,reject:k.reject}:{}}function ye(k,A,R,V,X){var ne=lt;try{return Ci(k,!0),A(R,V,X)}finally{Ci(ne,!1)}}function st(k,A,R,V){return typeof k!="function"?k:function(){var X=lt;R&&Kt(),Ci(A,!0);try{return k.apply(this,arguments)}finally{Ci(X,!1),V&&queueMicrotask(Ht)}}}function Yt(k){Promise===tt&&Fe.echoes===0?cn===0?k():enqueueNativeMicroTask(k):setTimeout(k,0)}(""+Zl).indexOf("[native code]")===-1&&(Kt=Ht=it);var Rn=ut.reject,Ur="ï¿¿",pn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",_s="String expected.",_i=[],Ls="__dbnames",Di="readonly",Sl="readwrite";function pr(k,A){return k?A?function(){return k.apply(this,arguments)&&A.apply(this,arguments)}:k:A}var yi={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Bs(k){return typeof k!="string"||/\./.test(k)?function(A){return A}:function(A){return A[k]===void 0&&k in A&&delete(A=oe(A))[k],A}}function $u(){throw Ne.Type()}function on(k,A){try{var R=qc(k),V=qc(A);if(R!==V)return R==="Array"?1:V==="Array"?-1:R==="binary"?1:V==="binary"?-1:R==="str
422ing"?1:V==="string"?-1:R==="Date"?1:V!=="Date"?NaN:-1;switch(R){case"number":case"Date":case"string":return A<k?1:k<A?-1:0;case"binary":return function(X,ne){for(var le=X.length,pe=ne.length,_e=le<pe?le:pe,Ae=0;Ae<_e;++Ae)if(X[Ae]!==ne[Ae])return X[Ae]<ne[Ae]?-1:1;return le===pe?0:le<pe?-1:1}(Ep(k),Ep(A));case"Array":return function(X,ne){for(var le=X.length,pe=ne.length,_e=le<pe?le:pe,Ae=0;Ae<_e;++Ae){var Le=on(X[Ae],ne[Ae]);if(Le!==0)return Le}return le===pe?0:le<pe?-1:1}(k,A)}}catch{}return NaN}function qc(k){var A=typeof k;return A!="object"?A:ArrayBuffer.isView(k)?"binary":(k=re(k),k==="ArrayBuffer"?"binary":k)}function Ep(k){return k instanceof Uint8Array?k:ArrayBuffer.isView(k)?new Uint8Array(k.buffer,k.byteOffset,k.byteLength):new Uint8Array(k)}var vm=(Ti.prototype._trans=function(k,A,R){var V=this._tx||lt.trans,X=this.name,ne=Nr&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(k==="readonly"?"read":"write"," ").concat(this.name));function le(Ae,Le,be){if(!be.schema[X])throw new Ne.NotFound("Table "+X+" not part of transaction");return A(be.idbtrans,be)}var pe=is();try{var _e=V&&V.db._novip===this.db._novip?V===lt.trans?V._promise(k,le,R):Ut(function(){return V._promise(k,le,R)},{trans:V,transless:lt.transless||lt}):function Ae(Le,be,$e,Te){if(Le.idbdb&&(Le._state.openComplete||lt.letThrough||Le._vip)){var Re=Le._createTransaction(be,$e,Le._dbSchema);try{Re.create(),Le._state.PR1398_maxLoop=3}catch(je){return je.name===Qe.InvalidState&&Le.isOpen()&&0<--Le._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Le.close({disableAutoOpen:!1}),Le.open().then(function(){return Ae(Le,be,$e,Te)})):Rn(je)}return Re._promise(be,function(je,Ie){return Ut(function(){return lt.trans=Re,Te(je,Ie,Re)})}).then(function(je){if(be==="readwrite")try{Re.idbtrans.commit()}catch{}return be==="readonly"?je:Re._completion.then(function(){return je})})}if(Le._state.openComplete)return Rn(new Ne.DatabaseClosed(Le._state.dbOpenError));if(!Le._state.isBeingOpened){if(!Le._state.autoOpen)return Rn(new Ne.DatabaseClosed);Le.open().catch(it)}return Le._state.dbReadyPromise.then(function(){return Ae(Le,be,$e,Te)})}(this.db,k,[this.name],le);return ne&&(_e._consoleTask=ne,_e=_e.catch(function(Ae){return console.trace(Ae),Rn(Ae)})),_e}finally{pe&&Ii()}},Ti.prototype.get=function(k,A){var R=this;return k&&k.constructor===Object?this.where(k).first(A):k==null?Rn(new Ne.Type("Invalid argument to Table.get()")):this._trans("readonly",function(V){return R.core.get({trans:V,key:k}).then(function(X){return R.hook.reading.fire(X)})}).then(A)},Ti.prototype.where=function(k){if(typeof k=="string")return new this.db.WhereClause(this,k);if(a(k))return new this.db.WhereClause(this,"[".concat(k.join("+"),"]"));var A=o(k);if(A.length===1)return this.where(A[0]).equals(k[A[0]]);var R=this.schema.indexes.concat(this.schema.primKey).filter(function(pe){if(pe.compound&&A.every(function(Ae){return 0<=pe.keyPath.indexOf(Ae)})){for(var _e=0;_e<A.length;++_e)if(A.indexOf(pe.keyPath[_e])===-1)return!1;return!0}return!1}).sort(function(pe,_e){return pe.keyPath.length-_e.keyPath.length})[0];if(R&&this.db._maxKey!==Ur){var ne=R.keyPath.slice(0,A.length);return this.where(ne).equals(ne.map(function(_e){return k[_e]}))}!R&&Nr&&console.warn("The query ".concat(JSON.stringify(k)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(A.join("+"),"]"));var V=this.schema.idxByName;function X(pe,_e){return on(pe,_e)===0}var le=A.reduce(function(be,_e){var Ae=be[0],Le=be[1],be=V[_e],$e=k[_e];return[Ae||be,Ae||!be?pr(Le,be&&be.multi?function(Te){return Te=O(Te,_e),a(Te)&&Te.some(function(Re){return X($e,Re)})}:function(Te){return X($e,O(Te,_e))}):Le]},[null,null]),ne=le[0],le=le[1];return ne?this.where(ne.name).equals(k[ne.keyPath]).filter(le):R?this.filter(le):this.where(A).equals("")},Ti.prototype.filter=function(k){return this.toCollection().and(k)},Ti.prototype.count=function(k){return this.toCollection().count(k)},Ti.prototype.offset=function(k){return this.toCollection().offset(k)},Ti.prototype.limit=function(k){return this.toCollection().limit(k)},Ti.prototype.each=function(k){return this.toCollection().each(k)},Ti.prototype.toArray=function(k){return this.toCollection().toArray(k)},Ti.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Ti.prototype.orderBy=function(k){return new this.db.Collection(new this.db.WhereClause(this,a(k)?"[".concat(k.join("+"),"]"):k))},Ti.prototype.reverse=function(){return this.toCollection().reverse()},Ti.prototype.mapToClass=function(k){var A,R=this.db,V=this.name;function X(){return A!==null&&A.apply(this,arguments)||this}(this.schema.mappedClass=k).prototype instanceof $u&&(function(_e,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");function Le(){this.constructor=_e}
vendor: 9,335 bytes, line 422
422n(_e,Ae),_e.prototype=Ae===null?Object.create(Ae):(Le.prototype=Ae.prototype,new Le)}(X,A=k),Object.defineProperty(X.prototype,"db",{get:function(){return R},enumerable:!1,configurable:!0}),X.prototype.table=function(){return V},k=X);for(var ne=new Set,le=k.prototype;le;le=c(le))Object.getOwnPropertyNames(le).forEach(function(_e){return ne.add(_e)});function pe(_e){if(!_e)return _e;var Ae,Le=Object.create(k.prototype);for(Ae in _e)if(!ne.has(Ae))try{Le[Ae]=_e[Ae]}catch{}return Le}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=pe,this.hook("reading",pe),k},Ti.prototype.defineClass=function(){return this.mapToClass(function(k){l(this,k)})},Ti.prototype.add=function(k,A){var R=this,V=this.schema.primKey,X=V.auto,ne=V.keyPath,le=k;return ne&&X&&(le=Bs(ne)(k)),this._trans("readwrite",function(pe){return R.core.mutate({trans:pe,type:"add",keys:A!=null?[A]:null,values:[le]})}).then(function(pe){return pe.numFailures?ut.reject(pe.failures[0]):pe.lastResult}).then(function(pe){if(ne)try{P(k,ne,pe)}catch{}return pe})},Ti.prototype.update=function(k,A){return typeof k!="object"||a(k)?this.where(":id").equals(k).modify(A):(k=O(k,this.schema.primKey.keyPath),k===void 0?Rn(new Ne.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(k).modify(A))},Ti.prototype.put=function(k,A){var R=this,V=this.schema.primKey,X=V.auto,ne=V.keyPath,le=k;return ne&&X&&(le=Bs(ne)(k)),this._trans("readwrite",function(pe){return R.core.mutate({trans:pe,type:"put",values:[le],keys:A!=null?[A]:null})}).then(function(pe){return pe.numFailures?ut.reject(pe.failures[0]):pe.lastResult}).then(function(pe){if(ne)try{P(k,ne,pe)}catch{}return pe})},Ti.prototype.delete=function(k){var A=this;return this._trans("readwrite",function(R){return A.core.mutate({trans:R,type:"delete",keys:[k]})}).then(function(R){return R.numFailures?ut.reject(R.failures[0]):void 0})},Ti.prototype.clear=function(){var k=this;return this._trans("readwrite",function(A){return k.core.mutate({trans:A,type:"deleteRange",range:yi})}).then(function(A){return A.numFailures?ut.reject(A.failures[0]):void 0})},Ti.prototype.bulkGet=function(k){var A=this;return this._trans("readonly",function(R){return A.core.getMany({keys:k,trans:R}).then(function(V){return V.map(function(X){return A.hook.reading.fire(X)})})})},Ti.prototype.bulkAdd=function(k,A,R){var V=this,X=Array.isArray(A)?A:void 0,ne=(R=R||(X?void 0:A))?R.allKeys:void 0;return this._trans("readwrite",function(le){var Ae=V.schema.primKey,pe=Ae.auto,Ae=Ae.keyPath;if(Ae&&X)throw new Ne.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(X&&X.length!==k.length)throw new Ne.InvalidArgument("Arguments objects and keys must have the same length");var _e=k.length,Ae=Ae&&pe?k.map(Bs(Ae)):k;return V.core.mutate({trans:le,type:"add",keys:X,values:Ae,wantResults:ne}).then(function(Re){var be=Re.numFailures,$e=Re.results,Te=Re.lastResult,Re=Re.failures;if(be===0)return ne?$e:Te;throw new Be("".concat(V.name,".bulkAdd(): ").concat(be," of ").concat(_e," operations failed"),Re)})})},Ti.prototype.bulkPut=function(k,A,R){var V=this,X=Array.isArray(A)?A:void 0,ne=(R=R||(X?void 0:A))?R.allKeys:void 0;return this._trans("readwrite",function(le){var Ae=V.schema.primKey,pe=Ae.auto,Ae=Ae.keyPath;if(Ae&&X)throw new Ne.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(X&&X.length!==k.length)throw new Ne.InvalidArgument("Arguments objects and keys must have the same length");var _e=k.length,Ae=Ae&&pe?k.map(Bs(Ae)):k;return V.core.mutate({trans:le,type:"put",keys:X,values:Ae,wantResults:ne}).then(function(Re){var be=Re.numFailures,$e=Re.results,Te=Re.lastResult,Re=Re.failures;if(be===0)return ne?$e:Te;throw new Be("".concat(V.name,".bulkPut(): ").concat(be," of ").concat(_e," operations failed"),Re)})})},Ti.prototype.bulkUpdate=function(k){var A=this,R=this.core,V=k.map(function(le){return le.key}),X=k.map(function(le){return le.changes}),ne=[];return this._trans("readwrite",function(le){return R.getMany({trans:le,keys:V,cache:"clone"}).then(function(pe){var _e=[],Ae=[];k.forEach(function(be,$e){var Te=be.key,Re=be.changes,je=pe[$e];if(je){for(var Ie=0,qe=Object.keys(Re);Ie<qe.length;Ie++){var Ye=qe[Ie],Xe=Re[Ye];if(Ye===A.schema.primKey.keyPath){if(on(Xe,Te)!==0)throw new Ne.Constraint("Cannot update primary key in bulkUpdate()")}else P(je,Ye,Xe)}ne.push($e),_e.push(Te),Ae.push(je)}});var Le=_e.length;return R.mutate({trans:le,type:"put",keys:_e,values:Ae,updates:{keys:V,changeSpecs:X}}).then(function(be){var $e=be.numFailures,Te=be.failures;if($e===0)return Le;for(var Re=0,je=Object.keys(Te);Re<je.length;Re++){var Ie,qe=je[Re],Ye=ne[Number(qe)];Ye!=null&&(Ie=Te[qe],delete Te[qe],Te[Ye]=Ie)}throw new Be("".concat(A.name,".bulkUpdate(): ").concat($e," of ").concat(Le," operations failed"),Te)})})})},Ti.prototype.bulkDelete=function(k){var A=this,R=k.length;return this._trans("readwrite",function(V){return A.core.mutate({trans:V,type:"delete",keys:k})}).then(function(le){var X=le.numFailures,ne=le.lastResult,le=le.failures;if(X===0)return ne;throw new Be("".concat(A.name,".bulkDelete(): ").concat(X," of ").concat(R," operations failed"),le)})},Ti);function Ti(){}function ju(k){function A(le,pe){if(pe){for(var _e=arguments.length,Ae=new Array(_e-1);--_e;)Ae[_e-1]=arguments[_e];return R[le].subscribe.apply(null,Ae),k}if(typeof le=="string")return R[le]}var R={};A.addEventType=ne;for(var V=1,X=arguments.length;V<X;++V)ne(arguments[V]);return A;function ne(le,pe,_e){if(typeof le!="object"){var Ae;pe=pe||nr;var Le={subscribers:[],fire:_e=_e||it,subscribe:function(be){Le.subscribers.indexOf(be)===-1&&(Le.subscribers.push(be),Le.fire=pe(Le.fire,be))},unsubscribe:function(be){Le.subscribers=Le.subscribers.filter(function($e){return $e!==be}),Le.fire=Le.subscribers.reduce(pe,_e)}};return R[le]=A[le]=Le}o(Ae=le).forEach(function(be){var $e=Ae[be];if(a($e))ne(be,Ae[be][0],Ae[be][1]);else{if($e!=="asap")throw new Ne.InvalidArgument("Invalid event config");var Te=ne(be,Rt,function(){for(var Re=arguments.length,je=new Array(Re);Re--;)je[Re]=arguments[Re];Te.subscribers.forEach(function(Ie){E(function(){Ie.apply(null,je)})})})}})}}function Gc(k,A){return y(A).from({prototype:k}),A}function Kc(k,A){return!(k.filter||k.algorithm||k.or)&&(A?k.justLimit:!k.replayFilter)}function Wd(k,A){k.filter=pr(k.filter,A)}function Ap(k,A,R){var V=k.replayFilter;k.replayFilter=V?function(){return pr(V(),A())}:A,k.justLimit=R&&!V}function qd(k,A){if(k.isPrimKey)return A.primaryKey;var R=A.getIndexByKeyPath(k.index);if(!R)throw new Ne.Schema("KeyPath "+k.index+" on object store "+A.name+" is not indexed");return R}function T1(k,A,R){var V=qd(k,A.schema);return A.openCursor({trans:R,values:!k.keysOnly,reverse:k.dir==="prev",unique:!!k.unique,query:{index:V,range:k.range}})}function $h(k,A,R,V){var X=k.replayFilter?pr(k.filter,k.replayFilter()):k.filter;if(k.or){var ne={},le=function(pe,_e,Ae){var Le,be;X&&!X(_e,Ae,function($e){return _e.stop($e)},function($e){return _e.fail($e)})||((be=""+(Le=_e.primaryKey))=="[object ArrayBuffer]"&&(be=""+new Uint8Array(Le)),h(ne,be)||(ne[be]=!0,A(pe,_e,Ae)))};return Promise.all([k.or._iterate(le,R),Gd(T1(k,V,R),k.algorithm,le,!k.keysOnly&&k.valueMapper)])}return Gd(T1(k,V,R),pr(k.algorithm,X),A,!k.keysOnly&&k.valueMapper)}function Gd(k,A,R,V){var X=Se(V?function(ne,le,pe){return R(V(ne),le,pe)}:R);return k.then(function(ne){if(ne)return ne.start(function(){var le=function(){return ne.continue()};A&&!A(ne,function(pe){return le=pe},function(pe){ne.stop(pe),le=it},function(pe){ne.fail(pe),le=it})||X(ne.value,ne,function(pe){return le=pe}),le()})})}var Pp=(xm.prototype.execute=function(k){var A=this["@@propmod"];if(A.add!==void 0){var R=A.add;if(a(R))return i(i([],a(k)?k:[],!0),R).sort();if(typeof R=="number")return(Number(k)||0)+R;if(typeof R=="bigint")try{return BigInt(k)+R}catch{return BigInt(0)+R}throw new TypeError("Invalid term ".concat(R))}if(A.remove!==void 0){var V=A.remove;if(a(V))return a(k)?k.filter(function(X){return!V.includes(X)}).sort():[];if(typeof V=="number")return Number(k)-V;if(typeof V=="bigint")try{return BigInt(k)-V}catch{return BigInt(0)-V}throw new TypeError("Invalid subtrahend ".concat(V))}return R=(R=A.replacePrefix)===null||R===void 0?void 0:R[0],R&&typeof k=="string"&&k.startsWith(R)?A.replacePrefix[1]+k.substring(R.length):k},xm);function xm(k){this["@@propmod"]=k}var fi=(ni.prototype._read=function(k,A){var R=this._ctx;return R.error?R.table._trans(null,Rn.bind(null,R.error)):R.table._trans("readonly",k).then(A)},ni.prototype._write=function(k){var A=this._ctx;return A.error?A.table._trans(null,Rn.bind(null,A.error)):A.table._trans("readwrite",k,"locked")},ni.prototype._addAlgorithm=function(k){var A=this._ctx;A.algorithm=pr(A.algorithm,k)},ni.prototype._iterate=function(k,A){return $h(this._ctx,k,A,this._ctx.table.core)},ni.prototype.clone=function(k){var A=Object.create(this.constructor.prototype),R=Object.create(this._ctx);return k&&l(R,k),A._ctx=R,A},ni.prototype.raw=function(){return this._ctx.valueMapper=null,this},ni.prototype.each=function(k){var A=this._ctx;return this._read(function(R){return $h(A,k,R,A.table.core)})},ni.prototype.count=function(k){var A=this;return this._read(function(R){var V=A._ctx,X=V.table.core;
422if(Kc(V,!0))return X.count({trans:R,query:{index:qd(V,X.schema),range:V.range}}).then(function(le){return Math.min(le,V.limit)});var ne=0;return $h(V,function(){return++ne,!1},R,X).then(function(){return ne})}).then(k)},ni.prototype.sortBy=function(k,A){var R=k.split(".").reverse(),V=R[0],X=R.length-1;function ne(_e,Ae){return Ae?ne(_e[R[Ae]],Ae-1):_e[V]}var le=this._ctx.dir==="next"?1:-1;function pe(_e,Ae){return on(ne(_e,X),ne(Ae,X))*le}return this.toArray(function(_e){return _e.sort(pe)}).then(A)},ni.prototype.toArray=function(k){var A=this;return this._read(function(R){var V=A._ctx;if(V.dir==="next"&&Kc(V,!0)&&0<V.limit){var X=V.valueMapper,ne=qd(V,V.table.core.schema);return V.table.core.query({trans:R,limit:V.limit,values:!0,query:{index:ne,range:V.range}}).then(function(pe){return pe=pe.result,X?pe.map(X):pe})}var le=[];return $h(V,function(pe){return le.push(pe)},R,V.table.core).then(function(){return le})},k)},ni.prototype.offset=function(k){var A=this._ctx;return k<=0||(A.offset+=k,Kc(A)?Ap(A,function(){var R=k;return function(V,X){return R===0||(R===1?--R:X(function(){V.advance(R),R=0}),!1)}}):Ap(A,function(){var R=k;return function(){return--R<0}})),this},ni.prototype.limit=function(k){return this._ctx.limit=Math.min(this._ctx.limit,k),Ap(this._ctx,function(){var A=k;return function(R,V,X){return--A<=0&&V(X),0<=A}},!0),this},ni.prototype.until=function(k,A){return Wd(this._ctx,function(R,V,X){return!k(R.value)||(V(X),A)}),this},ni.prototype.first=function(k){return this.limit(1).toArray(function(A){return A[0]}).then(k)},ni.prototype.last=function(k){return this.reverse().first(k)},ni.prototype.filter=function(k){var A;return Wd(this._ctx,function(R){return k(R.value)}),(A=this._ctx).isMatch=pr(A.isMatch,k),this},ni.prototype.and=function(k){return this.filter(k)},ni.prototype.or=function(k){return new this.db.WhereClause(this._ctx.table,k,this)},ni.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},ni.prototype.desc=function(){return this.reverse()},ni.prototype.eachKey=function(k){var A=this._ctx;return A.keysOnly=!A.isMatch,this.each(function(R,V){k(V.key,V)})},ni.prototype.eachUniqueKey=function(k){return this._ctx.unique="unique",this.eachKey(k)},ni.prototype.eachPrimaryKey=function(k){var A=this._ctx;return A.keysOnly=!A.isMatch,this.each(function(R,V){k(V.primaryKey,V)})},ni.prototype.keys=function(k){var A=this._ctx;A.keysOnly=!A.isMatch;var R=[];return this.each(function(V,X){R.push(X.key)}).then(function(){return R}).then(k)},ni.prototype.primaryKeys=function(k){var A=this._ctx;if(A.dir==="next"&&Kc(A,!0)&&0<A.limit)return this._read(function(V){var X=qd(A,A.table.core.schema);return A.table.core.query({trans:V,values:!1,limit:A.limit,query:{index:X,range:A.range}})}).then(function(V){return V.result}).then(k);A.keysOnly=!A.isMatch;var R=[];return this.each(function(V,X){R.push(X.primaryKey)}).then(function(){return R}).then(k)},ni.prototype.uniqueKeys=function(k){return this._ctx.unique="unique",this.keys(k)},ni.prototype.firstKey=function(k){return this.limit(1).keys(function(A){return A[0]}).then(k)},ni.prototype.lastKey=function(k){return this.reverse().firstKey(k)},ni.prototype.distinct=function(){var k=this._ctx,k=k.index&&k.table.schema.idxByName[k.index];if(!k||!k.multi)return this;var A={};return Wd(this._ctx,function(X){var V=X.primaryKey.toString(),X=h(A,V);return A[V]=!0,!X}),this},ni.prototype.modify=function(k){var A=this,R=this._ctx;return this._write(function(V){var X,ne,le;le=typeof k=="function"?k:(X=o(k),ne=X.length,function(Ie){for(var qe=!1,Ye=0;Ye<ne;++Ye){var Xe=X[Ye],nt=k[Xe],Tt=O(Ie,Xe);nt instanceof Pp?(P(Ie,Xe,nt.execute(Tt)),qe=!0):Tt!==nt&&(P(Ie,Xe,nt),qe=!0)}return qe});var pe=R.table.core,be=pe.schema.primaryKey,_e=be.outbound,Ae=be.extractKey,Le=200,be=A.db._options.modifyChunkSize;be&&(Le=typeof be=="object"?be[pe.name]||be["*"]||200:be);function $e(Ie,Xe){var Ye=Xe.failures,Xe=Xe.numFailures;Re+=Ie-Xe;for(var nt=0,Tt=o(Ye);nt<Tt.length;nt++){var $t=Tt[nt];Te.push(Ye[$t])}}var Te=[],Re=0,je=[];return A.clone().primaryKeys().then(function(Ie){function qe(Xe){var nt=Math.min(Le,Ie.length-Xe);return pe.getMany({trans:V,keys:Ie.slice(Xe,Xe+nt),cache:"immutable"}).then(function(Tt){for(var $t=[],Et=[],Lt=_e?[]:null,Wt=[],Bt=0;Bt<nt;++Bt){var sn=Tt[Bt],Tr={value:oe(sn),primKey:Ie[Xe+Bt]};le.call(Tr,Tr.value,Tr)!==!1&&(Tr.value==null?Wt.push(Ie[Xe+Bt]):_e||on(Ae(sn),Ae(Tr.value))===0?(Et.push(Tr.value),_e&&Lt.push(Ie[Xe+Bt])):(Wt.push(Ie[Xe+Bt]),$t.push(Tr.value)))}return Promise.resolve(0<$t.length&&pe.mutate({trans:V,type:"add",values:$t}).then(function(Lr){for(var Vr in Lr.failures)Wt.splice(parseInt(Vr),1);$e($t.length,Lr)})).then(function(){return(0<Et.length||Ye&&typeof k=="object")&&pe.mutate({trans:V,type:"put",keys:Lt,values:Et,criteria:Ye,changeSpec:typeof k!="function"&&k,isAdditionalChunk:0<Xe}).then(function(Lr){return $e(Et.length,Lr)})}).then(function(){return(0<Wt.length||Ye&&k===wm)&&pe.mutate({trans:V,type:"delete",ke
vendor: 17,023 bytes, line 422
422ys:Wt,criteria:Ye,isAdditionalChunk:0<Xe}).then(function(Lr){return $e(Wt.length,Lr)})}).then(function(){return Ie.length>Xe+nt&&qe(Xe+Le)})})}var Ye=Kc(R)&&R.limit===1/0&&(typeof k!="function"||k===wm)&&{index:R.index,range:R.range};return qe(0).then(function(){if(0<Te.length)throw new ke("Error modifying one or more objects",Te,Re,je);return Ie.length})})})},ni.prototype.delete=function(){var k=this._ctx,A=k.range;return Kc(k)&&(k.isPrimKey||A.type===3)?this._write(function(R){var V=k.table.core.schema.primaryKey,X=A;return k.table.core.count({trans:R,query:{index:V,range:X}}).then(function(ne){return k.table.core.mutate({trans:R,type:"deleteRange",range:X}).then(function(le){var pe=le.failures;if(le.lastResult,le.results,le=le.numFailures,le)throw new ke("Could not delete some values",Object.keys(pe).map(function(_e){return pe[_e]}),ne-le);return ne-le})})}):this.modify(wm)},ni);function ni(){}var wm=function(k,A){return A.value=null};function E1(k,A){return k<A?-1:k===A?0:1}function Sm(k,A){return A<k?-1:k===A?0:1}function fa(k,A,R){return k=k instanceof Cl?new k.Collection(k):k,k._ctx.error=new(R||TypeError)(A),k}function jh(k){return new k.Collection(k,function(){return kl("")}).limit(0)}function Kd(k,A,R,V){var X,ne,le,pe,_e,Ae,Le,be=R.length;if(!R.every(function(Re){return typeof Re=="string"}))return fa(k,_s);function $e(Re){X=Re==="next"?function(Ie){return Ie.toUpperCase()}:function(Ie){return Ie.toLowerCase()},ne=Re==="next"?function(Ie){return Ie.toLowerCase()}:function(Ie){return Ie.toUpperCase()},le=Re==="next"?E1:Sm;var je=R.map(function(Ie){return{lower:ne(Ie),upper:X(Ie)}}).sort(function(Ie,qe){return le(Ie.lower,qe.lower)});pe=je.map(function(Ie){return Ie.upper}),_e=je.map(function(Ie){return Ie.lower}),Le=(Ae=Re)==="next"?"":V}$e("next"),k=new k.Collection(k,function(){return pa(pe[0],_e[be-1]+V)}),k._ondirectionchange=function(Re){$e(Re)};var Te=0;return k._addAlgorithm(function(Re,je,Ie){var qe=Re.key;if(typeof qe!="string")return!1;var Ye=ne(qe);if(A(Ye,_e,Te))return!0;for(var Xe=null,nt=Te;nt<be;++nt){var Tt=function($t,Et,Lt,Wt,Bt,sn){for(var Tr=Math.min($t.length,Wt.length),Lr=-1,Vr=0;Vr<Tr;++Vr){var Ya=Et[Vr];if(Ya!==Wt[Vr])return Bt($t[Vr],Lt[Vr])<0?$t.substr(0,Vr)+Lt[Vr]+Lt.substr(Vr+1):Bt($t[Vr],Wt[Vr])<0?$t.substr(0,Vr)+Wt[Vr]+Lt.substr(Vr+1):0<=Lr?$t.substr(0,Lr)+Et[Lr]+Lt.substr(Lr+1):null;Bt($t[Vr],Ya)<0&&(Lr=Vr)}return Tr<Wt.length&&sn==="next"?$t+Lt.substr($t.length):Tr<$t.length&&sn==="prev"?$t.substr(0,Lt.length):Lr<0?null:$t.substr(0,Lr)+Wt[Lr]+Lt.substr(Lr+1)}(qe,Ye,pe[nt],_e[nt],le,Ae);Tt===null&&Xe===null?Te=nt+1:(Xe===null||0<le(Xe,Tt))&&(Xe=Tt)}return je(Xe!==null?function(){Re.continue(Xe+Le)}:Ie),!1}),k}function pa(k,A,R,V){return{type:2,lower:k,upper:A,lowerOpen:R,upperOpen:V}}function kl(k){return{type:1,lower:k,upper:k}}var Cl=(Object.defineProperty(Mi.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Mi.prototype.between=function(k,A,R,V){R=R!==!1,V=V===!0;try{return 0<this._cmp(k,A)||this._cmp(k,A)===0&&(R||V)&&(!R||!V)?jh(this):new this.Collection(this,function(){return pa(k,A,!R,!V)})}catch{return fa(this,pn)}},Mi.prototype.equals=function(k){return k==null?fa(this,pn):new this.Collection(this,function(){return kl(k)})},Mi.prototype.above=function(k){return k==null?fa(this,pn):new this.Collection(this,function(){return pa(k,void 0,!0)})},Mi.prototype.aboveOrEqual=function(k){return k==null?fa(this,pn):new this.Collection(this,function(){return pa(k,void 0,!1)})},Mi.prototype.below=function(k){return k==null?fa(this,pn):new this.Collection(this,function(){return pa(void 0,k,!1,!0)})},Mi.prototype.belowOrEqual=function(k){return k==null?fa(this,pn):new this.Collection(this,function(){return pa(void 0,k)})},Mi.prototype.startsWith=function(k){return typeof k!="string"?fa(this,_s):this.between(k,k+Ur,!0,!0)},Mi.prototype.startsWithIgnoreCase=function(k){return k===""?this.startsWith(k):Kd(this,function(A,R){return A.indexOf(R[0])===0},[k],Ur)},Mi.prototype.equalsIgnoreCase=function(k){return Kd(this,function(A,R){return A===R[0]},[k],"")},Mi.prototype.anyOfIgnoreCase=function(){var k=B.apply(G,arguments);return k.length===0?jh(this):Kd(this,function(A,R){return R.indexOf(A)!==-1},k,"")},Mi.prototype.startsWithAnyOfIgnoreCase=function(){var k=B.apply(G,arguments);return k.length===0?jh(this):Kd(this,function(A,R){return R.some(function(V){return A.indexOf(V)===0})},k,Ur)},Mi.prototype.anyOf=function(){var k=this,A=B.apply(G,arguments),R=this._cmp;try{A.sort(R)}catch{return fa(this,pn)}if(A.length===0)return jh(this);var V=new this.Collection(this,function(){return pa(A[0],A[A.length-1])});V._ondirectionchange=function(ne){R=ne==="next"?k._ascending:k._descending,A.sort(R)};var X=0;return V._addAlgorithm(function(ne,le,pe){for(var _e=ne.key;0<R(_e,A[X]);)if(++X===A.length)return le(pe),!1;return R(_e,A[X])===0||(le(function(){ne.continue(A[X])}),!1)}),V},Mi.prototype.notEqual=function(k){return this.inAnyRange([[-1/0,k],[k,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Mi.prototype.noneOf=function(){var k=B.apply(G,arguments);if(k.length===0)return new this.Collection(this);try{k.sort(this._ascending)}catch{return fa(this,pn)}var A=k.reduce(function(R,V){return R?R.concat([[R[R.length-1][1],V]]):[[-1/0,V]]},null);return A.push([k[k.length-1],this.db._maxKey]),this.inAnyRange(A,{includeLowers:!1,includeUppers:!1})},Mi.prototype.inAnyRange=function(qe,A){var R=this,V=this._cmp,X=this._ascending,ne=this._descending,le=this._min,pe=this._max;if(qe.length===0)return jh(this);if(!qe.every(function(Ye){return Ye[0]!==void 0&&Ye[1]!==void 0&&X(Ye[0],Ye[1])<=0}))return fa(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ne.InvalidArgument);var _e=!A||A.includeLowers!==!1,Ae=A&&A.includeUppers===!0,Le,be=X;function $e(Ye,Xe){return be(Ye[0],Xe[0])}try{(Le=qe.reduce(function(Ye,Xe){for(var nt=0,Tt=Ye.length;nt<Tt;++nt){var $t=Ye[nt];if(V(Xe[0],$t[1])<0&&0<V(Xe[1],$t[0])){$t[0]=le($t[0],Xe[0]),$t[1]=pe($t[1],Xe[1]);break}}return nt===Tt&&Ye.push(Xe),Ye},[])).sort($e)}catch{return fa(this,pn)}var Te=0,Re=Ae?function(Ye){return 0<X(Ye,Le[Te][1])}:function(Ye){return 0<=X(Ye,Le[Te][1])},je=_e?function(Ye){return 0<ne(Ye,Le[Te][0])}:function(Ye){return 0<=ne(Ye,Le[Te][0])},Ie=Re,qe=new this.Collection(this,function(){return pa(Le[0][0],Le[Le.length-1][1],!_e,!Ae)});return qe._ondirectionchange=function(Ye){be=Ye==="next"?(Ie=Re,X):(Ie=je,ne),Le.sort($e)},qe._addAlgorithm(function(Ye,Xe,nt){for(var Tt,$t=Ye.key;Ie($t);)if(++Te===Le.length)return Xe(nt),!1;return!Re(Tt=$t)&&!je(Tt)||(R._cmp($t,Le[Te][1])===0||R._cmp($t,Le[Te][0])===0||Xe(function(){be===X?Ye.continue(Le[Te][0]):Ye.continue(Le[Te][1])}),!1)}),qe},Mi.prototype.startsWithAnyOf=function(){var k=B.apply(G,arguments);return k.every(function(A){return typeof A=="string"})?k.length===0?jh(this):this.inAnyRange(k.map(function(A){return[A,A+Ur]})):fa(this,"startsWithAnyOf() only works with strings")},Mi);function Mi(){}function ma(k){return Se(function(A){return Xl(A),k(A.target.error),!1})}function Xl(k){k.stopPropagation&&k.stopPropagation(),k.preventDefault&&k.preventDefault()}var ga="storagemutated",km="x-storagemutated-1",Qo=ju(null,ga),Yc=(Jl.prototype._lock=function(){return D(!lt.global),++this._reculock,this._reculock!==1||lt.global||(lt.lockOwnerFor=this),this},Jl.prototype._unlock=function(){if(D(!lt.global),--this._reculock==0)for(lt.global||(lt.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var k=this._blockedFuncs.shift();try{ye(k[1],k[0])}catch{}}return this},Jl.prototype._locked=function(){return this._reculock&<.lockOwnerFor!==this},Jl.prototype.create=function(k){var A=this;if(!this.mode)return this;var R=this.db.idbdb,V=this.db._state.dbOpenError;if(D(!this.idbtrans),!k&&!R)switch(V&&V.name){case"DatabaseClosedError":throw new Ne.DatabaseClosed(V);case"MissingAPIError":throw new Ne.MissingAPI(V.message,V);default:throw new Ne.OpenFailed(V)}if(!this.active)throw new Ne.TransactionInactive;return D(this._completion._state===null),(k=this.idbtrans=k||(this.db.core||R).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Se(function(X){Xl(X),A._reject(k.error)}),k.onabort=Se(function(X){Xl(X),A.active&&A._reject(new Ne.Abort(k.error)),A.active=!1,A.on("abort").fire(X)}),k.oncomplete=Se(function(){A.active=!1,A._resolve(),"mutatedParts"in k&&Qo.storagemutated.fire(k.mutatedParts)}),this},Jl.prototype._promise=function(k,A,R){var V=this;if(k==="readwrite"&&this.mode!=="readwrite")return Rn(new Ne.ReadOnly("Transaction is readonly"));if(!this.active)return Rn(new Ne.TransactionInactive);if(this._locked())return new ut(function(ne,le){V._blockedFuncs.push([function(){V._promise(k,A,R).then(ne,le)},lt])});if(R)return Ut(function(){var ne=new ut(function(le,pe){V._lock();var _e=A(le,pe,V);_e&&_e.then&&_e.then(le,pe)});return ne.finally(function(){return V._unlock()}),ne._lib=!0,ne});var X=new ut(function(ne,le){var pe=A(ne,le,V);pe&&pe.then&&pe.then(ne,le)});return X._lib=!0,X},Jl.prototype._root=function(){return this.parent?this.parent._root():this},Jl.prototype.waitFor=function(k){var A,R=this._root(),V=ut.resolve(k);R._waitingFor?R._waitingFor=R._waitingFor.then(function(){return V}):(R._waitingFor=V,R._waitingQueue=[],A=R.idbtrans.objectStore(R.storeNames[0]),function ne(){for(++R._spinCount;R._waitingQueue.length;)R._waitingQueue.shift()();R._waitingFor&&(A.get(-1/0).onsuccess=ne)}());var X=R._waitingFor;return new ut(function(ne,le){V.then(function(pe){return R._waitingQueue.push(Se(ne.bind(null,pe)))},function(pe){return R._waitingQueue.push(Se(le.bind(null,pe)))}).finally(function(){R._waitingFor===X&&(R._waitingFor=null)})})},Jl.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ne.Abort))},Jl.prototype.table=function(k){var A=this._memoizedTables||(this._memoizedTables={});if(h(A,k))return A[k];var R=this.schema[k];if(!R)throw new Ne.NotFound("Table "+k+" not part of transaction");return R=new this.db.Table(k,R,this),R.core=this.db.core.table(k),A[k]=R},Jl);function Jl(){}function Op(k,A,R,V,X,ne,le){return{name:k,keyPath:A,unique:R,multi:V,auto:X,compound:ne,src:(R&&!le?"&":"")+(V?"*":"")+(X?"++":"")+Ip(A)}}function Ip(k){return typeof k=="string"?k:k?"["+[].join.call(k,"+")+"]":""}function Dp(k,A,R){return{name:k,primKey:A,indexes:R,mappedClass:null,idxByName:(V=function(X){return[X.name,X]},R.reduce(function(X,ne,le){return le=V(ne,le),le&&(X[le[0]]=le[1]),X},{}))};var V}var Mp=function(k){try{return k.only([[]]),Mp=function(){return[[]]},[[]]}catch{return Mp=function(){return Ur},Ur}};function zh(k){return k==null?function(){}:typeof k=="string"?(A=k).split(".").length===1?function(R){return R[A]}:function(R){return O(R,A)}:function(R){return O(R,k)};var A}function Hh(k){return[].slice.call(k)}var Yd=0;function ce(k){return k==null?":id":typeof k=="string"?k:"[".concat(k.join("+"),"]")}function De(k,A,_e){function V(Ie){if(Ie.type===3)return null;if(Ie.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var Te=Ie.lower,Re=Ie.upper,je=Ie.lowerOpen,Ie=Ie.upperOpen;return Te===void 0?Re===void 0?null:A.upperBound(Re,!!Ie):Re===void 0?A.lowerBound(Te,!!je):A.bound(Te,Re,!!je,!!Ie)}function X($e){var Te,Re=$e.name;return{name:Re,schema:$e,mutate:function(je){var Ie=je.trans,qe=je.type,Ye=je.keys,Xe=je.values,nt=je.range;return new Promise(function(Tt,$t){Tt=Se(Tt);var Et=Ie.objectStore(Re),Lt=Et.keyPath==null,Wt=qe==="put"||qe==="add";if(!Wt&&qe!=="delete"&&qe!=="deleteRange")throw new Error("Invalid operation type: "+qe);var Bt,sn=(Ye||Xe||{length:1}).length;if(Ye&&Xe&&Ye.length!==Xe.length)throw new Error("Given keys array must have same length as given values array.");if(sn===0)return Tt({numFailures:0,failures:{},results:[],lastResult:void 0});function Tr(Fs){++Ya,Xl(Fs)}var Lr=[],Vr=[],Ya=0;if(qe==="deleteRange"){if(nt.type===4)return Tt({numFailures:Ya,failures:Vr,results:[],lastResult:void 0});nt.type===3?Lr.push(Bt=Et.clear()):Lr.push(Bt=Et.delete(V(nt)))}else{var Lt=Wt?Lt?[Xe,Ye]:[Xe,null]:[Ye,null],Cr=Lt[0],Xo=Lt[1];if(Wt)for(var Jo=0;Jo<sn;++Jo)Lr.push(Bt=Xo&&Xo[Jo]!==void 0?Et[qe](Cr[Jo],Xo[Jo]):Et[qe](Cr[Jo])),Bt.onerror=Tr;else for(Jo=0;Jo<sn;++Jo)Lr.push(Bt=Et[qe](Cr[Jo])),Bt.onerror=Tr}function N1(Fs){Fs=Fs.target.result,Lr.forEach(function(Vh,R1){return Vh.error!=null&&(Vr[R1]=Vh.error)}),Tt({numFailures:Ya,failures:Vr,results:qe==="delete"?Ye:Lr.map(function(Vh){return Vh.result}),lastResult:Fs})}Bt.onerror=function(Fs){Tr(Fs),N1(Fs)},Bt.onsuccess=N1})},getMany:function(je){var Ie=je.trans,qe=je.keys;return new Promise(function(Ye,Xe){Ye=Se(Ye);for(var nt,Tt=Ie.objectStore(Re),$t=qe.length,Et=new Array($t),Lt=0,Wt=0,Bt=function(Lr){Lr=Lr.target,Et[Lr._pos]=Lr.result,++Wt===Lt&&Ye(Et)},sn=ma(Xe),Tr=0;Tr<$t;++Tr)qe[Tr]!=null&&((nt=Tt.get(qe[Tr]))._pos=Tr,nt.onsuccess=Bt,nt.onerror=sn,++Lt);Lt===0&&Ye(Et)})},get:function(je){var Ie=je.trans,qe=je.key;return new Promise(function(Ye,Xe){Ye=Se(Ye);var nt=Ie.objectStore(Re).get(qe);nt.onsuccess=function(Tt){return Ye(Tt.target.result)},nt.onerror=ma(Xe)})},query:(Te=Ae,function(je){return new Promise(function(Ie,qe){Ie=Se(Ie);var Ye,Xe,nt,Lt=je.trans,Tt=je.values,$t=je.limit,Bt=je.query,Et=$t===1/0?void 0:$t,Wt=Bt.index,Bt=Bt.range,Lt=Lt.objectStore(Re),Wt=Wt.isPrimaryKey?Lt:Lt.index(Wt.name),Bt=V(Bt);if($t===0)return Ie({result:[]});Te?((Et=Tt?Wt.getAll(Bt,Et):Wt.getAllKeys(Bt,Et)).onsuccess=function(sn){return Ie({result:sn.target.result})},Et.onerror=ma(qe)):(Ye=0,Xe=!Tt&&"openKeyCursor"in Wt?Wt.openKeyCursor(Bt):Wt.openCursor(Bt),nt=[],Xe.onsuccess=function(sn){var Tr=Xe.result;return Tr?(nt.push(Tt?Tr.value:Tr.primaryKey),++Ye===$t?Ie({result:nt}):void Tr.continue()):Ie({result:nt})},Xe.onerror=ma(qe))})}),openCursor:function(je){var Ie=je.trans,qe=je.values,Ye=je.query,Xe=je.reverse,nt=je.unique;return new Promise(function(Tt,$t){Tt=Se(Tt);var Wt=Ye.index,Et=Ye.range,Lt=Ie.objectStore(Re),Lt=Wt.isPrimaryKey?Lt:Lt.index(Wt.name),Wt=Xe?nt?"prevunique":"prev":nt?"nextunique":"next",Bt=!qe&&"openKeyCursor"in Lt?Lt.openKeyCursor(V(Et),Wt):Lt.openCursor(V(Et),Wt);Bt.onerror=ma($t),Bt.onsuccess=Se(function(sn){var Tr,Lr,Vr,Ya,Cr=Bt.result;Cr?(Cr.___id=++Yd,Cr.done=!1,Tr=Cr.continue.bind(Cr),Lr=(Lr=Cr.continuePrimaryKey)&&Lr.bind(Cr),Vr=Cr.advance.bind(Cr),Ya=function(){throw new Error("Cursor not stopped")},Cr.trans=Ie,Cr.stop=Cr.continue=Cr.continuePrimaryKey=Cr.advance=function(){throw new Error("Cursor not started")},Cr.fail=Se($t),Cr.next=function(){var Xo=this,Jo=1;return this.start(function(){return Jo--?Xo.continue():Xo.stop()}).then(function(){return Xo})},Cr.start=function(Xo){function Jo(){if(Bt.result)try{Xo()}catch(Fs){Cr.fail(Fs)}else Cr.done=!0,Cr.start=function(){throw new Error("Cursor behind last entry")},Cr.stop()}var N1=new Promise(function(Fs,Vh){Fs=Se(Fs),Bt.onerror=ma(Vh),Cr.fail=Vh,Cr.stop=function(R1){Cr.stop=Cr.continue=Cr.continuePrimaryKey=Cr.advance=Ya,Fs(R1)}});return Bt.onsuccess=Se(function(Fs){Bt.onsuccess=Jo,Jo()}),Cr.continue=Tr,Cr.continuePrimaryKey=Lr,Cr.advance=Vr,Jo(),N1},Tt(Cr)):Tt(null)},$t)})},count:function(je){var Ie=je.query,qe=je.trans,Ye=Ie.index,Xe=Ie.range;return new Promise(function(nt,Tt){var $t=qe.objectStore(Re),Et=Ye.isPrimaryKey?$t:$t.index(Ye.name),$t=V(Xe),Et=$t?Et.count($t):Et.count();Et.onsuccess=Se(function(Lt){return nt(Lt.target.result)}),Et.onerror=ma(Tt)})}}}var ne,le,pe,Le=(le=_e,pe=Hh((ne=k).objectStoreNames),{schema:{name:ne.name,tables:pe.map(function($e){return le.objectStore($e)}).map(function($e){var Te=$e.keyPath,Ie=$e.autoIncrement,Re=a(Te),je={},Ie={name:$e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:Te==null,compound:Re,keyPath:Te,autoIncrement:Ie,unique:!0,extractKey:zh(Te)},indexes:Hh($e.indexNames).map(function(qe){return $e.index(qe)}).map(function(nt){var Ye=nt.name,Xe=nt.unique,Tt=nt.multiEntry,nt=nt.keyPath,Tt={name:Ye,compound:a(nt),keyPath:nt,unique:Xe,multiEntry:Tt,extractKey:zh(nt)};return je[ce(nt)]=Tt}),getIndexByKeyPath:function(qe){return je[ce(qe)]}};return je[":id"]=Ie.primaryKey,Te!=null&&(je[ce(Te)]=Ie.primaryKey),Ie})},hasGetAll:0<pe.length&&"getAll"in le.objectStore(pe[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),_e=Le.schema,Ae=Le.hasGetAll,Le=_e.tables.map(X),be={};return Le.forEach(function($e){return be[$e.name]=$e}),{stack:"dbcore",transaction:k.transaction.bind(k),table:function($e){if(!be[$e])throw new Error("Table '".concat($e,"' not found"));return be[$e]},MIN_KEY:-1/0,MAX_KEY:Mp(A),schema:_e}}function Je(k,A,R,V){var X=R.IDBKeyRange;return R.indexedDB,{dbcore:(V=De(A,X,V),k.dbcore.reduce(function(ne,le){return le=le.create,r(r({},ne),le(ne))},V))}}function rn(k,V){var R=V.db,V=Je(k._middlewares,R,k._deps,V);
vendor: 9,619 bytes, line 422
422k.core=V.dbcore,k.tables.forEach(function(X){var ne=X.name;k.core.schema.tables.some(function(le){return le.name===ne})&&(X.core=k.core.table(ne),k[ne]instanceof k.Table&&(k[ne].core=X.core))})}function Pr(k,A,R,V){R.forEach(function(X){var ne=V[X];A.forEach(function(le){var pe=function _e(Ae,Le){return b(Ae,Le)||(Ae=c(Ae))&&_e(Ae,Le)}(le,X);(!pe||"value"in pe&&pe.value===void 0)&&(le===k.Transaction.prototype||le instanceof k.Transaction?g(le,X,{get:function(){return this.table(X)},set:function(_e){p(this,X,{value:_e,writable:!0,configurable:!0,enumerable:!0})}}):le[X]=new k.Table(X,ne))})})}function ai(k,A){A.forEach(function(R){for(var V in R)R[V]instanceof k.Table&&delete R[V]})}function Ki(k,A){return k._cfg.version-A._cfg.version}function Fr(k,A,R,V){var X=k._dbSchema;R.objectStoreNames.contains("$meta")&&!X.$meta&&(X.$meta=Dp("$meta",Np("")[0],[]),k._storeNames.push("$meta"));var ne=k._createTransaction("readwrite",k._storeNames,X);ne.create(R),ne._completion.catch(V);var le=ne._reject.bind(ne),pe=lt.transless||lt;Ut(function(){return lt.trans=ne,lt.transless=pe,A!==0?(rn(k,R),Ae=A,((_e=ne).storeNames.includes("$meta")?_e.table("$meta").get("version").then(function(Le){return Le??Ae}):ut.resolve(Ae)).then(function(Le){return $e=Le,Te=ne,Re=R,je=[],Le=(be=k)._versions,Ie=be._dbSchema=Uh(0,be.idbdb,Re),(Le=Le.filter(function(qe){return qe._cfg.version>=$e})).length!==0?(Le.forEach(function(qe){je.push(function(){var Ye=Ie,Xe=qe._cfg.dbschema;po(be,Ye,Re),po(be,Xe,Re),Ie=be._dbSchema=Xe;var nt=Io(Ye,Xe);nt.add.forEach(function(Wt){Do(Re,Wt[0],Wt[1].primKey,Wt[1].indexes)}),nt.change.forEach(function(Wt){if(Wt.recreate)throw new Ne.Upgrade("Not yet support for changing primary key");var Bt=Re.objectStore(Wt.name);Wt.add.forEach(function(sn){return Xc(Bt,sn)}),Wt.change.forEach(function(sn){Bt.deleteIndex(sn.name),Xc(Bt,sn)}),Wt.del.forEach(function(sn){return Bt.deleteIndex(sn)})});var Tt=qe._cfg.contentUpgrade;if(Tt&&qe._cfg.version>$e){rn(be,Re),Te._memoizedTables={};var $t=$(Xe);nt.del.forEach(function(Wt){$t[Wt]=Ye[Wt]}),ai(be,[be.Transaction.prototype]),Pr(be,[be.Transaction.prototype],o($t),$t),Te.schema=$t;var Et,Lt=Q(Tt);return Lt&&Kt(),nt=ut.follow(function(){var Wt;(Et=Tt(Te))&&Lt&&(Wt=Ht.bind(null,null),Et.then(Wt,Wt))}),Et&&typeof Et.then=="function"?ut.resolve(Et):nt.then(function(){return Et})}}),je.push(function(Ye){var Xe,nt,Tt=qe._cfg.dbschema;Xe=Tt,nt=Ye,[].slice.call(nt.db.objectStoreNames).forEach(function($t){return Xe[$t]==null&&nt.db.deleteObjectStore($t)}),ai(be,[be.Transaction.prototype]),Pr(be,[be.Transaction.prototype],be._storeNames,be._dbSchema),Te.schema=be._dbSchema}),je.push(function(Ye){be.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(be.idbdb.version/10)===qe._cfg.version?(be.idbdb.deleteObjectStore("$meta"),delete be._dbSchema.$meta,be._storeNames=be._storeNames.filter(function(Xe){return Xe!=="$meta"})):Ye.objectStore("$meta").put(qe._cfg.version,"version"))})}),function qe(){return je.length?ut.resolve(je.shift()(Te.idbtrans)).then(qe):ut.resolve()}().then(function(){Qc(Ie,Re)})):ut.resolve();var be,$e,Te,Re,je,Ie}).catch(le)):(o(X).forEach(function(Le){Do(R,Le,X[Le].primKey,X[Le].indexes)}),rn(k,R),void ut.follow(function(){return k.on.populate.fire(ne)}).catch(le));var _e,Ae})}function zi(k,A){Qc(k._dbSchema,A),A.db.version%10!=0||A.objectStoreNames.contains("$meta")||A.db.createObjectStore("$meta").add(Math.ceil(A.db.version/10-1),"version");var R=Uh(0,k.idbdb,A);po(k,k._dbSchema,A);for(var V=0,X=Io(R,k._dbSchema).change;V<X.length;V++){var ne=function(le){if(le.change.length||le.recreate)return console.warn("Unable to patch indexes of table ".concat(le.name," because it has changes on the type of index or primary key.")),{value:void 0};var pe=A.objectStore(le.name);le.add.forEach(function(_e){Nr&&console.debug("Dexie upgrade patch: Creating missing index ".concat(le.name,".").concat(_e.src)),Xc(pe,_e)})}(X[V]);if(typeof ne=="object")return ne.value}}function Io(k,A){var R,V={del:[],add:[],change:[]};for(R in k)A[R]||V.del.push(R);for(R in A){var X=k[R],ne=A[R];if(X){var le={name:R,def:ne,recreate:!1,del:[],add:[],change:[]};if(""+(X.primKey.keyPath||"")!=""+(ne.primKey.keyPath||"")||X.primKey.auto!==ne.primKey.auto)le.recreate=!0,V.change.push(le);else{var pe=X.idxByName,_e=ne.idxByName,Ae=void 0;for(Ae in pe)_e[Ae]||le.del.push(Ae);for(Ae in _e){var Le=pe[Ae],be=_e[Ae];Le?Le.src!==be.src&&le.change.push(be):le.add.push(be)}(0<le.del.length||0<le.add.length||0<le.change.length)&&V.change.push(le)}}else V.add.push([R,ne])}return V}function Do(k,A,R,V){var X=k.db.createObjectStore(A,R.keyPath?{keyPath:R.keyPath,autoIncrement:R.auto}:{autoIncrement:R.auto});return V.forEach(function(ne){return Xc(X,ne)}),X}function Qc(k,A){o(k).forEach(function(R){A.db.objectStoreNames.contains(R)||(Nr&&console.debug("Dexie: Creating missing table",R),Do(A,R,k[R].primKey,k[R].indexes))})}function Xc(k,A){k.createIndex(A.name,A.keyPath,{unique:A.unique,multiEntry:A.multi})}function Uh(k,A,R){var V={};return S(A.objectStoreNames,0).forEach(function(X){for(var ne=R.objectStore(X),le=Op(Ip(Ae=ne.keyPath),Ae||"",!0,!1,!!ne.autoIncrement,Ae&&typeof Ae!="string",!0),pe=[],_e=0;_e<ne.indexNames.length;++_e){var Le=ne.index(ne.indexNames[_e]),Ae=Le.keyPath,Le=Op(Le.name,Ae,!!Le.unique,!!Le.multiEntry,!1,Ae&&typeof Ae!="string",!1);pe.push(Le)}V[X]=Dp(X,le,pe)}),V}function po(k,A,R){for(var V=R.db.objectStoreNames,X=0;X<V.length;++X){var ne=V[X],le=R.objectStore(ne);k._hasGetAll="getAll"in le;for(var pe=0;pe<le.indexNames.length;++pe){var _e=le.indexNames[pe],Ae=le.index(_e).keyPath,Le=typeof Ae=="string"?Ae:"["+S(Ae).join("+")+"]";!A[ne]||(Ae=A[ne].idxByName[Le])&&(Ae.name=_e,delete A[ne].idxByName[Le],A[ne].idxByName[_e]=Ae)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&s.WorkerGlobalScope&&s instanceof s.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(k._hasGetAll=!1)}function Np(k){return k.split(",").map(function(A,R){var V=(A=A.trim()).replace(/([&*]|\+\+)/g,""),X=/^\[/.test(V)?V.match(/^\[(.*)\]$/)[1].split("+"):V;return Op(V,X||null,/\&/.test(A),/\*/.test(A),/\+\+/.test(A),a(X),R===0)})}var rS=(Qd.prototype._parseStoresSpec=function(k,A){o(k).forEach(function(R){if(k[R]!==null){var V=Np(k[R]),X=V.shift();if(X.unique=!0,X.multi)throw new Ne.Schema("Primary key cannot be multi-valued");V.forEach(function(ne){if(ne.auto)throw new Ne.Schema("Only primary key can be marked as autoIncrement (++)");if(!ne.keyPath)throw new Ne.Schema("Index must have a name and cannot be an empty string")}),A[R]=Dp(R,X,V)}})},Qd.prototype.stores=function(R){var A=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,R):R;var R=A._versions,V={},X={};return R.forEach(function(ne){l(V,ne._cfg.storesSource),X=ne._cfg.dbschema={},ne._parseStoresSpec(V,X)}),A._dbSchema=X,ai(A,[A._allTables,A,A.Transaction.prototype]),Pr(A,[A._allTables,A,A.Transaction.prototype,this._cfg.tables],o(X),X),A._storeNames=o(X),this},Qd.prototype.upgrade=function(k){return this._cfg.contentUpgrade=Cn(this._cfg.contentUpgrade||it,k),this},Qd);function Qd(){}function iS(k,A){var R=k._dbNamesDB;return R||(R=k._dbNamesDB=new zu(Ls,{addons:[],indexedDB:k,IDBKeyRange:A})).version(1).stores({dbnames:"name"}),R.table("dbnames")}function A1(k){return k&&typeof k.databases=="function"}function P1(k){return Ut(function(){return lt.letThrough=!0,k()})}function Rp(k){return!("from"in k)}var mo=function(k,A){if(!this){var R=new mo;return k&&"d"in k&&l(R,k),R}l(this,arguments.length?{d:1,from:k,to:1<arguments.length?A:k}:{d:0})};function Cm(k,A,R){var V=on(A,R);if(!isNaN(V)){if(0<V)throw RangeError();if(Rp(k))return l(k,{from:A,to:R,d:1});var X=k.l,V=k.r;if(on(R,k.from)<0)return X?Cm(X,A,R):k.l={from:A,to:R,d:1,l:null,r:null},Kb(k);if(0<on(A,k.to))return V?Cm(V,A,R):k.r={from:A,to:R,d:1,l:null,r:null},Kb(k);on(A,k.from)<0&&(k.from=A,k.l=null,k.d=V?V.d+1:1),0<on(R,k.to)&&(k.to=R,k.r=null,k.d=k.l?k.l.d+1:1),R=!k.r,X&&!k.l&&O1(k,X),V&&R&&O1(k,V)}}function O1(k,A){Rp(A)||function R(V,_e){var ne=_e.from,le=_e.to,pe=_e.l,_e=_e.r;Cm(V,ne,le),pe&&R(V,pe),_e&&R(V,_e)}(k,A)}function tT(k,A){var R=Gb(A),V=R.next();if(V.done)return!1;for(var X=V.value,ne=Gb(k),le=ne.next(X.from),pe=le.value;!V.done&&!le.done;){if(on(pe.from,X.to)<=0&&0<=on(pe.to,X.from))return!0;on(X.from,pe.from)<0?X=(V=R.next(pe.from)).value:pe=(le=ne.next(X.from)).value}return!1}function Gb(k){var A=Rp(k)?null:{s:0,n:k};return{next:function(R){for(var V=0<arguments.length;A;)switch(A.s){case 0:if(A.s=1,V)for(;A.n.l&&on(R,A.n.from)<0;)A={up:A,n:A.n.l,s:1};else for(;A.n.l;)A={up:A,n:A.n.l,s:1};case 1:if(A.s=2,!V||on(R,A.n.to)<=0)return{value:A.n,done:!1};case 2:if(A.n.r){A.s=3,A={up:A,n:A.n.r,s:0};continue}case 3:A=A.up}return{done:!0}}}}function Kb(k){var A,R,V=(((A=k.r)===null||A===void 0?void 0:A.d)||0)-(((R=k.l)===null||R===void 0?void 0:R.d)||0),X=1<V?"r":V<-1?"l":"";X&&(A=X=="r"?"l":"r",R=r({},k),V=k[X],k.from=V.from,k.to=V.to,k[X]=V[X],R[X]=V[A],(k[A]=R).d=nT(R)),k.d=nT(k)}function nT(R){var A=R.r,R=R.l;return(A?R?Math.max(A.d,R.d):A.d:R?R.d:0)+1}function Yb(k,A){return o(A).forEach(function(R){k[R]?O1(k[R],A[R]):k[R]=function V(X){var ne,le,pe={};for(ne in X)h(X,ne)&&(le=X[ne],pe[ne]=!le||typeof le!="object"||K.has(le.constructor)?le:V(le));return pe}(A[R])}),k}function sS(k,A){return k.all||A.all||Object.keys(k).some(function(R){return A[R]&&tT(A[R],k[R])})}d(mo.prototype,((Zl={add:function(k){return O1(this,k),this},addKey:function(k){return Cm(this,k,k),this},addKeys:function(k){var A=this;
vendor: 17,415 bytes, line 422
422return k.forEach(function(R){return Cm(A,R,R)}),this},hasKey:function(k){var A=Gb(this).next(k).value;return A&&on(A.from,k)<=0&&0<=on(A.to,k)}})[Y]=function(){return Gb(this)},Zl));var Lp={},oS={},Qb=!1;function Xb(k){Yb(oS,k),Qb||(Qb=!0,setTimeout(function(){Qb=!1,aS(oS,!(oS={}))},0))}function aS(k,A){A===void 0&&(A=!1);var R=new Set;if(k.all)for(var V=0,X=Object.values(Lp);V<X.length;V++)rT(le=X[V],k,R,A);else for(var ne in k){var le,pe=/^idb\:\/\/(.*)\/(.*)\//.exec(ne);pe&&(ne=pe[1],pe=pe[2],(le=Lp["idb://".concat(ne,"/").concat(pe)])&&rT(le,k,R,A))}R.forEach(function(_e){return _e()})}function rT(k,A,R,V){for(var X=[],ne=0,le=Object.entries(k.queries.query);ne<le.length;ne++){for(var pe=le[ne],_e=pe[0],Ae=[],Le=0,be=pe[1];Le<be.length;Le++){var $e=be[Le];sS(A,$e.obsSet)?$e.subscribers.forEach(function(Ie){return R.add(Ie)}):V&&Ae.push($e)}V&&X.push([_e,Ae])}if(V)for(var Te=0,Re=X;Te<Re.length;Te++){var je=Re[Te],_e=je[0],Ae=je[1];k.queries.query[_e]=Ae}}function n9(k){var A=k._state,R=k._deps.indexedDB;if(A.isBeingOpened||k.idbdb)return A.dbReadyPromise.then(function(){return A.dbOpenError?Rn(A.dbOpenError):k});A.isBeingOpened=!0,A.dbOpenError=null,A.openComplete=!1;var V=A.openCanceller,X=Math.round(10*k.verno),ne=!1;function le(){if(A.openCanceller!==V)throw new Ne.DatabaseClosed("db.open() was cancelled")}function pe(){return new ut(function($e,Te){if(le(),!R)throw new Ne.MissingAPI;var Re=k.name,je=A.autoSchema||!X?R.open(Re):R.open(Re,X);if(!je)throw new Ne.MissingAPI;je.onerror=ma(Te),je.onblocked=Se(k._fireOnBlocked),je.onupgradeneeded=Se(function(Ie){var qe;Le=je.transaction,A.autoSchema&&!k._options.allowEmptyDB?(je.onerror=Xl,Le.abort(),je.result.close(),(qe=R.deleteDatabase(Re)).onsuccess=qe.onerror=Se(function(){Te(new Ne.NoSuchDatabase("Database ".concat(Re," doesnt exist")))})):(Le.onerror=ma(Te),Ie=Ie.oldVersion>Math.pow(2,62)?0:Ie.oldVersion,be=Ie<1,k.idbdb=je.result,ne&&zi(k,Le),Fr(k,Ie/10,Le,Te))},Te),je.onsuccess=Se(function(){Le=null;var Ie,qe,Ye,Xe,nt,Tt=k.idbdb=je.result,$t=S(Tt.objectStoreNames);if(0<$t.length)try{var Et=Tt.transaction((Xe=$t).length===1?Xe[0]:Xe,"readonly");if(A.autoSchema)qe=Tt,Ye=Et,(Ie=k).verno=qe.version/10,Ye=Ie._dbSchema=Uh(0,qe,Ye),Ie._storeNames=S(qe.objectStoreNames,0),Pr(Ie,[Ie._allTables],o(Ye),Ye);else if(po(k,k._dbSchema,Et),((nt=Io(Uh(0,(nt=k).idbdb,Et),nt._dbSchema)).add.length||nt.change.some(function(Lt){return Lt.add.length||Lt.change.length}))&&!ne)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Tt.close(),X=Tt.version+1,ne=!0,$e(pe());rn(k,Et)}catch{}_i.push(k),Tt.onversionchange=Se(function(Lt){A.vcFired=!0,k.on("versionchange").fire(Lt)}),Tt.onclose=Se(function(Lt){k.on("close").fire(Lt)}),be&&(nt=k._deps,Et=Re,Tt=nt.indexedDB,nt=nt.IDBKeyRange,A1(Tt)||Et===Ls||iS(Tt,nt).put({name:Et}).catch(it)),$e()},Te)}).catch(function($e){switch($e?.name){case"UnknownError":if(0<A.PR1398_maxLoop)return A.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),pe();break;case"VersionError":if(0<X)return X=0,pe()}return ut.reject($e)})}var _e,Ae=A.dbReadyResolve,Le=null,be=!1;return ut.race([V,(typeof navigator>"u"?ut.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function($e){function Te(){return indexedDB.databases().finally($e)}_e=setInterval(Te,100),Te()}).finally(function(){return clearInterval(_e)}):Promise.resolve()).then(pe)]).then(function(){return le(),A.onReadyBeingFired=[],ut.resolve(P1(function(){return k.on.ready.fire(k.vip)})).then(function $e(){if(0<A.onReadyBeingFired.length){var Te=A.onReadyBeingFired.reduce(Cn,it);return A.onReadyBeingFired=[],ut.resolve(P1(function(){return Te(k.vip)})).then($e)}})}).finally(function(){A.openCanceller===V&&(A.onReadyBeingFired=null,A.isBeingOpened=!1)}).catch(function($e){A.dbOpenError=$e;try{Le&&Le.abort()}catch{}return V===A.openCanceller&&k._close(),Rn($e)}).finally(function(){A.openComplete=!0,Ae()}).then(function(){var $e;return be&&($e={},k.tables.forEach(function(Te){Te.schema.indexes.forEach(function(Re){Re.name&&($e["idb://".concat(k.name,"/").concat(Te.name,"/").concat(Re.name)]=new mo(-1/0,[[[]]]))}),$e["idb://".concat(k.name,"/").concat(Te.name,"/")]=$e["idb://".concat(k.name,"/").concat(Te.name,"/:dels")]=new mo(-1/0,[[[]]])}),Qo(ga).fire($e),aS($e,!0)),k})}function I1(k){function A(ne){return k.next(ne)}var R=X(A),V=X(function(ne){return k.throw(ne)});function X(ne){return function(_e){var pe=ne(_e),_e=pe.value;return pe.done?_e:_e&&typeof _e.then=="function"?_e.then(R,V):a(_e)?Promise.all(_e).then(R,V):R(_e)}}return X(A)()}function Jb(k,A,R){for(var V=a(k)?k.slice():[k],X=0;X<R;++X)V.push(A);return V}var r9={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(k){return r(r({},k),{table:function(A){var R=k.table(A),V=R.schema,X={},ne=[];function le(be,$e,Te){var Re=ce(be),je=X[Re]=X[Re]||[],Ie=be==null?0:typeof be=="string"?1:be.length,qe=0<$e,qe=r(r({},Te),{name:qe?"".concat(Re,"(virtual-from:").concat(Te.name,")"):Te.name,lowLevelIndex:Te,isVirtual:qe,keyTail:$e,keyLength:Ie,extractKey:zh(be),unique:!qe&&Te.unique});return je.push(qe),qe.isPrimaryKey||ne.push(qe),1<Ie&&le(Ie===2?be[0]:be.slice(0,Ie-1),$e+1,Te),je.sort(function(Ye,Xe){return Ye.keyTail-Xe.keyTail}),qe}A=le(V.primaryKey.keyPath,0,V.primaryKey),X[":id"]=[A];for(var pe=0,_e=V.indexes;pe<_e.length;pe++){var Ae=_e[pe];le(Ae.keyPath,0,Ae)}function Le(be){var $e,Te=be.query.index;return Te.isVirtual?r(r({},be),{query:{index:Te.lowLevelIndex,range:($e=be.query.range,Te=Te.keyTail,{type:$e.type===1?2:$e.type,lower:Jb($e.lower,$e.lowerOpen?k.MAX_KEY:k.MIN_KEY,Te),lowerOpen:!0,upper:Jb($e.upper,$e.upperOpen?k.MIN_KEY:k.MAX_KEY,Te),upperOpen:!0})}}):be}return r(r({},R),{schema:r(r({},V),{primaryKey:A,indexes:ne,getIndexByKeyPath:function(be){return(be=X[ce(be)])&&be[0]}}),count:function(be){return R.count(Le(be))},query:function(be){return R.query(Le(be))},openCursor:function(be){var $e=be.query.index,Te=$e.keyTail,Re=$e.isVirtual,je=$e.keyLength;return Re?R.openCursor(Le(be)).then(function(qe){return qe&&Ie(qe)}):R.openCursor(be);function Ie(qe){return Object.create(qe,{continue:{value:function(Ye){Ye!=null?qe.continue(Jb(Ye,be.reverse?k.MAX_KEY:k.MIN_KEY,Te)):be.unique?qe.continue(qe.key.slice(0,je).concat(be.reverse?k.MIN_KEY:k.MAX_KEY,Te)):qe.continue()}},continuePrimaryKey:{value:function(Ye,Xe){qe.continuePrimaryKey(Jb(Ye,k.MAX_KEY,Te),Xe)}},primaryKey:{get:function(){return qe.primaryKey}},key:{get:function(){var Ye=qe.key;return je===1?Ye[0]:Ye.slice(0,je)}},value:{get:function(){return qe.value}}})}}})}})}};function lS(k,A,R,V){return R=R||{},V=V||"",o(k).forEach(function(X){var ne,le,pe;h(A,X)?(ne=k[X],le=A[X],typeof ne=="object"&&typeof le=="object"&&ne&&le?(pe=re(ne))!==re(le)?R[V+X]=A[X]:pe==="Object"?lS(ne,le,R,V+X+"."):ne!==le&&(R[V+X]=A[X]):ne!==le&&(R[V+X]=A[X])):R[V+X]=void 0}),o(A).forEach(function(X){h(k,X)||(R[V+X]=A[X])}),R}function Zb(k,A){return A.type==="delete"?A.keys:A.keys||A.values.map(k.extractKey)}var i9={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(k){return r(r({},k),{table:function(A){var R=k.table(A),V=R.schema.primaryKey;return r(r({},R),{mutate:function(X){var ne=lt.trans,le=ne.table(A).hook,pe=le.deleting,_e=le.creating,Ae=le.updating;switch(X.type){case"add":if(_e.fire===it)break;return ne._promise("readwrite",function(){return Le(X)},!0);case"put":if(_e.fire===it&&Ae.fire===it)break;return ne._promise("readwrite",function(){return Le(X)},!0);case"delete":if(pe.fire===it)break;return ne._promise("readwrite",function(){return Le(X)},!0);case"deleteRange":if(pe.fire===it)break;return ne._promise("readwrite",function(){return function be($e,Te,Re){return R.query({trans:$e,values:!1,query:{index:V,range:Te},limit:Re}).then(function(je){var Ie=je.result;return Le({type:"delete",keys:Ie,trans:$e}).then(function(qe){return 0<qe.numFailures?Promise.reject(qe.failures[0]):Ie.length<Re?{failures:[],numFailures:0,lastResult:void 0}:be($e,r(r({},Te),{lower:Ie[Ie.length-1],lowerOpen:!0}),Re)})})}(X.trans,X.range,1e4)},!0)}return R.mutate(X);function Le(be){var $e,Te,Re,je=lt.trans,Ie=be.keys||Zb(V,be);if(!Ie)throw new Error("Keys missing");return(be=be.type==="add"||be.type==="put"?r(r({},be),{keys:Ie}):r({},be)).type!=="delete"&&(be.values=i([],be.values)),be.keys&&(be.keys=i([],be.keys)),$e=R,Re=Ie,((Te=be).type==="add"?Promise.resolve([]):$e.getMany({trans:Te.trans,keys:Re,cache:"immutable"})).then(function(qe){var Ye=Ie.map(function(Xe,nt){var Tt,$t,Et,Lt=qe[nt],Wt={onerror:null,onsuccess:null};return be.type==="delete"?pe.fire.call(Wt,Xe,Lt,je):be.type==="add"||Lt===void 0?(Tt=_e.fire.call(Wt,Xe,be.values[nt],je),Xe==null&&Tt!=null&&(be.keys[nt]=Xe=Tt,V.outbound||P(be.values[nt],V.keyPath,Xe))):(Tt=lS(Lt,be.values[nt]),($t=Ae.fire.call(Wt,Tt,Xe,Lt,je))&&(Et=be.values[nt],Object.keys($t).forEach(function(Bt){h(Et,Bt)?Et[Bt]=$t[Bt]:P(Et,Bt,$t[Bt])}))),Wt});return R.mutate(be).then(function(Xe){for(var nt=Xe.failures,Tt=Xe.results,$t=Xe.numFailures,Xe=Xe.lastResult,Et=0;Et<Ie.length;++Et){var Lt=(Tt||Ie)[Et],Wt=Ye[Et];Lt==null?Wt.onerror&&Wt.onerror(nt[Et]):Wt.onsuccess&&Wt.onsuccess(be.type==="put"&&qe[Et]?be.values[Et]:Lt)}return{failures:nt,results:Tt,numFailures:$t,lastResult:Xe}}).catch(function(Xe){return Ye.forEach(function(nt){return nt.onerror&&nt.onerror(Xe)}),Promise.reject(Xe)})})}}})}})}};function iT(k,A,R){try{if(!A||A.keys.length<k.length)return null;for(var V=[],X=0,ne=0;X<A.keys.length&&ne<k.length;++X)on(A.keys[X],k[ne])===0&&(V.push(R?oe(A.values[X]):A.values[X]),++ne);return V.length===k.length?V:null}catch{return null}}var s9={stack:"dbcore",level:-1,create:function(k){return{table:function(A){var R=k.table(A);return r(r({},R),{getMany:function(V){if(!V.cache)return R.getMany(V);var X=iT(V.keys,V.trans._cache,V.cache==="clone");return X?ut.resolve(X):R.getMany(V).then(function(ne){return V.trans._cache={keys:V.keys,values:V.cache==="clone"?oe(ne):ne},ne})},mutate:function(V){return V.type!=="add"&&(V.trans._cache=null),R.mutate(V)}})}}}};function sT(k,A){return k.trans.mode==="readonly"&&!!k.subscr&&!k.trans.explicit&&k.trans.db._options.cache!=="disabled"&&!A.schema.primaryKey.outbound}function oT(k,A){switch(k){case"query":return A.values&&!A.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var o9={stack:"dbcore",level:0,name:"Observability",create:function(k){var A=k.schema.name,R=new mo(k.MIN_KEY,k.MAX_KEY);return r(r({},k),{transaction:function(V,X,ne){if(lt.subscr&&X!=="readonly")throw new Ne.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(lt.querier));return k.transaction(V,X,ne)},table:function(V){var X=k.table(V),ne=X.schema,le=ne.primaryKey,be=ne.indexes,pe=le.extractKey,_e=le.outbound,Ae=le.autoIncrement&&be.filter(function(Te){return Te.compound&&Te.keyPath.includes(le.keyPath)}),Le=r(r({},X),{mutate:function(Te){function Re(Bt){return Bt="idb://".concat(A,"/").concat(V,"/").concat(Bt),Xe[Bt]||(Xe[Bt]=new mo)}var je,Ie,qe,Ye=Te.trans,Xe=Te.mutatedParts||(Te.mutatedParts={}),nt=Re(""),Tt=Re(":dels"),$t=Te.type,Wt=Te.type==="deleteRange"?[Te.range]:Te.type==="delete"?[Te.keys]:Te.values.length<50?[Zb(le,Te).filter(function(Bt){return Bt}),Te.values]:[],Et=Wt[0],Lt=Wt[1],Wt=Te.trans._cache;return a(Et)?(nt.addKeys(Et),(Wt=$t==="delete"||Et.length===Lt.length?iT(Et,Wt):null)||Tt.addKeys(Et),(Wt||Lt)&&(je=Re,Ie=Wt,qe=Lt,ne.indexes.forEach(function(Bt){var sn=je(Bt.name||"");function Tr(Vr){return Vr!=null?Bt.extractKey(Vr):null}function Lr(Vr){return Bt.multiEntry&&a(Vr)?Vr.forEach(function(Ya){return sn.addKey(Ya)}):sn.addKey(Vr)}(Ie||qe).forEach(function(Vr,Xo){var Cr=Ie&&Tr(Ie[Xo]),Xo=qe&&Tr(qe[Xo]);on(Cr,Xo)!==0&&(Cr!=null&&Lr(Cr),Xo!=null&&Lr(Xo))})}))):Et?(Lt={from:(Lt=Et.lower)!==null&&Lt!==void 0?Lt:k.MIN_KEY,to:(Lt=Et.upper)!==null&&Lt!==void 0?Lt:k.MAX_KEY},Tt.add(Lt),nt.add(Lt)):(nt.add(R),Tt.add(R),ne.indexes.forEach(function(Bt){return Re(Bt.name).add(R)})),X.mutate(Te).then(function(Bt){return!Et||Te.type!=="add"&&Te.type!=="put"||(nt.addKeys(Bt.results),Ae&&Ae.forEach(function(sn){for(var Tr=Te.values.map(function(Cr){return sn.extractKey(Cr)}),Lr=sn.keyPath.findIndex(function(Cr){return Cr===le.keyPath}),Vr=0,Ya=Bt.results.length;Vr<Ya;++Vr)Tr[Vr][Lr]=Bt.results[Vr];Re(sn.name).addKeys(Tr)})),Ye.mutatedParts=Yb(Ye.mutatedParts||{},Xe),Bt})}}),be=function(Re){var je=Re.query,Re=je.index,je=je.range;return[Re,new mo((Re=je.lower)!==null&&Re!==void 0?Re:k.MIN_KEY,(je=je.upper)!==null&&je!==void 0?je:k.MAX_KEY)]},$e={get:function(Te){return[le,new mo(Te.key)]},getMany:function(Te){return[le,new mo().addKeys(Te.keys)]},count:be,query:be,openCursor:be};return o($e).forEach(function(Te){Le[Te]=function(Re){var je=lt.subscr,Ie=!!je,qe=sT(lt,X)&&oT(Te,Re)?Re.obsSet={}:je;if(Ie){var Ye=function(Lt){return Lt="idb://".concat(A,"/").concat(V,"/").concat(Lt),qe[Lt]||(qe[Lt]=new mo)},Xe=Ye(""),nt=Ye(":dels"),je=$e[Te](Re),Ie=je[0],je=je[1];if((Te==="query"&&Ie.isPrimaryKey&&!Re.values?nt:Ye(Ie.name||"")).add(je),!Ie.isPrimaryKey){if(Te!=="count"){var Tt=Te==="query"&&_e&&Re.values&&X.query(r(r({},Re),{values:!1}));return X[Te].apply(this,arguments).then(function(Lt){if(Te==="query"){if(_e&&Re.values)return Tt.then(function(Tr){return Tr=Tr.result,Xe.addKeys(Tr),Lt});var Wt=Re.values?Lt.result.map(pe):Lt.result;(Re.values?Xe:nt).addKeys(Wt)}else if(Te==="openCursor"){var Bt=Lt,sn=Re.values;return Bt&&Object.create(Bt,{key:{get:function(){return nt.addKey(Bt.primaryKey),Bt.key}},primaryKey:{get:function(){var Tr=Bt.primaryKey;return nt.addKey(Tr),Tr}},value:{get:function(){return sn&&Xe.addKey(Bt.primaryKey),Bt.value}}})}return Lt})}nt.add(R)}}return X[Te].apply(this,arguments)}}),Le}})}};function aT(k,A,R){if(R.numFailures===0)return A;if(A.type==="deleteRange")return null;var V=A.keys?A.keys.length:"values"in A&&A.values?A.values.length:1;return R.numFailures===V?null:(A=r({},A),a(A.keys)&&(A.keys=A.keys.filter(function(X,ne){return!(ne in R.failures)})),"values"in A&&a(A.values)&&(A.values=A.values.filter(function(X,ne){return!(ne in R.failures)})),A)}function D1(k,A){return R=k,((V=A).lower===void 0||(V.lowerOpen?0<on(R,V.lower):0<=on(R,V.lower)))&&(k=k,(A=A).upper===void 0||(A.upperOpen?on(k,A.upper)<0:on(k,A.upper)<=0));var R,V}function _m(k,A,$e,V,X,ne){if(!$e||$e.length===0)return k;var le=A.query.index,pe=le.multiEntry,_e=A.query.range,Ae=V.schema.primaryKey.extractKey,Le=le.extractKey,be=(le.lowLevelIndex||le).extractKey,$e=$e.reduce(function(Te,Re){var je=Te,Ie=[];if(Re.type==="add"||Re.type==="put")for(var qe=new mo,Ye=Re.values.length-1;0<=Ye;--Ye){var Xe,nt=Re.values[Ye],Tt=Ae(nt);qe.hasKey(Tt)||(Xe=Le(nt),(pe&&a(Xe)?Xe.some(function(Bt){return D1(Bt,_e)}):D1(Xe,_e))&&(qe.addKey(Tt),Ie.push(nt)))}switch(Re.type){case"add":var $t=new mo().addKeys(A.values?Te.map(function(sn){return Ae(sn)}):Te),je=Te.concat(A.values?Ie.filter(function(sn){return sn=Ae(sn),!$t.hasKey(sn)&&($t.addKey(sn),!0)}):Ie.map(function(sn){return Ae(sn)}).filter(function(sn){return!$t.hasKey(sn)&&($t.addKey(sn),!0)}));break;case"put":var Et=new mo().addKeys(Re.values.map(function(sn){return Ae(sn)}));je=Te.filter(function(sn){return!Et.hasKey(A.values?Ae(sn):sn)}).concat(A.values?Ie:Ie.map(function(sn){return Ae(sn)}));break;case"delete":var Lt=new mo().addKeys(Re.keys);je=Te.filter(function(sn){return!Lt.hasKey(A.values?Ae(sn):sn)});break;case"deleteRange":var Wt=Re.range;je=Te.filter(function(sn){return!D1(Ae(sn),Wt)})}return je},k);return $e===k?k:($e.sort(function(Te,Re){return on(be(Te),be(Re))||on(Ae(Te),Ae(Re))}),A.limit&&A.limit<1/0&&($e.length>A.limit?$e.length=A.limit:k.length===A.limit&&$e.length<A.limit&&(X.dirty=!0)),ne?Object.freeze($e):$e)}function lT(k,A){return on(k.lower,A.lower)===0&&on(k.upper,A.upper)===0&&!!k.lowerOpen==!!A.lowerOpen&&!!k.upperOpen==!!A.upperOpen}function cT(k,A){return function(R,V,X,ne){if(R===void 0)return V!==void 0?-1:0;if(V===void 0)return 1;if((V=on(R,V))===0){if(X&&ne)return 0;if(X)return 1;if(ne)return-1}return V}(k.lower,A.lower,k.lowerOpen,A.lowerOpen)<=0&&0<=function(R,V,X,ne){if(R===void 0)return V!==void 0?1:0;if(V===void 0)return-1;if((V=on(R,V))===0){if(X&&ne)return 0;if(X)return-1;if(ne)return 1}return V}(k.upper,A.upper,k.upperOpen,A.upperOpen)}function uT(k,A,R,V){k.subscribers.add(R),V.addEventListener("abort",function(){var X,ne;k.subscribers.delete(R),k.subscribers.size===0&&(X=k,ne=A,setTimeout(function(){X.subscribers.size===0&&U(ne,X)},3e3))})}var hT={stack:"dbcore",level:0,name:"Cache",create:function(k){var A=k.schema.name;return r(r({},k),{transaction:function(R,V,X){var ne,le,pe=k.transaction(R,V,X);return V==="readwrite"&&(le=(ne=new AbortController).signal,X=function(_e){return function(){if(ne.abort(),V==="readwrite"){for(var Ae=new Set,Le=0,be=R;Le<be.length;Le++){var $e=be[Le],Te=Lp["idb://".concat(A,"/").concat($e)];if(Te){var Re=k.table($e),je=Te.optimisticOps.filter(function(sn){return sn.trans===pe});if(pe._explicit&&_e&&pe.mutatedParts)for(var Ie=0,qe=Object.values(Te.queries.query);Ie<qe.length;Ie++)for(var Ye=0,Xe=($t=qe[Ie]).slice();Ye<Xe.length;Ye++)sS((Et=Xe[Ye]).obsSet,pe.mutatedParts)&&(U($t,Et),Et.subscribers.forEac
vendor: 5,350 bytes, line 422
422h(function(sn){return Ae.add(sn)}));else if(0<je.length){Te.optimisticOps=Te.optimisticOps.filter(function(sn){return sn.trans!==pe});for(var nt=0,Tt=Object.values(Te.queries.query);nt<Tt.length;nt++)for(var $t,Et,Lt,Wt=0,Bt=($t=Tt[nt]).slice();Wt<Bt.length;Wt++)(Et=Bt[Wt]).res!=null&&pe.mutatedParts&&(_e&&!Et.dirty?(Lt=Object.isFrozen(Et.res),Lt=_m(Et.res,Et.req,je,Re,Et,Lt),Et.dirty?(U($t,Et),Et.subscribers.forEach(function(sn){return Ae.add(sn)})):Lt!==Et.res&&(Et.res=Lt,Et.promise=ut.resolve({result:Lt}))):(Et.dirty&&U($t,Et),Et.subscribers.forEach(function(sn){return Ae.add(sn)})))}}}Ae.forEach(function(sn){return sn()})}}},pe.addEventListener("abort",X(!1),{signal:le}),pe.addEventListener("error",X(!1),{signal:le}),pe.addEventListener("complete",X(!0),{signal:le})),pe},table:function(R){var V=k.table(R),X=V.schema.primaryKey;return r(r({},V),{mutate:function(ne){var le=lt.trans;if(X.outbound||le.db._options.cache==="disabled"||le.explicit||le.idbtrans.mode!=="readwrite")return V.mutate(ne);var pe=Lp["idb://".concat(A,"/").concat(R)];return pe?(le=V.mutate(ne),ne.type!=="add"&&ne.type!=="put"||!(50<=ne.values.length||Zb(X,ne).some(function(_e){return _e==null}))?(pe.optimisticOps.push(ne),ne.mutatedParts&&Xb(ne.mutatedParts),le.then(function(_e){0<_e.numFailures&&(U(pe.optimisticOps,ne),(_e=aT(0,ne,_e))&&pe.optimisticOps.push(_e),ne.mutatedParts&&Xb(ne.mutatedParts))}),le.catch(function(){U(pe.optimisticOps,ne),ne.mutatedParts&&Xb(ne.mutatedParts)})):le.then(function(_e){var Ae=aT(0,r(r({},ne),{values:ne.values.map(function(Le,be){var $e;return _e.failures[be]?Le:(Le=($e=X.keyPath)!==null&&$e!==void 0&&$e.includes(".")?oe(Le):r({},Le),P(Le,X.keyPath,_e.results[be]),Le)})}),_e);pe.optimisticOps.push(Ae),queueMicrotask(function(){return ne.mutatedParts&&Xb(ne.mutatedParts)})}),le):V.mutate(ne)},query:function(ne){if(!sT(lt,V)||!oT("query",ne))return V.query(ne);var le=((Ae=lt.trans)===null||Ae===void 0?void 0:Ae.db._options.cache)==="immutable",be=lt,pe=be.requery,_e=be.signal,Ae=function(Re,je,Ie,qe){var Ye=Lp["idb://".concat(Re,"/").concat(je)];if(!Ye)return[];if(!(je=Ye.queries[Ie]))return[null,!1,Ye,null];var Xe=je[(qe.query?qe.query.index.name:null)||""];if(!Xe)return[null,!1,Ye,null];switch(Ie){case"query":var nt=Xe.find(function(Tt){return Tt.req.limit===qe.limit&&Tt.req.values===qe.values&&lT(Tt.req.query.range,qe.query.range)});return nt?[nt,!0,Ye,Xe]:[Xe.find(function(Tt){return("limit"in Tt.req?Tt.req.limit:1/0)>=qe.limit&&(!qe.values||Tt.req.values)&&cT(Tt.req.query.range,qe.query.range)}),!1,Ye,Xe];case"count":return nt=Xe.find(function(Tt){return lT(Tt.req.query.range,qe.query.range)}),[nt,!!nt,Ye,Xe]}}(A,R,"query",ne),Le=Ae[0],be=Ae[1],$e=Ae[2],Te=Ae[3];return Le&&be?Le.obsSet=ne.obsSet:(be=V.query(ne).then(function(Re){var je=Re.result;if(Le&&(Le.res=je),le){for(var Ie=0,qe=je.length;Ie<qe;++Ie)Object.freeze(je[Ie]);Object.freeze(je)}else Re.result=oe(je);return Re}).catch(function(Re){return Te&&Le&&U(Te,Le),Promise.reject(Re)}),Le={obsSet:ne.obsSet,promise:be,subscribers:new Set,type:"query",req:ne,dirty:!1},Te?Te.push(Le):(Te=[Le],($e=$e||(Lp["idb://".concat(A,"/").concat(R)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[ne.query.index.name||""]=Te)),uT(Le,Te,pe,_e),Le.promise.then(function(Re){return{result:_m(Re.result,ne,$e?.optimisticOps,V,Le,le)}})}})}})}};function M1(k,A){return new Proxy(k,{get:function(R,V,X){return V==="db"?A:Reflect.get(R,V,X)}})}var zu=(es.prototype.version=function(k){if(isNaN(k)||k<.1)throw new Ne.Type("Given version is not a positive number");if(k=Math.round(10*k)/10,this.idbdb||this._state.isBeingOpened)throw new Ne.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,k);var A=this._versions,R=A.filter(function(V){return V._cfg.version===k})[0];return R||(R=new this.Version(k),A.push(R),A.sort(Ki),R.stores({}),this._state.autoSchema=!1,R)},es.prototype._whenReady=function(k){var A=this;return this.idbdb&&(this._state.openComplete||lt.letThrough||this._vip)?k():new ut(function(R,V){if(A._state.openComplete)return V(new Ne.DatabaseClosed(A._state.dbOpenError));if(!A._state.isBeingOpened){if(!A._state.autoOpen)return void V(new Ne.DatabaseClosed);A.open().catch(it)}A._state.dbReadyPromise.then(R,V)}).then(k)},es.prototype.use=function(k){var A=k.stack,R=k.create,V=k.level,X=k.name;return X&&this.unuse({stack:A,name:X}),k=this._middlewares[A]||(this._middlewares[A]=[]),k.push({stack:A,create:R,level:V??10,name:X}),k.sort(function(ne,le){return ne.level-le.level}),this},es.prototype.unuse=function(k){var A=k.stack,R=k.name,V=k.create;return A&&this._middlewares[A]&&(this._middlewares[A]=this._middlewares[A].filter(function(X){return V?X.create!==V:!!R&&X.name!==R})),this},es.prototype.open=function(){var k=this;return ye(Zt,function(){return n9(k)})},es.prototype._close=function(){var k=this._state,A=_i.indexOf(this);if(0<=A&&_i.splice(A,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}k.isBeingOpened||(k.dbReadyPromise=new ut(function(R){k.dbReadyResolve=R}),k.openCanceller=new ut(function(R,V){k.cancelOpen=V}))},es.prototype.close=function(R){var A=(R===void 0?{disableAutoOpen:!0}:R).disableAutoOpen,R=this._state;A?(R.isBeingOpened&&R.cancelOpen(new Ne.DatabaseClosed),this._close(),R.autoOpen=!1,R.dbOpenError=ne
vendor: 7,752 bytes, line 422
422w Ne.DatabaseClosed):(this._close(),R.autoOpen=this._options.autoOpen||R.isBeingOpened,R.openComplete=!1,R.dbOpenError=null)},es.prototype.delete=function(k){var A=this;k===void 0&&(k={disableAutoOpen:!0});var R=0<arguments.length&&typeof arguments[0]!="object",V=this._state;return new ut(function(X,ne){function le(){A.close(k);var pe=A._deps.indexedDB.deleteDatabase(A.name);pe.onsuccess=Se(function(){var _e,Ae,Le;_e=A._deps,Ae=A.name,Le=_e.indexedDB,_e=_e.IDBKeyRange,A1(Le)||Ae===Ls||iS(Le,_e).delete(Ae).catch(it),X()}),pe.onerror=ma(ne),pe.onblocked=A._fireOnBlocked}if(R)throw new Ne.InvalidArgument("Invalid closeOptions argument to db.delete()");V.isBeingOpened?V.dbReadyPromise.then(le):le()})},es.prototype.backendDB=function(){return this.idbdb},es.prototype.isOpen=function(){return this.idbdb!==null},es.prototype.hasBeenClosed=function(){var k=this._state.dbOpenError;return k&&k.name==="DatabaseClosed"},es.prototype.hasFailed=function(){return this._state.dbOpenError!==null},es.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(es.prototype,"tables",{get:function(){var k=this;return o(this._allTables).map(function(A){return k._allTables[A]})},enumerable:!1,configurable:!0}),es.prototype.transaction=function(){var k=function(A,R,V){var X=arguments.length;if(X<2)throw new Ne.InvalidArgument("Too few arguments");for(var ne=new Array(X-1);--X;)ne[X-1]=arguments[X];return V=ne.pop(),[A,H(ne),V]}.apply(this,arguments);return this._transaction.apply(this,k)},es.prototype._transaction=function(k,A,R){var V=this,X=lt.trans;X&&X.db===this&&k.indexOf("!")===-1||(X=null);var ne,le,pe=k.indexOf("?")!==-1;k=k.replace("!","").replace("?","");try{if(le=A.map(function(Ae){if(Ae=Ae instanceof V.Table?Ae.name:Ae,typeof Ae!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Ae}),k=="r"||k===Di)ne=Di;else{if(k!="rw"&&k!=Sl)throw new Ne.InvalidArgument("Invalid transaction mode: "+k);ne=Sl}if(X){if(X.mode===Di&&ne===Sl){if(!pe)throw new Ne.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");X=null}X&&le.forEach(function(Ae){if(X&&X.storeNames.indexOf(Ae)===-1){if(!pe)throw new Ne.SubTransaction("Table "+Ae+" not included in parent transaction.");X=null}}),pe&&X&&!X.active&&(X=null)}}catch(Ae){return X?X._promise(null,function(Le,be){be(Ae)}):Rn(Ae)}var _e=function Ae(Le,be,$e,Te,Re){return ut.resolve().then(function(){var je=lt.transless||lt,Ie=Le._createTransaction(be,$e,Le._dbSchema,Te);if(Ie.explicit=!0,je={trans:Ie,transless:je},Te)Ie.idbtrans=Te.idbtrans;else try{Ie.create(),Ie.idbtrans._explicit=!0,Le._state.PR1398_maxLoop=3}catch(Xe){return Xe.name===Qe.InvalidState&&Le.isOpen()&&0<--Le._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Le.close({disableAutoOpen:!1}),Le.open().then(function(){return Ae(Le,be,$e,null,Re)})):Rn(Xe)}var qe,Ye=Q(Re);return Ye&&Kt(),je=ut.follow(function(){var Xe;(qe=Re.call(Ie,Ie))&&(Ye?(Xe=Ht.bind(null,null),qe.then(Xe,Xe)):typeof qe.next=="function"&&typeof qe.throw=="function"&&(qe=I1(qe)))},je),(qe&&typeof qe.then=="function"?ut.resolve(qe).then(function(Xe){return Ie.active?Xe:Rn(new Ne.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):je.then(function(){return qe})).then(function(Xe){return Te&&Ie._resolve(),Ie._completion.then(function(){return Xe})}).catch(function(Xe){return Ie._reject(Xe),Rn(Xe)})})}.bind(null,this,ne,le,X,R);return X?X._promise(ne,_e,"lock"):lt.trans?ye(lt.transless,function(){return V._whenReady(_e)}):this._whenReady(_e)},es.prototype.table=function(k){if(!h(this._allTables,k))throw new Ne.InvalidTable("Table ".concat(k," does not exist"));return this._allTables[k]},es);function es(k,A){var R=this;this._middlewares={},this.verno=0;var V=es.dependencies;this._options=A=r({addons:es.addons,autoOpen:!0,indexedDB:V.indexedDB,IDBKeyRange:V.IDBKeyRange,cache:"cloned"},A),this._deps={indexedDB:A.indexedDB,IDBKeyRange:A.IDBKeyRange},V=A.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var X,ne,le,pe,_e,Ae={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:it,dbReadyPromise:null,cancelOpen:it,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:A.autoOpen};Ae.dbReadyPromise=new ut(function(be){Ae.dbReadyResolve=be}),Ae.openCanceller=new ut(function(be,$e){Ae.cancelOpen=$e}),this._state=Ae,this.name=k,this.on=ju(this,"populate","blocked","versionchange","close",{ready:[Cn,it]}),this.on.ready.subscribe=T(this.on.ready.subscribe,function(be){return function($e,Te){es.vip(function(){var Re,je=R._state;je.openComplete?(je.dbOpenError||ut.resolve().then($e),Te&&be($e)):je.onReadyBeingFired?(je.onReadyBeingFired.push($e),Te&&be($e)):(be($e),Re=R,Te||be(function Ie(){Re.on.ready.unsubscribe($e),Re.on.ready.unsubscribe(Ie)}))})}}),this.Collection=(X=this,Gc(fi.prototype,function(qe,Ie){this.db=X;var Te=yi,Re=null;if(Ie)try{Te=Ie()}catch(Ye){Re=Ye}var je=qe._ctx,Ie=je.table,qe=Ie.hook.reading.fire;this._ctx={table:Ie,index:je.index,isPrimKey:!je.index||Ie.schema.primKey.keyPath&&je.index===Ie.schema.primKey.name,range:Te,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:Re,or:je.or,valueMapper:qe!==Rt?qe:null}})),this.Table=(ne=this,Gc(vm.prototype,function(be,$e,Te){this.db=ne,this._tx=Te,this.name=be,this.schema=$e,this.hook=ne._allTables[be]?ne._allTables[be].hook:ju(null,{creating:[Hn,it],reading:[xt,Rt],updating:[Wn,it],deleting:[$n,it]})})),this.Transaction=(le=this,Gc(Yc.prototype,function(be,$e,Te,Re,je){var Ie=this;this.db=le,this.mode=be,this.storeNames=$e,this.schema=Te,this.chromeTransactionDurability=Re,this.idbtrans=null,this.on=ju(this,"complete","error","abort"),this.parent=je||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ut(function(qe,Ye){Ie._resolve=qe,Ie._reject=Ye}),this._completion.then(function(){Ie.active=!1,Ie.on.complete.fire()},function(qe){var Ye=Ie.active;return Ie.active=!1,Ie.on.error.fire(qe),Ie.parent?Ie.parent._reject(qe):Ye&&Ie.idbtrans&&Ie.idbtrans.abort(),Rn(qe)})})),this.Version=(pe=this,Gc(rS.prototype,function(be){this.db=pe,this._cfg={version:be,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(_e=this,Gc(Cl.prototype,function(be,$e,Te){if(this.db=_e,this._ctx={table:be,index:$e===":id"?null:$e,or:Te},this._cmp=this._ascending=on,this._descending=function(Re,je){return on(je,Re)},this._max=function(Re,je){return 0<on(Re,je)?Re:je},this._min=function(Re,je){return on(Re,je)<0?Re:je},this._IDBKeyRange=_e._deps.IDBKeyRange,!this._IDBKeyRange)throw new Ne.MissingAPI})),this.on("versionchange",function(be){0<be.newVersion?console.warn("Another connection wants to upgrade database '".concat(R.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(R.name,"'. Closing db now to resume the delete request.")),R.close({disableAutoOpen:!1})}),this.on("blocked",function(be){!be.newVersion||be.newVersion<be.oldVersion?console.warn("Dexie.delete('".concat(R.name,"') was blocked")):console.warn("Upgrade '".concat(R.name,"' blocked by other connection holding version ").concat(be.oldVersion/10))}),this._maxKey=Mp(A.IDBKeyRange),this._createTransaction=function(be,$e,Te,Re){return new R.Transaction(be,$e,Te,R._options.chromeTransactionDurability,Re)},this._fireOnBlocked=function(be){R.on("blocked").fire(be),_i.filter(function($e){return $e.
422name===R.name&&$e!==R&&!$e._state.vcFired}).map(function($e){return $e.on("versionchange").fire(be)})},this.use(s9),this.use(hT),this.use(o9),this.use(r9),this.use(i9);var Le=new Proxy(this,{get:function(be,$e,Te){if($e==="_vip")return!0;if($e==="table")return function(je){return M1(R.table(je),Le)};var Re=Reflect.get(be,$e,Te);return Re instanceof vm?M1(Re,Le):$e==="tables"?Re.map(function(je){return M1(je,Le)}):$e==="_createTransaction"?function(){return M1(Re.apply(this,arguments),Le)}:Re}});this.vip=Le,V.forEach(function(be){return be(R)})}var ev,Zl=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",a9=(tv.prototype.subscribe=function(k,A,R){return this._subscribe(k&&typeof k!="function"?k:{next:k,error:A,complete:R})},tv.prototype[Zl]=function(){return this},tv);function tv(k){this._subscribe=k}try{ev={indexedDB:s.indexedDB||s.mozIndexedDB||s.webkitIndexedDB||s.msIndexedDB,IDBKeyRange:s.IDBKeyRange||s.webkitIDBKeyRange}}catch{ev={indexedDB:null,IDBKeyRange:null}}function cS(k){var A,R=!1,V=new a9(function(X){var ne=Q(k),le,pe=!1,_e={},Ae={},Le={get closed(){return pe},unsubscribe:function(){pe||(pe=!0,le&&le.abort(),be&&Qo.storagemutated.unsubscribe(Te))}};X.start&&X.start(Le);var be=!1,$e=function(){return Yt(Re)},Te=function(je){Yb(_e,je),sS(Ae,_e)&&$e()},Re=function(){var je,Ie,qe;!pe&&ev.indexedDB&&(_e={},je={},le&&le.abort(),le=new AbortController,qe=function(Ye){var Xe=is();try{ne&&Kt();var nt=Ut(k,Ye);return nt=ne?nt.finally(Ht):nt}finally{Xe&&Ii()}}(Ie={subscr:je,signal:le.signal,requery:$e,querier:k,trans:null}),Promise.resolve(qe).then(function(Ye){R=!0,A=Ye,pe||Ie.signal.aborted||(_e={},function(Xe){for(var nt in Xe)if(h(Xe,nt))return;return 1}(Ae=je)||be||(Qo(ga,Te),be=!0),Yt(function(){return!pe&&X.next&&X.next(Ye)}))},function(Ye){R=!1,["DatabaseClosedError","AbortError"].includes(Ye?.name)||pe||Yt(function(){pe||X.error&&X.error(Ye)})}))};return setTimeout($e,0),Le});return V.hasValue=function(){return R},V.getValue=function(){return A},V}var Jc=zu;function Bp(k){var A=Zc;try{Zc=!0,Qo.storagemutated.fire(k),aS(k,!0)}finally{Zc=A}}d(Jc,r(r({},Mt),{delete:function(k){return new Jc(k,{addons:[]}).delete()},exists:function(k){return new Jc(k,{addons:[]}).open().then(function(A){return A.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(k){try{return A=Jc.dependencies,R=A.indexedDB,A=A.IDBKeyRange,(A1(R)?Promise.resolve(R.databases()).then(function(V){return V.map(function(X){return X.name}).filter(function(X){return X!==Ls})}):iS(R,A).toCollection().primaryKeys()).then(k)}catch{return Rn(new Ne.MissingAPI)}var A,R},defineClass:function(){return function(k){l(this,k)}},ignoreTransaction:function(k){return lt.trans?ye(lt.transless,k):k()},vip:P1,async:function(k){return function(){try{var A=I1(k.apply(this,arguments));return A&&typeof A.then=="function"?A:ut.resolve(A)}catch(R){return Rn(R)}}},spawn:function(k,A,R){try{var V=I1(k.apply(R,A||[]));return V&&typeof V.then=="function"?V:ut.resolve(V)}catch(X){return Rn(X)}},currentTransaction:{get:function(){return lt.trans||null}},waitFor:function(k,A){return A=ut.resolve(typeof k=="function"?Jc.ignoreTransaction(k):k).timeout(A||6e4),lt.trans?lt.trans.waitFor(A):A},Promise:ut,debug:{get:function(){return Nr},set:function(k){ki(k)}},derive:y,extend:l,props:d,override:T,Events:ju,on:Qo,liveQuery:cS,extendObservabilitySet:Yb,getByKeyPath:O,setByKeyPath:P,delByKeyPath:function(k,A){typeof A=="string"?P(k,A,void 0):"length"in A&&[].map.call(A,function(R){P(k,R,void 0)})},shallowClone:$,deepClone:oe,getObjectDiff:lS,cmp:on,asap:E,minKey:-1/0,addons:[],connections:_i,errnames:Qe,dependencies:ev,cache:Lp,semVer:"4.0.11",version:"4.0.11".split(".").map(function(k){return parseInt(k)}).reduce(function(k,A,R){return k+A/Math.pow(10,2*R)})})),Jc.maxKey=Mp(Jc.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Qo(ga,function(k){Zc||(k=new CustomEvent(km,{detail:k}),Zc=!0,dispatchEvent(k),Zc=!1)}),addEventListener(km,function(k){k=k.detail,Zc||Bp(k)}));var Tm,Zc=!1,dT=function(){};return typeof BroadcastChannel<"u"&&((dT=function(){(Tm=new BroadcastChannel(km)).onmessage=function(k){return k.data&&Bp(k.data)}})(),typeof Tm.unref=="function"&&Tm.unref(),Qo(ga,function(k){Zc||Tm.postMessage(k)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(k){if(!zu.disableBfCache&&k.persisted){Nr&&console.debug("Dexie: handling persisted pagehide"),Tm?.close();for(var A=0,R=_i;A<R.length;A++)R[A].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(k){!zu.disableBfCache&&k.persisted&&(Nr&&console.debug("Dexie: handling persisted pageshow"),dT(),Bp({all:new mo(-1/0,[[]])}))})),ut.rejectionMapper=function(k,A){return!k||k instanceof q||k instanceof TypeError||k instanceof SyntaxError||!k.name||!rt[k.name]?k:(A=new rt[k.name](A||k.message,k),"stack"in k&&g(A,"stack",{get:function(){return this.inner.stack}}),A)},ki(Nr),r(zu,Object.freeze({__proto__:null,Dexie:zu,liveQuery:cS,Entity:$u,cmp:on,PropModification:Pp,replacePrefix:function(k,A){return new Pp({replacePrefix:[k,A]})},add:function(k){return new Pp({add:k})},remove:function(k){return new Pp({remove:k})},default:zu,RangeSet:mo,mergeRanges:O1,rangesOverlap:tT}),{default:zu}),zu})}(O6)),O6.exports}var PKe=AKe();const bB=zc(PKe),cZ=Symbol.for("Dexie"),l8=globalThis[cZ]||(globalThis[cZ]=bB);if(bB.semVer!==l8.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${bB.semVer} and ${l8.semVer}`);const{liveQuery:OKe,mergeRanges:Hqt,rangesOverlap:Uqt,RangeSet:Vqt,cmp:Wqt,Entity:qqt,PropModification:Gqt,replacePrefix:Kqt,add:Yqt,remove:Qqt}=l8;function IKe(t,e,n){var r,i;typeof t=="function"?(r=e||[],i=n):(r=[],i=e);var s=ii.useRef({hasResult:!1,result:i,error:null}),o=ii.useReducer(function(c){return c+1},0);o[0];var a=o[1],l=ii.useMemo(function(){var c=typeof t=="function"?t():t;if(!c||typeof c.subscribe!="function")throw t===c?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!s.current.hasResult&&typeof window<"u"&&(typeof c.hasValue!="function"||c.hasValue()))if(typeof c.getValue=="function")s.current.result=c.getValue(),s.current.hasResult=!0;else{var u=c.subscribe(function(h){s.current.result=h,s.current.hasResult=!0});typeof u=="function"?u():u.unsubscribe()}return c},r);if(ii.useDebugValue(s.current.result),ii.useEffect(function(){var c=l.subscribe(function(u){var h=s.current;(h.error!==null||h.result!==u)&&(h.error=null,h.result=u,h.hasResult=!0,a())},function(u){var h=s.current;h.error!==u&&(h.error=u,a())});return typeof c=="function"?c:c.unsubscribe.bind(c)},r),s.current.error)throw s.current.error;return s.current.result}function DKe(t,e,n){return IKe(function(){return OKe(t)},e||[],n)}const vB="--chatcraft-",xB=new Map;function MKe(t,e){const n=xB.get(t)||{operations:0,totalDuration:0,minDuration:1/0,maxDuration:-1/0,lastDuration:0};n.operations++,n.totalDuration+=e,n.minDuration=Math.min(n.minDuration,e),n.maxDuration=Math.max(n.maxDuration,e),n.lastDuration=e,xB.set(t,n)}const NKe=new PerformanceObserver(t=>
422{t.getEntries().forEach(e=>{if(e.name.startsWith(vB)&&e.entryType==="measure"){const n=e.name.replace(vB,"");MKe(n,e.duration),console.log(`${e.name}'s duration: ${e.duration}`)}})});function RKe(){return new Map(xB)}function vg(t,e,n=[],r){return DKe(()=>LKe(t,async()=>await e()),n,r)}async function LKe(t,e){const n=`${vB}${t}`,r=`${n}-start`,i=`${n}-end`;performance.mark(r);try{const s=await e();performance.mark(i);try{performance.measure(n,r,i)}catch(o){console.error(`Failed to measure ${r} to ${i}: ${o}`)}return s}finally{performance.clearMarks(r),performance.clearMarks(i)}}NKe.observe({entryTypes:["measure","mark"]});const BKe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let f1=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=BKe[n[t]&63];return e};const hU=Symbol.for("yaml.alias"),wB=Symbol.for("yaml.document"),Pg=Symbol.for("yaml.map"),lpe=Symbol.for("yaml.pair"),op=Symbol.for("yaml.scalar"),kw=Symbol.for("yaml.seq"),Eh=Symbol.for("yaml.node.type"),Db=t=>!!t&&typeof t=="object"&&t[Eh]===hU,Mb=t=>!!t&&typeof t=="object"&&t[Eh]===wB,Cw=t=>!!t&&typeof t=="object"&&t[Eh]===Pg,Gs=t=>!!t&&typeof t=="object"&&t[Eh]===lpe,fs=t=>!!t&&typeof t=="object"&&t[Eh]===op,_w=t=>!!t&&typeof t=="object"&&t[Eh]===kw;function so(t){if(t&&typeof t=="object")switch(t[Eh]){case Pg:case kw:return!0}return!1}function ao(t){if(t&&typeof t=="object")switch(t[Eh]){case hU:case Pg:case op:case kw:return!0}return!1}const FKe=t=>(fs(t)||so(t))&&!!t.anchor,mc=Symbol("break visit"),cpe=Symbol("skip children"),Jf=Symbol("remove node");function $g(t,e){const n=upe(e);Mb(t)?T2(null,t.contents,n,Object.freeze([t]))===Jf&&(t.contents=null):T2(null,t,n,Object.freeze([]))}$g.BREAK=mc;$g.SKIP=cpe;$g.REMOVE=Jf;function T2(t,e,n,r){const i=hpe(t,e,n,r);if(ao(i)||Gs(i))return dpe(t,r,i),T2(t,i,n,r);if(typeof i!="symbol"){if(so(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const o=T2(s,e.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===mc)return mc;o===Jf&&(e.items.splice(s,1),s-=1)}}}else if(Gs(e)){r=Object.freeze(r.concat(e));const s=T2("key",e.key,n,r);if(s===mc)return mc;s===Jf&&(e.key=null);const o=T2("value",e.value,n,r);if(o===mc)return mc;o===Jf&&(e.value=null)}}return i}async function gO(t,e){const n=upe(e);Mb(t)?await E2(null,t.contents,n,Object.freeze([t]))===Jf&&(t.contents=null):await E2(null,t,n,Object.freeze([]))}gO.BREAK=mc;gO.SKIP=cpe;gO.REMOVE=Jf;async function E2(t,e,n,r){const i=await hpe(t,e,n,r);if(ao(i)||Gs(i))return dpe(t,r,i),E2(t,i,n,r);if(typeof i!="symbol"){if(so(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const o=await E2(s,e.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===mc)return mc;o===Jf&&(e.items.splice(s,1),s-=1)}}}else if(Gs(e)){r=Object.freeze(r.concat(e));const s=await E2("key",e.key,n,r);if(s===mc)return mc;s===Jf&&(e.key=null);const o=await E2("value",e.value,n,r);if(o===mc)return mc;o===Jf&&(e.value=null)}}return i}function upe(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function hpe(t,e,n,r){if(typeof n=="function")return n(t,e,r);if(Cw(e))return n.Map?.(t,e,r);if(_w(e))return n.Seq?.(t,e,r);if(Gs(e))return n.Pair?.(t,e,r);if(fs(e))return n.Scalar?.(t,e,r);if(Db(e))return n.Alias?.(t,e,r)}function dpe(t,e,n){const r=e[e.length-1];if(so(r))r.items[t]=n;else if(Gs(r))t==="key"?r.key=n:r.value=n;else if(Mb(r))r.contents=n;else{const i=Db(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const $Ke={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},jKe=t=>t.replace(/[!,[\]{}]/g,e=>$Ke[e]);class Dl{constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Dl.defaultYaml,e),this.tags=Object.assign({},Dl.defaultTags,n)}clone(){const e=new Dl(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Dl(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Dl.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Dl.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:Dl.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Dl.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${e}
422 is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=e.match(/^(.*!)([^!]*)$/s);i||n(`The ${e} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+jKe(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(e&&r.length>0&&ao(e.contents)){const s={};$g(e.contents,(o,a)=>{ao(a)&&a.tag&&(s[a.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(` 423`)}}Dl.defaultYaml={explicit:!1,version:"1.2"};Dl.defaultTags={"!!":"tag:yaml.org,2002:"};function fpe(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(n)}return!0}function ppe(t){const e=new Set;return $g(t,{Value(n,r){r.anchor&&e.add(r.anchor)}}),e}function mpe(t,e){for(let n=1;;++n){const r=`${t}${n}`;if(!e.has(r))return r}}function zKe(t,e){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=ppe(t));const o=mpe(e,i);return i.add(o),o},setAnchors:()=>{for(const s of n){const o=r.get(s);if(typeof o=="object"&&o.anchor&&(fs(o.node)||so(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:r}}function A2(t,e,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const o=r[i],a=A2(t,r,String(i),o);a===void 0?delete r[i]:a!==o&&(r[i]=a)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),o=A2(t,r,i,s);o===void 0?r.delete(i):o!==s&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const s=A2(t,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const o=A2(t,r,i,s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}return t.call(e,n,r)}function xh(t,e,n){if(Array.isArray(t))return t.map((r,i)=>xh(r,String(i),n));if(t&&typeof t.toJSON=="function"){if(!n||!FKe(t))return t.toJSON(e,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(t,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=t.toJSON(e,n);return n.onCreate&&n.onCreate(i),i}return typeof t=="bigint"&&!n?.keep?Number(t):t}class dU{constructor(e){Object.defineProperty(this,Eh,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!Mb(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=xh(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof s=="function"?A2(s,{"":a},"",a):a}}let yO=class extends dU{constructor(e){super(hU),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let n;return $g(e,{Node:(r,i)=>{if(i===this)return $g.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(e,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,o=this.resolve(i);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=r.get(o);if(a||(xh(o,null,n),a=r.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=I6(i,o,r)),a.count*a.aliasCount>
423s)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,n,r){const i=`*${this.source}`;if(e){if(fpe(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${i} `}return i}};function I6(t,e,n){if(Db(e)){const r=e.resolve(t),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(so(e)){let r=0;for(const i of e.items){const s=I6(t,i,n);s>r&&(r=s)}return r}else if(Gs(e)){const r=I6(t,e.key,n),i=I6(t,e.value,n);return Math.max(r,i)}return 1}const gpe=t=>!t||typeof t!="function"&&typeof t!="object";class Dr extends dU{constructor(e){super(op),this.value=e}toJSON(e,n){return n?.keep?this.value:xh(this.value,e,n)}toString(){return String(this.value)}}Dr.BLOCK_FOLDED="BLOCK_FOLDED";Dr.BLOCK_LITERAL="BLOCK_LITERAL";Dr.PLAIN="PLAIN";Dr.QUOTE_DOUBLE="QUOTE_DOUBLE";Dr.QUOTE_SINGLE="QUOTE_SINGLE";const HKe="tag:yaml.org,2002:";function UKe(t,e,n){if(e){const r=n.filter(s=>s.tag===e),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return n.find(r=>r.identify?.(t)&&!r.format)}function Dk(t,e,n){if(Mb(t)&&(t=t.contents),ao(t))return t;
423if(Gs(t)){const h=n.schema[Pg].createNode?.(n.schema,null,n);return h.items.push(t),h}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:o,sourceObjects:a}=n;let l;if(r&&t&&typeof t=="object"){if(l=a.get(t),l)return l.anchor||(l.anchor=i(t)),new yO(l.anchor);l={anchor:null,node:null},a.set(t,l)}e?.startsWith("!!")&&(e=HKe+e.slice(2));let c=UKe(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const h=new Dr(t);return l&&(l.node=h),h}c=t instanceof Map?o[Pg]:Symbol.iterator in Object(t)?o[kw]:o[Pg]}s&&(s(c),delete n.onTagObj);const u=c?.createNode?c.createNode(n.schema,t,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,t,n):new Dr(t);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}function c8(t,e,n){let r=n;for(let i=e.length-1;i>=0;--i){const s=e[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return Dk(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const R3=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;class ype extends dU{constructor(e,n){super(e),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(e){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(n.schema=e),n.items=n.items.map(r=>ao(r)||Gs(r)?r.clone(e):r),this.range&&(n.range=this.range.slice()),n}addIn(e,n){if(R3(e))this.add(n);else{const[r,...i]=e,s=this.get(r,!0);if(so(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,c8(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(e){const[n,...r]=e;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(so(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(e,n){const[r,...i]=e,s=this.get(r,!0);return i.length===0?!n&&fs(s)?s.value:s:so(s)?s.getIn(i,n):void 0}hasAllNullValues(e){return this.items.every(n=>{if(!Gs(n))return!1;const r=n.value;return r==null||e&&fs(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[n,...r]=e;if(r.length===0)return this.has(n);const i=this.get(n,!0);return so(i)?i.hasIn(r):!1}setIn(e,n){const[r,...i]=e;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(so(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,c8(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}const VKe=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function P0(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const Ey=(t,e,n)=>t.endsWith(` 424`)?P0(n,e):n.includes(` 425`)?` 426`+P0(n,e):(t.endsWith(" ")?"":" ")+n,bpe="flow",SB="block",D6="quoted";function bO(t,e,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return t;i<s&&(s=0);const l=Math.max(1+s,1+i-e.length);if(t.length<=l)return t;const c=[],u={};let h=i-e.length;typeof r=="number"&&(r>i-Math.max(2,s)?c.push(0):h=i-r);let d,p,g=!1,y=-1,b=-1,w=-1;n===SB&&(y=uZ(t,y,e.length),y!==-1&&(h=y+l));for(let T;T=t[y+=1];){if(n===D6&&T==="\\"){switch(b=y,t[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}w=y}if(T===` 427`)n===SB&&(y=uZ(t,y,e.length)),h=y+e.length+l,d=void 0;else{if(T===" "&&p&&p!==" "&&p!==` 428`&&p!==" "){const D=t[y+1];D&&D!==" "&&D!==` 429`&&D!==" "&&(d=y)}if(y>=h)if(d)c.push(d),h=d+l,d=void 0;else if(n===D6){for(;p===" "||p===" ";)p=T,T=t[y+=1],g=!0;const D=y>w+1?y-2:b-1;if(u[D])return t;c.push(D),u[D]=!0,h=D+l,d=void 0}else g=!0}p=T}if(g&&a&&a(),c.length===0)return t;o&&o();let S=t.slice(0,c[0]);for(let T=0;T<c.length;++T){const D=c[T],E=c[T+1]||t.length;D===0?S=` 430${e}${t.slice(0,E)}`:(n===D6&&u[D]&&(S+=`${t[D]}\\`),S+=` 431${e}${t.slice(D+1,E)}`)}return S}function uZ(t,e,n){let r=e,i=e+1,s=t[i];for(;s===" "||s===" ";)if(e<i+n)s=t[++e];else{do s=t[++e];while(s&&s!==` 432`);r=e,i=e+1,s=t[i]}return r}const vO=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}
vendor: 10,881 bytes, lines 432-465
432),xO=t=>/^(%|---|\.\.\.)/m.test(t);function WKe(t,e,n){if(!e||e<0)return!1;const r=e-n,i=t.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if(t[s]===` 433`){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}function D4(t,e){const n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=e,i=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(xO(t)?" ":"");let o="",a=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(o+=n.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{o+=n.slice(a,l);const u=n.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=n.substr(l,6)}l+=5,a=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<i)l+=1;else{for(o+=n.slice(a,l)+` 434 435`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)o+=` 436`,l+=2;o+=s,n[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+n.slice(a):n,r?o:bO(o,s,D6,vO(e,!1))}function kB(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(` 437`)||/[ \t]\n|\n[ \t]/.test(t))return D4(t,e);const n=e.indent||(xO(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$& 438${n}`)+"'";return e.implicitKey?r:bO(r,n,bpe,vO(e,!1))}function P2(t,e){const{singleQuote:n}=e.options;let r;if(n===!1)r=D4;else{const i=t.includes('"'),s=t.includes("'");i&&!s?r=kB:s&&!i?r=D4:r=n?kB:D4}return r(t,e)}let CB;try{CB=new RegExp(`(^|(?<! 439)) 440+(?! 441|$)`,"g")}catch{CB=/\n+(?!\n|$)/g}function M6({comment:t,type:e,value:n},r,i,s){const{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return P2(n,r);const c=r.indent||(r.forceBlockIndent||xO(n)?" ":""),u=o==="literal"?!0:o==="folded"||e===Dr.BLOCK_FOLDED?!1:e===Dr.BLOCK_LITERAL?!0:!WKe(n,l,c.length);if(!n)return u?`| 442`:`> 443`;let h,d;for(d=n.length;d>0;--d){const E=n[d-1];if(E!==` 444`&&E!==" "&&E!==" ")break}let p=n.substring(d);const g=p.indexOf(` 445`);g===-1?h="-":n===p||g!==p.length-1?(h="+",s&&s()):h="",p&&(n=n.slice(0,-p.length),p[p.length-1]===` 446`&&(p=p.slice(0,-1)),p=p.replace(CB,`$&${c}`));let y=!1,b,w=-1;for(b=0;b<n.length;++b){const E=n[b];if(E===" ")y=!0;else if(E===` 447`)w=b;else break}let S=n.substring(0,w<b?w+1:b);S&&(n=n.substring(S.length),S=S.replace(/\n+/g,`$&${c}`));let D=(y?c?"2":"1":"")+h;if(t&&(D+=" "+a(t.replace(/ ?[\r\n]+/g," ")),i&&i()),!u){const E=n.replace(/\n+/g,` 448$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let O=!1;const P=vO(r,!0);o!=="folded"&&e!==Dr.BLOCK_FOLDED&&(P.onOverflow=()=>{O=!0});const $=bO(`${S}${E}${p}`,c,SB,P);if(!O)return`>${D} 449${c}${$}`}return n=n.replace(/\n+/g,`$&${c}`),`|${D} 450${c}${S}${n}${p}`}function qKe(t,e,n,r){const{type:i,value:s}=t,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&s.includes(` 451`)||u&&/[[\]{},]/.test(s))return P2(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||u||!s.includes(` 452`)?P2(s,e):M6(t,e,n,r);if(!a&&!u&&i!==Dr.PLAIN&&s.includes(` 453`))return M6(t,e,n,r);if(xO(s)){if(l==="")return e.forceBlockIndent=!0,M6(t,e,n,r);if(a&&l===c)return P2(s,e)}const h=s.replace(/\n+/g,`$& 454${l}`);if(o){const d=y=>y.default&&y.tag!=="tag:yaml.org,2002:str"&&y.test?.test(h),{compat:p,tags:g}=e.doc.schema;if(g.some(d)||p?.some(d))return P2(s,e)}return a?h:bO(h,l,bpe,vO(e,!1))}function e_(t,e,n,r){const{implicitKey:i,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:a}=t;a!==Dr.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Dr.QUOTE_DOUBLE);const l=u=>{switch(u){case Dr.BLOCK_FOLDED:case Dr.BLOCK_LITERAL:return i||s?P2(o.value,e):M6(o,e,n,r);case Dr.QUOTE_DOUBLE:return D4(o.value,e);case Dr.QUOTE_SINGLE:return kB(o.value,e);case Dr.PLAIN:return qKe(o,e,n,r);default:return null}};let c=l(a);if(c===null){const{defaultKeyType:u,defaultStringType:h}=e.options,d=i&&u||h;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}function vpe(t,e){const n=Object.assign({blockQuote:!0,commentString:VKe,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function GKe(t,e){if(e.tag){const i=t.filter(s=>s.tag===e.tag);if(i.length>0)return i.find(s=>s.format===e.format)??i[0]}let n,r;if(fs(e)){r=e.value;let i=t.filter(s=>s.identify?.(r));if(i.length>1){const s=i.filter(o=>o.test);s.length>0&&(i=s)}n=i.find(s=>s.format===e.format)??i.find(s=>!s.format)}else r=e,n=t.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${i} value`)}return n}function KKe(t,e,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(fs(t)||so(t))&&t.anchor;s&&fpe(s)&&(n.add(s),i.push(`&${s}`));const o=t.tag?t.tag:e.default?null:e.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}function Nx(t,e,n,r){if(Gs(t))return t.toString(e,n,r);if(Db(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let i;const s=ao(t)?t:e.doc.createNode(t,{onTagObj:l=>i=l});i||(i=GKe(e.doc.schema.tags,s));const o=KKe(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const a=typeof i.stringify=="function"?i.stringify(s,e,n,r):fs(s)?e_(s,e,n,r):s.toString(e,n,r);return o?fs(s)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o} 455${e.indent}${a}`:a}function YKe({key:t,value:e},n,r,i){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:h}}=n;let d=ao(t)&&t.comment||null;if(h){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(so(t)||!ao(t)&&typeof t=="object"){const P="With simple keys, collection cannot be used as a key value";throw new Error(P)}}let p=!h&&(!t||d&&e==null&&!n.inFlow||so(t)||(fs(t)?t.type===Dr.BLOCK_FOLDED||t.type===Dr.BLOCK_LITERAL:typeof t=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:a+l});let g=!1,y=!1,b=Nx(t,n,()=>g=!0,()=>y=!0);if(!p&&!n.inFlow&&b.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(n.inFlow){if(s||e==null)return g&&r&&r(),b===""?"?":p?`? ${b}`:b}else if(s&&!h||e==null&&p)return b=`? ${b}`,d&&!g?b+=Ey(b,n.indent,c(d)):y&&i&&i(),b;g&&(d=null),p?(d&&(b+=Ey(b,n.indent,c(d))),b=`? ${b} 456${a}:`):(b=`${b}:`,d&&(b+=Ey(b,n.indent,c(d))));let w,S,T;ao(e)?(w=!!e.spaceBefore,S=e.commentBefore,T=e.comment):(w=!1,S=null,T=null,e&&typeof e=="object"&&(e=o.createNode(e))),n.implicitKey=!1,!p&&!d&&fs(e)&&(n.indentAtStart=b.length+1),y=!1,!u&&l.length>=2&&!n.inFlow&&!p&&_w(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let D=!1;const E=Nx(e,n,()=>D=!0,()=>y=!0);let O=" ";if(d||w||S){if(O=w?` 457`:"",S){const P=c(S);O+=` 458${P0(P,n.indent)}`}E===""&&!n.inFlow?O===` 459`&&(O=` 460 461`):O+=` 462${n.indent}`}else if(!p&&so(e)){const P=E[0],$=E.indexOf(` 463`),W=$!==-1,H=n.inFlow??e.flow??e.items.length===0;if(W||!H){let K=!1;if(W&&(P==="&"||P==="!")){let Z=E.indexOf(" ");P==="&"&&Z!==-1&&Z<$&&E[Z+1]==="!"&&(Z=E.indexOf(" ",Z+1)),(Z===-1||$<Z)&&(K=!0)}K||(O=` 464${n.indent}`)}}else(E===""||E[0]===` 465`)&&(O="");return b+=O+E,n.inFlow?D&&r&&r():T&&!D?b+=Ey(b,n.indent,c(T)):y&&i&&i(),b}function xpe(t,e){(t==="debug"||t==="warn")&&console.warn(e)}const C5="<<",R0={identify:t=>t===C5||typeof t=="symbol"&&t.description===C5,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Dr(Symbol(C5)),{addToJSMap:wpe}),stringify:()=>C5},QKe=(t,e)=>(R0.identify(e)||fs(e)&&(!e.type||e.type===Dr.PLAIN)&&R0.identify(e.value))&&t?.doc.schema.tags.some(n=>n.tag===R0.tag&&n.default);function wpe(t,e,n){if(n=t&&Db(n)?n.resolve(t.doc):n,_w(n))for(const r of n.items)IM(t,e,r);else if(Array.isArray(n))for(const r of n)IM(t,e,r);else IM(t,e,n)}function IM(t,e,n){const r=t&&Db(n)?n.resolve(t.doc):n;if(!Cw(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,t,Map);for(const[s,o]of i)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function Spe(t,e,{key:n,value:r}){if(ao(n)&&n.addToJSMap)n.addToJSMap(t,e,r);else if(QKe(t,n))wpe(t,e,r);else{const i=xh(n,"",t);if(e instanceof Map)e.set(i,xh(r,i,t));else if(e instanceof Set)e.add(i);else{const s=XKe(n,i,t),o=xh(r,s,t);s in e?Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[s]=o}}return e}function XKe(t,e,n){if(e===null)return"";if(typeof e!="object")return String(e);if(ao(t)&&n?.doc){const r=vpe(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=t.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),xpe(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(e)}function fU(t,e,n){const r=Dk(t,void 0,n),i=Dk(e,void 0,n);return new pl(r,i)}class pl{constructor(e,n=null){Object.defineProperty(this,Eh,{value:lpe}),this.key=e,this.value=n}clone(e){let{key:n,value:r}=this;return ao(n)&&(n=n.clone(e)),ao(r)&&(r=r.clone(e)),new pl(n,r)}toJSON(e,n){const r=n?.mapAsMap?new Map:{};return Spe(n,r,this)}toString(e,n,r){return e?.doc?YKe(this,e,n,r):JSON.stringify(this)}}function kpe(t,e,n){return(e.inFlow??t.flow?ZKe:JKe)(t,e,n)}function JKe({comment:t,items:e},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:s,type:null});let h=!1;const d=[];for(let g=0;g<e.length;++g){const y=e[g];let b=null;if(ao(y))!h&&y.spaceBefore&&d.push(""),u8(n,d,y.commentBefore,h),y.comment&&(b=y.comment);else if(Gs(y)){const S=ao(y.key)?y.key:null;S&&(!h&&S.spaceBefore&&d.push(""),u8(n,d,S.commentBefore,h))}h=!1;let w=Nx(y,u,()=>b=null,()=>h=!0);b&&(w+=Ey(w,s,c(b))),h&&b&&(h=!1),d.push(r+w)}let p;
465if(d.length===0)p=i.start+i.end;else{p=d[0];for(let g=1;g<d.length;++g){const y=d[g];p+=y?` 466${l}${y}`:` 467`}}return t?(p+=` 468`+P0(c(t),l),a&&a()):h&&o&&o(),p}function ZKe({items:t},e,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=e;r+=s;const l=Object.assign({},e,{indent:r,inFlow:!0,type:null});let c=!1,u=0;const h=[];for(let g=0;g<t.length;++g){const y=t[g];let b=null;if(ao(y))y.spaceBefore&&h.push(""),u8(e,h,y.commentBefore,!1),y.comment&&(b=y.comment);else if(Gs(y)){const S=ao(y.key)?y.key:null;S&&(S.spaceBefore&&h.push(""),u8(e,h,S.commentBefore,!1),S.comment&&(c=!0));const T=ao(y.value)?y.value:null;T?(T.comment&&(b=T.comment),T.commentBefore&&(c=!0)):y.value==null&&S?.comment&&(b=S.comment)}b&&(c=!0);let w=Nx(y,l,()=>b=null);g<t.length-1&&(w+=","),b&&(w+=Ey(w,r,a(b))),!c&&(h.length>u||w.includes(` 469`))&&(c=!0),h.push(w),u=h.length}const{start:d,end:p}=n;if(h.length===0)return d+p;if(!c){const g=h.reduce((y,b)=>y+b.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=d;for(const y of h)g+=y?` 470${s}${i}${y}`:` 471`;return`${g} 472${i}${p}`}else return`${d}${o}${h.join(" ")}${o}${p}`}function u8({indent:t,options:{commentString:e}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=P0(e(r),t);n.push(s.trimStart())}}function Ay(t,e){const n=fs(e)?e.value:e;for(const r of t)if(Gs(r)&&(r.key===e||r.key===n||fs(r.key)&&r.key.value===n))return r}class Su extends ype{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Pg,e),this.items=[]}static from(e,n,r){const{keepUndefined:i,replacer:s}=r,o=new this(e),a=(l,c)=>{if(typeof s=="function")c=s.call(n,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||i)&&o.items.push(fU(l,c,r))};if(n instanceof Map)for(const[l,c]of n)a(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))a(l,n[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,n){let r;Gs(e)?r=e:!e||typeof e!="object"||!("key"in e)?r=new pl(e,e?.value):r=new pl(e.key,e.value);const i=Ay(this.items,r.key),s=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);fs(i.value)&&gpe(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const o=this.items.findIndex(a=>s(r,a)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(e){const n=Ay(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){const i=Ay(this.items,e)?.value;return(!n&&fs(i)?i.value:i)??void 0}has(e){return!!Ay(this.items,e)}set(e,n){this.add(new pl(e,n),!0)}toJSON(e,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const s of this.items)Spe(n,i,s);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(const i of this.items)if(!Gs(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),kpe(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:n})}}const Tw={collection:"map",default:!0,nodeClass:Su,tag:"tag:yaml.org,2002:map",resolve(t,e){return Cw(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>Su.from(t,e,n)};class jg extends ype{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(kw,e),this.items=[]}add(e){this.items.push(e)}delete(e){const n=_5(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){const r=_5(e);if(typeof r!="number")return;const i=this.items[r];return!n&&fs(i)?i.value:i}has(e){const n=_5(e);return typeof n=="number"&&n<this.items.length}set(e,n){const r=_5(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[r];fs(i)&&gpe(n)?i.value=n:this.items[r]=n}toJSON(e,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(xh(s,String(i++),n));return r}toString(e,n,r){return e?kpe(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(e,n,r){const{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n)){let o=0;for(let a of n){if(typeof i=="function"){const l=n instanceof Set?a:String(o++);a=i.call(n,l,a)}s.items.push(Dk(a,void 0,r))}}return s}}function _5(t){let e=fs(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const Ew={collection:"seq",default:!0,nodeClass:jg,tag:"tag:yaml.org,2002:seq",resolve(t,e){return _w(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>jg.from(t,e,n)},wO={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),e_(t,e,n,r)}},SO={identify:t=>t==null,createNode:()=>new Dr(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Dr(null),stringify:({source:t},e)=>typeof t=="string"&&SO.test.test(t)?t:e.options.nullStr},pU={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new Dr(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e}
vendor: 10,518 bytes, lines 472-475
472,n){if(t&&pU.test.test(t)){const r=t[0]==="t"||t[0]==="T";if(e===r)return t}return e?n.options.trueStr:n.options.falseStr}};function $d({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=e-(s.length-o-1);for(;a-- >0;)s+="0"}return s}const Cpe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$d},_pe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():$d(t)}},Tpe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new Dr(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:$d},kO=t=>typeof t=="bigint"||Number.isInteger(t),mU=(t,e,n,{intAsBigInt:r})=>r?BigInt(t):parseInt(t.substring(e),n);function Epe(t,e,n){const{value:r}=t;return kO(r)&&r>=0?n+r.toString(e):$d(t)}const Ape={identify:t=>kO(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>mU(t,2,8,n),stringify:t=>Epe(t,8,"0o")},Ppe={identify:kO,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>mU(t,0,10,n),stringify:$d},Ope={identify:t=>kO(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>mU(t,2,16,n),stringify:t=>Epe(t,16,"0x")},eYe=[Tw,Ew,wO,SO,pU,Ape,Ppe,Ope,Cpe,_pe,Tpe];function hZ(t){return typeof t=="bigint"||Number.isInteger(t)}const T5=({value:t})=>JSON.stringify(t),tYe=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:T5},{identify:t=>t==null,createNode:()=>new Dr(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:T5},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:T5},{identify:hZ,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>hZ(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:T5}],nYe={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},rYe=[Tw,Ew].concat(tYe,nYe),gU={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},r,i,s){if(!n)return"";const o=n;let a;if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=Dr.BLOCK_LITERAL),e!==Dr.QUOTE_DOUBLE){const l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let h=0,d=0;h<c;++h,d+=l)u[h]=a.substr(d,l);a=u.join(e===Dr.BLOCK_LITERAL?` 473`:" ")}return e_({comment:t,type:e,value:a},r,i,s)}};function Ipe(t,e){if(_w(t))for(let n=0;n<t.items.length;++n){let r=t.items[n];if(!Gs(r)){if(Cw(r)){r.items.length>1&&e("Each pair must have its own sequence indicator");const i=r.items[0]||new pl(new Dr(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore} 474${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment} 475${s.comment}`:r.comment}r=i}t.items[n]=Gs(r)?r:new pl(r)}}else e("Expected a sequence for this tag");return t}function Dpe(t,e,n){const{replacer:r}=n,i=new jg(t);i.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof r=="function"&&(o=r.call(e,String(s++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(fU(a,l,n))}return i}const yU={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ipe,createNode:Dpe};class Y2 extends jg{constructor(){super(),this.add=Su.prototype.add.bind(this),this.delete=Su.prototype.delete.bind(this),this.get=Su.prototype.get.bind(this),this.has=Su.prototype.has.bind(this),this.set=Su.prototype.set.bind(this),this.tag=Y2.tag}toJSON(e,n){if(!n)return super.toJSON(e);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let s,o;if(Gs(i)?(s=xh(i.key,"",n),o=xh(i.value,s,n)):s=xh(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(e,n,r){const i=Dpe(e,n,r),s=new this;return s.items=i.items,s}}Y2.tag="tag:yaml.org,2002:omap";const bU={collection:"seq",identify:t=>t instanceof Map,nodeClass:Y2,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const n=Ipe(t,e),r=[];for(const{key:i}of n.items)fs(i)&&(r.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Y2,n)},createNode:(t,e,n)=>Y2.from(t,e,n)};function Mpe({value:t,source:e},n){return e&&(t?Npe:Rpe).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}const Npe={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Dr(!0),stringify:Mpe},Rpe={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Dr(!1),stringify:Mpe},iYe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$d},sYe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():$d(t)}},oYe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new Dr(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){const r=t.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(e.minFractionDigits=r.length)}return e},stringify:$d},t_=t=>typeof t=="bigint"||Number.isInteger(t);function CO(t,e,n,{intAsBigInt:r}){const i=t[0];if((i==="-"||i==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),r){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return i==="-"?BigInt(-1)*o:o}const s=parseInt(t,n);return i==="-"?-1*s:s}function vU(t,e,n){const{value:r}=t;if(t_(r)){const i=r.toString(e);return r<0?"-"+n+i.substr(1):n+i}return $d(t)}const aYe={identify:t_,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>CO(t,2,2,n),stringify:t=>vU(t,2,"0b")},lYe={identify:t_,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>CO(t,1,8,n),stringify:t=>vU(t,8,"0")},cYe={identify:t_,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>CO(t,0,10,n),stringify:$d},uYe={identify:t_,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>CO(t,2,16,n),stringify:t=>vU(t,16,"0x")};class Q2 extends Su{constructor(e){super(e),this.tag=Q2.tag}add(e){let n;Gs(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new pl(e.key,null):n=new pl(e,null),Ay(this.items,n.key)||this.items.push(n)}get(e,n){const r=Ay(this.items,e);return!n&&Gs(r)?fs(r.key)?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Ay(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new pl(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(e,n,r){const{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),s.items.push(fU(o,null,r));return s}}Q2.tag="tag:yaml.org,2002:set";const xU={collection:"map",identify:t=>t instanceof Set,nodeClass:Q2,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>Q2.from(t,e,n),resolve(t,e){if(Cw(t)){if(t.hasAllNullValues(!0))return Object.assign(new Q2,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function wU(t,e){const n=t[0],r=n==="-"||n==="+"?t.substring(1):t,i=o=>e?BigInt(o):Number(o),s=r.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return n==="-"?i(-1)*s:s}function Lpe(t){let{value:e}=t,n=o=>o;if(typeof e=="bigint")n=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return $d(t);let r="";e<0&&(r="-",e*=n(-1));const i=n(60),s=[e%i];return e<60?s.unshift(0):(e=(e-s[0])/i,s.unshift(e%i),e>=60&&(e=(e-s[0])/i,s.unshift(e))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Bpe={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>wU(t,n),stringify:Lpe},Fpe={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>wU(t,!1),stringify:Lpe}
475,_O={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(_O.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,s||0,o||0,a||0,l);const u=e[8];if(u&&u!=="Z"){let h=wU(u,!1);Math.abs(h)<30&&(h*=60),c-=6e4*h}return new Date(c)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},dZ=[Tw,Ew,wO,SO,Npe,Rpe,aYe,lYe,cYe,uYe,iYe,sYe,oYe,gU,R0,bU,yU,xU,Bpe,Fpe,_O],fZ=new Map([["core",eYe],["failsafe",[Tw,Ew,wO]],["json",rYe],["yaml11",dZ],["yaml-1.1",dZ]]),pZ={binary:gU,bool:pU,float:Tpe,floatExp:_pe,floatNaN:Cpe,floatTime:Fpe,int:Ppe,intHex:Ope,intOct:Ape,intTime:Bpe,map:Tw,merge:R0,null:SO,omap:bU,pairs:yU,seq:Ew,set:xU,timestamp:_O},hYe={"tag:yaml.org,2002:binary":gU,"tag:yaml.org,2002:merge":R0,"tag:yaml.org,2002:omap":bU,"tag:yaml.org,2002:pairs":yU,"tag:yaml.org,2002:set":xU,"tag:yaml.org,2002:timestamp":_O};function DM(t,e,n){const r=fZ.get(e);if(r&&!t)return n&&!r.includes(R0)?r.concat(R0):r.slice();let i=r;if(!i)if(Array.isArray(t))i=[];else{const s=Array.from(fZ.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${s} or define customTags array`)}if(Array.isArray(t))for(const s of t)i=i.concat(s);else typeof t=="function"&&(i=t(i.slice()));return n&&(i=i.concat(R0)),i.reduce((s,o)=>{const a=typeof o=="string"?pZ[o]:o;if(!a){const l=JSON.stringify(o),c=Object.keys(pZ).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return s.includes(a)||s.push(a),s},[])}const dYe=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;let $pe=class jpe{constructor({compat:e,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?DM(e,"compat"):e?DM(null,e):null,this.name=typeof s=="string"&&s||"core",this.knownTags=i?hYe:{},this.tags=DM(n,this.name,r),this.toStringOptions=a??null,Object.defineProperty(this,Pg,{value:Tw}),Object.defineProperty(this,op,{value:wO}),Object.defineProperty(this,kw,{value:Ew}),this.sortMapEntries=typeof o=="function"?o:o===!0?dYe:null}clone(){const e=Object.create(jpe.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};function fYe(t,e){const n=[];let r=e.directives===!0;if(e.directives!==!1&&t.directives){const l=t.directives.toString(t);l?(n.push(l),r=!0):t.directives.docStart&&(r=!0)}r&&n.push("---");const i=vpe(t,e),{commentString:s}=i.options;if(t.commentBefore){n.length!==1&&n.unshift("");const l=s(t.commentBefore);n.unshift(P0(l,""))}let o=!1,a=null;if(t.contents){if(ao(t.contents)){if(t.contents.spaceBefore&&r&&n.push(""),t.contents.commentBefore){const u=s(t.contents.commentBefore);n.push(P0(u,""))}i.forceBlockIndent=!!t.comment,a=t.contents.comment}const l=a?void 0:()=>o=!0;let c=Nx(t.contents,i,()=>a=null,l);a&&(c+=Ey(c,"",s(a))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(Nx(t.contents,i));if(t.directives?.docEnd)if(t.comment){const l=s(t.comment);l.includes(` 476`)?(n.push("..."),n.push(P0(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=t.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(P0(s(l),"")))}return n.join(` 477`)+` 478`}let TO=class zpe{constructor(e,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Eh,{value:wB});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Dl({ver
vendor: 8,199 bytes, lines 478-484
478sion:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,i,r)}clone(){const e=Object.create(zpe.prototype,{[Eh]:{value:wB}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ao(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Tv(this.contents)&&this.contents.add(e)}addIn(e,n){Tv(this.contents)&&this.contents.addIn(e,n)}createAlias(e,n){if(!e.anchor){const r=ppe(this);e.anchor=!n||r.has(n)?mpe(n||"a",r):n}return new yO(e.anchor)}createNode(e,n,r){let i;if(typeof n=="function")e=n.call({"":e},"",e),i=n;else if(Array.isArray(n)){const b=S=>typeof S=="number"||S instanceof String||S instanceof Number,w=n.filter(b).map(String);w.length>0&&(n=n.concat(w)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=r??{},{onAnchor:h,setAnchors:d,sourceObjects:p}=zKe(this,o||"a"),g={aliasDuplicateObjects:s??!0,keepUndefined:l??!1,onAnchor:h,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:p},y=Dk(e,u,g);return a&&so(y)&&(y.flow=!0),d(),y}createPair(e,n,r={}){const i=this.createNode(e,null,r),s=this.createNode(n,null,r);return new pl(i,s)}delete(e){return Tv(this.contents)?this.contents.delete(e):!1}deleteIn(e){return R3(e)?this.contents==null?!1:(this.contents=null,!0):Tv(this.contents)?this.contents.deleteIn(e):!1}get(e,n){return so(this.contents)?this.contents.get(e,n):void 0}getIn(e,n){return R3(e)?!n&&fs(this.contents)?this.contents.value:this.contents:so(this.contents)?this.contents.getIn(e,n):void 0}has(e){return so(this.contents)?this.contents.has(e):!1}hasIn(e){return R3(e)?this.contents!==void 0:so(this.contents)?this.contents.hasIn(e):!1}set(e,n){this.contents==null?this.contents=c8(this.schema,[e],n):Tv(this.contents)&&this.contents.set(e,n)}setIn(e,n){R3(e)?this.contents=n:this.contents==null?this.contents=c8(this.schema,Array.from(e),n):Tv(this.contents)&&this.contents.setIn(e,n)}setSchema(e,n={}){typeof e=="number"&&(e=String(e));let r;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Dl({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Dl({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new $pe(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=xh(this.contents,n??"",a);if(typeof s=="function")for(const{count:c,res:u}of a.anchors.values())s(u,c);return typeof o=="function"?A2(o,{"":l},"",l):l}toJSON(e,n){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:n})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const n=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return fYe(this,e)}};function Tv(t){if(so(t))return!0;throw new Error("Expected a YAML collection as document contents")}class SU extends Error{constructor(e,n,r,i){super(),this.name=e,this.code=r,this.message=i,this.pos=n}}class Py extends SU{constructor(e,n,r){super("YAMLParseError",e,n,r)}}class Hpe extends SU{constructor(e,n,r){super("YAMLWarning",e,n,r)}}const h8=(t,e)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>e.linePos(a));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=t.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const a=Math.min(s-39,o.length-79);o="â¦"+o.substring(a),s-=a-1}if(o.length>80&&(o=o.substring(0,79)+"â¦"),r>1&&/^ *$/.test(o.substring(0,s))){let a=t.substring(e.lineStarts[r-2],e.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`⦠479`),o=a+o}if(/[^ ]/.test(o)){let a=1;const l=n.linePos[1];l&&l.line===r&&l.col>i&&(a=Math.max(1,Math.min(l.col-i,80-s)));const c=" ".repeat(s)+"^".repeat(a);n.message+=`: 480 481${o} 482${c} 483`}};function Rx(t,{flow:e,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,h="",d="",p=!1,g=!1,y=null,b=null,w=null,S=null,T=null,D=null,E=null;for(const $ of t)switch(g&&($.type!=="space"&&$.type!=="newline"&&$.type!=="comma"&&s($.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),y&&(c&&$.type!=="comment"&&$.type!=="newline"&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),$.type){case"space":!e&&(n!=="doc-start"||r?.type!=="flow-collection")&&$.source.includes(" ")&&(y=$),u=!0;break;case"comment":{u||s($,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const W=$.source.substring(1)||" ";h?h+=d+W:h=W,d="",c=!1;break}case"newline":c?h?h+=$.source:(!D||n!=="seq-item-ind")&&(l=!0):d+=$.source,c=!0,p=!0,(b||w)&&(S=$),u=!0;break;case"anchor":b&&s($,"MULTIPLE_ANCHORS","A node can have at most one anchor"),$.source.endsWith(":")&&s($.offset+$.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=$,E===null&&(E=$.offset),c=!1,u=!1,g=!0;break;case"tag":{w&&s($,"MULTIPLE_TAGS","A node can have at most one tag"),w=$,E===null&&(E=$.offset),c=!1,u=!1,g=!0;break}case n:(b||w)&&s($,"BAD_PROP_ORDER",`Anchors and tags must be after the ${$.source} indicator`),D&&s($,"UNEXPECTED_TOKEN",`Unexpected ${$.source} in ${e??"collection"}`),D=$,c=n==="seq-item-ind"||n==="explicit-key-ind",u=!1;break;case"comma":if(e){T&&s($,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),T=$,c=!1,u=!1;break}default:s($,"UNEXPECTED_TOKEN",`Unexpected ${$.type} token`),c=!1,u=!1}const O=t[t.length-1],P=O?O.offset+O.source.length:i;return g&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(c&&y.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:T,found:D,spaceBefore:l,comment:h,hasNewline:p,anchor:b,tag:w,newlineAfterProp:S,end:P,start:E??P}}function Mk(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(` 484`))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(Mk(e.key)||Mk(e.value))return!0}return!1;default:return!0}}function _B(t,e,n){if(e?.type==="flow-collection"){const r=e.end[0];r.indent===t&&(r.source==="]"||r.source==="}")&&Mk(e)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Upe(t,e,n){const{uniqueKeys:r}=t.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,o)=>s===o||fs(s)&&fs(o)&&s.value===o.value;return e.some(s=>i(s.key,n))}const mZ="All mapping items must start at the same column";function pYe({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=s?.nodeClass??Su,a=new o(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const u of r.items){const{start:h,key:d,sep:p,value:g}=u,y=Rx(h,{indicator:"explicit-key-ind",next:d??p?.[0],offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),b=!y.found;if(b){if(d&&(d.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==r.indent&&i(l,"BAD_INDENT",mZ)),!y.anchor&&!y.tag&&!p){c=y.end,y.c
484omment&&(a.comment?a.comment+=` 485`+y.comment:a.comment=y.comment);continue}(y.newlineAfterProp||Mk(d))&&i(d??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else y.found?.indent!==r.indent&&i(l,"BAD_INDENT",mZ);n.atKey=!0;const w=y.end,S=d?t(n,d,y,i):e(n,w,h,null,y,i);n.schema.compat&&_B(r.indent,d,i),n.atKey=!1,Upe(n,a.items,S)&&i(w,"DUPLICATE_KEY","Map keys must be unique");const T=Rx(p??[],{indicator:"map-value-ind",next:g,offset:S.range[2],onError:i,parentIndent:r.indent,startOnNewline:!d||d.type==="block-scalar"});if(l=T.end,T.found){b&&(g?.type==="block-map"&&!T.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&y.start<T.found.offset-1024&&i(S.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const D=g?t(n,g,T,i):e(n,l,p,null,T,i);n.schema.compat&&_B(r.indent,g,i),l=D.range[2];const E=new pl(S,D);n.options.keepSourceTokens&&(E.srcToken=u),a.items.push(E)}else{b&&i(S.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),T.comment&&(S.comment?S.c
vendor: 40,199 bytes, lines 485-556
485omment+=` 486`+T.comment:S.comment=T.comment);const D=new pl(S);n.options.keepSourceTokens&&(D.srcToken=u),a.items.push(D)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,l,c??l],a}function mYe({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=s?.nodeClass??jg,a=new o(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let l=r.offset,c=null;for(const{start:u,value:h}of r.items){const d=Rx(u,{indicator:"seq-item-ind",next:h,offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||h)h&&h.type==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(a.comment=d.comment);continue}const p=h?t(n,h,d,i):e(n,d.end,u,null,d,i);n.schema.compat&&_B(r.indent,h,i),l=p.range[2],a.items.push(p)}return a.range=[r.offset,l,c??l],a}function n_(t,e,n,r){let i="";if(t){let s=!1,o="";for(const a of t){const{source:l,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:i,offset:e}}const MM="Block collections are not allowed within flow collections",NM=t=>t&&(t.type==="block-map"||t.type==="block-seq");function gYe({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=r.start.source==="{",a=o?"flow map":"flow sequence",l=s?.nodeClass??(o?Su:jg),c=new l(n.schema);c.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset+r.start.source.length;for(let b=0;b<r.items.length;++b){const w=r.items[b],{start:S,key:T,sep:D,value:E}=w,O=Rx(S,{flow:a,indicator:"explicit-key-ind",next:T??D?.[0],offset:h,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!D&&!E){b===0&&O.comma?i(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):b<r.items.length-1&&i(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),O.comment&&(c.comment?c.comment+=` 487`+O.comment:c.comment=O.comment),h=O.end;continue}!o&&n.options.strict&&Mk(T)&&i(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)O.comma&&i(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(O.comma||i(O.start,"MISSING_CHAR",`Missing , between ${a} items`),O.comment){let P="";e:for(const $ of S)switch($.type){case"comma":case"space":break;case"comment":P=$.source.substring(1);break e;default:break e}if(P){let $=c.items[c.items.length-1];Gs($)&&($=$.value??$.key),$.comment?$.comment+=` 488`+P:$.comment=P,O.comment=O.comment.substring(P.length+1)}}if(!o&&!D&&!O.found){const P=E?t(n,E,O,i):e(n,O.end,D,null,O,i);c.items.push(P),h=P.range[2],NM(E)&&i(P.range,"BLOCK_IN_FLOW",MM)}else{n.atKey=!0;const P=O.end,$=T?t(n,T,O,i):e(n,P,S,null,O,i);NM(T)&&i($.range,"BLOCK_IN_FLOW",MM),n.atKey=!1;const W=Rx(D??[],{flow:a,indicator:"map-value-ind",next:E,offset:$.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(W.found){if(!o&&!O.found&&n.options.strict){if(D)for(const Z of D){if(Z===W.found)break;if(Z.type==="newline"){i(Z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<W.found.offset-1024&&i(W.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?i(E,"MISSING_CHAR",`Missing space after : in ${a}`):i(W.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const H=E?t(n,E,W,i):W.found?e(n,W.end,D,null,W,i):null;H?NM(E)&&i(H.range,"BLOCK_IN_FLOW",MM):W.comment&&($.comment?$.comment+=` 489`+W.comment:$.comment=W.comment);const K=new pl($,H);if(n.options.keepSourceTokens&&(K.srcToken=w),o){const Z=c;Upe(n,Z.items,$)&&i(P,"DUPLICATE_KEY","Map keys must be unique"),Z.items.push(K)}else{const Z=new Su(n.schema);Z.flow=!0,Z.items.push(K);const oe=(H??$).range;Z.range=[$.range[0],oe[1],oe[2]],c.items.push(Z)}h=H?H.range[2]:W.end}}const d=o?"}":"]",[p,...g]=r.end;let y=h;if(p&&p.source===d)y=p.offset+p.source.length;else{const b=a[0].toUpperCase()+a.substring(1),w=u?`${b} must end with a ${d}`:`${b} in block collection must be sufficiently indented and end with a ${d}`;i(h,u?"MISSING_CHAR":"BAD_INDENT",w),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){const b=n_(g,y,n.options.strict,i);b.comment&&(c.comment?c.comment+=` 490`+b.comment:c.comment=b.comment),c.range=[r.offset,y,b.offset]}else c.range=[r.offset,y,y];return c}function RM(t,e,n,r,i,s){const o=n.type==="block-map"?pYe(t,e,n,r,s):n.type==="block-seq"?mYe(t,e,n,r,s):gYe(t,e,n,r,s),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function yYe(t,e,n,r,i){const s=r.tag,o=s?e.directives.tagName(s.source,d=>i(s,"TAG_RESOLVE_FAILED",d)):null;if(n.type==="block-seq"){const{anchor:d,newlineAfterProp:p}=r,g=d&&s?d.offset>s.offset?d:s:d??s;g&&(!p||p.offset<g.offset)&&i(g,"MISSING_CHAR","Missing newline after block sequence props")}const a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!s||!o||o==="!"||o===Su.tagName&&a==="map"||o===jg.tagName&&a==="seq")return RM(t,e,n,i,o);let l=e.schema.tags.find(d=>d.tag===o&&d.collection===a);if(!l){const d=e.schema.knownTags[o];if(d&&d.collection===a)e.schema.tags.push(Object.assign({},d,{default:!1})),l=d;else return d?i(s,"BAD_COLLECTION_TYPE",`${d.tag} used for ${a} collection, but expects ${d.collection??"scalar"}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),RM(t,e,n,i,o)}const c=RM(t,e,n,i,o,l),u=l.resolve?.(c,d=>i(s,"TAG_RESOLVE_FAILED",d),e.options)??c,h=ao(u)?u:new Dr(u);return h.range=c.range,h.tag=o,l?.format&&(h.format=l.format),h}function Vpe(t,e,n){const r=e.offset,i=bYe(e,t.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?Dr.BLOCK_FOLDED:Dr.BLOCK_LITERAL,o=e.source?vYe(e.source):[];let a=o.length;for(let y=o.length-1;y>=0;--y){const b=o[y][1];if(b===""||b==="\r")a=y;else break}if(a===0){const y=i.chomp==="+"&&o.length>0?` 491`.repeat(Math.max(1,o.length-1)):"";let b=r+i.length;return e.source&&(b+=e.source.length),{value:y,type:s,comment:i.comment,range:[r,b,b]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let y=0;y<a;++y){const[b,w]=o[y];if(w===""||w==="\r")i.indent===0&&b.length>l&&(l=b.length);else{b.length<l&&n(c+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=b.length),u=y,l===0&&!t.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=b.length+w.length+1}for(let y=o.length-1;y>=a;--y)o[y][0].length>l&&(a=y+1);let h="",d="",p=!1;for(let y=0;y<u;++y)h+=o[y][0].slice(l)+` 492`;for(let y=u;y<a;++y){let[b,w]=o[y];c+=b.length+w.length+1;const S=w[w.length-1]==="\r";if(S&&(w=w.slice(0,-1)),w&&b.length<l){const D=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-w.length-(S?2:1),"BAD_INDENT",D),b=""}s===Dr.BLOCK_LITERAL?(h+=d+b.slice(l)+w,d=` 493`):b.length>l||w[0]===" "?(d===" "?d=` 494`:!p&&d===` 495`&&(d=` 496 497`),h+=d+b.slice(l)+w,d=` 498`,p=!0):w===""?d===` 499`?h+=` 500`:d=` 501`:(h+=d+w,d=" ",p=!1)}switch(i.chomp){case"-":break;case"+":for(let y=a;y<o.length;++y)h+=` 502`+o[y][0].slice(l);h[h.length-1]!==` 503`&&(h+=` 504`);break;default:h+=` 505`}const g=r+i.length+e.source.length;return{value:h,type:s,comment:i.comment,range:[r,g,g]}}function bYe({offset:t,props:e},n,r){if(e[0].type!=="block-scalar-header")return r(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=e[0],s=i[0];let o=0,a="",l=-1;for(let d=1;d<i.length;++d){const p=i[d];if(!a&&(p==="-"||p==="+"))a=p;else{const g=Number(p);!o&&g?o=g:l===-1&&(l=t+d)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",h=i.length;for(let d=1;d<e.length;++d){const p=e[d];switch(p.type){case"space":c=!0;case"newline":h+=p.source.length;break;case"comment":n&&!c&&r(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=p.source.length,u=p.source.substring(1);break;case"error":r(p,"UNEXPECTED_TOKEN",p.message),h+=p.source.length;break;default:{const g=`Unexpected token in block scalar header: ${p.type}`;r(p,"UNEXPECTED_TOKEN",g);const y=p.source;y&&typeof y=="string"&&(h+=y.length)}}}return{mode:s,indent:o,chomp:a,comment:u,length:h}}function vYe(t){const e=t.split(/\n( *)/),n=e[0],r=n.match(/^( *)/),s=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<e.length;o+=2)s.push([e[o],e[o+1]]);return s}function Wpe(t,e,n){const{offset:r,type:i,source:s,end:o}=t;let a,l;const c=(d,p,g)=>n(r+d,p,g);switch(i){case"scalar":a=Dr.PLAIN,l=xYe(s,c);break;case"single-quoted-scalar":a=Dr.QUOTE_SINGLE,l=wYe(s,c);break;case"double-quoted-scalar":a=Dr.QUOTE_DOUBLE,l=SYe(s,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const u=r+s.length,h=n_(o,u,e,n);return{value:l,type:a,comment:h.comment,range:[r,u,h.offset]}}function xYe(t,e){let n="";switch(t[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${t[0]}`;break}case"@":case"`":{n=`reserved character ${t[0]}`;break}}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),qpe(t)}function wYe(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),qpe(t.slice(1,-1)).replace(/''/g,"'")}function qpe(t){let e,n;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r? 506`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r? 507`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=e.exec(t);if(!r)return t;let i=r[1],s=" ",o=e.lastIndex;for(n.lastIndex=o;r=n.exec(t);)r[1]===""?s===` 508`?i+=s:s=` 509`:(i+=s+r[1],s=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(t),i+s+(r?.[1]??"")}function SYe(t,e){let n="";for(let r=1;r<t.length-1;++r){const i=t[r];if(!(i==="\r"&&t[r+1]===` 510`))if(i===` 511`){const{fold:s,offset:o}=kYe(t,r);n+=s,r=o}else if(i==="\\"){let s=t[++r];const o=CYe[s];if(o)n+=o;else if(s===` 512`)for(s=t[r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="\r"&&t[r+1]===` 513`)for(s=t[++r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="x"||s==="u"||s==="U"){const a={x:2,u:4,U:8}[s];n+=_Ye(t,r+1,a,e),r+=a}else{const a=t.substr(r-1,2);e(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(i===" "||i===" "){const s=r;let o=t[r+1];for(;o===" "||o===" ";)o=t[++r+1];o!==` 514`&&!(o==="\r"&&t[r+2]===` 515`)&&(n+=r>s?t.slice(s,r+1):i)}else n+=i}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}function kYe(t,e){let n="",r=t[e+1];for(;(r===" "||r===" "||r===` 516`||r==="\r")&&!(r==="\r"&&t[e+2]!==` 517`);)r===` 518`&&(n+=` 519`),e+=1,r=t[e+1];return n||(n=" "),{fold:n,offset:e}}const CYe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` 520`,r:"\r",t:" ",v:"\v",N:"Â ",_:"Â ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function _Ye(t,e,n,r){const i=t.substr(e,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const a=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}function Gpe(t,e,n,r){const{value:i,type:s,comment:o,range:a}=e.type==="block-scalar"?Vpe(t,e,r):Wpe(e,t.options.strict,r),l=n?t.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null;let c;t.options.stringKeys&&t.atKey?c=t.schema[op]:l?c=TYe(t.schema,i,l,n,r):e.type==="scalar"?c=EYe(t,i,e,r):c=t.schema[op];let u;try{const h=c.resolve(i,d=>r(n??e,"TAG_RESOLVE_FAILED",d),t.options);u=fs(h)?h:new Dr(h)}catch(h){const d=h instanceof Error?h.message:String(h);r(n??e,"TAG_RESOLVE_FAILED",d),u=new Dr(i)}return u.range=a,u.source=i,s&&(u.type=s),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function TYe(t,e,n,r,i){if(n==="!")return t[op];const s=[];for(const a of t.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)s.push(a);else return a;for(const a of s)if(a.test?.test(e))return a;const o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[op])}function EYe({atKey:t,directives:e,schema:n},r,i,s){const o=n.tags.find(a=>(a.default===!0||t&&a.default==="key")&&a.test?.test(r))||n[op];if(n.compat){const a=n.compat.find(l=>l.default&&l.test?.test(r))??n[op];if(o.tag!==a.tag){const l=e.tagString(o.tag),c=e.tagString(a.tag),u=`Value may be parsed as either ${l} or ${c}`;s(i,"TAG_RESOLVE_FAILED",u,!0)}}return o}function AYe(t,e,n){if(e){n===null&&(n=e.length);for(let r=n-1;r>=0;--r){let i=e[r];switch(i.type){case"space":case"comment":case"newline":t-=i.source.length;continue}for(i=e[++r];i?.type==="space";)t+=i.source.length,i=e[++r];break}}return t}const PYe={composeNode:Kpe,composeEmptyNode:kU};function Kpe(t,e,n,r){const i=t.atKey,{spaceBefore:s,comment:o,anchor:a,tag:l}=n;let c,u=!0;switch(e.type){case"alias":c=OYe(t,e,r),(a||l)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Gpe(t,e,l,r),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=yYe(PYe,t,e,n,r),a&&(c.anchor=a.source.substring(1));break;default:{const h=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",h),c=kU(t,e.offset,void 0,null,n,r),u=!1}}return a&&c.anchor===""&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&t.options.stringKeys&&(!fs(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),t.options.keepSourceTokens&&u&&(c.srcToken=e),c}function kU(t,e,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},c){const u={type:"scalar",offset:AYe(e,n,r),indent:-1,source:""},h=Gpe(t,u,a,c);return o&&(h.anchor=o.source.substring(1),h.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=l),h}function OYe({options:t},{offset:e,source:n,end:r},i){const s=new yO(n.substring(1));s.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+n.length,a=n_(r,o,t.strict,i);return s.range=[e,o,a.offset],a.comment&&(s.comment=a.comment),s}function IYe(t,e,{offset:n,start:r,value:i,end:s},o){const a=Object.assign({_directives:e},t),l=new TO(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=Rx(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?Kpe(c,i,u,o):kU(c,u.end,r,null,u,o);const h=l.contents.range[2],d=n_(s,h,!1,o);return d.comment&&(l.comment=d.comment),l.range=[n,h,d.offset],l}function HS(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:n}=t;return[e,e+(typeof n=="string"?n.length:1)]}function gZ(t){let e="",n=!1,r=!1;for(let i=0;i<t.length;++i){const s=t[i];switch(s[0]){case"#":e+=(e===""?"":r?` 521 522`:` 523`)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}class CU{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const o=HS(n);s?this.warnings.push(new Hpe(o,r,i)):this.errors.push(new Py(o,r,i))},this.directives=new Dl({version:e.version||"1.2"}),this.options=e}decorate(e,n){const{comment:r,afterEmptyLine:i}=gZ(this.prelude);if(r){const s=e.contents;if(n)e.comment=e.comment?`${e.comment} 524${r}`:r;else if(i||e.directives.docStart||!s)e.commentBefore=r;else if(so(s)&&!s.flow&&s.items.length>0){let o=s.items[0];Gs(o)&&(o=o.key);const a=o.commentBefore;o.commentBefore=a?`${r} 525${a}`:r}else{const o=s.commentBefore;s.commentBefore=o?`${r} 526${o}`:r}}n?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:gZ(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,n=!1,r=-1){for(const i of e)yield*this.next(i);yield*this.end(n,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(n,r,i)=>{const s=HS(e);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const n=IYe(this.options,this.directives,e,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const n=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new Py(HS(e),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Py(HS(e),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=n_(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r} 527${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Py(HS(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const r=Object.assign({_directives:this.directives},this.options),i=new TO(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}function DYe(t,e=!0,n){if(t){const r=(i,s,o)=>{const a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(n)n(a,s,o);else throw new Py([a,a+1],s,o)};switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Wpe(t,e,r);case"block-scalar":return Vpe({options:{strict:e}},t,r)}}return null}function MYe(t,e){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:s=-1,type:o="PLAIN"}=e,a=e_({type:o,value:t},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:r,source:` 528`}];switch(a[0]){case"|":case">":{const c=a.indexOf(` 529`),u=a.substring(0,c),h=a.substring(c+1)+` 530`,d=[{type:"block-scalar-header",offset:s,indent:r,source:u}];return Ype(d,l)||d.push({type:"newline",offset:-1,indent:r,source:` 531`}),{type:"block-scalar",offset:s,indent:r,props:d,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:a,end:l};default:return{type:"scalar",offset:s,indent:r,source:a,end:l}}}function NYe(t,e,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:s=!1,type:o}=n,a="indent"in t?t.indent:null;if(r&&typeof a=="number"&&(a+=2),!o)switch(t.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const c=t.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const l=e_({type:o,value:e},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":RYe(t,l);break;case'"':LM(t,l,"double-quoted-scalar");break;case"'":LM(t,l,"single-quoted-scalar");break;default:LM(t,l,"scalar")}}function RYe(t,e){const n=e.indexOf(` 532`),r=e.substring(0,n),i=e.substring(n+1)+` 533`;if(t.type==="block-scalar"){const s=t.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=r,t.source=i}else{const{offset:s}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:s,indent:o,source:r}];Ype(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:` 534`});for(const l of Object.keys(t))l!=="type"&&l!=="offset"&&delete t[l];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:i})}}function Ype(t,e){if(e)for(const n of e)switch(n.type){case"space":case"comment":t.push(n);break;case"newline":return t.push(n),!0}return!1}function LM(t,e,n){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=n,t.source=e;break;case"block-scalar":{const r=t.props.slice(1);let i=e.length;t.props[0].type==="block-scalar-header"&&(i-=t.props[0].source.length);for(const s of r)s.offset+=i;delete t.props,Object.assign(t,{type:n,source:e,end:r});break}case"block-map":case"block-seq":{const i={type:"newline",offset:t.offset+e.length,indent:t.indent,source:` 535`};delete t.items,Object.assign(t,{type:n,source:e,end:[i]});break}default:{const r="indent"in t?t.indent:-1,i="end"in t&&Array.isArray(t.end)?t.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(t))s!=="type"&&s!=="offset"&&delete t[s];Object.assign(t,{type:n,indent:r,source:e,end:i})}}}const LYe=t=>"type"in t?d8(t):N6(t);function d8(t){switch(t.type){case"block-scalar":{let e="";for(const n of t.props)e+=d8(n);return e+t.source}case"block-map":case"block-seq":{let e="";for(const n of t.items)e+=N6(n);return e}case"flow-collection":{let e=t.start.source;for(const n of t.items)e+=N6(n);for(const n of t.end)e+=n.source;return e}case"document":{let e=N6(t);if(t.end)for(const n of t.end)e+=n.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(const n of t.end)e+=n.source;return e}}}function N6({start:t,key:e,sep:n,value:r}){let i="";for(const s of t)i+=s.source;if(e&&(i+=d8(e)),n)for(const s of n)i+=s.source;return r&&(i+=d8(r)),i}const TB=Symbol("break visit"),BYe=Symbol("skip children"),Qpe=Symbol("remove item");function db(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),Xpe(Object.freeze([]),t,e)}db.BREAK=TB;db.SKIP=BYe;db.REMOVE=Qpe;db.itemAtPath=(t,e)=>{let n=t;for(const[r,i]of e){const s=n?.[r];if(s&&"items"in s)n=s.items[i];else return}return n};db.parentCollection=(t,e)=>{const n=db.itemAtPath(t,e.slice(0,-1)),r=e[e.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function Xpe(t,e,n){let r=n(e,t);if(typeof r=="symbol")return r;for(const i of["key","value"]){const s=e[i];if(s&&"items"in s){for(let o=0;o<s.items.length;++o){const a=Xpe(Object.freeze(t.concat([[i,o]])),s.items[o],n);if(typeof a=="number")o=a-1;else{if(a===TB)return TB;a===Qpe&&(s.items.splice(o,1),o-=1)}}typeof r=="function"&&i==="key"&&(r=r(e,t))}}return typeof r=="function"?r(e,t):r}const EO="\uFEFF",AO="�",PO="�",Nk="�",FYe=t=>!!t&&"items"in t,$Ye=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function jYe(t){switch(t){case EO:return"<BOM>";case AO:return"<DOC>";case PO:return"<FLOW_END>";case Nk:return"<SCALAR>";default:return JSON.stringify(t)}}function Jpe(t){switch(t){case EO:return"byte-order-mark";case AO:return"doc-mode";case PO:return"flow-error-end";case Nk:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` 536`:case`\r 537`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const zYe=Object.freeze(Object.defineProperty({__proto__:null,BOM:EO,DOCUMENT:AO,FLOW_END:PO,SCALAR:Nk,createScalarToken:MYe,isCollection:FYe,isScalar:$Ye,prettyToken:jYe,resolveAsScalar:DYe,setScalarValue:NYe,stringify:LYe,tokenType:Jpe,visit:db},Symbol.toStringTag,{value:"Module"}));function Jh(t){switch(t){case void 0:case" ":case` 538`:case"\r":case" ":return!0;default:return!1}}const yZ=new Set("0123456789ABCDEFabcdef"),HYe=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),E5=new Set(",[]{}"),UYe=new Set(` ,[]{} 539\r `),BM=t=>!t||UYe.has(t);let Zpe=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,n=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,n=this.buffer[e];for(;n===" "||n===" ";)n=this.buffer[++e];return!n||n==="#"||n===` 540`?!0:n==="\r"?this.buffer[e+1]===` 541`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let n=this.buffer[e];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+e];if(n==="\r"){const i=this.buffer[r+e+1];if(i===` 542`||!i&&!this.atEnd)return e+r+1}return n===` 543`||r>=this.indentNext||!n&&!this.atEnd?e+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(e,3);if((r==="---"||r==="...")&&Jh(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(` 544`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===EO&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let n=e.length,r=e.indexOf("#");for(;r!==-1;){const s=e[r-1];if(s===" "||s===" "){n=r-1;break}else r=e.indexOf("#",r+1)}for(;;){const s=e[n-1];if(s===" "||s===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-n),yield*this.pushNewline(),"stream"}return yield AO,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Jh(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Jh(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Jh(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(e[n]){case"#":yield*this.pushCount(e.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(BM),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,n,r=-1;do e=yield*this.pushNewline(),e>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(e+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Jh(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield PO,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(BM),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Jh(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let n=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(` 545`,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(` 546`,s)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const n=this.buffer[++e];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Jh(n)||n==="#")}*parseBlockScalar(){let e=this.pos-1,n=0,r;e:for(let s=this.pos;r=this.buffer[s];++s)switch(r){case" ":n+=1;break;case` 547`:e=s,n=0;break;case"\r":{const o=this.buffer[s+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===` 548`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const s=this.continueScalar(e+1);if(s===-1)break;e=this.buffer.indexOf(` 549`,s)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===` 550`;)r=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let s=e-1,o=this.buffer[s];o==="\r"&&(o=this.buffer[--s]);const a=s;for(;o===" ";)o=this.buffer[--s];if(o===` 551`&&s>=this.pos&&s+1+n>a)e=s;else break}while(!0);return yield Nk,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(Jh(s)||e&&E5.has(s))break;n=r}else if(Jh(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===` 552`?(r+=1,i=` 553`,s=this.buffer[r+1]):n=r),s==="#"||e&&E5.has(s))break;if(i===` 554`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(e&&E5.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Nk,yield*this.pushToIndex(n+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,n){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(BM))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,n=this.charAt(1);if(Jh(n)||e&&E5.has(n))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,n=this.buffer[e];for(;!Jh(n)&&n!==">";)n=this.buffer[++e];return yield*this.pushToIndex(n===">"?e+1:e,!1)}else{let e=this.pos+1,n=this.buffer[e];for(;n;)if(HYe.has(n))n=this.buffer[++e];else if(n==="%"&&yZ.has(this.buffer[e+1])&&yZ.has(this.buffer[e+2]))n=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===` 555`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===` 556`?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||e&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(e){let n=this.pos,r=this.buffer[n];for(;!e(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}};class e0e{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<e?n=s+1:r=s}if(this.lineStarts[n]===e)return{line:n+1,col:1};if(n===0)return{line:0,col:e};const i=this.lineStarts[n-1];return{line:n,col:e-i+1}}}}function ag(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}function bZ(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function t0e(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function A5(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function Ev(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function vZ(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!ag(e.start,"explicit-key-ind")&&!ag(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,t0e(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}let _U=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Zpe,this.onNewLine=e}*parse(e,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(e,n))yield*this.next(r);n||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const n=Jpe(e);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const r=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const n=e??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&vZ(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&bZ(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{bZ(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}
vendor: 5,160 bytes, lines 556-558
556*scalar(e){if(this.type==="map-value-ind"){const n=A5(this.peek(2)),r=Ev(n);let i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(` 557`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(` 558`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(i&&n.sep&&!n.value){const o=[];for(let a=0;a<n.sep.length;++a){const l=n.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(s.push(this.sourceToken),e.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ag(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(t0e(n.key)&&!ag(n.sep,"newline")){const o=Ev(n.start),a=n.key,l=n.sep;l.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(ag(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=Ev(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?e.items.push({start:s,key:null,sep:[this.sourceToken]}):ag(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||n.value?(e.items.push({start:s,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!n.explicitKey&&n.sep&&!ag(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&e.items.push({start:s});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||ag(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];
vendor: 3,608 bytes, lines 558-560
558if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=A5(r),s=Ev(i);vZ(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(` 559`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(` 560`,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=A5(e),r=Ev(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=A5(e),r=Ev(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function n0e(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new e0e||null,prettyErrors:e}}function VYe(t,e={}){const{lineCounter:n,prettyErrors:r}=n0e(e),i=new _U(n?.addNewLine),s=new CU(e),o=Array.from(s.compose(i.parse(t)));if(r&&n)for(const a of o)a.errors.forEach(h8(t,n)),a.warnings.forEac
560h(h8(t,n));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function r0e(t,e={}){const{lineCounter:n,prettyErrors:r}=n0e(e),i=new _U(n?.addNewLine),s=new CU(e);let o=null;for(const a of s.compose(i.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new Py(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(h8(t,n)),o.warnings.forEach(h8(t,n))),o}function i0e(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=r0e(t,n);if(!i)return null;if(i.warnings.forEach(s=>xpe(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function f8(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return Mb(t)&&!r?t.toString(n):new TO(t,r,n).toString(n)}const xZ=Object.freeze(Object.defineProperty({__proto__:null,Alias:yO,CST:zYe,Composer:CU,Document:TO,Lexer:Zpe,LineCounter:e0e,Pair:pl,Parser:_U,Scalar:Dr,Schema:$pe,YAMLError:SU,YAMLMap:Su,YAMLParseError:Py,YAMLSeq:jg,YAMLWarning:Hpe,isAlias:Db,isCollection:so,isDocument:Mb,isMap:Cw,isNode:ao,isPair:Gs,isScalar:fs,isSeq:_w,parse:i0e,parseAllDocuments:VYe,parseDocument:r0e,stringify:f8,visit:$g,visitAsync:gO},Symbol.toStringTag,{value:"Module"})),s0e=["chats","messages","shared","functions","starred","files"];function WYe(t){return s0e.includes(t)}class qYe extends l8{chats;messages;shared;functions;starred;files;constructor(){super("ChatCraftDatabase"),this.version(1).stores({chats:"id, date, summary, messageIds",messages:"id, date, chatId, type, model, user, text"}),this.version(2).stores({chats:"id, date, shareUrl, summary, messageIds"}),this.version(3).stores({messages:"id, date, chatId, type, model, user, text, versions"}),this.version(4).stores({chats:"id, date, shareUrl, summary, messageIds"}),this.version(5).stores({chats:"id, date, summary, messageIds",shared:"id, url, summary, date, chat"}).upgrade(async e=>(await e.table("chats").each(async n=>{const r=await e.table("chats").get(n.id);if(!r.shareUrl)return;const i=await e.table("messages").bulkGet(n.messageIds);await e.table("shared").add({id:r.id,url:r.shareUrl,summary:r.summary,date:r.date,chat:Vs.fromDB(r,i).toJSON()})}),e.table("chats").toCollection().modify(n=>{delete n.shareUrl}))),this.version(6).stores({functions:"id, date, name, description"}),this.version(7).stores({messages:"id, date, chatId, type, model, user, text, versions, starred"}),this.version(8).stores({messages:"id, date, chatId, type, model, user, text, versions, starred",starred:"text, date, usage"}).upgrade(async e=>{await e.table("messages").where({type:"system"}).each(async n=>{const r=await e.table("starred").get(n.text);if(r){const i=n.date>r.date?r.date:n.date;return await e.table("starred").where({text:r.text}).modify({usage:r.usage+1,date:i})}await e.table("starred").add({text:n.text,date:n.date,usage:1})}),await e.table("messages").where({type:"system"}).modify({starred:void 0})}),this.version(9).stores({messages:"id, date, chatId, type, model, user, text, imageUrls, versions"}),this.version(10).stores({messages:"id, date, chatId, type, model, user, text, imageUrls, versions"}).upgrade(async e=>{await e.table("messages").toCollection().modify(n=>{delete n.starred})}),this.version(11).stores({messages:"id, date, chatId, type, model, user, text, versions",files:"id, name, type, size, text, created"}),this.version(12).upgrade(async e=>{const n=await e.table("chats").filter(r=>Array.isArray(r.fileIds)&&r.fileIds.length>0).toArray();for(const r of n){const{fileIds:i}=r;if(!i?.length)continue;const s=(await Promise.all(i.map(async o=>{const a=await e.table("files").get(o);return a?{id:o,name:a.name}:null}))).filter(o=>o!==null);await e.table("chats").update(r.id,{...r,fileRefs:s,fileIds:void 0})}}),this.chats=this.table("chats"),this.messages=this.table("messages"),this.shared=this.table("shared"),this.functions=this.table("functions"),this.starred=this.table("starred"),this.files=this.table("files")}byTableName(e){switch(e){case"chats":return this.chats;case"messages":return this.messages;case"shared":return this.shared;case"functions":return this.functions;case"starred":return this.starred;case"files":return this.files;default:throw new Error(`Unknown table name: ${e}`)}}}const vr=new qYe;class _c{id;vendor;constructor(e){this.id=e;const n=e.split("/");this.vendor=n.at(-2)||"openai"}get name(){return this.id}
560get prettyModel(){return this.name.replace(`${this.vendor}/`,"")}get logoUrl(){const e=this.vendor.toLowerCase(),n=this.name.toLowerCase();if(e==="openai"&&n.includes("gpt"))return"/openai-logo.png";if(e==="anthropic")return"/anthropic-logo.png";if(e==="microsoft"&&n.includes("phi"))return"/microsoft-phi-logo.png";if(e==="google")return"/google-gemini-logo.png";if(n.includes("llama"))return"/meta-logo.png";if(n.includes("mixtral"))return"/mistral-logo.png";if(e==="tiiuae")return"/hugging-face-logo.png"}get logoBg(){let e=0;for(let r=0;r<this.name.length;r++)e=this.name.charCodeAt(r)+((e<<5)-e);let n="#";for(let r=0;r<3;r++){const i=e>>r*8&255;n+=("00"+i.toString(16)).substr(-2)}return n}get supportsFunctionCalling(){const{name:e}=this;return!this.name.includes("vision")&&(e.startsWith("gpt-3.5-turbo")||e.startsWith("gpt-4"))}get supportsImages(){return this.name.includes("vision")||this.name.startsWith("gpt-4-turbo")||this.name.startsWith("gpt-4o")}toString(){return this.id}toJSON(){return this.id}}const EB="RFC3986",AB={RFC1738:t=>String(t).replace(/%20/g,"+"),RFC3986:t=>String(t)},GYe="RFC1738",KYe=Array.isArray,rf=(()=>{const t=[];for(let e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),FM=1024,YYe=(t,e,n,r,i)=>{if(t.length===0)return t;let s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(a){return"%26%23"+parseInt(a.slice(2),16)+"%3B"});let o="";for(let a=0;a<s.length;a+=FM){const l=s.length>=FM?s.slice(a,a+FM):s,c=[];for(let u=0;u<l.length;++u){let h=l.charCodeAt(u);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===GYe&&(h===40||h===41)){c[c.length]=l.charAt(u);continue}if(h<128){c[c.length]=rf[h];continue}if(h<2048){c[c.length]=rf[192|h>>6]+rf[128|h&63];continue}if(h<55296||h>=57344){c[c.length]=rf[224|h>>12]+rf[128|h>>6&63]+rf[128|h&63];continue}u+=1,h=65536+((h&1023)<<10|l.charCodeAt(u)&1023),c[c.length]=rf[240|h>>18]+rf[128|h>>12&63]+rf[128|h>>6&63]+rf[128|h&63]}o+=c.join("")}return o};function QYe(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function wZ(t,e){if(KYe(t)){const n=[];for(let r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)}const XYe=Object.prototype.hasOwnProperty,o0e={brackets(t){return String(t)+"[]"},comma:"comma",indices(t,e){return String(t)+"["+e+"]"},repeat(t){return String(t)}},xf=Array.isArray,JYe=Array.prototype.push,a0e=function(t,e){JYe.apply(t,xf(e)?e:[e])},ZYe=Date.prototype.toISOString,ia={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:YYe,encodeValuesOnly:!1,format:EB,formatter:AB[EB],indices:!1,serializeDate(t){return ZYe.call(t)},skipNulls:!1,strictNullHandling:!1};function eQe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"}const $M={};function l0e(t,e,n,r,i,s,o,a,l,c,u,h,d,p,g,y,b,w){let S=t,T=w,D=0,E=!1;for(;(T=T.get($M))!==void 0&&!E;){const H=T.get(t);if(D+=1,typeof H<"u"){if(H===D)throw new RangeError("Cyclic object value");E=!0}typeof T.get($M)>"u"&&(D=0)}if(typeof c=="function"?S=c(e,S):S instanceof Date?S=d?.(S):n==="comma"&&xf(S)&&(S=wZ(S,function(H){return H instanceof Date?d?.(H):H})),S===null){if(s)return l&&!y?l(e,ia.encoder,b,"key",p):e;S=""}if(eQe(S)||QYe(S)){if(l){const H=y?e:l(e,ia.encoder,b,"key",p);return[g?.(H)+"="+g?.(l(S,ia.encoder,b,"value",p))]}return[g?.(e)+"="+g?.(String(S))]}const O=[];if(typeof S>"u")return O;let P;if(n==="comma"&&xf(S))y&&l&&(S=wZ(S,l)),P=[{value:S.length>0?S.join(",")||null:void 0}];else if(xf(c))P=c;else{const H=Object.keys(S);P=u?H.sort(u):H}const $=a?String(e).replace(/\./g,"%2E"):String(e),W=r&&xf(S)&&S.length===1?$+"[]":$;if(i&&xf(S)&&S.length===0)return W+"[]";for(let H=0;H<P.length;++H){const K=P[H],Z=typeof K=="object"&&typeof K.value<"u"?K.value:S[K];if(o&&Z===null)continue;const oe=h&&a?K.replace(/\./g,"%2E"):K,te=xf(S)?typeof n=="function"?n(W,oe):W:W+(h?"."+oe:"["+oe+"]");w.set(t,D);const re=new WeakMap;re.set($M,w),a0e(O,l0e(Z,te,n,r,i,s,o,a,n==="comma"&&y&&xf(S)?null:l,c,u,h,d,p,g,y,b,re))}return O}function tQe(t=ia){if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
560if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");const e=t.charset||ia.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=EB;if(typeof t.format<"u"){if(!XYe.call(AB,t.format))throw new TypeError("Unknown format option provided.");n=t.format}const r=AB[n];let i=ia.filter;(typeof t.filter=="function"||xf(t.filter))&&(i=t.filter);let s;if(t.arrayFormat&&t.arrayFormat in o0e?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=ia.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const o=typeof t.allowDots>"u"?t.encodeDotInKeys?!0:ia.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ia.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ia.allowEmptyArrays,arrayFormat:s,charset:e,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ia.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?ia.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ia.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:ia.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:ia.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ia.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ia.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ia.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ia.strictNullHandling}}function nQe(t,e={}){let n=t;const r=tQe(e);let i,s;typeof r.filter=="function"?(s=r.filter,n=s("",n)):xf(r.filter)&&(s=r.filter,i=s);const o=[];if(typeof n!="object"||n===null)return"";const a=o0e[r.arrayFormat],l=a==="comma"&&r.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);const c=new WeakMap;for(let d=0;d<i.length;++d){const p=i[d];r.skipNulls&&n[p]===null||a0e(o,l0e(n[p],p,a,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}const u=o.join(r.delimiter);let h=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),u.length>0?h+u:""}const qv="4.90.0";let SZ=!1,M4,c0e,u0e,PB,h0e,d0e,f0e,p0e,m0e;function rQe(t,e={auto:!1}){if(SZ)throw new Error(`you must \`import 'openai/shims/${t.kind}'\` before importing anything else from openai`);if(M4)throw new Error(`can't \`import 'openai/shims/${t.kind}'\` after \`import 'openai/shims/${M4}'\``);SZ=e.auto,M4=t.kind,c0e=t.fetch,u0e=t.FormData,PB=t.File,h0e=t.ReadableStream,d0e=t.getMultipartRequestOptions,f0e=t.getDefaultAgent,p0e=t.fileFromPath,m0e=t.isFsReadStream}class iQe{constructor(e){this.body=e}get[Symbol.toStringTag](){return"MultipartBody"}}function sQe({manuallyImported:t}={}){const e=t?"You may need to use polyfills":"Add one of these imports before your first `import ⦠from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";let n,r,i,s;try{n=fetch,r=Request,i=Response,s=Headers}catch(o){throw new Error(`this environment is missing the following Web Fetch API type: ${o.message}. ${e}`)}return{kind:"web",fetch:n,Request:r,Response:i,Headers:s,FormData:typeof FormData<"u"?FormData:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${e}`)}},Blob:typeof Blob<"u"?Blob:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${e}`)}},File:typeof File<"u"?File:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${e}`)}},ReadableStream:typeof ReadableStream<"u"?ReadableStream:class{constructor(){throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${e}`)}},getMultipartRequestOptions:async(o,a)=>({...a,body:new iQe(o)}),getDefaultAgent:o=>{},fileFromPath:()=>{throw new Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:o=>!1}}const g0e=()=>{M4||rQe(sQe(),{auto:!0})};g0e();
560class cr extends Error{}class Ga extends cr{constructor(e,n,r,i){super(`${Ga.makeMessage(e,n,r)}`),this.status=e,this.headers=i,this.request_id=i?.["x-request-id"],this.error=n;const s=n;this.code=s?.code,this.param=s?.param,this.type=s?.type}static makeMessage(e,n,r){const i=n?.message?typeof n.message=="string"?n.message:JSON.stringify(n.message):n?JSON.stringify(n):r;return e&&i?`${e} ${i}`:e?`${e} status code (no body)`:i||"(no status code or body)"}static generate(e,n,r,i){if(!e||!i)return new OO({message:r,cause:IB(n)});const s=n?.error;return e===400?new y0e(e,s,r,i):e===401?new b0e(e,s,r,i):e===403?new v0e(e,s,r,i):e===404?new x0e(e,s,r,i):e===409?new w0e(e,s,r,i):e===422?new S0e(e,s,r,i):e===429?new k0e(e,s,r,i):e>=500?new C0e(e,s,r,i):new Ga(e,s,r,i)}}class hh extends Ga{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}}class OO extends Ga{constructor({message:e,cause:n}){super(void 0,void 0,e||"Connection error.",void 0),n&&(this.cause=n)}}class TU extends OO{constructor({message:e}={}){super({message:e??"Request timed out."})}}class y0e extends Ga{}class b0e extends Ga{}class v0e extends Ga{}class x0e extends Ga{}class w0e extends Ga{}class S0e extends Ga{}class k0e extends Ga{}class C0e extends Ga{}class _0e extends cr{constructor(){super("Could not parse response content as the length limit was reached")}}class T0e extends cr{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}var P5=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},Y1=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},du;class IO{constructor(){du.set(this,void 0),this.buffer=new Uint8Array,P5(this,du,null,"f")}decode(e){if(e==null)return[];const n=e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?new TextEncoder().encode(e):e;let r=new Uint8Array(this.buffer.length+n.length);r.set(this.buffer),r.set(n,this.buffer.length),this.buffer=r;const i=[];let s;for(;(s=oQe(this.buffer,Y1(this,du,"f")))!=null;){if(s.carriage&&Y1(this,du,"f")==null){P5(this,du,s.index,"f");continue}if(Y1(this,du,"f")!=null&&(s.index!==Y1(this,du,"f")+1||s.carriage)){i.push(this.decodeText(this.buffer.slice(0,Y1(this,du,"f")-1))),this.buffer=this.buffer.slice(Y1(this,du,"f")),P5(this,du,null,"f");continue}const o=Y1(this,du,"f")!==null?s.preceding-1:s.preceding,a=this.decodeText(this.buffer.slice(0,o));i.push(a),this.buffer=this.buffer.slice(s.index),P5(this,du,null,"f")}return i}decodeText(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof Buffer<"u"){if(e instanceof Buffer)return e.toString();if(e instanceof Uint8Array)return Buffer.from(e).toString();throw new cr(`Unexpected: received non-Uint8Array (${e.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e);throw new cr(`Unexpected: received non-Uint8Array/ArrayBuffer (${e.constructor.name}) in a web platform. Please report this error.`)}throw new cr("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(` 561`):[]}}du=new WeakMap;IO.NEWLINE_CHARS=new Set([` 562`,"\r"]);IO.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function oQe(t,e){for(let i=e??0;i<t.length;i++){if(t[i]===10)return{preceding:i,index:i+1,carriage:!1};if(t[i]===13)return{preceding:i,index:i+1,carriage:!0}}return null}function aQe(t){for(let r=0;r<t.length-1;r++){if(t[r]===10&&t[r+1]===10||t[r]===13&&t[r+1]===13)return r+2;if(t[r]===13&&t[r+1]===10&&r+3<t.length&&t[r+2]===13&&t[r+3]===10)return r+4}return-1}function E0e(t){if(t[Symbol.asyncIterator])return t;const e=t.getReader();return{async next(){try{const n=await e.read();return n?.done&&e.releaseLock(),n}catch(n){throw e.releaseLock(),n}},async return(){const n=e.cancel();return e.releaseLock(),await n,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}class Lf{constructor(e,n){this.iterator=e,this.controller=n}static fromSSEResponse(e,n){let r=!1;async function*i(){if(r)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let s=!1;try{for await(const o of lQe(e,n))if(!s){if(o.data.startsWith("[DONE]")){s=!0;continue}if(o.event===null||o.event.startsWith("response.")||o.event.startsWith("transcript.")){let a;try{a=JSON.parse(o.data)}catch(l){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),l}if(a&&a.error)throw new Ga(void 0,a.error,void 0,R0e(e.headers));yield a}else{let a;try{a=JSON.parse(o.data)}catch(l){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),l}
562if(o.event=="error")throw new Ga(void 0,a.error,a.message,void 0);yield{event:o.event,data:a}}}s=!0}catch(o){if(o instanceof Error&&o.name==="AbortError")return;throw o}finally{s||n.abort()}}return new Lf(i,n)}static fromReadableStream(e,n){let r=!1;async function*i(){const o=new IO,a=E0e(e);for await(const l of a)for(const c of o.decode(l))yield c;for(const l of o.flush())yield l}async function*s(){if(r)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let o=!1;try{for await(const a of i())o||a&&(yield JSON.parse(a));o=!0}catch(a){if(a instanceof Error&&a.name==="AbortError")return;throw a}finally{o||n.abort()}}return new Lf(s,n)}[Symbol.asyncIterator](){return this.iterator()}tee(){const e=[],n=[],r=this.iterator(),i=s=>({next:()=>{if(s.length===0){const o=r.next();e.push(o),n.push(o)}return s.shift()}});return[new Lf(()=>i(e),this.controller),new Lf(()=>i(n),this.controller)]}toReadableStream(){const e=this;let n;const r=new TextEncoder;return new h0e({async start(){n=e[Symbol.asyncIterator]()},async pull(i){try{const{value:s,done:o}=await n.next();if(o)return i.close();const a=r.encode(JSON.stringify(s)+` 563`);i.enqueue(a)}catch(s){i.error(s)}},async cancel(){await n.return?.()}})}}async function*lQe(t,e){if(!t.body)throw e.abort(),new cr("Attempted to iterate over a response with no body");const n=new uQe,r=new IO,i=E0e(t.body);for await(const s of cQe(i))for(const o of r.decode(s)){const a=n.decode(o);a&&(yield a)}for(const s of r.flush()){const o=n.decode(s);o&&(yield o)}}async function*cQe(t){let e=new Uint8Array;for await(const n of t){if(n==null)continue;const r=n instanceof ArrayBuffer?new Uint8Array(n):typeof n=="string"?new TextEncoder().encode(n):n;let i=new Uint8Array(e.length+r.length);i.set(e),i.set(r,e.length),e=i;let s;for(;(s=aQe(e))!==-1;)yield e.slice(0,s),e=e.slice(s)}e.length>0&&(yield e)}class uQe{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;const s={event:this.event,data:this.data.join(` 564`),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],s}if(this.chunks.push(e),e.startsWith(":"))return null;let[n,r,i]=hQe(e,":");return i.startsWith(" ")&&(i=i.substring(1)),n==="event"?this.event=i:n==="data"&&this.data.push(i),null}}function hQe(t,e){const n=t.indexOf(e);return n!==-1?[t.substring(0,n),e,t.substring(n+e.length)]:[t,"",""]}const A0e=t=>t!=null&&typeof t=="object"&&typeof t.url=="string"&&typeof t.blob=="function",P0e=t=>t!=null&&typeof t=="object"&&typeof t.name=="string"&&typeof t.lastModified=="number"&&DO(t),DO=t=>t!=null&&typeof t=="object"&&typeof t.size=="number"&&typeof t.type=="string"&&typeof t.text=="function"&&typeof t.slice=="function"&&typeof t.arrayBuffer=="function",dQe=t=>P0e(t)||A0e(t)||m0e(t);async function O0e(t,e,n){if(t=await t,P0e(t))return t;if(A0e(t)){const i=await t.blob();e||(e=new URL(t.url).pathname.split(/[\\/]/).pop()??"unknown_file");const s=DO(i)?[await i.arrayBuffer()]:[i];return new PB(s,e,n)}const r=await fQe(t);if(e||(e=mQe(t)??"unknown_file"),!n?.type){const i=r[0]?.type;typeof i=="string"&&(n={...n,type:i})}return new PB(r,e,n)}async function fQe(t){let e=[];
564if(typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer)e.push(t);else if(DO(t))e.push(await t.arrayBuffer());else if(gQe(t))for await(const n of t)e.push(n);else throw new Error(`Unexpected data type: ${typeof t}; constructor: ${t?.constructor?.name}; props: ${pQe(t)}`);return e}function pQe(t){return`[${Object.getOwnPropertyNames(t).map(n=>`"${n}"`).join(", ")}]`}function mQe(t){return jM(t.name)||jM(t.filename)||jM(t.path)?.split(/[\\/]/).pop()}const jM=t=>{if(typeof t=="string")return t;if(typeof Buffer<"u"&&t instanceof Buffer)return String(t)},gQe=t=>t!=null&&typeof t=="object"&&typeof t[Symbol.asyncIterator]=="function",kZ=t=>t&&typeof t=="object"&&t.body&&t[Symbol.toStringTag]==="MultipartBody",Lx=async t=>{const e=await yQe(t.body);return d0e(e,t)},yQe=async t=>{const e=new u0e;return await Promise.all(Object.entries(t||{}).map(([n,r])=>OB(e,n,r))),e},OB=async(t,e,n)=>{if(n!==void 0){if(n==null)throw new TypeError(`Received null for "${e}"; to pass null in FormData, you must use the string 'null'`);if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")t.append(e,String(n));else if(dQe(n)){const r=await O0e(n);t.append(e,r)}else if(Array.isArray(n))await Promise.all(n.map(r=>OB(t,e+"[]",r)));else if(typeof n=="object")await Promise.all(Object.entries(n).map(([r,i])=>OB(t,`${e}[${r}]`,i)));else throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${n} instead`)}};var I0e={},bQe=function(t,e,n,r,i){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n},vQe=function(t,e,n,r){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},O5;g0e();async function D0e(t){const{response:e}=t;if(t.options.stream)return X2("response",e.status,e.url,e.headers,e.body),t.options.__streamClass?t.options.__streamClass.fromSSEResponse(e,t.controller):Lf.fromSSEResponse(e,t.controller);if(e.status===204)return null;if(t.options.__binaryResponse)return e;const r=e.headers.get("content-type")?.split(";")[0]?.trim();if(r?.includes("application/json")||r?.endsWith("+json")){const o=await e.json();return X2("response",e.status,e.url,e.headers,o),M0e(o,e)}const s=await e.text();return X2("response",e.status,e.url,e.headers,s),s}function M0e(t,e){return!t||typeof t!="object"||Array.isArray(t)?t:Object.defineProperty(t,"_request_id",{value:e.headers.get("x-request-id"),enumerable:!1})}class MO extends Promise{constructor(e,n=D0e){super(r=>{r(null)}),this.responsePromise=e,this.parseResponse=n}_thenUnwrap(e){return new MO(this.responsePromise,async n=>M0e(e(await this.parseResponse(n),n),n.response))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){const[e,n]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:n,request_id:n.headers.get("x-request-id")}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,n){return this.parse().then(e,n)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}class xQe{constructor({baseURL:e,maxRetries:n=2,timeout:r=6e5,httpAgent:i,fetch:s}){this.baseURL=e,this.maxRetries=zM("maxRetries",n),this.timeout=zM("timeout",r),this.httpAgent=i,this.fetch=s??c0e}authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),..._Qe(),...this.authHeaders(e)}}validateHeaders(e,n){}defaultIdempotencyKey(){return`stainless-node-retry-${PQe()}`}get(e,n){return this.methodRequest("get",e,n)}post(e,n){return this.methodRequest("post",e,n)}patch(e,n){return this.methodRequest("patch",e,n)}put(e,n){return this.methodRequest("put",e,n)}delete(e,n){return this.methodRequest("delete",e,n)}methodRequest(e,n,r){return this.request(Promise.resolve(r).then(async i=>{const s=i&&DO(i?.body)?new DataView(await i.body.arrayBuffer()):i?.body instanceof DataView?i.body:i?.body instanceof ArrayBuffer?new DataView(i.body):i&&ArrayBuffer.isView(i?.body)?new DataView(i.body.buffer):i?.body;return{method:e,path:n,...i,body:s}}))}getAPIList(e,n,r){return this.requestAPIList(n,{method:"get",path:e,...r})}calculateContentLength(e){if(typeof e=="string"){if(typeof Buffer<"u")return Buffer.byteLength(e,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(e).length.toString()}else if(ArrayBuffer.isView(e))return e.byteLength.toString();return null}buildRequest(e,{retryCount:n=0}={}){e={...e};const{method:r,path:i,query:s,headers:o={}}=e,a=ArrayBuffer.isView(e.body)||e.__binaryRequest&&typeof e.body=="str
564ing"?e.body:kZ(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,l=this.calculateContentLength(a),c=this.buildURL(i,s);"timeout"in e&&zM("timeout",e.timeout),e.timeout=e.timeout??this.timeout;const u=e.httpAgent??this.httpAgent??f0e(c),h=e.timeout+1e3;typeof u?.options?.timeout=="number"&&h>(u.options.timeout??0)&&(u.options.timeout=h),this.idempotencyHeader&&r!=="get"&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),o[this.idempotencyHeader]=e.idempotencyKey);const d=this.buildHeaders({options:e,headers:o,contentLength:l,retryCount:n});return{req:{method:r,...a&&{body:a},headers:d,...u&&{agent:u},signal:e.signal??null},url:c,timeout:e.timeout}}buildHeaders({options:e,headers:n,contentLength:r,retryCount:i}){const s={};r&&(s["content-length"]=r);const o=this.defaultHeaders(e);return EZ(s,o),EZ(s,n),kZ(e.body)&&M4!=="node"&&delete s["content-type"],D5(o,"x-stainless-retry-count")===void 0&&D5(n,"x-stainless-retry-count")===void 0&&(s["x-stainless-retry-count"]=String(i)),D5(o,"x-stainless-timeout")===void 0&&D5(n,"x-stainless-timeout")===void 0&&e.timeout&&(s["x-stainless-timeout"]=String(e.timeout)),this.validateHeaders(s,n),s}async prepareOptions(e){}async prepareRequest(e,{url:n,options:r}){}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map(n=>[...n])):{...e}:{}}makeStatusError(e,n,r,i){return Ga.generate(e,n,r,i)}request(e,n=null){return new MO(this.makeRequest(e,n))}async makeRequest(e,n){const r=await e,i=r.maxRetries??this.maxRetries;n==null&&(n=i),await this.prepareOptions(r);const{req:s,url:o,timeout:a}=this.buildRequest(r,{retryCount:i-n});if(await this.prepareRequest(s,{url:o,options:r}),X2("request",o,r,s.headers),r.signal?.aborted)throw new hh;const l=new AbortController,c=await this.fetchWithTimeout(o,s,a,l).catch(IB);if(c instanceof Error){if(r.signal?.aborted)throw new hh;if(n)return this.retryRequest(r,n);throw c.name==="AbortError"?new TU:new OO({cause:c})}const u=R0e(c.headers);if(!c.ok){if(n&&this.shouldRetry(c)){const b=`retrying, ${n} attempts remaining`;return X2(`response (error; ${b})`,c.status,o,u),this.retryRequest(r,n,u)}const h=await c.text().catch(b=>IB(b).message),d=TQe(h),p=d?void 0:h;throw X2(`response (error; ${n?"(error; no more retries left)":"(error; not retryable)"})`,c.status,o,u,p),this.makeStatusError(c.status,d,p,u)}return{response:c,options:r,controller:l}}requestAPIList(e,n){const r=this.makeRequest(n,null);return new wQe(this,r,e)}buildURL(e,n){const r=AQe(e)?new URL(e):new URL(this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),i=this.defaultQuery();return L0e(i)||(n={...i,...n}),typeof n=="object"&&n&&!Array.isArray(n)&&(r.search=this.stringifyQuery(n)),r.toString()}stringifyQuery(e){return Object.entries(e).filter(([n,r])=>typeof r<"u").map(([n,r])=>{if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")return`${encodeURIComponent(n)}=${encodeURIComponent(r)}`;if(r===null)return`${encodeURIComponent(n)}=`;throw new cr(`Cannot stringify type ${typeof r}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}async fetchWithTimeout(e,n,r,i){const{signal:s,...o}=n||{};s&&s.addEventListener("abort",()=>i.abort());const a=setTimeout(()=>i.abort(),r),l={signal:i.signal,...o};return l.method&&(l.method=l.method.toUpperCase()),this.fetch.call(void 0,e,l).finally(()=>{clearTimeout(a)})}shouldRetry(e){const n=e.headers.get("x-should-retry");return n==="true"?!0:n==="false"?!1:e.status===408||e.status===409||e.status===429||e.status>=500}async retryRequest(e,n,r){let i;const s=r?.["retry-after-ms"];if(s){const a=parseFloat(s);Number.isNaN(a)||(i=a)}const o=r?.["retry-after"];if(o&&!i){const a=parseFloat(o);Number.isNaN(a)?i=Date.parse(o)-Date.now():i=a*1e3}if(!(i&&0<=i&&i<60*1e3)){const a=e.maxRetries??this.maxRetries;i=this.calculateDefaultRetryTimeoutMillis(n,a)}
564return await r_(i),this.makeRequest(e,n-1)}calculateDefaultRetryTimeoutMillis(e,n){const s=n-e,o=Math.min(.5*Math.pow(2,s),8),a=1-Math.random()*.25;return o*a*1e3}getUserAgent(){return`${this.constructor.name}/JS ${qv}`}}class N0e{constructor(e,n,r,i){O5.set(this,void 0),bQe(this,O5,e),this.options=i,this.response=n,this.body=r}hasNextPage(){return this.getPaginatedItems().length?this.nextPageInfo()!=null:!1}async getNextPage(){const e=this.nextPageInfo();if(!e)throw new cr("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");const n={...this.options};if("params"in e&&typeof n.query=="object")n.query={...n.query,...e.params};else if("url"in e){const r=[...Object.entries(n.query||{}),...e.url.searchParams.entries()];for(const[i,s]of r)e.url.searchParams.set(i,s);n.query=void 0,n.path=e.url.toString()}return await vQe(this,O5,"f").requestAPIList(this.constructor,n)}async*iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async*[(O5=new WeakMap,Symbol.asyncIterator)](){for await(const e of this.iterPages())for(const n of e.getPaginatedItems())yield n}}
564class wQe extends MO{constructor(e,n,r){super(n,async i=>new r(e,i.response,await D0e(i),i.options))}async*[Symbol.asyncIterator](){const e=await this;for await(const n of e)yield n}}const R0e=t=>new Proxy(Object.fromEntries(t.entries()),{get(e,n){const r=n.toString();return e[r.toLowerCase()]||e[r]}}),SQe={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__metadata:!0,__binaryRequest:!0,__binaryResponse:!0,__streamClass:!0},Oa=t=>typeof t=="object"&&t!==null&&!L0e(t)&&Object.keys(t).every(e=>B0e(SQe,e)),kQe=()=>{if(typeof Deno<"u"&&Deno.build!=null)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":qv,"X-Stainless-OS":_Z(Deno.build.os),"X-Stainless-Arch":CZ(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version=="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":qv,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":process.version};if(Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":qv,"X-Stainless-OS":_Z(process.platform),"X-Stainless-Arch":CZ(process.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":process.version};const t=CQe();return t?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":qv,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${t.browser}`,"X-Stainless-Runtime-Version":t.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":qv,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function CQe(){if(typeof navigator>"u"||!navigator)return null;const t=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:e,pattern:n}of t){const r=n.exec(navigator.userAgent);if(r){const i=r[1]||0,s=r[2]||0,o=r[3]||0;return{browser:e,version:`${i}.${s}.${o}`}}}return null}const CZ=t=>t==="x32"?"x32":t==="x86_64"||t==="x64"?"x64":t==="arm"?"arm":t==="aarch64"||t==="arm64"?"arm64":t?`other:${t}`:"unknown",_Z=t=>(t=t.toLowerCase(),t.includes("ios")?"iOS":t==="android"?"Android":t==="darwin"?"MacOS":t==="win32"?"Windows":t==="freebsd"?"FreeBSD":t==="openbsd"?"OpenBSD":t==="linux"?"Linux":t?`Other:${t}`:"Unknown");let TZ;const _Qe=()=>TZ??(TZ=kQe()),TQe=t=>{try{return JSON.parse(t)}catch{return}},EQe=/^[a-z][a-z0-9+.-]*:/i,AQe=t=>EQe.test(t),r_=t=>new Promise(e=>setTimeout(e,t)),zM=(t,e)=>{if(typeof e!="number"||!Number.isInteger(e))throw new cr(`${t} must be an integer`);if(e<0)throw new cr(`${t} must be a positive integer`);return e},IB=t=>{if(t instanceof Error)return t;if(typeof t=="object"&&t!==null)try{return new Error(JSON.stringify(t))}catch{}return new Error(t)},I5=t=>{if(typeof process<"u")return I0e?.[t]?.trim()??void 0;if(typeof Deno<"u")return Deno.env?.get?.(t)?.trim()};function L0e(t){if(!t)return!0;for(const e in t)return!1;return!0}function B0e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function EZ(t,e){for(const n in e){if(!B0e(e,n))continue;const r=n.toLowerCase();if(!r)continue;const i=e[n];i===null?delete t[r]:i!==void 0&&(t[r]=i)}}const AZ=new Set(["authorization","api-key"]);function X2(t,...e){if(typeof process<"u"&&I0e?.DEBUG==="true"){const n=e.map(r=>{if(!r)return r;if(r.headers){const s={...r,headers:{...r.headers}};for(const o in r.headers)AZ.has(o.toLowerCase())&&(s.headers[o]="REDACTED");return s}let i=null;for(const s in r)AZ.has(s.toLowerCase())&&(i??(i={...r}),i[s]="REDACTED");return i??r});console.log(`OpenAI:DEBUG:${t}`,...n)}}const PQe=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)}),OQe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",IQe=t=>typeof t?.get=="function",D5=(t,e)=>{const n=e.toLowerCase();if(IQe(t)){const r=e[0]?.toUpperCase()+e.substring(1).replace(/([^\w])(\w)/g,(i,s,o)=>s+o.toUpperCase());for(const i of[e,n,e.toUpperCase(),r]){const s=t.get(i);if(s)return s}}for(const[r,i]of Object.entries(t))if(r.toLowerCase()===n)return Array.isArray(i)?(i.length<=1||console.warn(`Received ${i.length} entries for the ${e} header, using the first entry.`),i[0]):i};function HM(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}class EU extends N0e{constructor(e,n,r,i){super(e,n,r,i),this.data=r.data||[],this.object=r.object}getPaginatedItems(){return this.data??[]}nextPageParams(){return null}nextPageInfo(){return null}}class Uc extends N0e{constructor(e,n,r,i){super(e,n,r,i),this.data=r.data||[],this.has_more=r.has_more||!1}getPaginatedItems(){return this.data??[]}hasNextPage(){return this.has_more===!1?!1:super.hasNextPage()}nextPageParams(){const e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;const n=Object.fromEntries(e.url.searchParams);return Object.keys(n).length?n:null}nextPageInfo(){const e=this.getPaginatedItems();if(!e.length)return null;const n=e[e.length-1]?.id;return n?{params:{after:n}}:null}}class hi{constructor(e){this._client=e}}let F0e=class extends hi{list(e,n={},r){return Oa(n)?this.list(e,{},n):this._client.getAPIList(`/chat/completions/${e}/messages`,DQe,{query:n,...r})}},NO=class extends hi{constructor(){super(...arguments),this.messages=new F0e(this._client)}create(e,n){return this._client.post("/chat/completions",{body:e,...n,stream:e.stream??!1})}retrieve(e,n){return this._client.get(`/chat/completions/${e}`,n)}update(e,n,r){return this._client.post(`/chat/completions/${e}`,{body:n,...r})}list(e={},n){return Oa(e)?this.list({}
564,e):this._client.getAPIList("/chat/completions",RO,{query:e,...n})}del(e,n){return this._client.delete(`/chat/completions/${e}`,n)}};class RO extends Uc{}class DQe extends Uc{}NO.ChatCompletionsPage=RO;NO.Messages=F0e;let LO=class extends hi{constructor(){super(...arguments),this.completions=new NO(this._client)}};LO.Completions=NO;LO.ChatCompletionsPage=RO;class $0e extends hi{create(e,n){return this._client.post("/audio/speech",{body:e,...n,headers:{Accept:"application/octet-stream",...n?.headers},__binaryResponse:!0})}}class j0e extends hi{create(e,n){return this._client.post("/audio/transcriptions",Lx({body:e,...n,stream:e.stream??!1,__metadata:{model:e.model}}))}}class z0e extends hi{create(e,n){return this._client.post("/audio/translations",Lx({body:e,...n,__metadata:{model:e.model}}))}}let i_=class extends hi{constructor(){super(...arguments),this.transcriptions=new j0e(this._client),this.translations=new z0e(this._client),this.speech=new $0e(this._client)}};i_.Transcriptions=j0e;i_.Translations=z0e;i_.Speech=$0e;class AU extends hi{create(e,n){return this._client.post("/batches",{body:e,...n})}retrieve(e,n){return this._client.get(`/batches/${e}`,n)}list(e={},n){return Oa(e)?this.list({},e):this._client.getAPIList("/batches",PU,{query:e,...n})}cancel(e,n){return this._client.post(`/batches/${e}/cancel`,n)}}class PU extends Uc{}AU.BatchesPage=PU;class OU extends hi{create(e,n){return this._client.post("/assistants",{body:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}retrieve(e,n){return this._client.get(`/assistants/${e}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}update(e,n,r){return this._client.post(`/assistants/${e}`,{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}list(e={},n){return Oa(e)?this.list({},e):this._client.getAPIList("/assistants",IU,{query:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}del(e,n){return this._client.delete(`/assistants/${e}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}}class IU extends Uc{}OU.AssistantsPage=IU;function PZ(t){return typeof t.parse=="function"}const J2=t=>t?.role==="assistant",H0e=t=>t?.role==="function",U0e=t=>t?.role==="tool";var od=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},Js=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},DB,R6,L6,L3,B3,B6,F3,r0,$3,p8,m8,Gv,V0e;class DU{constructor(){DB.add(this),this.controller=new AbortController,R6.set(this,void 0),L6.set(this,()=>{}),L3.set(this,()=>{}),B3.set(this,void 0),B6.set(this,()=>{}),F3.set(this,()=>{}),r0.set(this,{}),$3.set(this,!1),p8.set(this,!1),m8.set(this,!1),Gv.set(this,!1),od(this,R6,new Promise((e,n)=>{od(this,L6,e,"f"),od(this,L3,n,"f")}),"f"),od(this,B3,new Promise((e,n)=>{od(this,B6,e,"f"),od(this,F3,n,"f")}),"f"),Js(this,R6,"f").catch(()=>{}),Js(this,B3,"f").catch(()=>{})}_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},Js(this,DB,"m",V0e).bind(this))},0)}_connected(){this.ended||(Js(this,L6,"f").call(this),this._emit("connect"))}get ended(){return Js(this,$3,"f")}get errored(){return Js(this,p8,"f")}get aborted(){return Js(this,m8,"f")}abort(){this.controller.abort()}on(e,n){return(Js(this,r0,"f")[e]||(Js(this,r0,"f")[e]=[])).push({listener:n}),this}off(e,n){const r=Js(this,r0,"f")[e];if(!r)return this;const i=r.findIndex(s=>s.listener===n);return i>=0&&r.splice(i,1),this}once(e,n){return(Js(this,r0,"f")[e]||(Js(this,r0,"f")[e]=[])).push({listener:n,once:!0}),this}emitted(e){return new Promise((n,r)=>{od(this,Gv,!0,"f"),e!=="error"&&this.once("error",r),this.once(e,n)})}async done(){od(this,Gv,!0,"f"),await Js(this,B3,"f")}_emit(e,...n){if(Js(this,$3,"f"))return;e==="end"&&(od(this,$3,!0,"f"),Js(this,B6,"f").call(this));const r=Js(this,r0,"f")[e];if(r&&(Js(this,r0,"f")[e]=r.filter(i=>!i.once),r.forEach(({listener:i})=>i(...n))),e==="abort"){const i=n[0];!Js(this,Gv,"f")&&!r?.length&&Promise.reject(i),Js(this,L3,"f").call(this,i),Js(this,F3,"f").call(this,i),this._emit("end");return}if(e==="error"){const i=n[0];!Js(this,Gv,"f")&&!r?.length&&Promise.reject(i),Js(this,L3,"f").call(this,i),Js(this,F3,"f").call(this,i),this._emit("end")}}_emitFinal(){}}R6=new WeakMap,L6=new WeakMap,L3=new WeakMap,B3=new WeakMap,B6=new WeakMap,F3=new WeakMap,r0=new WeakMap,$3=new WeakMap,p8=new WeakMap,m8=new WeakMap,Gv=new WeakMap,DB=new WeakSet,V0e=function(e){if(od(this,p8,!0,"f"),e instanceof Error&&e.name==="AbortError"&&(e=new hh),e instanceof hh)return od(this,m8,!0,"f"),this._emit("abort",e);if(e instanceof cr)return this._emit("error",e);if(e instanceof Error){const n=new cr(e.message);return n.cause=e,this._emit("error",n)}return this._emit("error",new cr(String(e)))};function MU(t){return t?.$brand==="auto-parseable-response-format"}function s_(t){return t?.$brand==="auto-parseable-tool"}function MQe(t,e){return!e||!W0e(e)?{...t,choices:t.choices.map(n=>({...n,message:{...n.message,parsed:null,...n.message.tool_calls?{tool_calls:n.message.tool_calls}:void 0}}))}:NU(t,e)}function NU(t,e){const n=t.choices.map(r=>{if(r.finish_reason==="length")throw new _0e;if(r.finish_reason==="content_filter")throw new T0e;return{...r,message:{...r.message,...r.message.tool_calls?{tool_calls:r.message.tool_calls?.map(i=>RQe(e,i))??void 0}:void 0,parsed:r.message.content&&!r.message.refusal?NQe(e,r.message.content):null}}});return{...t,choices:n}}function NQe(t,e){return t.response_format?.type!=="json_schema"?null:t.response_format?.type==="json_schema"?"$parseRaw"in t.response_format?t.response_format.$parseRaw(e):JSON.parse(e):null}function RQe(t,e){const n=t.tools?.find(r=>r.function?.name===e.function.name);return{...e,function:{...e.function,parsed_arguments:s_(n)?n.$parseRaw(e.function.arguments):n?.function.strict?JSON.parse(e.function.arguments):null}}}function LQe(t,e){if(!t)return!1;const n=t.tools?.find(r=>r.function?.name===e.function.name);return s_(n)||n?.function.strict||!1}function W0e(t){return MU(t.response_format)?!0:t.tools?.some(e=>s_(e)||e.type==="function"&&e.function.strict===!0)??!1}function BQe(t){for(const e of t??[]){if(e.type!=="function")throw new cr(`Currently only \`function\` tool types support auto-parsing; Received \`${e.type}\``);if(e.function.strict!==!0)throw new cr(`The \`${e.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`)}}var lc=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},rl,MB,g8,NB,RB,LB,q0e,BB;const OZ=10;class G0e extends DU{constructor(){super(...arguments),rl.add(this),this._chatCompletions=[],this.messages=[]}_addChatCompletion(e){this._chatCompletions.push(e),this._emit("chatCompletion",e);const n=e.choices[0]?.message;return n&&this._addMessage(n),e}_addMessage(e,n=!0){if("content"in e||(e.content=null),this.messages.push(e),n){if(this._emit("message",e),(H0e(e)||U0e(e))&&e.content)this._emit("functionCallResult",e.content);else if(J2(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(J2(e)&&e.tool_calls)for(const r of e.tool_calls)r.type==="function"&&this._emit("functionCall",r.function)}}async finalChatCompletion(){await this.done();const e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new cr("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),lc(this,rl,"m",MB).call(this)}async finalMessage(){return await this.done(),lc(this,rl,"m",g8).call(this)}async finalFunctionCall(){return await this.done(),lc(this,rl,"m",NB).call(this)}async finalFunctionCallResult(){return await this.done(),lc(this,rl,"m",RB).call(this)}async totalUsage(){return await this.done(),lc(this,rl,"m",LB).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emitFinal(){const e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);const n=lc(this,rl,"m",g8).call(this);
564n&&this._emit("finalMessage",n);const r=lc(this,rl,"m",MB).call(this);r&&this._emit("finalContent",r);const i=lc(this,rl,"m",NB).call(this);i&&this._emit("finalFunctionCall",i);const s=lc(this,rl,"m",RB).call(this);s!=null&&this._emit("finalFunctionCallResult",s),this._chatCompletions.some(o=>o.usage)&&this._emit("totalUsage",lc(this,rl,"m",LB).call(this))}async _createChatCompletion(e,n,r){const i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort())),lc(this,rl,"m",q0e).call(this,n);const s=await e.chat.completions.create({...n,stream:!1},{...r,signal:this.controller.signal});return this._connected(),this._addChatCompletion(NU(s,n))}async _runChatCompletion(e,n,r){for(const i of n.messages)this._addMessage(i,!1);return await this._createChatCompletion(e,n,r)}async _runFunctions(e,n,r){const i="function",{function_call:s="auto",stream:o,...a}=n,l=typeof s!="string"&&s?.name,{maxChatCompletions:c=OZ}=r||{},u={};for(const d of n.functions)u[d.name||d.function.name]=d;const h=n.functions.map(d=>({name:d.name||d.function.name,parameters:d.parameters,description:d.description}));for(const d of n.messages)this._addMessage(d,!1);for(let d=0;d<c;++d){const g=(await this._createChatCompletion(e,{...a,function_call:s,functions:h,messages:[...this.messages]},r)).choices[0]?.message;if(!g)throw new cr("missing message in ChatCompletion response");if(!g.function_call)return;const{name:y,arguments:b}=g.function_call,w=u[y];if(w){if(l&&l!==y){const E=`Invalid function_call: ${JSON.stringify(y)}. ${JSON.stringify(l)} requested. Please try again`;this._addMessage({role:i,name:y,content:E});continue}}else{const E=`Invalid function_call: ${JSON.stringify(y)}. Available options are: ${h.map(O=>JSON.stringify(O.name)).join(", ")}. Please try again`;this._addMessage({role:i,name:y,content:E});continue}let S;try{S=PZ(w)?await w.parse(b):b}catch(E){this._addMessage({role:i,name:y,content:E instanceof Error?E.message:String(E)});continue}const T=await w.function(S,this),D=lc(this,rl,"m",BB).call(this,T);if(this._addMessage({role:i,name:y,content:D}),l)return}}async _runTools(e,n,r){const i="tool",{tool_choice:s="auto",stream:o,...a}=n,l=typeof s!="string"&&s?.function?.name,{maxChatCompletions:c=OZ}=r||{},u=n.tools.map(p=>{if(s_(p)){if(!p.$callback)throw new cr("Tool given to `.runTools()` that does not have an associated function");return{type:"function",function:{function:p.$callback,name:p.function.name,description:p.function.description||"",parameters:p.function.parameters,parse:p.$parseRaw,strict:!0}}}return p}),h={};for(const p of u)p.type==="function"&&(h[p.function.name||p.function.function.name]=p.function);const d="tools"in n?u.map(p=>p.type==="function"?{type:"function",function:{name:p.function.name||p.function.function.name,parameters:p.function.parameters,description:p.function.description,strict:p.function.strict}}:p):void 0;for(const p of n.messages)this._addMessage(p,!1);for(let p=0;p<c;++p){const y=(await this._createChatCompletion(e,{...a,tool_choice:s,tools:d,messages:[...this.messages]},r)).choices[0]?.message;if(!y)throw new cr("missing message in ChatCompletion response");if(!y.tool_calls?.length)return;for(const b of y.tool_calls){if(b.type!=="function")continue;const w=b.id,{name:S,arguments:T}=b.function,D=h[S];if(D){if(l&&l!==S){const $=`Invalid tool_call: ${JSON.stringify(S)}. ${JSON.stringify(l)} requested. Please try again`;this._addMessage({role:i,tool_call_id:w,content:$});continue}}else{const $=`Invalid tool_call: ${JSON.stringify(S)}. Available options are: ${Object.keys(h).map(W=>JSON.stringify(W)).join(", ")}. Please try again`;this._addMessage({role:i,tool_call_id:w,content:$});continue}let E;try{E=PZ(D)?await D.parse(T):T}catch($){const W=$ instanceof Error?$.message:String($);this._addMessage({role:i,tool_call_id:w,content:W});continue}const O=await D.function(E,this),P=lc(this,rl,"m",BB).call(this,O);if(this._addMessage({role:i,tool_call_id:w,content:P}),l)return}}}}rl=new WeakSet,MB=function(){return lc(this,rl,"m",g8).call(this).content??null},g8=function(){let e=this.messages.length;for(;e-- >0;){const n=this.messages[e];if(J2(n)){const{function_call:r,...i}=n,s={...i,content:n.content??null,refusal:n.refusal??null};return r&&(s.function_call=r),s}}throw new cr("stream ended without producing a ChatCompletionMessage with role=assistant")},NB=function(){for(let e=this.messages.length-1;e>=0;e--){const n=this.messages[e];if(J2(n)&&n?.function_call)return n.function_call;if(J2(n)&&n?.tool_calls?.length)return n.tool_calls.at(-1)?.function}},RB=function(){for(let e=this.messages.length-1;e>=0;e--){const n=this.messages[e];if(H0e(n)&&n.content!=null||U0e(n)&&n.content!=null&&typeof n.content=="string"&&this.messages.some(r=>r.role==="assistant"&&r.tool_calls?.some(i=>i.type==="function"&&i.id===n.tool_call_id)))return n.content}},LB=function(){const e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(const{usage:n}of this._chatCompletions)n&&(e.completion_tokens+=n.completion_tokens,e.prompt_tokens+=n.prompt_tokens,e.total_tokens+=n.total_tokens);return e},q0e=function(e){if(e.n!=null&&e.n>1)throw new cr("ChatCompletion convenience helpers only support n=1 at this time. To use n>
5641, please use chat.completions.create() directly.")},BB=function(e){return typeof e=="string"?e:e===void 0?"undefined":JSON.stringify(e)};class Rk extends G0e{static runFunctions(e,n,r){const i=new Rk,s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runFunctions"}};return i._run(()=>i._runFunctions(e,n,s)),i}static runTools(e,n,r){const i=new Rk,s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return i._run(()=>i._runTools(e,n,s)),i}_addMessage(e,n=!0){super._addMessage(e,n),J2(e)&&e.content&&this._emit("content",e.content)}}const K0e=1,Y0e=2,Q0e=4,X0e=8,J0e=16,Z0e=32,eme=64,tme=128,nme=256,rme=tme|nme,ime=J0e|Z0e|rme|eme,sme=K0e|Y0e|ime,ome=Q0e|X0e,FQe=sme|ome,Ca={STR:K0e,NUM:Y0e,ARR:Q0e,OBJ:X0e,NULL:J0e,BOOL:Z0e,NAN:eme,INFINITY:tme,MINUS_INFINITY:nme,INF:rme,SPECIAL:ime,ATOM:sme,COLLECTION:ome,ALL:FQe};class $Qe extends Error{}class jQe extends Error{}function zQe(t,e=Ca.ALL){if(typeof t!="string")throw new TypeError(`expecting str, got ${typeof t}`);if(!t.trim())throw new Error(`${t} is empty`);return HQe(t.trim(),e)}const HQe=(t,e)=>{const n=t.length;let r=0;const i=d=>{throw new $Qe(`${d} at position ${r}`)},s=d=>{throw new jQe(`${d} at position ${r}`)},o=()=>(h(),r>=n&&i("Unexpected end of input"),t[r]==='"'?a():t[r]==="{"?l():t[r]==="["?c():t.substring(r,r+4)==="null"||Ca.NULL&e&&n-r<4&&"null".startsWith(t.substring(r))?(r+=4,null):t.substring(r,r+4)==="true"||Ca.BOOL&e&&n-r<4&&"true".startsWith(t.substring(r))?(r+=4,!0):t.substring(r,r+5)==="false"||Ca.BOOL&e&&n-r<5&&"false".startsWith(t.substring(r))?(r+=5,!1):t.substring(r,r+8)==="Infinity"||Ca.INFINITY&e&&n-r<8&&"Infinity".startsWith(t.substring(r))?(r+=8,1/0):t.substring(r,r+9)==="-Infinity"||Ca.MINUS_INFINITY&e&&1<n-r&&n-r<9&&"-Infinity".startsWith(t.substring(r))?(r+=9,-1/0):t.substring(r,r+3)==="NaN"||Ca.NAN&e&&n-r<3&&"NaN".startsWith(t.substring(r))?(r+=3,NaN):u()),a=()=>{const d=r;let p=!1;for(r++;r<n&&(t[r]!=='"'||p&&t[r-1]==="\\");)p=t[r]==="\\"?!p:!1,r++;if(t.charAt(r)=='"')try{return JSON.parse(t.substring(d,++r-Number(p)))}catch(g){s(String(g))}else if(Ca.STR&e)try{return JSON.parse(t.substring(d,r-Number(p))+'"')}catch{return JSON.parse(t.substring(d,t.lastIndexOf("\\"))+'"')}i("Unterminated string literal")},l=()=>{r++,h();const d={};try{for(;t[r]!=="}";){if(h(),r>=n&&Ca.OBJ&e)return d;const p=a();h(),r++;try{const g=o();Object.defineProperty(d,p,{value:g,writable:!0,enumerable:!0,configurable:!0})}catch(g){if(Ca.OBJ&e)return d;throw g}h(),t[r]===","&&r++}}catch{if(Ca.OBJ&e)return d;i("Expected '}' at end of object")}return r++,d},c=()=>{r++;const d=[];try{for(;t[r]!=="]";)d.push(o()),h(),t[r]===","&&r++}catch{if(Ca.ARR&e)return d;i("Expected ']' at end of array")}return r++,d},u=()=>{if(r===0){t==="-"&&Ca.NUM&e&&i("Not sure what '-' is");try{return JSON.parse(t)}catch(p){if(Ca.NUM&e)try{return t[t.length-1]==="."?JSON.parse(t.substring(0,t.lastIndexOf("."))):JSON.parse(t.substring(0,t.lastIndexOf("e")))}catch{}s(String(p))}}const d=r;for(t[r]==="-"&&r++;t[r]&&!",]}".includes(t[r]);)r++;r==n&&!(Ca.NUM&e)&&i("Unterminated number literal");try{return JSON.parse(t.substring(d,r))}catch{t.substring(d,r)==="-"&&Ca.NUM&e&&i("Not sure what '-' is");try{return JSON.parse(t.substring(d,t.lastIndexOf("e")))}catch(g){s(String(g))}}},h=()=>{for(;r<n&&` 565\r `.includes(t[r]);)r++};return o()},IZ=t=>zQe(t,Ca.ALL^Ca.NUM);var Av=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},ts=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},na,Gp,Pv,Um,UM,M5,VM,WM,qM,N5,GM,DZ;class Lk extends G0e{constructor(e){super(),na.add(this),Gp.set(this,void 0),Pv.set(this,void 0),Um.set(this,void 0),Av(this,Gp,e,"f"),Av(this,Pv,[],"f")}get currentChatCompletionSnapshot(){return ts(this,Um,"f")}static fromReadableStream(e){const n=new Lk(null);return n._run(()=>n._fromReadableStream(e)),n}static createChatCompletion(e,n,r){const i=new Lk(n);return i._run(()=>i._runChatCompletion(e,{...n,stream:!0}
565,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),i}async _createChatCompletion(e,n,r){super._createChatCompletion;const i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort())),ts(this,na,"m",UM).call(this);const s=await e.chat.completions.create({...n,stream:!0},{...r,signal:this.controller.signal});this._connected();for await(const o of s)ts(this,na,"m",VM).call(this,o);if(s.controller.signal?.aborted)throw new hh;return this._addChatCompletion(ts(this,na,"m",N5).call(this))}async _fromReadableStream(e,n){const r=n?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),ts(this,na,"m",UM).call(this),this._connected();const i=Lf.fromReadableStream(e,this.controller);let s;for await(const o of i)s&&s!==o.id&&this._addChatCompletion(ts(this,na,"m",N5).call(this)),ts(this,na,"m",VM).call(this,o),s=o.id;if(i.controller.signal?.aborted)throw new hh;return this._addChatCompletion(ts(this,na,"m",N5).call(this))}[(Gp=new WeakMap,Pv=new WeakMap,Um=new WeakMap,na=new WeakSet,UM=function(){this.ended||Av(this,Um,void 0,"f")},M5=function(n){let r=ts(this,Pv,"f")[n.index];return r||(r={content_done:!1,refusal_done:!1,logprobs_content_done:!1,logprobs_refusal_done:!1,done_tool_calls:new Set,current_tool_call_index:null},ts(this,Pv,"f")[n.index]=r,r)},VM=function(n){if(this.ended)return;const r=ts(this,na,"m",DZ).call(this,n);this._emit("chunk",n,r);for(const i of n.choices){const s=r.choices[i.index];i.delta.content!=null&&s.message?.role==="assistant"&&s.message?.content&&(this._emit("content",i.delta.content,s.message.content),this._emit("content.delta",{delta:i.delta.content,snapshot:s.message.content,parsed:s.message.parsed})),i.delta.refusal!=null&&s.message?.role==="assistant"&&s.message?.refusal&&this._emit("refusal.delta",{delta:i.delta.refusal,snapshot:s.message.refusal}),i.logprobs?.content!=null&&s.message?.role==="assistant"&&this._emit("logprobs.content.delta",{content:i.logprobs?.content,snapshot:s.logprobs?.content??[]}),i.logprobs?.refusal!=null&&s.message?.role==="assistant"&&this._emit("logprobs.refusal.delta",{refusal:i.logprobs?.refusal,snapshot:s.logprobs?.refusal??[]});const o=ts(this,na,"m",M5).call(this,s);s.finish_reason&&(ts(this,na,"m",qM).call(this,s),o.current_tool_call_index!=null&&ts(this,na,"m",WM).call(this,s,o.current_tool_call_index));for(const a of i.delta.tool_calls??[])o.current_tool_call_index!==a.index&&(ts(this,na,"m",qM).call(this,s),o.current_tool_call_index!=null&&ts(this,na,"m",WM).call(this,s,o.current_tool_call_index)),o.current_tool_call_index=a.index;for(const a of i.delta.tool_calls??[]){const l=s.message.tool_calls?.[a.index];l?.type&&(l?.type==="function"?this._emit("tool_calls.function.arguments.delta",{name:l.function?.name,index:a.index,arguments:l.function.arguments,parsed_arguments:l.function.parsed_arguments,arguments_delta:a.function?.arguments??""}):(l?.type,void 0))}}},WM=function(n,r){if(ts(this,na,"m",M5).call(this,n).done_tool_calls.has(r))return;const s=n.message.tool_calls?.[r];if(!s)throw new Error("no tool call snapshot");if(!s.type)throw new Error("tool call snapshot missing `type`");if(s.type==="function"){const o=ts(this,Gp,"f")?.tools?.find(a=>a.type==="function"&&a.function.name===s.function.name);this._emit("tool_calls.function.arguments.done",{name:s.function.name,index:r,arguments:s.function.arguments,parsed_arguments:s_(o)?o.$parseRaw(s.function.arguments):o?.function.strict?JSON.parse(s.function.arguments):null})}else s.type},qM=function(n){const r=ts(this,na,"m",M5).call(this,n);if(n.message.content&&!r.content_done){r.content_done=!0;const i=ts(this,na,"m",GM).call(this);this._emit("content.done",{content:n.message.content,parsed:i?i.$parseRaw(n.message.content):null})}n.message.refusal&&!r.refusal_done&&(r.refusal_done=!0,this._emit("refusal.done",{refusal:n.message.refusal})),n.logprobs?.content&&!r.logprobs_content_done&&(r.logprobs_content_done=!0,this._emit("logprobs.content.done",{content:n.logprobs.content})),n.logprobs?.refusal&&!r.logprobs_refusal_done&&(r.logprobs_refusal_done=!0,this._emit("logprobs.refusal.done",{refusal:n.logprobs.refusal}))},N5=function(){if(this.ended)throw new cr("stream has ended, this shouldn't happen");const n=ts(this,Um,"f");if(!n)throw new cr("request ended without sending any chunks");return Av(this,Um,void 0,"f"),Av(this,Pv,[],"f"),UQe(n,ts(this,Gp,"f"))},GM=function(){const n=ts(this,Gp,"f")?.response_format;return MU(n)?n:null},DZ=function(n){var r,i,s,o;let a=ts(this,Um,"f");const{choices:l,...c}=n;a?Object.assign(a,c):a=Av(this,Um,{...c,choices:[]},"f");for(const{delta:u,finish_reason:h,index:d,logprobs:p=null,...g}of n.choices){let y=a.choices[d];if(y||(y=a.choices[d]={finish_reason:h,index:d,message:{},logprobs:p,...g}),p)if(!y.logprobs)y.logprobs=Object.assign({},p);else{const{content:O,refusal:P,...$}=p;Object.assign(y.logprobs,$),O&&((r=y.logprobs).content??(r.content=[]),y.logprobs.content.push(...O)),P&&((i=y.logprobs).refusal??(i.refusal=[]),y.logprobs.refusal.push(...P))}if(h&&(y.finish_reason=h,ts(this,Gp,"f")&&W0e(ts(this,Gp,"f")))){if(h==="length")throw new _0e;if(h==="content_filter")throw new T0e}if(Object.assign(y,g),!u)continue;const{content:b,refusal:w,function_call:S,role:T,tool_calls:D,...E}=u;if(Object.assign(y.message,E),w&&(y.message.refusal=(y.message.refusal||"")+w),T&&(y.message.role=T),S&&(y.message.function_call?(S.name&&(y.message.function_call.name=S.name),S.arguments&&((s=y.message.function_call).arguments??(s.arguments=""),y.message.function_call.arguments+=S.arguments)):y.message.function_call=S),b&&(y.message.content=(y.message.content||"")+b,!y.message.refusal&&ts(this,na,"m",GM).call(this)&&(y.message.parsed=IZ(y.message.content))),D){y.message.tool_calls||(y.message.tool_calls=[]);for(const{index:O,id:P,type:$,function:W,...H}of D){const K=(o=y.message.tool_calls)[O]??(o[O]={});Object.assign(K,H),P&&(K.id=P),$&&(K.type=$),W&&(K.function??(K.function={name:W.name??"",arguments:""})),W?.name&&(K.function.name=W.name),W?.arguments&&(K.function.arguments+=W.arguments,LQe(ts(this,Gp,"f"),K)&&(K.function.parsed_arguments=IZ(K.function.arguments)))}}}return a},Symbol.asyncIterator)](){const e=[],n=[];let r=!1;return this.on("chunk",i=>{const s=n.shift();s?s.resolve(i):e.push(i)}),this.on("end",()=>{r=!0;for(const i of n)i.resolve(void 0);n.length=0}),this.on("abort",i=>{r=!0;for(const s of n)s.reject(i);n.length=0}),this.on("error",i=>{r=!0;for(const s of n)s.reject(i);n.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((s,o)=>n.push({resolve:s,reject:o})).then(s=>s?{value:s,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new Lf(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function UQe(t,e){const{id:n,choices:r,created:i,model:s,system_fingerprint:o,...a}=t,l={...a,id:n,choices:r.map(({message:c,finish_reason:u,index:h,logprobs:d,...p})=>{if(!u)throw new cr(`missing finish_reason for choice ${h}`);const{content:g=null,function_call:y,tool_calls:b,...w}=c,S=c.role;if(!S)throw new cr(`missing role for choice ${h}`);
565if(y){const{arguments:T,name:D}=y;if(T==null)throw new cr(`missing function_call.arguments for choice ${h}`);if(!D)throw new cr(`missing function_call.name for choice ${h}`);return{...p,message:{content:g,function_call:{arguments:T,name:D},role:S,refusal:c.refusal??null},finish_reason:u,index:h,logprobs:d}}return b?{...p,index:h,finish_reason:u,logprobs:d,message:{...w,role:S,content:g,refusal:c.refusal??null,tool_calls:b.map((T,D)=>{const{function:E,type:O,id:P,...$}=T,{arguments:W,name:H,...K}=E||{};if(P==null)throw new cr(`missing choices[${h}].tool_calls[${D}].id 566${R5(t)}`);if(O==null)throw new cr(`missing choices[${h}].tool_calls[${D}].type 567${R5(t)}`);if(H==null)throw new cr(`missing choices[${h}].tool_calls[${D}].function.name 568${R5(t)}`);if(W==null)throw new cr(`missing choices[${h}].tool_calls[${D}].function.arguments 569${R5(t)}`);return{...$,id:P,type:O,function:{...K,name:H,arguments:W}}})}}:{...p,message:{...w,content:g,role:S,refusal:c.refusal??null},finish_reason:u,index:h,logprobs:d}}),created:i,model:s,object:"chat.completion",...o?{system_fingerprint:o}:{}};return MQe(l,e)}function R5(t){return JSON.stringify(t)}class Z2 extends Lk{static fromReadableStream(e){const n=new Z2(null);return n._run(()=>n._fromReadableStream(e)),n}static runFunctions(e,n,r){const i=new Z2(null),s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runFunctions"}};return i._run(()=>i._runFunctions(e,n,s)),i}static runTools(e,n,r){const i=new Z2(n),s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return i._run(()=>i._runTools(e,n,s)),i}}let ame=class extends hi{parse(e,n){return BQe(e.tools),this._client.chat.completions.create(e,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"beta.chat.completions.parse"}})._thenUnwrap(r=>NU(r,e))}runFunctions(e,n){return e.stream?Z2.runFunctions(this._client,e,n):Rk.runFunctions(this._client,e,n)}runTools(e,n){return e.stream?Z2.runTools(this._client,e,n):Rk.runTools(this._client,e,n)}stream(e,n){return Lk.createChatCompletion(this._client,e,n)}};class FB extends hi{constructor(){super(...arguments),this.completions=new ame(this._client)}}(function(t){t.Completions=ame})(FB||(FB={}));class lme extends hi{create(e,n){return this._client.post("/realtime/sessions",{body:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}}class cme extends hi{create(e,n){return this._client.post("/realtime/transcription_sessions",{body:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}}class BO extends hi{constructor(){super(...arguments),this.sessions=new lme(this._client),this.transcriptionSessions=new cme(this._client)}}BO.Sessions=lme;BO.TranscriptionSessions=cme;var Ln=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},iu=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},$a,$B,wf,F6,ld,Oy,O2,by,y8,mu,$6,j6,N4,j3,z3,MZ,NZ,RZ,LZ,BZ,FZ,$Z;class vd extends DU{constructor(){super(...arguments),$a.add(this),$B.set(this,[]),wf.set(this,{}),F6.set(this,{}),ld.set(this,void 0),Oy.set(this,void 0),O2.set(this,void 0),by.set(this,void 0),y8.set(this,void 0),mu.set(this,void 0),$6.set(this,void 0),j6.set(this,void 0),N4.set(this,void 0)}[($B=new WeakMap,wf=new WeakMap,F6=new WeakMap,ld=new WeakMap,Oy=new WeakMap,O2=new WeakMap,by=new WeakMap,y8=new WeakMap,mu=new WeakMap,$6=new WeakMap,j6=new WeakMap,N4=new WeakMap,$a=new WeakSet,Symbol.asyncIterator)](){const e=[],n=[];let r=!1;return this.on("event",i=>{const s=n.shift();s?s.resolve(i):e.push(i)}),this.on("end",()=>{r=!0;for(const i of n)i.resolve(void 0);n.length=0}),this.on("abort",i=>{r=!0;for(const s of n)s.reject(i);n.length=0}),this.on("error",i=>{r=!0;for(const s of n)s.reject(i);n.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((s,o)=>n.push({resolve:s,reject:o})).then(s=>s?{value:s,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(e){const n=new vd;return n._run(()=>n._fromReadableStream(e)),n}async _fromReadableStream(e,n){const r=n?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),this._connected();const i=Lf.fromReadableStream(e,this.controller);for await(const s of i)Ln(this,$a,"m",j3).call(this,s);if(i.controller.signal?.aborted)throw new hh;return this._addRun(Ln(this,$a,"m",z3).call(this))}toReadableStream(){return new Lf(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(e,n,r,i,s){const o=new vd;return o._run(()=>o._runToolAssistantStream(e,n,r,i,{...s,headers:{...s?.headers,"X-Stainless-Helper
569-Method":"stream"}})),o}async _createToolAssistantStream(e,n,r,i,s){const o=s?.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort()));const a={...i,stream:!0},l=await e.submitToolOutputs(n,r,a,{...s,signal:this.controller.signal});this._connected();for await(const c of l)Ln(this,$a,"m",j3).call(this,c);if(l.controller.signal?.aborted)throw new hh;return this._addRun(Ln(this,$a,"m",z3).call(this))}static createThreadAssistantStream(e,n,r){const i=new vd;return i._run(()=>i._threadAssistantStream(e,n,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),i}static createAssistantStream(e,n,r,i){const s=new vd;return s._run(()=>s._runAssistantStream(e,n,r,{...i,headers:{...i?.headers,"X-Stainless-Helper-Method":"stream"}})),s}currentEvent(){return Ln(this,$6,"f")}currentRun(){return Ln(this,j6,"f")}currentMessageSnapshot(){return Ln(this,ld,"f")}currentRunStepSnapshot(){return Ln(this,N4,"f")}async finalRunSteps(){return await this.done(),Object.values(Ln(this,wf,"f"))}async finalMessages(){return await this.done(),Object.values(Ln(this,F6,"f"))}async finalRun(){if(await this.done(),!Ln(this,Oy,"f"))throw Error("Final run was not received.");return Ln(this,Oy,"f")}async _createThreadAssistantStream(e,n,r){const i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));const s={...n,stream:!0},o=await e.createAndRun(s,{...r,signal:this.controller.signal});this._connected();for await(const a of o)Ln(this,$a,"m",j3).call(this,a);if(o.controller.signal?.aborted)throw new hh;return this._addRun(Ln(this,$a,"m",z3).call(this))}async _createAssistantStream(e,n,r,i){const s=i?.signal;s&&(s.aborted&&this.controller.abort(),s.addEventListener("abort",()=>this.controller.abort()));const o={...r,stream:!0},a=await e.create(n,o,{...i,signal:this.controller.signal});this._connected();for await(const l of a)Ln(this,$a,"m",j3).call(this,l);if(a.controller.signal?.aborted)throw new hh;return this._addRun(Ln(this,$a,"m",z3).call(this))}static accumulateDelta(e,n){for(const[r,i]of Object.entries(n)){if(!e.hasOwnProperty(r)){e[r]=i;continue}let s=e[r];if(s==null){e[r]=i;continue}if(r==="index"||r==="type"){e[r]=i;continue}if(typeof s=="string"&&typeof i=="string")s+=i;else if(typeof s=="number"&&typeof i=="number")s+=i;else if(HM(s)&&HM(i))s=this.accumulateDelta(s,i);else if(Array.isArray(s)&&Array.isArray(i)){if(s.every(o=>typeof o=="string"||typeof o=="number")){s.push(...i);continue}for(const o of i){if(!HM(o))throw new Error(`Expected array delta entry to be an object but got: ${o}`);const a=o.index;if(a==null)throw console.error(o),new Error("Expected array delta entry to have an `index` property");if(typeof a!="number")throw new Error(`Expected array delta entry \`index\` property to be a number but got ${a}`);const l=s[a];l==null?s.push(o):s[a]=this.accumulateDelta(l,o)}continue}else throw Error(`Unhandled record type: ${r}, deltaValue: ${i}, accValue: ${s}`);e[r]=s}return e}_addRun(e){return e}async _threadAssistantStream(e,n,r){return await this._createThreadAssistantStream(n,e,r)}async _runAssistantStream(e,n,r,i){return await this._createAssistantStream(n,e,r,i)}async _runToolAssistantStream(e,n,r,i,s){return await this._createToolAssistantStream(r,e,n,i,s)}}j3=function(e){if(!this.ended)switch(iu(this,$6,e,"f"),Ln(this,$a,"m",RZ).call(this,e),e.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.incomplete":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":Ln(this,$a,"m",$Z).call(this,e);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":Ln(this,$a,"m",NZ).call(this,e);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":Ln(this,$a,"m",MZ).call(this,e);break;case"error":throw new Error("Encountered an error event in event processing - errors should be processed earlier")}},z3=function(){if(this.ended)throw new cr("stream has ended, this shouldn't happen");if(!Ln(this,Oy,"f"))throw Error("Final run has not been received");return Ln(this,Oy,"f")},MZ=function(e){const[n,r]=Ln(this,$a,"m",BZ).call(this,e,Ln(this,ld,"f"));iu(this,ld,n,"f"),Ln(this,F6,"f")[n.id]=n;for(const i of r){const s=n.content[i.index];s?.type=="text"&&this._emit("textCreated",s.text)}switch(e.event){case"thread.message.created":this._emit("messageCreated",e.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",e.data.delta,n),e.data.delta.content)for(const i of e.data.delta.content){if(i.type=="text"&&i.text){let s=i.text,o=n.content[i.index];if(o&&o.type=="text")this._emit("textDelta",s,o.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(i.index!=Ln(this,O2,"f")){if(Ln(this,by,"f"))switch(Ln(this,by,"f").type){case"text":this._emit("textDone",Ln(this,by,"f").text,Ln(this,ld,"f"));break;case"image_file":this._emit("imageFileDone",Ln(this,by,"f").image_file,Ln(this,ld,"f"));break}iu(this,O2,i.index,"f")}iu(this,by,n.content[i.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(Ln(this,O2,"f")!==void 0){const i=e.data.content[Ln(this,O2,"f")];if(i)switch(i.type){case"image_file":this._emit("imageFileDone",i.image_file,Ln(this,ld,"f"));break;case"text":this._emit("textDone",i.text,Ln(this,ld,"f"));break}}Ln(this,ld,"f")&&this._emit("messageDone",e.data),iu(this,ld,void 0,"f")}},NZ=function(e){const n=Ln(this,$a,"m",LZ).call(this,e);switch(iu(this,N4,n,"f"),e.event){case"thread.run.step.created":this._emit("runStepCreated",e.data);break;case"thread.run.step.delta":const r=e.data.delta;if(r.step_details&&r.step_details.type=="tool_calls"&&r.step_details.tool_calls&&n.step_details.type=="tool_calls")for(const s of r.step_details.tool_calls)s.index==Ln(this,y8,"f")?this._emit("toolCallDelta",s,n.step_details.tool_calls[s.index]):(Ln(this,mu,"f")&&this._emit("toolCallDone",Ln(this,mu,"f")),iu(this,y8,s.index,"f"),iu(this,mu,n.step_details.tool_calls[s.index],"f"),Ln(this,mu,"f")&&this._emit("toolCallCreated",Ln(this,mu,"f")));this._emit("runStepDelta",e.data.delta,n);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":iu(this,N4,void 0,"f"),e.data.step_details.type=="tool_calls"&&Ln(this,mu,"f")&&(this._emit("toolCallDone",Ln(this,mu,"f")),iu(this,mu,void 0,"f")),this._emit("runStepDone",e.data,n);break}},RZ=function(e){Ln(this,$B,"f").push(e),this._emit("event",e)},LZ=function(e){switch(e.event){case"thread.run.step.created":return Ln(this,wf,"f")[e.data.id]=e.data,e.data;case"thread.run.step.delta":let n=Ln(this,wf,"f")[e.data.id];if(!n)throw Error("Received a RunStepDelta before creation of a snapshot");let r=e.data;if(r.delta){const i=vd.accumulateDelta(n,r.delta);Ln(this,wf,"f")[e.data.id]=i}return Ln(this,wf,"f")[e.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":Ln(this,wf,"f")[e.data.id]=e.data;break}if(Ln(this,wf,"f")[e.data.id])return Ln(this,wf,"f")[e.data.id];throw new Error("No snapshot available")},BZ=function(e,n){let r=[];switch(e.event){case"thread.message.created":return[e.data,r];case"thread.message.delta":if(!n)throw Error("Received a delta with
569no existing snapshot (there should be one from message creation)");let i=e.data;if(i.delta.content)for(const s of i.delta.content)if(s.index in n.content){let o=n.content[s.index];n.content[s.index]=Ln(this,$a,"m",FZ).call(this,s,o)}else n.content[s.index]=s,r.push(s);return[n,r];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(n)return[n,r];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},FZ=function(e,n){return vd.accumulateDelta(n,e)},$Z=function(e){switch(iu(this,j6,e.data,"f"),e.event){case"thread.run.created":break;case"thread.run.queued":break;case"thread.run.in_progress":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":iu(this,Oy,e.data,"f"),Ln(this,mu,"f")&&(this._emit("toolCallDone",Ln(this,mu,"f")),iu(this,mu,void 0,"f"));break}};class RU extends hi{create(e,n,r){return this._client.post(`/threads/${e}/messages`,{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}retrieve(e,n,r){return this._client.get(`/threads/${e}/messages/${n}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}update(e,n,r,i){return this._client.post(`/threads/${e}/messages/${n}`,{body:r,...i,headers:{"OpenAI-Beta":"assistants=v2",...i?.headers}})}list(e,n={},r){return Oa(n)?this.list(e,{},n):this._client.getAPIList(`/threads/${e}/messages`,LU,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}del(e,n,r){return this._client.delete(`/threads/${e}/messages/${n}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}}class LU extends Uc{}RU.MessagesPage=LU;class BU extends hi{retrieve(e,n,r,i={},s){return Oa(i)?this.retrieve(e,n,r,{},i):this._client.get(`/threads/${e}/runs/${n}/steps/${r}`,{query:i,...s,headers:{"OpenAI-Beta":"assistants=v2",...s?.headers}})}list(e,n,r={},i){return Oa(r)?this.list(e,n,{},r):this._client.getAPIList(`/threads/${e}/runs/${n}/steps`,FU,{query:r,...i,headers:{"OpenAI-Beta":"assistants=v2",...i?.headers}})}}class FU extends Uc{}BU.RunStepsPage=FU;class o_ extends hi{constructor(){super(...arguments),this.steps=new BU(this._client)}create(e,n,r){const{include:i,...s}=n;return this._client.post(`/threads/${e}/runs`,{query:{include:i},body:s,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers},stream:n.stream??!1})}retrieve(e,n,r){return this._client.get(`/threads/${e}/runs/${n}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}update(e,n,r,i){return this._client.post(`/threads/${e}/runs/${n}`,{body:r,...i,headers:{"OpenAI-Beta":"assistants=v2",...i?.headers}})}list(e,n={},r){return Oa(n)?this.list(e,{},n):this._client.getAPIList(`/threads/${e}/runs`,$U,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}cancel(e,n,r){return this._client.post(`/threads/${e}/runs/${n}/cancel`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}async createAndPoll(e,n,r){const i=await this.create(e,n,r);return await this.poll(e,i.id,r)}createAndStream(e,n,r){return vd.createAssistantStream(e,this._client.beta.threads.runs,n,r)}async poll(e,n,r){const i={...r?.headers,"X-Stainless-Poll-Helper":"true"};for(r?.pollIntervalMs&&(i["X-Stainless-Custom-Poll-Interval"]=r.pollIntervalMs.toString());;){const{data:s,response:o}=await this.retrieve(e,n,{...r,headers:{...r?.headers,...i}}).withResponse();switch(s.status){case"queued":case"in_progress":case"cancelling":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{const l=o.headers.get("openai-poll-after-ms");if(l){const c=parseInt(l);isNaN(c)||(a=c)}}await r_(a);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return s}}}stream(e,n,r){return vd.createAssistantStream(e,this._client.beta.threads.runs,n,r)}submitToolOutputs(e,n,r,i){return this._client.post(`/threads/${e}/runs/${n}/submit_tool_outputs`,{body:r,...i,headers:{"OpenAI-Beta":"assistants=v2",...i?.headers},stream:r.stream??!1})}async submitToolOutputsAndPoll(e,n,r,i){const s=await this.submitToolOutputs(e,n,r,i);return await this.poll(e,s.id,i)}submitToolOutputsStream(e,n,r,i){return vd.createToolAssistantStream(e,n,this._client.beta.threads.runs,r,i)}}class $U extends Uc{}o_.RunsPage=$U;o_.Steps=BU;o_.RunStepsPage=FU;class Aw extends hi{constructor(){super(...arguments),this.runs=new o_(this._client),this.messages=new RU(this._client)}create(e={},n){return Oa(e)?this.create({},e):this._client.post("/threads",{body:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}retrieve(e,n){return this._client.get(`/threads/${e}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}update(e,n,r){return this._client.post(`/threads/${e}`,{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}del(e,n){return this._client.delete(`/threads/${e}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}createAndRun(e,n){return this._client.post("/threads/runs",{body:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers},stream:e.stream??!1})}async createAndRunPoll(e,n){const r=await this.createAndRun(e,n);return await this.runs.poll(r.thread_id,r.id,n)}createAndRunStream(e,n){return vd.createThreadAssistantStream(e,this._client.beta.threads,n)}}Aw.Runs=o_;Aw.RunsPage=$U;Aw.Messages=RU;Aw.MessagesPage=LU;class Pw extends hi{constructor(){super(...arguments),this.realtime=new BO(this._client),this.chat=new FB(this._client),this.assistants=new OU(this._client),this.threads=new Aw(this._client)}}Pw.Realtime=BO;Pw.Assistants=OU;Pw.AssistantsPage=IU;Pw.Threads=Aw;class ume extends hi{create(e,n){return this._client.post("/completions",{body:e,...n,stream:e.stream??!1})}}class hme extends hi{create(e,n){return this._client.post("/embeddings",{body:e,...n})}}let jU=class extends hi{create(e,n){return this._client.post("/files",Lx({body:e,...n}))}retrieve(e,n){return this._client.get(`/files/${e}`,n)}list(e={},n){return Oa(e)?this.list({},e):this._client.getAPIList("/files",zU,{query:e,...n})}del(e,n){return this._client.delete(`/files/${e}`,n)}content(e,n){return this._client.get(`/files/${e}/content`,{...n,headers:{Accept:"application/binary",...n?.headers},__binaryResponse:!0})}
569retrieveContent(e,n){return this._client.get(`/files/${e}/content`,n)}async waitForProcessing(e,{pollInterval:n=5e3,maxWait:r=30*60*1e3}={}){const i=new Set(["processed","error","deleted"]),s=Date.now();let o=await this.retrieve(e);for(;!o.status||!i.has(o.status);)if(await r_(n),o=await this.retrieve(e),Date.now()-s>r)throw new TU({message:`Giving up on waiting for file ${e} to finish processing after ${r} milliseconds.`});return o}};class zU extends Uc{}jU.FileObjectsPage=zU;class HU extends hi{list(e,n={},r){return Oa(n)?this.list(e,{},n):this._client.getAPIList(`/fine_tuning/jobs/${e}/checkpoints`,UU,{query:n,...r})}}class UU extends Uc{}HU.FineTuningJobCheckpointsPage=UU;class Ow extends hi{constructor(){super(...arguments),this.checkpoints=new HU(this._client)}create(e,n){return this._client.post("/fine_tuning/jobs",{body:e,...n})}retrieve(e,n){return this._client.get(`/fine_tuning/jobs/${e}`,n)}list(e={},n){return Oa(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",VU,{query:e,...n})}cancel(e,n){return this._client.post(`/fine_tuning/jobs/${e}/cancel`,n)}listEvents(e,n={},r){return Oa(n)?this.listEvents(e,{},n):this._client.getAPIList(`/fine_tuning/jobs/${e}/events`,WU,{query:n,...r})}}class VU extends Uc{}class WU extends Uc{}Ow.FineTuningJobsPage=VU;Ow.FineTuningJobEventsPage=WU;Ow.Checkpoints=HU;Ow.FineTuningJobCheckpointsPage=UU;class a_ extends hi{constructor(){super(...arguments),this.jobs=new Ow(this._client)}}a_.Jobs=Ow;a_.FineTuningJobsPage=VU;a_.FineTuningJobEventsPage=WU;class dme extends hi{createVariation(e,n){return this._client.post("/images/variations",Lx({body:e,...n}))}edit(e,n){return this._client.post("/images/edits",Lx({body:e,...n}))}generate(e,n){return this._client.post("/images/generations",{body:e,...n})}}class qU extends hi{retrieve(e,n){return this._client.get(`/models/${e}`,n)}list(e){return this._client.getAPIList("/models",GU,e)}del(e,n){return this._client.delete(`/models/${e}`,n)}}class GU extends EU{}qU.ModelsPage=GU;class fme extends hi{create(e,n){return this._client.post("/moderations",{body:e,...n})}}function VQe(t,e){return!e||!qQe(e)?{...t,output_parsed:null,output:t.output.map(n=>n.type==="function_call"?{...n,parsed_arguments:null}:n.type==="message"?{...n,content:n.content.map(r=>({...r,parsed:null}))}:n)}:pme(t,e)}function pme(t,e){const n=t.output.map(i=>{if(i.type==="function_call")return{...i,parsed_arguments:YQe(e,i)};if(i.type==="message"){const s=i.content.map(o=>o.type==="output_text"?{...o,parsed:WQe(e,o.text)}:o);return{...i,content:s}}return i}),r=Object.assign({},t,{output:n});return Object.getOwnPropertyDescriptor(t,"output_text")||mme(r),Object.defineProperty(r,"output_parsed",{enumerable:!0,get(){for(const i of r.output)if(i.type==="message"){for(const s of i.content)if(s.type==="output_text"&&s.parsed!==null)return s.parsed}return null}}),r}function WQe(t,e){return t.text?.format?.type!=="json_schema"?null:"$parseRaw"in t.text?.format?(t.text?.format).$parseRaw(e):JSON.parse(e)}function qQe(t){return!!MU(t.text?.format)}function GQe(t){return t?.$brand==="auto-parseable-tool"}function KQe(t,e){return t.find(n=>n.type==="function"&&n.name===e)}function YQe(t,e){const n=KQe(t.tools??[],e.name);return{...e,...e,parsed_arguments:GQe(n)?n.$parseRaw(e.arguments):n?.strict?JSON.parse(e.arguments):null}}function mme(t){const e=[];for(const n of t.output)if(n.type==="message")for(const r of n.content)r.type==="output_text"&&e.push(r.text);t.output_text=e.join("")}class gme extends hi{list(e,n={},r){return Oa(n)?this.list(e,{},n):this._client.getAPIList(`/responses/${e}/input_items`,XQe,{query:n,...r})}}var Ov=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},Vm=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Iv,L5,Wm,B5,jZ,zZ,HZ,UZ;class KU extends DU{constructor(e){super(),Iv.add(this),L5.set(this,void 0),Wm.set(this,void 0),B5.set(this,void 0),Ov(this,L5,e,"f")}static createResponse(e,n,r){const i=new KU(n);return i._run(()=>i._createResponse(e,n,{...r,headers:{...r?.headers,"X-Stainless-Helper
569-Method":"stream"}})),i}async _createResponse(e,n,r){const i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort())),Vm(this,Iv,"m",jZ).call(this);const s=await e.responses.create({...n,stream:!0},{...r,signal:this.controller.signal});this._connected();for await(const o of s)Vm(this,Iv,"m",zZ).call(this,o);if(s.controller.signal?.aborted)throw new hh;return Vm(this,Iv,"m",HZ).call(this)}[(L5=new WeakMap,Wm=new WeakMap,B5=new WeakMap,Iv=new WeakSet,jZ=function(){this.ended||Ov(this,Wm,void 0,"f")},zZ=function(n){if(this.ended)return;const r=Vm(this,Iv,"m",UZ).call(this,n);switch(this._emit("event",n),n.type){case"response.output_text.delta":{const i=r.output[n.output_index];if(!i)throw new cr(`missing output at index ${n.output_index}`);if(i.type==="message"){const s=i.content[n.content_index];if(!s)throw new cr(`missing content at index ${n.content_index}`);if(s.type!=="output_text")throw new cr(`expected content to be 'output_text', got ${s.type}`);this._emit("response.output_text.delta",{...n,snapshot:s.text})}break}case"response.function_call_arguments.delta":{const i=r.output[n.output_index];if(!i)throw new cr(`missing output at index ${n.output_index}`);i.type==="function_call"&&this._emit("response.function_call_arguments.delta",{...n,snapshot:i.arguments});break}default:this._emit(n.type,n);break}},HZ=function(){if(this.ended)throw new cr("stream has ended, this shouldn't happen");const n=Vm(this,Wm,"f");if(!n)throw new cr("request ended without sending any events");Ov(this,Wm,void 0,"f");const r=QQe(n,Vm(this,L5,"f"));return Ov(this,B5,r,"f"),r},UZ=function(n){let r=Vm(this,Wm,"f");if(!r){if(n.type!=="response.created")throw new cr(`When snapshot hasn't been set yet, expected 'response.created' event, got ${n.type}`);return r=Ov(this,Wm,n.response,"f"),r}switch(n.type){case"response.output_item.added":{r.output.push(n.item);break}case"response.content_part.added":{const i=r.output[n.output_index];if(!i)throw new cr(`missing output at index ${n.output_index}`);i.type==="message"&&i.content.push(n.part);break}case"response.output_text.delta":{const i=r.output[n.output_index];if(!i)throw new cr(`missing output at index ${n.output_index}`);if(i.type==="message"){const s=i.content[n.content_index];if(!s)throw new cr(`missing content at index ${n.content_index}`);if(s.type!=="output_text")throw new cr(`expected content to be 'output_text', got ${s.type}`);s.text+=n.delta}break}case"response.function_call_arguments.delta":{const i=r.output[n.output_index];if(!i)throw new cr(`missing output at index ${n.output_index}`);i.type==="function_call"&&(i.arguments+=n.delta);break}case"response.completed":{Ov(this,Wm,n.response,"f");break}}return r},Symbol.asyncIterator)](){const e=[],n=[];let r=!1;return this.on("event",i=>{const s=n.shift();s?s.resolve(i):e.push(i)}),this.on("end",()=>{r=!0;for(const i of n)i.resolve(void 0);n.length=0}),this.on("abort",i=>{r=!0;for(const s of n)s.reject(i);n.length=0}),this.on("error",i=>{r=!0;for(const s of n)s.reject(i);n.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((s,o)=>n.push({resolve:s,reject:o})).then(s=>s?{value:s,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}async finalResponse(){await this.done();const e=Vm(this,B5,"f");if(!e)throw new cr("stream ended without producing a ChatCompletion");return e}}function QQe(t,e){return VQe(t,e)}class YU extends hi{constructor(){super(...arguments),this.inputItems=new gme(this._client)}create(e,n){return this._client.post("/responses",{body:e,...n,stream:e.stream??!1})._thenUnwrap(r=>("object"in r&&r.object==="response"&&mme(r),r))}retrieve(e,n={},r){return Oa(n)?this.retrieve(e,{},n):this._client.get(`/responses/${e}`,{query:n,...r})}del(e,n){return this._client.delete(`/responses/${e}`,{...n,headers:{Accept:"*/*",...n?.headers}})}parse(e,n){return this._client.responses.create(e,n)._thenUnwrap(r=>pme(r,e))}stream(e,n){return KU.createResponse(this._client,e,n)}}class XQe extends Uc{}YU.InputItems=gme;class yme extends hi{create(e,n,r){return this._client.post(`/uploads/${e}/parts`,Lx({body:n,...r}))}}class QU extends hi{constructor(){super(...arguments),this.parts=new yme(this._client)}create(e,n){return this._client.post("/uploads",{body:e,...n})}cancel(e,n){return this._client.post(`/uploads/${e}/cancel`,n)}complete(e,n,r){return this._client.post(`/uploads/${e}/complete`,{body:n,...r})}}QU.Parts=yme;const JQe=async t=>{const e=await Promise.allSettled(t),n=e.filter(i=>i.status==="rejected");if(n.length){for(const i of n)console.error(i.reason);throw new Error(`${n.length} promise(s) failed - see the above errors`)}const r=[];for(const i of e)i.status==="fulfilled"&&r.push(i.value);return r};class FO extends hi{create(e,n,r){return this._client.post(`/vector_stores/${e}/files`,{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}retrieve(e,n,r){return this._client.get(`/vector_stores/${e}/files/${n}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}update(e,n,r,i){return this._client.post(`/vector_stores/${e}/files/${n}`,{body:r,...i,headers:{"OpenAI-Beta":"assistants=v2",...i?.headers}})}list(e,n={},r){return Oa(n)?this.list(e,{},n):this._client.getAPIList(`/vector_stores/${e}/files`,$O,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}del(e,n,r){return this._client.delete(`/vector_stores/${e}/files/${n}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}async createAndPoll(e,n,r){const i=await this.create(e,n,r);return await this.poll(e,i.id,r)}async poll(e,n,r){const i={...r?.headers,"X-Stainless-Poll-Helper":"true"};for(r?.pollIntervalMs&&(i["X-Stainless-Custom-Poll-Interval"]=r.pollIntervalMs.toString());;){const s=await this.retrieve(e,n,{...r,headers:i}).withResponse(),o=s.data;switch(o.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{const l=s.response.headers.get("openai-poll-after-ms");if(l){const c=parseInt(l);isNaN(c)||(a=c)}}await r_(a);break;case"failed":case"completed":return o}}}async upload(e,n,r){const i=await this._client.files.create({file:n,purpose:"assistants"},r);return this.create(e,{file_id:i.id},r)}async uploadAndPoll(e,n,r){const i=await this.upload(e,n,r);return await this.poll(e,i.id,r)}content(e,n,r){return this._client.getAPIList(`/vector_stores/${e}/files/${n}/content`,XU,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}}class $O extends Uc{}
569class XU extends EU{}FO.VectorStoreFilesPage=$O;FO.FileContentResponsesPage=XU;class bme extends hi{create(e,n,r){return this._client.post(`/vector_stores/${e}/file_batches`,{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}retrieve(e,n,r){return this._client.get(`/vector_stores/${e}/file_batches/${n}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}cancel(e,n,r){return this._client.post(`/vector_stores/${e}/file_batches/${n}/cancel`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}async createAndPoll(e,n,r){const i=await this.create(e,n);return await this.poll(e,i.id,r)}listFiles(e,n,r={},i){return Oa(r)?this.listFiles(e,n,{},r):this._client.getAPIList(`/vector_stores/${e}/file_batches/${n}/files`,$O,{query:r,...i,headers:{"OpenAI-Beta":"assistants=v2",...i?.headers}})}async poll(e,n,r){const i={...r?.headers,"X-Stainless-Poll-Helper":"true"};for(r?.pollIntervalMs&&(i["X-Stainless-Custom-Poll-Interval"]=r.pollIntervalMs.toString());;){const{data:s,response:o}=await this.retrieve(e,n,{...r,headers:i}).withResponse();switch(s.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{const l=o.headers.get("openai-poll-after-ms");if(l){const c=parseInt(l);isNaN(c)||(a=c)}}await r_(a);break;case"failed":case"cancelled":case"completed":return s}}}async uploadAndPoll(e,{files:n,fileIds:r=[]},i){if(n==null||n.length==0)throw new Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");const s=i?.maxConcurrency??5,o=Math.min(s,n.length),a=this._client,l=n.values(),c=[...r];async function u(d){for(let p of d){const g=await a.files.create({file:p,purpose:"assistants"},i);c.push(g.id)}}const h=Array(o).fill(l).map(u);return await JQe(h),await this.createAndPoll(e,{file_ids:c})}}class p1 extends hi{constructor(){super(...arguments),this.files=new FO(this._client),this.fileBatches=new bme(this._client)}create(e,n){return this._client.post("/vector_stores",{body:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}retrieve(e,n){return this._client.get(`/vector_stores/${e}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}update(e,n,r){return this._client.post(`/vector_stores/${e}`,{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}list(e={},n){return Oa(e)?this.list({},e):this._client.getAPIList("/vector_stores",JU,{query:e,...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}del(e,n){return this._client.delete(`/vector_stores/${e}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n?.headers}})}search(e,n,r){return this._client.getAPIList(`/vector_stores/${e}/search`,ZU,{body:n,method:"post",...r,headers:{"OpenAI-Beta":"assistants=v2",...r?.headers}})}}class JU extends Uc{}class ZU extends EU{}p1.VectorStoresPage=JU;p1.VectorStoreSearchResponsesPage=ZU;p1.Files=FO;p1.VectorStoreFilesPage=$O;p1.FileContentResponsesPage=XU;p1.FileBatches=bme;var vme;class Mr extends xQe{constructor({baseURL:e=I5("OPENAI_BASE_URL"),apiKey:n=I5("OPENAI_API_KEY"),organization:r=I5("OPENAI_ORG_ID")??null,project:i=I5("OPENAI_PROJECT_ID")??null,...s}={}){if(n===void 0)throw new cr("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");const o={apiKey:n,organization:r,project:i,...s,baseURL:e||"https://api.openai.com/v1"};if(!o.dangerouslyAllowBrowser&&OQe())throw new cr(`It looks like you're running in a browser-like environment. 570 571This is disabled by default, as it risks exposing your secret API credentials to attackers. 572If you understand the risks and have appropriate mitigations in place, 573you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g., 574 575new OpenAI({ apiKey, dangerouslyAllowBrowser: true }); 576 577https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety 578`);super({baseURL:o.baseURL,timeout:o.timeout??6e5,httpAgent:o.httpAgent,maxRetries:o.maxRetries,fetch:o.fetch}),this.completions=new ume(this),this.chat=new LO(this),this.embeddings=new hme(this),this.files=new jU(this),this.images=new dme(this),this.audio=new i_(this),this.moderations=new fme(this),this.models=new qU(this),this.fineTuning=new a_(this),this.vectorStores=new p1(this),this.beta=new Pw(this),this.batches=new AU(this),this.uploads=new QU(this),this.responses=new YU(this),this._options=o,this.apiKey=n,this.organization=r,this.project=i}defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:`Bearer ${this.apiKey}`}}stringifyQuery(e){return nQe(e,{arrayFormat:"brackets"})}}vme=Mr;Mr.OpenAI=vme;Mr.DEFAULT_TIMEOUT=6e5;Mr.OpenAIError=cr;Mr.APIError=Ga;Mr.APIConnectionError=OO;Mr.APIConnectionTimeoutError=TU;Mr.APIUserAbortError=hh;Mr.NotFoundError=x0e;Mr.ConflictError=w0e;Mr.RateLimitError=k0e;Mr.BadRequestError=y0e;Mr.AuthenticationError=b0e;Mr.InternalServerError=C0e;Mr.PermissionDeniedError=v0e;Mr.UnprocessableEntityError=S0e;Mr.toFile=O0e;Mr.fileFromPath=p0e;Mr.Completions=ume;Mr.Chat=LO;Mr.ChatCompletionsPage=RO;Mr.Embeddings=hme;Mr.Files=jU;Mr.FileObjectsPage=zU;Mr.Images=dme;Mr.Audio=i_;Mr.Moderations=fme;Mr.Models=qU;Mr.ModelsPage=GU;Mr.FineTuning=a_;Mr.VectorStores=p1;Mr.VectorStoresPage=JU;Mr.VectorStoreSearchResponsesPage=ZU;Mr.Beta=Pw;Mr.Batches=AU;Mr.BatchesPage=PU;Mr.Uploads=QU;Mr.Responses=YU;class Nb{id;name;apiUrl;apiKey;defaultModel;_isSystemProvider=!1;constructor(e,n,r,i){this.id=f1(),this.name=e,this.apiUrl=n,this.apiKey=i,this.defaultModel=r}get isSystemProvider(){return this._isSystemProvider}createClient(e){return{openai:new Mr({apiKey:e,baseURL:this.apiUrl,defaultHeaders:this.clientHeaders,dangerouslyAllowBrowser:!0}),headers:this.clientHeaders}}get clientHeaders(){return{}}get logoUrl(){return"/openai-logo.png"}async queryModels(e){if(!this.apiUrl)throw new Error("Missing API Url");const{openai:n}=this.createClient(e);try{const r=[];for await(const s of n.models.list())r.push(s);return r.map(s=>s.id).sort((s,o)=>s.localeCompare(o))}catch(r){throw new Error(`error querying models API: ${r.message}`)}}defaultModelForProvider(){return new _c(this.defaultModel)}static areSameProviders(e,n){return e.apiUrl===n.apiUrl&&e.apiKey===n.apiKey&&e.isSystemProvider===n.isSystemProvider}}class eV extends Nb{_isSystemProvider=!0;async validateApiKey(e){return!0}static fromProvider(e){const n=new eV(e.name,e.apiUrl,e.defaultModel,e.apiKey);return n.id=e.id,n}}class ZQe{id;name;apiUrl;apiKey;constructor(e,n,r){this.id=f1(),this.name=e,this.apiUrl=n,this.apiKey=r}}const jO="https://api.openai.com/v1",eXe="OpenAI",tXe="gpt-4o";class Iw extends Nb{constructor(e,n){super(n||eXe,jO,tXe,e)}get logoUrl(){return"/openai-logo.png"}static fromJSON({apiKey:e,name:n}){return new Iw(e,n)}async validateApiKey(e){return!!await this.queryModels(e)}}const zO=()=>navigator.userAgent.includes("Macintosh"),nXe=()=>!zO(),gg=t=>
578t?t.toLocaleString():"0",rXe=t=>Intl.NumberFormat(void 0,{style:"currency",currency:"USD"}).format(t),iXe=t=>{const e=Math.floor(t/60),n=t%60,r=e<10?"0"+e:e.toString(),i=n<10?"0"+n:n.toString();return`${r}:${i}`},xme=(t,e)=>{const n=t.lastIndexOf("."),r=n===-1?t:t.slice(0,n),i=n===-1?"":t.slice(n);if(!e.some(a=>a.name===t))return t;let s=1,o;do o=`${r}(${s})${i}`,s++;while(e.some(a=>a.name===o));return o},sXe=t=>t<1024*1024?`${(t/1024).toFixed(1)}KB`:`${(t/(1024*1024)).toFixed(1)}MB`,tV=(t,e=!1)=>e?new Intl.DateTimeFormat(void 0,{dateStyle:"short"}).format(t):new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(t);function xd(t,e,n="text/plain"){let r;typeof t=="string"?r=new Blob([t],{type:n}):r=t;const i=URL.createObjectURL(r),s=document.createElement("a");s.setAttribute("download",e),s.setAttribute("href",i),s.click()}const oXe=()=>{const{origin:t}=location;return t.includes("localhost")||t.includes("overthinker-dev.pages.dev")?"https://chatcraft.org/":`${t}/`};function nV(t){if(!Array.isArray(t)||!t.length)return"";const e=Object.keys(t[0]),n=`| ${e.join(" | ")} |`,r=`| ${e.map(()=>"---").join(" | ")} |`,i=t.map(s=>`| ${Object.values(s).join(" | ")} |`).join(` 579`);return`${n} 580${r} 581${i}`}const cd=(t,e="text")=>`\`\`\`${e} 582${t} 583\`\`\``,aXe=()=>location.origin==="https://chatcraft.org",wme=()=>zO()?"Command â":"Ctrl",lXe=t=>ge(()=>import("./html2canvas.esm-BfxBtG_O.js"),[]).then(e=>{const n=e.default;return n(t,{windowWidth:t.scrollWidth,windowHeight:t.scrollHeight})}).then(e=>new Promise((n,r)=>{e.toBlob(i=>{if(!i){r(new Error("Unable to screenshot element"));return}n(i)})})),cXe=(t,e={})=>{const{compressionFactor:n=1,maxSizeMB:r=20,maxWidthOrHeight:i=2048}=e,s={maxSizeMB:Math.min(t.size/1024/1024*n,r,20),maxWidthOrHeight:Math.min(i,2048)};return ge(()=>import("./browser-image-compression-CWD5gD0p.js"),[]).then(o=>{const a=o.default;return a(t,s)}).then(o=>new Promise((a,l)=>{const c=new FileReader;c.readAsDataURL(o),c.onloadend=()=>{const u=c.result;a(u)},c.onerror=u=>{l(u)}})).catch(o=>{throw console.error("Error processing images",o),o})},Sme=(t,e)=>{e(n=>{if(t){const r=[...n],i=n.indexOf("");if(i!==-1)r[i]=t;else return[...n,t];return r}else return[...n,""]})},uXe=async()=>{const{createStandaloneToast:t}=await ge(async()=>{const{createStandaloneToast:s}=await import("./index-D6MmIwYF.js");return{createStandaloneToast:s}},[]),{toast:e}=t();return{info:({id:s,title:o,message:a})=>{e({id:s,title:o,description:a,colorScheme:"blue",status:"info",position:"top",isClosable:!0,duration:3e3})},loading:({id:s,title:o,message:a})=>{const l=new Date().toISOString();return e({id:s??l,title:o,description:a,colorScheme:"blue",status:"loading",position:"top",isClosable:!0,duration:null}),s??l},closeLoading:s=>{e.close(s)}}},b8="https://openrouter.ai/api/v1",hXe="OpenRouter.ai",dXe="openrouter/auto";class m1 extends Nb{constructor(e,n){super(n||hXe,b8,dXe,e)}get clientHeaders(){return{"HTTP-Referer":oXe(),"X-Title":"chatcraft.org"}}static fromJSON({apiKey:e,name:n}){return new m1(e,n)}async validateApiKey(e){const n=await fetch(`${b8}/auth/key`,{method:"GET",headers:{Authorization:`Bearer ${e}`}});if(!n.ok)throw new Error(`${n.status} ${await n.text()}`);return!0}openRouterPkceRedirect=()=>{const e=location.origin;location.href=`https://openrouter.ai/auth?callback_url=${encodeURIComponent(e)}`}}const jB="https://free-chatcraft-ai.deno.dev/api/v1",fXe="Free AI Models",pXe="auto";class Og extends Nb{constructor(){super(fXe,jB,pXe,"mock_key")}async queryModels(e){const n=await fetch(`${jB}/models`,{method:"GET"});if(!n.ok)throw new Error(`${n.status} ${await n.text()}`);try{return(await n.json()).data.map(i=>i.id)}catch(r){throw new Error(`error querying models API: ${r.message}`)}}async validateApiKey(e){return!0}}class x0 extends Nb{constructor(e,n,r,i){super(e,n,r,i)}get logoUrl(){return"/openai-logo.png"}static fromJSON({name:e,apiUrl:n,defaultModel:r,apiKey:i}){return new x0(e,n,r,i)}async validateApiKey(e){return!!await this.queryModels(e)}}const mXe=()=>Rc().currentProvider.apiUrl===jO;function R4(t,e,n,r){const i=t.trim().replace(/\/+$/,"");if(i===jO)return new Iw(e,n);if(i===b8)return new m1(e,n);if(i===jB)return new Og;if(n)return new x0(n,t,r||"",e);throw new Error("Error parsing provider from url, name missing")}function zB({id:t,name:e,apiUrl:n,apiKey:r,defaultModel:i}){return n===jO?Iw.fromJSON({id:t,name:e,apiUrl:n,apiKey:r,defaultModel:i}):n===b8?m1.fromJSON({id:t,name:e,apiUrl:n,apiKey:r,defaultModel:i}):x0.fromJSON({id:t,name:e,apiUrl:n,apiKey:r,defaultModel:i})}const H3=(()=>{const t=new Og,e=new m1,n=new Iw;return{[t.name]:t,[e.name]:e,[n.name]:n}})();var rV=(t=>(t.ALLOY="alloy",t.ECHO="echo",t.FABLE="fable",t.ONYX="onyx",t.NOVA="nova",t.SHIMMER="shimmer",t))(rV||{});const Jy={model:new _c("auto"),temperature:0,enterBehaviour:"send",countTokens:!1,sidebarVisible:!1,alwaysSendFunctionResult:!1,textToSpeech:{announceMessages:!1,voice:"alloy"},providers:{},nonLLMProviders:{},currentProvider:new Og,compressionFactor:1,maxCompressedFileSizeMB:20,maxImageDimension:2048},kme="settings",gXe=t=>JSON.stringify(t),Cme=t=>{const e=JSON.parse(t);if(e.model||(e.model=Jy.model),typeof e.model=="string"&&(e.model=new _c(e.model)),e.currentProvider)e.currentProvider=zB(e.currentProvider);else if(e.apiKey&&e.apiUrl){const r=R4(e.apiUrl,e.apiKey);e.currentProvider=r,e.providers={...e.providers,[r.name]:r},delete e.apiKey,delete e.apiUrl,console.warn("Migrated deprecated apiKey, apiUrl")}const n={};for(const r in e.providers){const i=zB(e.providers[r]);n[i.name]=i}return e.providers=n,{...Jy,...e}},Rc=()=>{const t=localStorage.getItem(kme);return t===null?Jy:Cme(t)};
583class _me extends Error{incompleteResponse;constructor(e,n){super(`API Error: ${e.message}`),this.incompleteResponse=n?.clone()}}function yXe(t){let e="",n="",r="";const i=t.model,s=t.choices[0]?.delta;s?.content&&(r=s?.content);const o=s?.function_call;if(o)if(o.name)e=o.name;else if(o.arguments){const a=o.arguments;n=n+a}else throw new Error("unable to handle OpenAI response (not function name or args)");return{model:i,token:r,functionName:e,functionArgs:n}}function bXe(t){let e="",n="",r="";const i=t.model,s=t.choices[0]?.message;s?.content&&(r=s?.content);const o=t.choices[0]?.message.function_call;if(o)if(o.name)e=o.name;else if(o.arguments)n=o.arguments;else throw new Error("unable to handle OpenAI response (not function name or args)");return{model:i,content:r,functionName:e,functionArgs:n}}const Tme=(t,e={})=>{const n=Rc(),{onData:r,onFinish:i,onPause:s,onResume:o,onError:a,temperature:l=n.temperature,model:c=n.model,functions:u,functionToCall:h}=e,d=new AbortController,p=()=>{d.abort()},g=q=>{q.key==="Escape"&&p()};addEventListener("keydown",g);let y=!1;const b=()=>{y=!0,s&&s()},w=()=>{y=!1,o&&o()},S=()=>{y?w():b()},T=!!r,D=async(q,fe="")=>{const ke=new Pu({text:fe,model:new _c(q)});return i&&i(ke),ke},E=async(q,fe,ke)=>{const Be=u?.find(({name:Ne})=>Ne===fe);if(!Be)throw new Error(`no function found matching ${fe}`);const Qe=JSON.parse(ke),ft=`**Function Call**: [${Be.prettyName}](${Be.url}) 584 585\`\`\`js 586/* ${Be.description} */ 587${Be.name}(${JSON.stringify(Qe,null,2)}) 588\`\`\` 589`;return new L0({text:ft,model:new _c(q),func:{id:Be.id,name:Be.name,params:Qe}})},O=async(q,fe,ke,Be)=>{if(fe.length>0)return D(q,fe);if(ke&&Be)return E(q,ke,Be);throw new Error("unable to handle OpenAI response (not text or function)")},P=[],$=[];let W="",H="",K=null,Z=null;const oe=async(q,fe,ke)=>(fe||ke?(W+=fe,H+=ke,r&&!y&&r({token:fe,currentText:H})):q&&(P.push(q),r&&!y&&($.push(q),K||(K=new Promise(Be=>{Z=requestAnimationFrame(()=>{r({token:$.join(""),currentText:P.join("")}),$.length=0,Be()})}).finally(()=>{K=null,Z=null})))),{token:q,functionName:W,functionArgs:H}),te=async q=>{cancelAnimationFrame(Z);const fe=new _me(q,P.length?new Pu({model:c,text:P.join("")}):void 0);throw a&&a(fe),fe};if(!n.currentProvider.apiKey)throw new Error("Missing API Key");const{openai:re,headers:Y}=n.currentProvider.createClient(n.currentProvider.apiKey),z={model:c?c.id:n.model.id,temperature:Math.min(Math.max(l??0,0),2),messages:t.map(q=>q.toOpenAiMessage()),stream:T,functions:c.supportsFunctionCalling&&u?u.map(q=>q.toOpenAIFunction()):void 0,function_call:c.supportsFunctionCalling&&u?h?.name?{name:h.name}:"auto":void 0},U={headers:Y,signal:d.signal},Q=T?async q=>{let fe=null;for await(const Be of q){const Qe=yXe(Be);fe=Qe.model,await oe(Qe.token,Qe.functionName,Qe.functionArgs)}K&&await K;const ke=P.join("");return O(fe||n.model.id,ke,W,H)}:async q=>{const{model:fe,content:ke,functionName:Be,functionArgs:Qe}=bXe(q);return O(fe,ke,Be,Qe)};return{promise:re.chat.completions.create(z,U).then(Q).catch(te).finally(()=>{cancelAnimationFrame(Z),Z=null,removeEventListener("keydown",g)}),cancel:p,pause:b,resume:w,togglePause:S}};let KM;const vXe=async t=>{if(!KM){Rc().countTokens||console.trace("Unexpected call to countTokens() when settings.countTokens not set");const{Tiktoken:e}=await ge(async()=>{const{Tiktoken:r}=await import("./tiktoken-D1m430kL.js");return{Tiktoken:r}},[]),n=await ge(()=>import("./cl100k_base-BbTNOy-H.js"),[]);KM=new e(n.bpe_ranks,n.special_tokens,n.pat_str)}return KM.encode(t).length},Eme=async t=>(await Promise.all(t.map(n=>n.tokens()))).reduce((n,r)=>n+r,0),xXe=(t,e)=>(t=t/1e3,e.id.startsWith("gpt-4")?t*.06:e.id.startsWith("gpt-3.5")?t*.002:(console.warn(`Unknown pricing for model ${e.toString()}`),0));async function wXe(){const{currentProvider:t}=Rc();if(!t.apiKey)throw new Error("Missing API Key");return(await t.queryModels(t.apiKey)).filter(e=>Ame(e))?.length>0}const SXe=async({prompt:t,n:e=1,size:n="1024x1024"})=>{const{currentProvider:r}=Rc();if(!r.apiKey)throw new Error("Missing OpenAI API Key");const{openai:i}=r.createClient(r.apiKey);try{return(await i.images.generate({model:"dall-e-3",prompt:t,n:e,size:n,response_format:"b64_json"})).data.map(({b64_json:a})=>`data:image/jpeg;base64,${a}`)}catch(s){throw new Error(s)}};function v8(t){return t.includes("whisper")}function HB(t){return t.includes("tts")}function Ame(t){return t.includes("dall-e")}function Pme(t){return mXe()&&t.includes("gpt")||!(HB(t)||v8(t)||Ame(t))}const kXe="/assets/esbuild-Byxksdum.wasm",CXe=new TextDecoder("utf-8"),UB=t=>CXe.decode(t),_Xe=new TextEncoder,iV=t=>_Xe.encode(t),TXe=t=>typeof t=="number",Ome=t=>typeof t=="boolean",sa=t=>typeof t=="function",Lc=t=>t!=null&&Object(t)===t,fb=t=>Lc(t)&&sa(t.then),l_=t=>Lc(t)&&sa(t[Symbol.iterator]),Dw=t=>Lc(t)&&sa(t[Symbol.asyncIterator]),VB=t=>Lc(t)&&Lc(t.schema),Ime=t=>Lc(t)&&"done"in t&&"value"in t,Dme=t=>Lc(t)&&sa(t.stat)&&TXe(t.fd),Mme=t=>Lc(t)&&sV(t.body),HO=t=>"_getDOMStream"in t&&"_getNodeStream"in t,EXe=t=>Lc(t)&&sa(t.abort)&&sa(t.getWriter)&&!HO(t),sV=t=>Lc(t)&&sa(t.cancel)&&sa(t.getReader)&&!HO(t),AXe=t=>Lc(t)&&sa(t.end)&&sa(t.write)&&Ome(t.writable)&&!HO(t),Nme=t=>Lc(t)&&sa(t.read)&&sa(t.pipe)&&Ome(t.readable)&&!HO(t),PXe=t=>Lc(t)&&sa(t.clear)&&sa(t.bytes)&&sa(t.position)&&sa(t.setPosition)&&sa(t.capacity)&&sa(t.getBufferIdentifier)&&sa(t.createLong),oV=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function OXe(t){const e=t[0]?[t[0]]:[];let n,r,i,s;for(let o,a,l=0,c=0,u=t.length;++l<u;){if(o=e[c],a=t[l],!o||!a||o.buffer!==a.buffer||a.byteOffset<o.byteOffset){a&&(e[++c]=a);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:s}=a,n+i<r||r+s<n){a&&(e[++c]=a);continue}e[c]=new Uint8Array(o.buffer,n,r-n+s)}return e}function VZ(t,e,n=0,r=e.byteLength){const i=t.byteLength,s=new Uint8Array(t.buffer,t.byteOffset,i),o=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,i));return s.set(o,n),t}function ap(t,e){const n=OXe(t),r=n.reduce((u,h)=>u+h.byteLength,0);let i,s,o,a=0,l=-1;const c=Math.min(e||Number.POSITIVE_INFINITY,r);for(const u=n.length;++l<u;){if(i=n[l],s=i.subarray(0,Math.min(i.length,c-a)),c<=a+s.length){s.length<i.length?n[l]=i.subarray(s.length):s.length===i.length&&l++,o?VZ(o,s,a):o=s;break}VZ(o||(o=new Uint8Array(c)),s,a),a+=s.length}return[o||new Uint8Array(0),n.slice(l),r-(o?o.byteLength:0)]}function Ji(t,e){let n=Ime(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=iV(n)),n instanceof ArrayBuffer?new t(n):n instanceof oV?new t(n):PXe(n)?Ji(t,n.bytes()):ArrayBuffer.isView(n)?n.b
vendor: 5,186 bytes, line 589
589yteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const US=t=>Ji(Int32Array,t),WZ=t=>Ji(BigInt64Array,t),li=t=>Ji(Uint8Array,t),WB=t=>(t.next(),t);function*IXe(t,e){const n=function*(i){yield i},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof oV?n(e):l_(e)?e:n(e);return yield*WB(function*(i){let s=null;do s=i.next(yield Ji(t,s));while(!s.done)}(r[Symbol.iterator]())),new t}const DXe=t=>IXe(Uint8Array,t);function Rme(t,e){return Rf(this,arguments,function*(){if(fb(e))return yield qr(yield qr(yield*k6(Yy(Rme(t,yield qr(e))))));const r=function(o){return Rf(this,arguments,function*(){yield yield qr(yield qr(o))})},i=function(o){return Rf(this,arguments,function*(){yield qr(yield*k6(Yy(WB(function*(a){let l=null;do l=a.next(yield l?.value);while(!l.done)}(o[Symbol.iterator]())))))})},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof oV?r(e):l_(e)?i(e):Dw(e)?e:r(e);return yield qr(yield*k6(Yy(WB(function(o){return Rf(this,arguments,function*(){let a=null;do a=yield qr(o.next(yield yield qr(Ji(t,a))));while(!a.done)})}(s[Symbol.asyncIterator]()))))),yield qr(new t)})}const MXe=t=>Rme(Uint8Array,t);function Lme(t,e,n){if(t!==0){n=n.slice(0,e);for(let r=-1,i=n.length;++r<i;)n[r]+=t}return n.subarray(0,e)}function NXe(t,e){let n=0;const r=t.length;if(r!==e.length)return!1;if(r>0)do if(t[n]!==e[n])return!1;while(++n<r);return!0}const sh={fromIterable(t){return F5(RXe(t))},fromAsyncIterable(t){return F5(LXe(t))},fromDOMStream(t){return F5(BXe(t))},fromNodeStream(t){return F5($Xe(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},F5=t=>(t.next(),t);function*RXe(t){let e,n=!1,r=[],i,s,o,a=0;function l(){return s==="peek"?ap(r,o)[0]:([i,r,a]=ap(r,o),i)}({cmd:s,size:o}=(yield null)||{cmd:"read",size:0});const c=DXe(t)[Symbol.iterator]();try{do if({done:e,value:i}=Number.isNaN(o-a)?c.next():c.next(o-a),!e&&i.byteLength>0&&(r.push(i),a+=i.byteLength),e||o<=a)do({cmd:s,size:o}=yield l());while(o<a);while(!e)}catch(u){(n=!0)&&typeof c.throw=="function"&&c.throw(u)}finally{n===!1&&typeof c.return=="function"&&c.return(null)}return null}function LXe(t){return Rf(this,arguments,function*(){let n,r=!1,i=[],s,o,a,l=0;function c(){return o==="peek"?ap(i,a)[0]:([s,i,l]=ap(i,a),s)}({cmd:o,size:a}=(yield yield qr(null))||{cmd:"read",size:0});const u=MXe(t)[Symbol.asyncIterator]();try{do if({done:n,value:s}=Number.isNaN(a-l)?yield qr(u.next()):yield qr(u.next(a-l)),!n&&s.byteLength>0&&(i.push(s),l+=s.byteLength),n||a<=l)do({cmd:o,size:a}=yield yield qr(c()));while(a<l);while(!n)}catch(h){(r=!0)&&typeof u.throw=="function"&&(yield qr(u.throw(h)))}finally{r===!1&&typeof u.return=="function"&&(yield qr(u.return(new Uint8Array(0))))}return yield qr(null)})}function BXe(t){return Rf(this,arguments,function*(){let n=!1,r=!1,i=[],s,o,a,l=0;function c(){return o==="peek"?ap(i,a)[0]:([s,i,l]=ap(i,a),s)}({cmd:o,size:a}=(yield yield qr(null))||{cmd:"read",size:0});const u=new FXe(t);try{do if({done:n,value:s}=Number.isNaN(a-l)?yield qr(u.read()):yield qr(u.read(a-l)),!n&&s.byteLength>0&&(i.push(li(s)),l+=s.byteLength),n||a<=l)do({cmd:o,size:a}=yield yield qr(c()));while(a<l);while(!n)}catch(h){(r=!0)&&(yield qr(u.cancel(h)))}finally{r===!1?yield qr(u.cancel()):t.locked&&u.releaseLock()}return yield qr(null)})}class FXe{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return Vn(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(e).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(e){return Vn(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=li(n)),n})}}const YM=(t,e)=>{const n=i=>r([e,i]);let r;return[e,n,new Promise(i=>(r=i)&&t.once(e,n))]};function $Xe(t){return Rf(this,arguments,function*(){const n=[];let r="error",i=!1,s=null,o,a,l=0,c=[],u;function h(){return o==="peek"?ap(c,a)[0]:([u,c,l]=ap(c,a),u)}if({cmd:o,size:a}=(yield yield qr(null))||{cmd:"read",size:0},t.isTTY)return yield yield qr(new Uint8Array(0)),yield qr(null);try{n[0]=YM(t,"end"),n[1]=YM(t,"error");do{if(n[2]=YM(t,"readable"),[r,s]=yield qr(Promise.race(n.map(p=>p[2]))),r==="error")break;if((i=r==="end")||(Number.isFinite(a-l)?(u=li(t.read(a-l)),u.byteLength<a-l&&(u=li(t.read()))):u=li(t.read()),u.byteLength>0&&(c.push(u),l+=u.byteLength)),i||a<=l)do({cmd:o,size:a}=yield yield qr(h()));while(a<l)}while(!i)}finally{yield qr(d(n,r==="error"?s:null))}return yield qr(null);function d(p,g){return u=c=null,new Promise((y,b)=>{for(const[w,S]of p)t.off(w,S);try{const w=t.destroy;w&&w.call(t,g),g=void 0}catch(w){g=w||g}finally{g!=null?b(g):y()}})}})}var wo;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(wo||(wo={}));var yl;
589(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(yl||(yl={}));var ml;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(ml||(ml={}));var Ah;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Ah||(Ah={}));var sr;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(sr||(sr={}));var lp;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(lp||(lp={}));const QM=2,Pf=4,w0=4,Gi=4,lg=new Int32Array(2),qZ=new Float32Array(lg.buffer),GZ=new Float64Array(lg.buffer),$5=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var qB;(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(qB||(qB={}));let Bx=class Bme{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new Bme(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return lg[0]=this.readInt32(e),qZ[0]}readFloat64(e){return lg[$5?0:1]=this.readInt32(e),lg[$5?1:0]=this.readInt32(e+4),GZ[0]}writeInt8(e,n){this.bytes_[e]=n}writeUint8(e,n){this.bytes_[e]=n}writeInt16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeUint16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeInt32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeUint32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeInt64(e,n){this.writeInt32(e,Number(BigInt.asIntN(32,n))),this.writeInt32(e+4,Number(BigInt.asIntN(32,n>>BigInt(32))))}writeUint64(e,n){this.writeUint32(e,Number(BigInt.asUintN(32,n))),this.writeUint32(e+4,Number(BigInt.asUintN(32,n>>BigInt(32))))}writeFloat32(e,n){qZ[0]=n,this.writeInt32(e,lg[0])}writeFloat64(e,n){GZ[0]=n,this.writeInt32(e,lg[$5?0:1]),this.writeInt32(e+4,lg[$5?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+Pf+w0)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let n=0;n<w0;n++)e+=String.fromCharCode(this.readInt8(this.position_+Pf+n));return e}__offset(e,n){const r=e-this.readInt32(e);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(e,n){return e.bb_pos=n+this.readInt32(n),e.bb=this,e}__string(e,n){e+=this.readInt32(e);const r=this.readInt32(e);e+=Pf;const i=this.bytes_.subarray(e,e+r);return n===qB.UTF8_BYTES?i:this.text_decoder_.decode(i)}__union_with_string(e,n){return typeof e=="string"?this.__string(n):this.__union(e,n)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+Pf}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=w0)throw new Error("FlatBuffers: file identifier must be length "+w0);for(let n=0;n<w0;n++)if(e.charCodeAt(n)!=this.readInt8(this.position()+Pf+n))return!1;return!0}createScalarList(e,n){const r=[];for(let i=0;i<n;++i){const s=e(i);s!==null&&r.push(s)}return r}createObjList(e,n){const r=[];for(let i=0;i<n;++i){const s=e(i);s!==null&&r.push(s.unpack())}return r}},Fme=class $me{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let n;e?n=e:n=1024,this.bb=Bx.allocate(n),this.space=n}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e);const r=~(this.bb.capacity()-this.space+n)+1&e-1;for(;this.space<r+e+n;){const i=this.bb.capacity();this.bb=$me.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(r)}pad(e){for(let n=0;n<e;n++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(e))}addFieldInt16(e,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(e))}addFieldInt32(e,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(e))}addFieldInt64(e,n,r){(this.force_defaults||n!==r)&&(this.addInt64(n),this.slot(e))}addFieldFloat32(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(e))}addFieldFloat64(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(e))}addFieldOffset(e,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(e))}addFieldStruct(e,n,r){n!=r&&(this.nested(n),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const n=e.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,i=Bx.allocate(r);return i.setPosition(r-n),i.bytes().set(e.bytes(),r-n),i}addOffset(e){this.prep(Pf,0),this.writeInt32(this.offset()-e+Pf)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let n=0;n<e;n++)this.vtable[n]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let n=this.vtable_in_use-1;for(;n>=0&&this.vtable[n]==0;n--);const r=n+1;for(;n>=0;n--)this.addInt16(this.vtable[n]!=0?e-this.vtable[n]:0);const i=2;this.addInt16(e-this.object_start);const s=(r+i)*QM;this.addInt16(s);let o=0;const a=this.space;e:for(n=0;n<this.vtables.length;n++){const l=this.bb.capacity()-this.vtables[n];if(s==this.bb.readInt16(l)){for(let c=QM;c<s;c+=QM)if(this.bb.readInt16(a+c)!=this.bb.readInt16(l+c))continue e;o=this.vtables[n];break}}return o?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,o-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,n,r){const i=r?Gi:0;if(n){const s=n;
vendor: 9,566 bytes, line 589
589if(this.prep(this.minalign,Pf+w0+i),s.length!=w0)throw new TypeError("FlatBuffers: file identifier must be length "+w0);for(let o=w0-1;o>=0;o--)this.writeInt8(s.charCodeAt(o))}this.prep(this.minalign,Pf+i),this.addOffset(e),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,n){this.finish(e,n,!0)}requiredField(e,n){const r=this.bb.capacity()-e,i=r-this.bb.readInt32(r);if(!(n<this.bb.readInt16(i)&&this.bb.readInt16(i+n)!=0))throw new TypeError("FlatBuffers: field "+n+" must be set")}startVector(e,n,r){this.notNested(),this.vector_num_elems=n,this.prep(Pf,e*n),this.prep(r,e*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const n=this.createString(e);return this.string_maps.set(e,n),n}createString(e){if(e==null)return 0;let n;return e instanceof Uint8Array?n=e:n=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length),this.bb.bytes().set(n,this.space),this.endVector()}createByteVector(e){return e==null?0:(this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const n=[];for(let r=0;r<e.length;++r){const i=e[r];if(i!==null)n.push(this.createObjectOffset(i));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(e,n){return n(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}};var x8;(function(t){t[t.BUFFER=0]="BUFFER"})(x8||(x8={}));var w8;(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(w8||(w8={}));class cg{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBodyCompression(e,n){return(n||new cg).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+Gi),(n||new cg).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):w8.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):x8.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,n){e.addFieldInt8(0,n,w8.LZ4_FRAME)}static addMethod(e,n){e.addFieldInt8(1,n,x8.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,n,r){return cg.startBodyCompression(e),cg.addCodec(e,n),cg.addMethod(e,r),cg.endBodyCompression(e)}}let jme=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,n,r){return e.prep(8,16),e.writeInt64(BigInt(r??0)),e.writeInt64(BigInt(n??0)),e.offset()}},zme=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,n,r){return e.prep(8,16),e.writeInt64(BigInt(r??0)),e.writeInt64(BigInt(n??0)),e.offset()}},c0=class GB{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsRecordBatch(e,n){return(n||new GB).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+Gi),(n||new GB).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new zme).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new jme).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const n=this.bb.__offset(this.bb_pos,10);return n?(e||new cg).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,n){e.addFieldInt64(0,n,BigInt("0"))}static addNodes(e,n){e.addFieldOffset(1,n,0)}static startNodesVector(e,n){e.startVector(16,n,8)}static addBuffers(e,n){e.addFieldOffset(2,n,0)}static startBuffersVector(e,n){e.startVector(16,n,8)}static addCompression(e,n){e.addFieldOffset(3,n,0)}static endRecordBatch(e){return e.endObject()}},Kv=class KB{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryBatch(e,n){return(n||new KB).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+Gi),(n||new KB).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new c0).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,n){e.addFieldInt64(0,n,BigInt("0"))}static addData(e,n){e.addFieldOffset(1,n,0)}static addIsDelta(e,n){e.addFieldInt8(2,+n,0)}static endDictionaryBatch(e){return e.endObject()}};var Fx;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Fx||(Fx={}));var S8;(function(t){t[t.DenseArray=0]="DenseArray"})(S8||(S8={}));class wu{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInt(e,n){return(n||new wu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,n){return e.setPosition(e.position()+Gi),(n||new wu).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,n){e.addFieldInt32(0,n,0)}static addIsSigned(e,n){e.addFieldInt8(1,+n,0)}static endInt(e){return e.endObject()}static createInt(e,n,r){return wu.startInt(e),wu.addBitWidth(e,n),wu.addIsSigned(e,r),wu.endInt(e)}}class S0{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryEncoding(e,n){return(n||new S0).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,n){return e.setPosition(e.position()+Gi),(n||new S0).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new wu).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):S8.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,n){e.addFieldInt64(0,n,BigInt("0"))}static addIndexType(e,n){e.addFieldOffset(1,n,0)}static addIsOrdered(e,n){e.addFieldInt8(2,+n,0)}static addDictionaryKind(e,n){e.addFieldInt16(3,n,S8.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class aa{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsKeyValue(e,n){return(n||new aa).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,n){return e.setPosition(e.position()+Gi),(n||new aa).__init(e.readInt32(e.position())+e.position(),e)}key(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}value(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,n){e.addFieldOffset(0,n,0)}static addValue(e,n){e.addFieldOffset(1,n,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,n,r){return aa.startKeyValue(e),aa.addKey(e,n),aa.addValue(e,r),aa.endKeyValue(e)}}let KZ=class U3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBinary(e,n){return(n||new U3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+Gi),(n||new U3).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return U3.startBinary(e),U3.endBinary(e)}},YZ=class V3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBool(e,n){return(n||new V3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+Gi),(n||new V3).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}
589static createBool(e){return V3.startBool(e),V3.endBool(e)}},z6=class Yv{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDate(e,n){return(n||new Yv).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+Gi),(n||new Yv).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ah.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,Ah.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,n){return Yv.startDate(e),Yv.addUnit(e,n),Yv.endDate(e)}},Qv=class tg{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDecimal(e,n){return(n||new tg).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+Gi),(n||new tg).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,n){e.addFieldInt32(0,n,0)}static addScale(e,n){e.addFieldInt32(1,n,0)}static addBitWidth(e,n){e.addFieldInt32(2,n,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,n,r,i){return tg.startDecimal(e),tg.addPrecision(e,n),tg.addScale(e,r),tg.addBitWidth(e,i),tg.endDecimal(e)}},H6=class Xv{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDuration(e,n){return(n||new Xv).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,n){return e.setPosition(e.position()+Gi),(n||new Xv).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):sr.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,sr.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,n){return Xv.startDuration(e),Xv.addUnit(e,n),Xv.endDuration(e)}},U6=class Jv{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeBinary(e,n){return(n||new Jv).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+Gi),(n||new Jv).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,n){return Jv.startFixedSizeBinary(e),Jv.addByteWidth(e,n),Jv.endFixedSizeBinary(e)}},V6=class Zv{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeList(e,n){return(n||new Zv).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+Gi),(n||new Zv).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,n){return Zv.startFixedSizeList(e),Zv.addListSize(e,n),Zv.endFixedSizeList(e)}};class Of{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFloatingPoint(e,n){return(n||new Of).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,n){return e.setPosition(e.position()+Gi),(n||new Of).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ml.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,n){e.addFieldInt16(0,n,ml.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,n){return Of.startFloatingPoint(e),Of.addPrecision(e,n),Of.endFloatingPoint(e)}}class If{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInterval(e,n){return(n||new If).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,n){return e.setPosition(e.position()+Gi),(n||new If).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):lp.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,lp.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,n){return If.startInterval(e),If.addUnit(e,n),If.endInterval(e)}}let QZ=class W3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsLargeBinary(e,n){return(n||new W3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,n){return e.setPosition(e.position()+Gi),(n||new W3).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return W3.startLargeBinary(e),W3.endLargeBinary(e)}},XZ=class q3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsLargeUtf8(e,n){return(n||new q3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,n){return e.setPosition(e.position()+Gi),(n||new q3).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return q3.startLargeUtf8(e),q3.endLargeUtf8(e)}},JZ=class G3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsList(e,n){return(n||new G3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+Gi),(n||new G3).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return G3.startList(e),G3.endList(e)}},W6=class e2{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMap(e,n){return(n||new e2).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+Gi),(n||new e2).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}
vendor: 5,744 bytes, line 589
589static startMap(e){e.startObject(1)}static addKeysSorted(e,n){e.addFieldInt8(0,+n,0)}static endMap(e){return e.endObject()}static createMap(e,n){return e2.startMap(e),e2.addKeysSorted(e,n),e2.endMap(e)}},ZZ=class K3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsNull(e,n){return(n||new K3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+Gi),(n||new K3).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return K3.startNull(e),K3.endNull(e)}};class Iy{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsStruct_(e,n){return(n||new Iy).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,n){return e.setPosition(e.position()+Gi),(n||new Iy).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Iy.startStruct_(e),Iy.endStruct_(e)}}class oh{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTime(e,n){return(n||new oh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,n){return e.setPosition(e.position()+Gi),(n||new oh).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):sr.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,sr.MILLISECOND)}static addBitWidth(e,n){e.addFieldInt32(1,n,32)}static endTime(e){return e.endObject()}static createTime(e,n,r){return oh.startTime(e),oh.addUnit(e,n),oh.addBitWidth(e,r),oh.endTime(e)}}class ah{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTimestamp(e,n){return(n||new ah).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,n){return e.setPosition(e.position()+Gi),(n||new ah).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):sr.SECOND}timezone(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,sr.SECOND)}static addTimezone(e,n){e.addFieldOffset(1,n,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,n,r){return ah.startTimestamp(e),ah.addUnit(e,n),ah.addTimezone(e,r),ah.endTimestamp(e)}}class gc{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUnion(e,n){return(n||new gc).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,n){return e.setPosition(e.position()+Gi),(n||new gc).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):yl.Sparse}typeIds(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,n){e.addFieldInt16(0,n,yl.Sparse)}static addTypeIds(e,n){e.addFieldOffset(1,n,0)}static createTypeIdsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addInt32(n[r]);return e.endVector()}static startTypeIdsVector(e,n){e.startVector(4,n,4)}static endUnion(e){return e.endObject()}static createUnion(e,n,r){return gc.startUnion(e),gc.addMode(e,n),gc.addTypeIds(e,r),gc.endUnion(e)}}let eee=class Y3{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUtf8(e,n){return(n||new Y3).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+Gi),(n||new Y3).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Y3.startUtf8(e),Y3.endUtf8(e)}};var gs;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded"})(gs||(gs={}));let eh=class q6{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsField(e,n){return(n||new q6).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+Gi),(n||new q6).__init(e.readInt32(e.position())+e.position(),e)}name(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}
589typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):gs.NONE}type(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(e,this.bb_pos+n):null}dictionary(e){const n=this.bb.__offset(this.bb_pos,12);return n?(e||new S0).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(e,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new q6).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new aa).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,n){e.addFieldOffset(0,n,0)}static addNullable(e,n){e.addFieldInt8(1,+n,0)}static addTypeType(e,n){e.addFieldInt8(2,n,gs.NONE)}static addType(e,n){e.addFieldOffset(3,n,0)}static addDictionary(e,n){e.addFieldOffset(4,n,0)}static addChildren(e,n){e.addFieldOffset(5,n,0)}static createChildrenVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startChildrenVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(6,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endField(e){return e.endObject()}},mf=class i0{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsSchema(e,n){return(n||new i0).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+Gi),(n||new i0).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Fx.Little}fields(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new eh).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new aa).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+e*8):BigInt(0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,n){e.addFieldInt16(0,n,Fx.Little)}static addFields(e,n){e.addFieldOffset(1,n,0)}static createFieldsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startFieldsVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(2,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static addFeatures(e,n){e.addFieldOffset(3,n,0)}static createFeaturesVector(e,n){e.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)e.addInt64(n[r]);return e.endVector()}static startFeaturesVector(e,n){e.startVector(8,n,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,n){e.finish(n)}static finishSizePrefixedSchemaBuffer(e,n){e.finish(n,void 0,!0)}static createSchema(e,n,r,i,s){return i0.startSchema(e),i0.addEndianness(e,n),i0.addFields(e,r),i0.addCustomMetadata(e,i),i0.addFeatures(e,s),i0.endSchema(e)}};var Pi;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(Pi||(Pi={}));var we;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"})(we||(we={}));var u0;(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(u0||(u0={}));const jXe=void 0;function Bk(t){if(t===null)return"null";if(t===jXe)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map(e=>Bk(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,n)=>typeof n=="bigint"?`${n}`:n)}function us(t){if(typeof t=="bigint"&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`);return Number(t)}function Hme(t,e){return us(t/e)+us(t%e)/us(e)}const zXe=Symbol.for("isArrowBigNum");
vendor: 16,384 bytes, line 589
589function jd(t,...e){return e.length===0?Object.setPrototypeOf(Ji(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}jd.prototype[zXe]=!0;jd.prototype.toJSON=function(){return`"${$k(this)}"`};jd.prototype.valueOf=function(t){return Ume(this,t)};jd.prototype.toString=function(){return $k(this)};jd.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return Ume(this);case"string":return $k(this);case"default":return VXe(this)}return $k(this)};function ex(...t){return jd.apply(this,t)}function tx(...t){return jd.apply(this,t)}function Fk(...t){return jd.apply(this,t)}Object.setPrototypeOf(ex.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(tx.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Fk.prototype,Object.create(Uint32Array.prototype));Object.assign(ex.prototype,jd.prototype,{constructor:ex,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(tx.prototype,jd.prototype,{constructor:tx,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Fk.prototype,jd.prototype,{constructor:Fk,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const HXe=BigInt(4294967296)*BigInt(4294967296),UXe=HXe-BigInt(1);function Ume(t,e){const{buffer:n,byteOffset:r,byteLength:i,signed:s}=t,o=new BigUint64Array(n,r,i/8),a=s&&o.at(-1)&BigInt(1)<<BigInt(63);let l=BigInt(0),c=0;if(a){for(const u of o)l|=(u^UXe)*(BigInt(1)<<BigInt(64*c++));l*=BigInt(-1),l-=BigInt(1)}else for(const u of o)l|=u*(BigInt(1)<<BigInt(64*c++));if(typeof e=="number"){const u=BigInt(Math.pow(10,e)),h=l/u,d=l%u;return us(h)+us(d)/us(u)}return us(l)}function $k(t){if(t.byteLength===8)return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`;if(!t.signed)return XM(t);let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return XM(t);e=e.slice();let r=1;for(let s=0;s<e.length;s++){const o=e[s],a=~o+r;e[s]=a,r&=o===0?1:0}return`-${XM(e)}`}function VXe(t){return t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:$k(t)}function XM(t){let e="";const n=new Uint32Array(2);let r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);const i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let s=-1;const o=r.length-1;do{for(n[0]=r[s=0];s<o;)r[s++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[s];r[s]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,e=`${n[0]}${e}`}while(i[0]||i[1]||i[2]||i[3]);return e??"0"}class aV{static new(e,n){switch(n){case!0:return new ex(e);case!1:return new tx(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new ex(e)}return e.byteLength===16?new Fk(e):new tx(e)}static signed(e){return new ex(e)}static unsigned(e){return new tx(e)}static decimal(e){return new Fk(e)}constructor(e,n){return aV.new(e,n)}}var Vme,Wme,qme,Gme,Kme,Yme,Qme,Xme,Jme,Zme,ege,tge,nge,rge,ige,sge,oge,age,lge,cge,uge,hge;class An{static isNull(e){return e?.typeId===we.Null}static isInt(e){return e?.typeId===we.Int}static isFloat(e){return e?.typeId===we.Float}static isBinary(e){return e?.typeId===we.Binary}static isLargeBinary(e){return e?.typeId===we.LargeBinary}static isUtf8(e){return e?.typeId===we.Utf8}static isLargeUtf8(e){return e?.typeId===we.LargeUtf8}static isBool(e){return e?.typeId===we.Bool}static isDecimal(e){return e?.typeId===we.Decimal}static isDate(e){return e?.typeId===we.Date}static isTime(e){return e?.typeId===we.Time}static isTimestamp(e){return e?.typeId===we.Timestamp}static isInterval(e){return e?.typeId===we.Interval}static isDuration(e){return e?.typeId===we.Duration}static isList(e){return e?.typeId===we.List}static isStruct(e){return e?.typeId===we.Struct}static isUnion(e){return e?.typeId===we.Union}static isFixedSizeBinary(e){return e?.typeId===we.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===we.FixedSizeList}static isMap(e){return e?.typeId===we.Map}static isDictionary(e){return e?.typeId===we.Dictionary}static isDenseUnion(e){return An.isUnion(e)&&e.mode===yl.Dense}static isSparseUnion(e){return An.isUnion(e)&&e.mode===yl.Sparse}constructor(e){this.typeId=e}}Vme=Symbol.toStringTag;An[Vme]=(t=>(t.children=null,t.ArrayType=Array,t.OffsetArrayType=Int32Array,t[Symbol.toStringTag]="DataType"))(An.prototype);class zg extends An{constructor(){super(we.Null)}toString(){return"Null"}}Wme=Symbol.toStringTag;zg[Wme]=(t=>t[Symbol.toStringTag]="Null")(zg.prototype);class pb extends An{constructor(e,n){super(we.Int),this.isSigned=e,this.bitWidth=n}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}qme=Symbol.toStringTag;pb[qme]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(pb.prototype);class jk extends pb{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(jk.prototype,"ArrayType",{value:Int32Array});class k8 extends An{constructor(e){super(we.Float),this.precision=e}get ArrayType(){switch(this.precision){case ml.HALF:return Uint16Array;case ml.SINGLE:return Float32Array;case ml.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}Gme=Symbol.toStringTag;k8[Gme]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(k8.prototype);class C8 extends An{constructor(){super(we.Binary)}toString(){return"Binary"}}Kme=Symbol.toStringTag;C8[Kme]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(C8.prototype);class _8 extends An{constructor(){super(we.LargeBinary)}toString(){return"LargeBinary"}}Yme=Symbol.toStringTag;_8[Yme]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(_8.prototype);class T8 extends An{constructor(){super(we.Utf8)}toString(){return"Utf8"}}Qme=Symbol.toStringTag;T8[Qme]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(T8.prototype);class E8 extends An{constructor(){super(we.LargeUtf8)}toString(){return"LargeUtf8"}}Xme=Symbol.toStringTag;E8[Xme]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(E8.prototype);class A8 extends An{constructor(){super(we.Bool)}toString(){return"Bool"}}Jme=Symbol.toStringTag;A8[Jme]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(A8.prototype);class P8 extends An{constructor(e,n,r=128){super(we.Decimal),this.scale=e,this.precision=n,this.bitWidth=r}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}Zme=Symbol.toStringTag;P8[Zme]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(P8.prototype);class O8 extends An{constructor(e){super(we.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Ah[this.unit]}>`}get ArrayType(){return this.unit===Ah.DAY?Int32Array:BigInt64Array}}ege=Symbol.toStringTag;O8[ege]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(O8.prototype);class I8 extends An{constructor(e,n){super(we.Time),this.unit=e,this.bitWidth=n}toString(){return`Time${this.bitWidth}<${sr[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}tge=Symbol.toStringTag;I8[tge]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(I8.prototype);class D8 extends An{constructor(e,n){super(we.Timestamp),this.unit=e,this.timezone=n}toString(){return`Timestamp<${sr[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}nge=Symbol.toStringTag;D8[nge]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(D8.prototype);class M8 extends An{constructor(e){super(we.Interval),this.unit=e}toString(){return`Interval<${lp[this.unit]}>`}}rge=Symbol.toStringTag;M8[rge]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(M8.prototype);class N8 extends An{constructor(e){super(we.Duration),this.unit=e}toString(){return`Duration<${sr[this.unit]}>`}}ige=Symbol.toStringTag;N8[ige]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(N8.prototype);class R8 extends An{constructor(e){super(we.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}sge=Symbol.toStringTag;R8[sge]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(R8.prototype);class Nl extends An{constructor(e){super(we.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}oge=Symbol.toStringTag;Nl[oge]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(Nl.prototype);class L8 extends An{constructor(e,n,r){super(we.Union),this.mode=e,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}age=Symbol.toStringTag;L8[age]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(L8.prototype);class B8 extends An{constructor(e){super(we.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}lge=Symbol.toStringTag;B8[lge]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(B8.prototype);class F8 extends An{constructor(e,n){super(we.FixedSizeList),this.listSize=e,this.children=[n]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}cge=Symbol.toStringTag;F8[cge]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(F8.prototype);class $8 extends An{constructor(e,n=!1){var r,i,s;if(super(we.Map),this.children=[e],this.keysSorted=n,e&&(e.name="entries",!((r=e?.type)===null||r===void 0)&&r.children)){const o=(i=e?.type)===null||i===void 0?void 0:i.children[0];o&&(o.name="key");const a=(s=e?.type)===null||s===void 0?void 0:s.children[1];a&&(a.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}uge=Symbol.toStringTag;$8[uge]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))($8.prototype);const WXe=(t=>()=>++t)(-1);class $x extends An{constructor(e,n,r,i){super(we.Dictionary),this.indices=n,this.dictionary=e,this.isOrdered=i||!1,this.id=r==null?WXe():us(r)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}hge=Symbol.toStringTag;$x[hge]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))($x.prototype);function h0(t){const e=t;switch(t.typeId){case we.Decimal:return t.bitWidth/32;case we.Interval:return 1+e.unit;case we.FixedSizeList:return e.listSize;case we.FixedSizeBinary:return e.byteWidth;default:return 1}}class Qr{visitMany(e,...n){return e.map((r,i)=>this.visit(r,...n.map(s=>s[i])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,n=!0){return qXe(this,e,n)}getVisitFnByTypeId(e,n=!0){return t2(this,e,n)}visitNull(e,...n){return null}visitBool(e,...n){return null}visitInt(e,...n){return null}visitFloat(e,...n){return null}visitUtf8(e,...n){return null}visitLargeUtf8(e,...n){return null}visitBinary(e,...n){return null}visitLargeBinary(e,...n){return null}visitFixedSizeBinary(e,...n){return null}visitDate(e,...n){return null}visitTimestamp(e,...n){return null}visitTime(e,...n){return null}visitDecimal(e,...n){return null}visitList(e,...n){return null}visitStruct(e,...n){return null}visitUnion(e,...n){return null}visitDictionary(e,...n){return null}visitInterval(e,...n){return null}visitDuration(e,...n){return null}visitFixedSizeList(e,...n){return null}visitMap(e,...n){return null}}function qXe(t,e,n=!0){return typeof e=="number"?t2(t,e,n):typeof e=="string"&&e in we?t2(t,we[e],n):e&&e instanceof An?t2(t,tee(e),n):e?.type&&e.type instanceof An?t2(t,tee(e.type),n):t2(t,we.NONE,n)}function t2(t,e,n=!0){let r=null;switch(e){case we.Null:r=t.visitNull;break;case we.Bool:r=t.visitBool;break;case we.Int:r=t.visitInt;break;case we.Int8:r=t.visitInt8||t.visitInt;break;case we.Int16:r=t.visitInt16||t.visitInt;break;case we.Int32:r=t.visitInt32||t.visitInt;break;case we.Int64:r=t.visitInt64||t.visitInt;break;case we.Uint8:r=t.visitUint8||t.visitInt;break;case we.Uint16:r=t.visitUint16||t.visitInt;break;case we.Uint32:r=t.visitUint32||t.visitInt;break;case we.Uint64:r=t.visitUint64||t.visitInt;break;case we.Float:r=t.visitFloat;break;case we.Float16:r=t.visitFloat16||t.visitFloat;break;case we.Float32:r=t.visitFloat32||t.visitFloat;break;case we.Float64:r=t.visitFloat64||t.visitFloat;break;case we.Utf8:r=t.visitUtf8;break;case we.LargeUtf8:r=t.visitLargeUtf8;break;case we.Binary:r=t.visitBinary;break;case we.LargeBinary:r=t.visitLargeBinary;break;case we.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case we.Date:r=t.visitDate;break;case we.DateDay:r=t.visitDateDay||t.visitDate;break;case we.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case we.Timestamp:r=t.visitTimestamp;break;case we.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case we.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case we.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case we.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case we.Time:r=t.visitTime;break;case we.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case we.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case we.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case we.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case we.Decimal:r=t.visitDecimal;break;case we.List:r=t.visitList;break;case we.Struct:r=t.visitStruct;break;case we.Union:r=t.visitUnion;break;case we.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case we.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case we.Dictionary:r=t.visitDictionary;break;case we.Interval:r=t.visitInterval;break;case we.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case we.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case we.Duration:r=t.visitDuration;break;case we.DurationSecond:r=t.visitDurationSecond||t.visitDuration;break;case we.DurationMillisecond:r=t.visitDurationMillisecond||t.visitDuration;break;case we.DurationMicrosecond:r=t.visitDurationMicrosecond||t.visitDuration;break;case we.DurationNanosecond:r=t.visitDurationNanosecond||t.visitDuration;break;case we.FixedSizeList:r=t.visitFixedSizeList;break;case we.Map:r=t.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${we[e]}'`)}function tee(t){switch(t.typeId){case we.Null:return we.Null;case we.Int:{const{bitWidth:e,isSigned:n}=t;switch(e){case 8:return n?we.Int8:we.Uint8;case 16:return n?we.Int16:we.Uint16;case 32:return n?we.Int32:we.Uint32;case 64:return n?we.Int64:we.Uint64}return we.Int}case we.Float:switch(t.precision){case ml.HALF:return we.Float16;case ml.SINGLE:return we.Float32;case ml.DOUBLE:return we.Float64}return we.Float;case we.Binary:return we.Binary;case we.LargeBinary:return we.LargeBinary;case we.Utf8:return we.Utf8;case we.LargeUtf8:return we.LargeUtf8;case we.Bool:return we.Bool;case we.Decimal:return we.Decimal;case we.Time:switch(t.unit){case sr.SECOND:return we.TimeSecond;case sr.MILLISECOND:return we.TimeMillisecond;case sr.MICROSECOND:return we.TimeMicrosecond;case sr.NANOSECOND:return we.TimeNanosecond}return we.Time;case we.Timestamp:switch(t.unit){case sr.SECO
vendor: 5,015 bytes, line 589
589ND:return we.TimestampSecond;case sr.MILLISECOND:return we.TimestampMillisecond;case sr.MICROSECOND:return we.TimestampMicrosecond;case sr.NANOSECOND:return we.TimestampNanosecond}return we.Timestamp;case we.Date:switch(t.unit){case Ah.DAY:return we.DateDay;case Ah.MILLISECOND:return we.DateMillisecond}return we.Date;case we.Interval:switch(t.unit){case lp.DAY_TIME:return we.IntervalDayTime;case lp.YEAR_MONTH:return we.IntervalYearMonth}return we.Interval;case we.Duration:switch(t.unit){case sr.SECOND:return we.DurationSecond;case sr.MILLISECOND:return we.DurationMillisecond;case sr.MICROSECOND:return we.DurationMicrosecond;case sr.NANOSECOND:return we.DurationNanosecond}return we.Duration;case we.Map:return we.Map;case we.List:return we.List;case we.Struct:return we.Struct;case we.Union:switch(t.mode){case yl.Dense:return we.DenseUnion;case yl.Sparse:return we.SparseUnion}return we.Union;case we.FixedSizeBinary:return we.FixedSizeBinary;case we.FixedSizeList:return we.FixedSizeList;case we.Dictionary:return we.Dictionary}throw new Error(`Unrecognized type '${we[t.typeId]}'`)}Qr.prototype.visitInt8=null;Qr.prototype.visitInt16=null;Qr.prototype.visitInt32=null;Qr.prototype.visitInt64=null;Qr.prototype.visitUint8=null;Qr.prototype.visitUint16=null;Qr.prototype.visitUint32=null;Qr.prototype.visitUint64=null;Qr.prototype.visitFloat16=null;Qr.prototype.visitFloat32=null;Qr.prototype.visitFloat64=null;Qr.prototype.visitDateDay=null;Qr.prototype.visitDateMillisecond=null;Qr.prototype.visitTimestampSecond=null;Qr.prototype.visitTimestampMillisecond=null;Qr.prototype.visitTimestampMicrosecond=null;Qr.prototype.visitTimestampNanosecond=null;Qr.prototype.visitTimeSecond=null;Qr.prototype.visitTimeMillisecond=null;Qr.prototype.visitTimeMicrosecond=null;Qr.prototype.visitTimeNanosecond=null;Qr.prototype.visitDenseUnion=null;Qr.prototype.visitSparseUnion=null;Qr.prototype.visitIntervalDayTime=null;Qr.prototype.visitIntervalYearMonth=null;Qr.prototype.visitDuration=null;Qr.prototype.visitDurationSecond=null;Qr.prototype.visitDurationMillisecond=null;Qr.prototype.visitDurationMicrosecond=null;Qr.prototype.visitDurationNanosecond=null;const dge=new Float64Array(1),Dv=new Uint32Array(dge.buffer);function fge(t){const e=(t&31744)>>10,n=(t&1023)/1024,r=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)}function GXe(t){if(t!==t)return 32256;dge[0]=t;const e=(Dv[1]&2147483648)>>16&65535;let n=Dv[1]&2146435072,r=0;return n>=1089470464?Dv[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Dv[1]&1048575)>>10):n<=1056964608?(r=1048576+(Dv[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Dv[1]&1048575)+512>>10),e|n|r&65535}class or extends Qr{}function hr(t){return(e,n,r)=>{if(e.setValid(n,r!=null))return t(e,n,r)}}const KXe=(t,e,n)=>{t[e]=Math.floor(n/864e5)},pge=(t,e,n,r)=>{if(n+1<e.length){const i=us(e[n]),s=us(e[n+1]);t.set(r.subarray(0,s-i),i)}},YXe=({offset:t,values:e},n,r)=>{const i=t+n;r?e[i>>3]|=1<<i%8:e[i>>3]&=~(1<<i%8)},um=({values:t},e,n)=>{t[e]=n},lV=({values:t},e,n)=>{t[e]=n},mge=({values:t},e,n)=>{t[e]=GXe(n)},QXe=(t,e,n)=>{switch(t.type.precision){case ml.HALF:return mge(t,e,n);case ml.SINGLE:case ml.DOUBLE:return lV(t,e,n)}},gge=({values:t},e,n)=>{KXe(t,e,n.valueOf())},yge=({values:t},e,n)=>{t[e]=BigInt(n)},XXe=({stride:t,values:e},n,r)=>{e.set(r.subarray(0,t),t*n)},bge=({values:t,valueOffsets:e},n,r)=>pge(t,e,n,r),vge=({values:t,valueOffsets:e},n,r)=>pge(t,e,n,iV(r)),JXe=(t,e,n)=>{t.type.unit===Ah.DAY?gge(t,e,n):yge(t,e,n)},xge=({values:t},e,n)=>{t[e]=BigInt(n/1e3)},wge=({values:t},e,n)=>{t[e]=BigInt(n)},Sge=({values:t},e,n)=>{t[e]=BigInt(n*1e3)},kge=({values:t},e,n)=>{t[e]=BigInt(n*1e6)},ZXe=(t,e,n)=>{switch(t.type.unit){case sr.SECOND:return xge(t,e,n);case sr.MILLISECOND:return wge(t,e,n);case sr.MICROSECOND:return Sge(t,e,n);case sr.NANOSECOND:return kge(t,e,n)}},Cge=({values:t},e,n)=>{t[e]=n},_ge=({values:t},e,n)=>{t[e]=n},Tge=({values:t},e,n)=>{t[e]=n},Ege=({values:t},e,n)=>{t[e]=n},eJe=(t,e,n)=>{switch(t.type.unit){case sr.SECOND:return Cge(t,e,n);case sr.MILLISECOND:return _ge(t,e,n);case sr.MICROSECOND:return Tge(t,e,n);case sr.NANOSECOND:return Ege(t,e,n)}},tJe=({values:t,stride:e},n,r)=>{t.set(r.subarray(0,e),e*n)},nJe=(t,e,n)=>{const r=t.children[0],i=t.valueOffsets,s=Ph.getVisitFn(r);if(Array.isArray(n))for(let o=-1,a=i[e],l=i[e+1];a<l;)s(r,a++,n[++o]);else for(let o=-1,a=i[e],l=i[e+1];a<l;)s(r,a++,n.get(++o))},rJe=(t,e,n)=>{const r=t.children[0],{valueOffsets:i}=t,s=Ph.getVisitFn(r);let{[e]:o,[e+1]:a}=i;const l=n instanceof Map?n.entries():Object.entries(n);for(const c of l)if(s(r,o,c),++o>=a)break},iJe=(t,e)=>(n,r,i,s)=>r&&n(r,t,e[s]),sJe=(t,e)=>(n,r,i,s)=>r&&n(r,t,e.get(s)),oJe=(t,e)=>(n,r,i,s)=>r&&n(r,t,e.get(i.name)),aJe=(t,e)=>(n,r,i,s)=>r&&n(r,t,e[i.name]),lJe=(t,e,n)=>{const r=t.type.children.map(s=>Ph.getVisitFn(s.type)),i=n instanceof Map?oJe(e,n):n instanceof Vi?sJe(e,n):Array.isArray(n)?iJe(e,n):aJe(e,n);
vendor: 10,670 bytes, line 589
589t.type.children.forEach((s,o)=>i(r[o],t.children[o],s,o))},cJe=(t,e,n)=>{t.type.mode===yl.Dense?Age(t,e,n):Pge(t,e,n)},Age=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];Ph.visit(i,t.valueOffsets[e],n)},Pge=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];Ph.visit(i,e,n)},uJe=(t,e,n)=>{var r;(r=t.dictionary)===null||r===void 0||r.set(t.values[e],n)},hJe=(t,e,n)=>{t.type.unit===lp.DAY_TIME?Oge(t,e,n):Ige(t,e,n)},Oge=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},Ige=({values:t},e,n)=>{t[e]=n[0]*12+n[1]%12},Dge=({values:t},e,n)=>{t[e]=n},Mge=({values:t},e,n)=>{t[e]=n},Nge=({values:t},e,n)=>{t[e]=n},Rge=({values:t},e,n)=>{t[e]=n},dJe=(t,e,n)=>{switch(t.type.unit){case sr.SECOND:return Dge(t,e,n);case sr.MILLISECOND:return Mge(t,e,n);case sr.MICROSECOND:return Nge(t,e,n);case sr.NANOSECOND:return Rge(t,e,n)}},fJe=(t,e,n)=>{const{stride:r}=t,i=t.children[0],s=Ph.getVisitFn(i);if(Array.isArray(n))for(let o=-1,a=e*r;++o<r;)s(i,a+o,n[o]);else for(let o=-1,a=e*r;++o<r;)s(i,a+o,n.get(o))};or.prototype.visitBool=hr(YXe);or.prototype.visitInt=hr(um);or.prototype.visitInt8=hr(um);or.prototype.visitInt16=hr(um);or.prototype.visitInt32=hr(um);or.prototype.visitInt64=hr(um);or.prototype.visitUint8=hr(um);or.prototype.visitUint16=hr(um);or.prototype.visitUint32=hr(um);or.prototype.visitUint64=hr(um);or.prototype.visitFloat=hr(QXe);or.prototype.visitFloat16=hr(mge);or.prototype.visitFloat32=hr(lV);or.prototype.visitFloat64=hr(lV);or.prototype.visitUtf8=hr(vge);or.prototype.visitLargeUtf8=hr(vge);or.prototype.visitBinary=hr(bge);or.prototype.visitLargeBinary=hr(bge);or.prototype.visitFixedSizeBinary=hr(XXe);or.prototype.visitDate=hr(JXe);or.prototype.visitDateDay=hr(gge);or.prototype.visitDateMillisecond=hr(yge);or.prototype.visitTimestamp=hr(ZXe);or.prototype.visitTimestampSecond=hr(xge);or.prototype.visitTimestampMillisecond=hr(wge);or.prototype.visitTimestampMicrosecond=hr(Sge);or.prototype.visitTimestampNanosecond=hr(kge);or.prototype.visitTime=hr(eJe);or.prototype.visitTimeSecond=hr(Cge);or.prototype.visitTimeMillisecond=hr(_ge);or.prototype.visitTimeMicrosecond=hr(Tge);or.prototype.visitTimeNanosecond=hr(Ege);or.prototype.visitDecimal=hr(tJe);or.prototype.visitList=hr(nJe);or.prototype.visitStruct=hr(lJe);or.prototype.visitUnion=hr(cJe);or.prototype.visitDenseUnion=hr(Age);or.prototype.visitSparseUnion=hr(Pge);or.prototype.visitDictionary=hr(uJe);or.prototype.visitInterval=hr(hJe);or.prototype.visitIntervalDayTime=hr(Oge);or.prototype.visitIntervalYearMonth=hr(Ige);or.prototype.visitDuration=hr(dJe);or.prototype.visitDurationSecond=hr(Dge);or.prototype.visitDurationMillisecond=hr(Mge);or.prototype.visitDurationMicrosecond=hr(Nge);or.prototype.visitDurationNanosecond=hr(Rge);or.prototype.visitFixedSizeList=hr(fJe);or.prototype.visitMap=hr(rJe);const Ph=new or,hd=Symbol.for("parent"),nx=Symbol.for("rowIndex");class cV{constructor(e,n){return this[hd]=e,this[nx]=n,new Proxy(this,new mJe)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[nx],n=this[hd],r=n.type.children,i={};for(let s=-1,o=r.length;++s<o;)i[r[s].name]=Bc.visit(n.children[s],e);return i}toString(){return`{${[...this].map(([e,n])=>`${Bk(e)}: ${Bk(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new pJe(this[hd],this[nx])}}class pJe{constructor(e,n){this.childIndex=0,this.children=e.children,this.rowIndex=n,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,Bc.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(cV.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[hd]:{writable:!0,enumerable:!1,configurable:!1,value:null},[nx]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class mJe{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[hd].type.children.map(n=>n.name)}has(e,n){return e[hd].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(e,n){if(e[hd].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[hd].type.children.findIndex(i=>i.name===n);if(r!==-1){const i=Bc.visit(e[hd].children[r],e[nx]);return Reflect.set(e,n,i),i}}set(e,n,r){const i=e[hd].type.children.findIndex(s=>s.name===n);return i!==-1?(Ph.visit(e[hd].children[i],e[nx],r),Reflect.set(e,n,r)):Reflect.has(e,n)||typeof n=="symbol"?Reflect.set(e,n,r):!1}}class Jn extends Qr{}function ar(t){return(e,n)=>e.getValid(n)?t(e,n):null}const gJe=(t,e)=>864e5*t[e],yJe=(t,e)=>null,Lge=(t,e,n)=>{if(n+1>=e.length)return null;const r=us(e[n]),i=us(e[n+1]);return t.subarray(r,i)},bJe=({offset:t,values:e},n)=>{const r=t+n;return(e[r>>3]&1<<r%8)!==0},Bge=({values:t},e)=>gJe(t,e),Fge=({values:t},e)=>us(t[e]),g1=({stride:t,values:e},n)=>e[t*n],vJe=({stride:t,values:e},n)=>fge(e[t*n]),$ge=({values:t},e)=>t[e],xJe=({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)),jge=({values:t,valueOffsets:e},n)=>Lge(t,e,n),zge=({values:t,valueOffsets:e},n)=>{const r=Lge(t,e,n);return r!==null?UB(r):null},wJe=({values:t},e)=>t[e],SJe=({type:t,values:e},n)=>t.precision!==ml.HALF?e[n]:fge(e[n]),kJe=(t,e)=>t.type.unit===Ah.DAY?Bge(t,e):Fge(t,e),Hge=({values:t},e)=>1e3*us(t[e]),Uge=({values:t},e)=>us(t[e]),Vge=({values:t},e)=>Hme(t[e],BigInt(1e3)),Wge=({values:t},e)=>Hme(t[e],BigInt(1e6)),CJe=(t,e)=>{switch(t.type.unit){case sr.SECOND:return Hge(t,e);case sr.MILLISECOND:return Uge(t,e);case sr.MICROSECOND:return Vge(t,e);case sr.NANOSECOND:return Wge(t,e)}},qge=({values:t},e)=>t[e],Gge=({values:t},e)=>t[e],Kge=({values:t},e)=>t[e],Yge=({values:t},e)=>t[e],_Je=(t,e)=>{switch(t.type.unit){case sr.SECOND:return qge(t,e);case sr.MILLISECOND:return Gge(t,e);case sr.MICROSECOND:return Kge(t,e);case sr.NANOSECOND:return Yge(t,e)}},TJe=({values:t,stride:e},n)=>aV.decimal(t.subarray(e*n,e*(n+1))),EJe=(t,e)=>{const{valueOffsets:n,stride:r,children:i}=t,{[e*r]:s,[e*r+1]:o}=n,l=i[0].slice(s,o-s);return new Vi([l])},AJe=(t,e)=>{const{valueOffsets:n,children:r}=t,{[e]:i,[e+1]:s}=n,o=r[0];return new uV(o.slice(i,s-i))},PJe=(t,e)=>new cV(t,e),OJe=(t,e)=>t.type.mode===yl.Dense?Qge(t,e):Xge(t,e),Qge=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return Bc.visit(r,t.valueOffsets[e])},Xge=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return Bc.visit(r,e)},IJe=(t,e)=>{var n;return(n=t.dictionary)===null||n===void 0?void 0:n.get(t.values[e])},DJe=(t,e)=>t.type.unit===lp.DAY_TIME?Jge(t,e):Zge(t,e),Jge=({values:t},e)=>t.subarray(2*e,2*(e+1)),Zge=({values:t},e)=>{const n=t[e],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},e1e=({values:t},e)=>t[e],t1e=({values:t},e)=>t[e],n1e=({values:t},e)=>t[e],r1e=({values:t},e)=>t[e],MJe=(t,e)=>{switch(t.type.unit){case sr.SECOND:return e1e(t,e);case sr.MILLISECOND:return t1e(t,e);case sr.MICROSECOND:return n1e(t,e);case sr.NANOSECOND:return r1e(t,e)}},NJe=(t,e)=>{const{stride:n,children:r}=t,s=r[0].slice(e*n,n);return new Vi([s])};Jn.prototype.visitNull=ar(yJe);Jn.prototype.visitBool=ar(bJe);Jn.prototype.visitInt=ar(wJe);Jn.prototype.visitInt8=ar(g1);Jn.prototype.visitInt16=ar(g1);Jn.prototype.visitInt32=ar(g1);Jn.prototype.visitInt64=ar($ge);Jn.prototype.visitUint8=ar(g1);Jn.prototype.visitUint16=ar(g1);Jn.prototype.visitUint32=ar(g1);Jn.prototype.visitUint64=ar($ge);Jn.prototype.visitFloat=ar(SJe);Jn.prototype.visitFloat16=ar(vJe);Jn.prototype.visitFloat32=ar(g1);Jn.prototype.visitFloat64=ar(g1);Jn.prototype.visitUtf8=ar(zge);Jn.prototype.visitLargeUtf8=ar(zge);Jn.prototype.visitBinary=ar(jge);Jn.prototype.visitLargeBinary=ar(jge);Jn.prototype.visitFixedSizeBinary=ar(xJe);Jn.prototype.visitDate=ar(kJe);Jn.prototype.visitDateDay=ar(Bge);Jn.prototype.visitDateMillisecond=ar(Fge);Jn.prototype.visitTimestamp=ar(CJe);Jn.prototype.visitTimestampSecond=ar(Hge);Jn.prototype.visitTimestampMillisecond=ar(Uge);Jn.prototype.visitTimestampMicrosecond=ar(Vge);Jn.prototype.visitTimestampNanosecond=ar(Wge);Jn.prototype.visitTime=ar(_Je);Jn.prototype.visitTimeSecond=ar(qge);Jn.prototype.visitTimeMillisecond=ar(Gge);Jn.prototype.visitTimeMicrosecond=ar(Kge);Jn.prototype.visitTimeNanosecond=ar(Yge);Jn.prototype.visitDecimal=ar(TJe);Jn.prototype.visitList=ar(EJe);Jn.prototype.visitStruct=ar(PJe);Jn.prototype.visitUnion=ar(OJe);Jn.prototype.visitDenseUnion=ar(Qge);Jn.prototype.visitSparseUnion=ar(Xge);Jn.prototype.visitDictionary=ar(IJe);Jn.prototype.visitInterval=ar(DJe);Jn.prototype.visitIntervalDayTime=ar(Jge);Jn.prototype.visitIntervalYearMonth=ar(Zge);Jn.prototype.visitDuration=ar(MJe);Jn.prototype.visitDurationSecond=ar(e1e);Jn.prototype.visitDurationMillisecond=ar(t1e);Jn.prototype.visitDurationMicrosecond=ar(n1e);Jn.prototype.visitDurationNanosecond=ar(r1e);Jn.prototype.visitFixedSizeList=ar(NJe);Jn.prototype.visitMap=ar(AJe);const Bc=new Jn,n2=Symbol.for("keys"),rx=Symbol.for("vals"),r2=Symbol.for("kKeysAsStrings"),YB=Symbol.for("_kKeysAsStrings");class uV{constructor(e){return this[n2]=new Vi([e.children[0]]).memoize(),this[rx]=e.children[1],new Proxy(this,new LJe)}get[r2](){return this[YB]||(this[YB]=Array.from(this[n2].toArray(),String))}[Symbol.iterator](){return new RJe(this[n2],this[rx])}get size(){return this[n2].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[n2],n=this[rx],r={};for(let i=-1,s=e.length;++i<s;)r[e.get(i)]=Bc.visit(n,i);return r}toString(){return`{${[...this].map(([e,n])=>`${Bk(e)}: ${Bk(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class RJe{constructor(e,n){this.keys=e,this.vals=n,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Bc.visit(this.vals,e)]})}}class LJe{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[r2]}has(e,n){return e[r2].includes(n)}getOwnPropertyDescriptor(e,n){if(e[r2].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[r2].indexOf(n);if(r!==-1){const i=Bc.visit(Reflect.get(e,rx),r);return Reflect.set(e,n,i),i}}set(e,n,r){const i=e[r2].indexOf(n);return i!==-1?(Ph.visit(Reflect.get(e,rx),i,r),Reflect.set(e,n,r)):Reflect.has(e,n)?Reflect.set(e,n,r):!1}}Object.defineProperties(uV.prototype,{[Symbol.toStringTag]:{enumerable:!1,
589configurable:!1,value:"Row"},[n2]:{writable:!0,enumerable:!1,configurable:!1,value:null},[rx]:{writable:!0,enumerable:!1,configurable:!1,value:null},[YB]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let nee;function i1e(t,e,n,r){const{length:i=0}=t;let s=typeof e!="number"?0:e,o=typeof n!="number"?i:n;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),o<s&&(nee=s,s=o,o=nee),o>i&&(o=i),r?r(t,s,o):[s,o]}const hV=(t,e)=>t<0?e+t:t,ree=t=>t!==t;function Mw(t){if(typeof t!=="object"||t===null)return ree(t)?ree:n=>n===t;if(t instanceof Date){const n=t.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(t)?n=>n?NXe(t,n):!1:t instanceof Map?FJe(t):Array.isArray(t)?BJe(t):t instanceof Vi?$Je(t):jJe(t,!0)}function BJe(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Mw(t[n]);return UO(e)}function FJe(t){let e=-1;const n=[];for(const r of t.values())n[++e]=Mw(r);return UO(n)}function $Je(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Mw(t.get(n));return UO(e)}function jJe(t,e=!1){const n=Object.keys(t);if(!e&&n.length===0)return()=>!1;const r=[];for(let i=-1,s=n.length;++i<s;)r[i]=Mw(t[n[i]]);return UO(r,n)}function UO(t,e){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return zJe(t,n);case Map:return iee(t,n,n.keys());case uV:case cV:case Object:case void 0:return iee(t,n,e||Object.keys(n))}return n instanceof Vi?HJe(t,n):!1}}function zJe(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}function HJe(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}function iee(t,e,n){const r=n[Symbol.iterator](),i=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),s=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let o=0;const a=t.length;let l=s.next(),c=r.next(),u=i.next();for(;o<a&&!c.done&&!u.done&&!l.done&&!(c.value!==u.value||!t[o](l.value));++o,c=r.next(),u=i.next(),l=s.next());return o===a&&c.done&&u.done&&l.done?!0:(r.return&&r.return(),i.return&&i.return(),s.return&&s.return(),!1)}function s1e(t,e,n,r){return(n&1<<r)!==0}function UJe(t,e,n,r){return(n&1<<r)>>r}function j8(t,e,n){const r=n.byteLength+7&-8;if(t>0||n.byteLength<r){const i=new Uint8Array(r);return i.set(t%8===0?n.subarray(t>>3):z8(new dV(n,t,e,null,s1e)).subarray(0,r)),i}return n}function z8(t){const e=[];let n=0,r=0,i=0;for(const o of t)o&&(i|=1<<r),++r===8&&(e[n++]=i,i=r=0);(n===0||r>0)&&(e[n++]=i);const s=new Uint8Array(e.length+7&-8);return s.set(e),s}class dV{constructor(e,n,r,i,s){this.bytes=e,this.length=r,this.context=i,this.get=s,this.bit=n%8,this.byteIndex=n>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function QB(t,e,n){if(n-e<=0)return 0;if(n-e<8){let s=0;for(const o of new dV(t,e,n-e,t,UJe))s+=o;return s}const r=n>>3<<3,i=e+(e%8===0?0:8-e%8);return QB(t,e,i)+QB(t,r,n)+VJe(t,i>>3,r-i>>3)}function VJe(t,e,n){let r=0,i=Math.trunc(e);const s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=n===void 0?t.byteLength:i+n;for(;o-i>=4;)r+=JM(s.getUint32(i)),i+=4;for(;o-i>=2;)r+=JM(s.getUint16(i)),i+=2;for(;o-i>=1;)r+=JM(s.getUint8(i)),i+=1;return r}function JM(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const WJe=-1;class Qi{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){const{type:e}=this;return An.isSparseUnion(e)?this.children.some(n=>n.nullable):An.isDenseUnion(e)?this.children.some(n=>n.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0;const{valueOffsets:n,values:r,nullBitmap:i,typeIds:s}=this;return n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),s&&(e+=s.byteLength),this.children.reduce((o,a)=>o+a.byteLength,e)}get nullCount(){if(An.isUnion(this.type))return this.children.reduce((r,i)=>r+i.nullCount,0);let e=this._nullCount,n;return e<=WJe&&(n=this.nullBitmap)&&(this._nullCount=e=n.length===0?0:this.length-QB(n,this.offset,this.offset+this.length)),e}constructor(e,n,r,i,s,o=[],a){this.type=e,this.children=o,this.dictionary=a,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||
vendor: 4,227 bytes, line 589
5890,-1));let l;s instanceof Qi?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=h0(e),s&&((l=s[0])&&(this.valueOffsets=l),(l=s[1])&&(this.values=l),(l=s[2])&&(this.nullBitmap=l),(l=s[3])&&(this.typeIds=l)))}getValid(e){const{type:n}=this;if(An.isUnion(n)){const r=n,i=this.children[r.typeIdToChildIndex[this.typeIds[e]]],s=r.mode===yl.Dense?this.valueOffsets[e]:e;return i.getValid(s)}if(this.nullable&&this.nullCount>0){const r=this.offset+e;return(this.nullBitmap[r>>3]&1<<r%8)!==0}return!0}setValid(e,n){let r;const{type:i}=this;if(An.isUnion(i)){const s=i,o=this.children[s.typeIdToChildIndex[this.typeIds[e]]],a=s.mode===yl.Dense?this.valueOffsets[e]:e;r=o.getValid(a),o.setValid(a,n)}else{let{nullBitmap:s}=this;const{offset:o,length:a}=this,l=o+e,c=1<<l%8,u=l>>3;(!s||s.byteLength<=u)&&(s=new Uint8Array((o+a+63&-64)>>3).fill(255),this.nullCount>0?(s.set(j8(o,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:s})):Object.assign(this,{nullBitmap:s,_nullCount:0}));const h=s[u];r=(h&c)!==0,s[u]=n?h|c:h&~c}return r!==!!n&&(this._nullCount=this.nullCount+(n?-1:1)),n}clone(e=this.type,n=this.offset,r=this.length,i=this._nullCount,s=this,o=this.children){return new Qi(e,n,r,i,s,o,this.dictionary)}slice(e,n){const{stride:r,typeId:i,children:s}=this,o=+(this._nullCount===0)-1,a=i===16?r:1,l=this._sliceBuffers(e,n,r,i);return this.clone(this.type,this.offset+e,n,o,l,s.length===0||this.valueOffsets?s:this._sliceChildren(s,a*e,a*n))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===we.Null)return this.clone(this.type,0,e,0);const{length:n,nullCount:r}=this,i=new Uint8Array((e+63&-64)>>3).fill(255,0,n>>3);i[n>>3]=(1<<n-(n&-8))-1,r>0&&i.set(j8(this.offset,n,this.nullBitmap),0);const s=this.buffers;return s[u0.VALIDITY]=i,this.clone(this.type,0,e,r+(e-n),s)}_sliceBuffers(e,n,r,i){let s;const{buffers:o}=this;return(s=o[u0.TYPE])&&(o[u0.TYPE]=s.subarray(e,e+n)),(s=o[u0.OFFSET])&&(o[u0.OFFSET]=s.subarray(e,e+n+1))||(s=o[u0.DATA])&&(o[u0.DATA]=i===6?s:s.subarray(r*e,r*(e+n))),o}_sliceChildren(e,n,r){return e.map(i=>i.slice(n,r))}}Qi.prototype.children=Object.freeze([]);class L4 extends Qr{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:n,["offset"]:r=0,["length"]:i=0}=e;return new Qi(n,r,i,i)}visitBool(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length>>3,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitInt(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitFloat(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitUtf8(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.data),s=li(e.nullBitmap),o=US(e.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[o,i,s])}visitLargeUtf8(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.data),s=li(e.nullBitmap),o=WZ(e.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[o,i,s])}visitBinary(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.data),s=li(e.nullBitmap),o=US(e.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[o,i,s])}visitLargeBinary(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.data),s=li(e.nullBitmap),o=WZ(e.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[o,i,s])}visitFixedSizeBinary(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length/h0(n),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitDate(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length/h0(n),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitTimestamp(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length/h0(n),["null
589Count"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitTime(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length/h0(n),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitDecimal(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length/h0(n),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitList(e){const{["type"]:n,["offset"]:r=0,["child"]:i}=e,s=li(e.nullBitmap),o=US(e.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[o,void 0,s],[i])}visitStruct(e){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=e,s=li(e.nullBitmap),{length:o=i.reduce((l,{length:c})=>Math.max(l,c),0),nullCount:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,void 0,s],i)}visitUnion(e){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=e,s=Ji(n.ArrayType,e.typeIds),{["length"]:o=s.length,["nullCount"]:a=-1}=e;if(An.isSparseUnion(n))return new Qi(n,r,o,a,[void 0,void 0,void 0,s],i);const l=US(e.valueOffsets);return new Qi(n,r,o,a,[l,void 0,void 0,s],i)}visitDictionary(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.indices.ArrayType,e.data),{["dictionary"]:o=new Vi([new L4().visit({type:n.dictionary})])}=e,{["length"]:a=s.length,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[void 0,s,i],[],o)}visitInterval(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length/h0(n),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitDuration(e){const{["type"]:n,["offset"]:r=0}=e,i=li(e.nullBitmap),s=Ji(n.ArrayType,e.data),{["length"]:o=s.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,s,i])}visitFixedSizeList(e){const{["type"]:n,["offset"]:r=0,["child"]:i=new L4().visit({type:n.valueType})}=e,s=li(e.nullBitmap),{["length"]:o=i.length/h0(n),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new Qi(n,r,o,a,[void 0,void 0,s],[i])}visitMap(e){const{["type"]:n,["offset"]:r=0,["child"]:i=new L4().visit({type:n.childType})}=e,s=li(e.nullBitmap),o=US(e.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new Qi(n,r,a,l,[o,void 0,s],[i])}}const qJe=new L4;function Jr(t){return qJe.visit(t)}class see{constructor(e=0,n){this.numChunks=e,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function GJe(t){return t.some(e=>e.nullable)}function o1e(t){return t.reduce((e,n)=>e+n.nullCount,0)}function a1e(t){return t.reduce((e,n,r)=>(e[r+1]=e[r]+n.length,e),new Uint32Array(t.length+1))}function l1e(t,e,n,r){const i=[];for(let s=-1,o=t.length;++s<o;){const a=t[s],l=e[s],{length:c}=a;if(l>=r)break;
589if(n>=l+c)continue;if(l>=n&&l+c<=r){i.push(a);continue}const u=Math.max(0,n-l),h=Math.min(r-l,c);i.push(a.slice(u,h-u))}return i.length===0&&i.push(t[0].slice(0,0)),i}function fV(t,e,n,r){let i=0,s=0,o=e.length-1;do{if(i>=o-1)return n<e[o]?r(t,i,n-e[i]):null;s=i+Math.trunc((o-i)*.5),n<e[s]?o=s:i=s}while(i<o)}function pV(t,e){return t.getValid(e)}function H8(t){function e(n,r,i){return t(n[r],i)}return function(n){const r=this.data;return fV(r,this._offsets,n,e)}}function c1e(t){let e;function n(r,i,s){return t(r[i],s,e)}return function(r,i){const s=this.data;e=i;const o=fV(s,this._offsets,r,n);return e=void 0,o}}function u1e(t){let e;function n(r,i,s){let o=s,a=0,l=0;for(let c=i-1,u=r.length;++c<u;){const h=r[c];if(~(a=t(h,e,o)))return l+a;o=0,l+=h.length}return-1}return function(r,i){e=r;const s=this.data,o=typeof i!="number"?n(s,0,0):fV(s,this._offsets,i,n);return e=void 0,o}}class Zn extends Qr{}function KJe(t,e){return e===null&&t.length>0?0:-1}function YJe(t,e){const{nullBitmap:n}=t;if(!n||t.nullCount<=0)return-1;let r=0;for(const i of new dV(n,t.offset+(e||0),t.length,n,s1e)){if(!i)return r;++r}return-1}function wr(t,e,n){if(e===void 0)return-1;if(e===null)switch(t.typeId){case we.Union:break;case we.Dictionary:break;default:return YJe(t,n)}const r=Bc.getVisitFn(t),i=Mw(e);for(let s=(n||0)-1,o=t.length;++s<o;)if(i(r(t,s)))return s;return-1}function h1e(t,e,n){const r=Bc.getVisitFn(t),i=Mw(e);for(let s=(n||0)-1,o=t.length;++s<o;)if(i(r(t,s)))return s;return-1}Zn.prototype.visitNull=KJe;Zn.prototype.visitBool=wr;Zn.prototype.visitInt=wr;Zn.prototype.visitInt8=wr;Zn.prototype.visitInt16=wr;Zn.prototype.visitInt32=wr;Zn.prototype.visitInt64=wr;Zn.prototype.visitUint8=wr;Zn.prototype.visitUint16=wr;Zn.prototype.visitUint32=wr;Zn.prototype.visitUint64=wr;Zn.prototype.visitFloat=wr;Zn.prototype.visitFloat16=wr;Zn.prototype.visitFloat32=wr;Zn.prototype.visitFloat64=wr;Zn.prototype.visitUtf8=wr;Zn.prototype.visitLargeUtf8=wr;Zn.prototype.visitBinary=wr;Zn.prototype.visitLargeBinary=wr;Zn.prototype.visitFixedSizeBinary=wr;Zn.prototype.visitDate=wr;Zn.prototype.visitDateDay=wr;Zn.prototype.visitDateMillisecond=wr;Zn.prototype.visitTimestamp=wr;Zn.prototype.visitTimestampSecond=wr;Zn.prototype.visitTimestampMillisecond=wr;Zn.prototype.visitTimestampMicrosecond=wr;Zn.prototype.visitTimestampNanosecond=wr;Zn.prototype.visitTime=wr;Zn.prototype.visitTimeSecond=wr;Zn.prototype.visitTimeMillisecond=wr;Zn.prototype.visitTimeMicrosecond=wr;Zn.prototype.visitTimeNanosecond=wr;Zn.prototype.visitDecimal=wr;Zn.prototype.visitList=wr;Zn.prototype.visitStruct=wr;Zn.prototype.visitUnion=wr;Zn.prototype.visitDenseUnion=h1e;Zn.prototype.visitSparseUnion=h1e;Zn.prototype.visitDictionary=wr;Zn.prototype.visitInterval=wr;Zn.prototype.visitIntervalDayTime=wr;Zn.prototype.visitIntervalYearMonth=wr;Zn.prototype.visitDuration=wr;Zn.prototype.visitDurationSecond=wr;Zn.prototype.visitDurationMillisecond=wr;Zn.prototype.visitDurationMicrosecond=wr;Zn.prototype.visitDurationNanosecond=wr;Zn.prototype.visitFixedSizeList=wr;Zn.prototype.visitMap=wr;const U8=new Zn;class er extends Qr{}function lr(t){const{type:e}=t;if(t.nullCount===0&&t.stride===1&&(An.isInt(e)&&e.bitWidth!==64||An.isTime(e)&&e.bitWidth!==64||An.isFloat(e)&&e.precision!==ml.HALF))return new see(t.data.length,r=>{const i=t.data[r];return i.values.subarray(0,i.length)[Symbol.iterator]()});let n=0;return new see(t.data.length,r=>{const s=t.data[r].length,o=t.slice(n,n+s);return n+=s,new QJe(o)})}class QJe{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}er.prototype.visitNull=lr;er.prototype.visitBool=lr;er.prototype.visitInt=lr;er.prototype.visitInt8=lr;er.prototype.visitInt16=lr;er.prototype.visitInt32=lr;er.prototype.visitInt64=lr;er.prototype.visitUint8=lr;er.prototype.visitUint16=lr;er.prototype.visitUint32=lr;er.prototype.visitUint64=lr;er.prototype.visitFloat=lr;er.prototype.visitFloat16=lr;er.prototype.visitFloat32=lr;er.prototype.visitFloat64=lr;er.prototype.visitUtf8=lr;er.prototype.visitLargeUtf8=lr;er.prototype.visitBinary=lr;er.prototype.visitLargeBinary=lr;er.prototype.visitFixedSizeBinary=lr;er.prototype.visitDate=lr;er.prototype.visitDateDay=lr;er.prototype.visitDateMillisecond=lr;er.prototype.visitTimestamp=lr;er.prototype.visitTimestampSecond=lr;er.prototype.visitTimestampMillisecond=lr;er.prototype.visitTimestampMicrosecond=lr;er.prototype.visitTimestampNanosecond=lr;er.prototype.visitTime=lr;er.prototype.visitTimeSecond=lr;er.prototype.visitTimeMillisecond=lr;er.prototype.visitTimeMicrosecond=lr;er.prototype.visitTimeNanosecond=lr;er.prototype.visitDecimal=lr;er.prototype.visitList=lr;er.prototype.visitStruct=lr;er.prototype.visitUnion=lr;er.prototype.visitDenseUnion=lr;er.prototype.visitSparseUnion=lr;er.prototype.visitDictionary=lr;er.prototype.visitInterval=lr;er.prototype.visitIntervalDayTime=lr;er.prototype.visitIntervalYearMonth=lr;er.prototype.visitDuration=lr;er.prototype.visitDurationSecond=lr;er.prototype.visitDurationMillisecond=lr;er.prototype.visitDurationMicrosecond=lr;er.prototype.visitDurationNanosecond=lr;er.prototype.visitFixedSizeList=lr;er.prototype.visitMap=lr;const mV=new er;var d1e;const f1e={},p1e={};class Vi{constructor(e){var n,r,i;const s=e[0]instanceof Vi?e.flatMap(a=>a.data):e;if(s.length===0||s.some(a=>!(a instanceof Qi)))throw new TypeError("Vector constructor expects an Array of Data instances.");const o=(n=s[0])===null||n===void 0?void 0:n.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{const{get:a,set:l,indexOf:c}=f1e[o.typeId],u=s[0];this.isValid=h=>pV(u,h),this.get=h=>a(u,h),this.set=(h,d)=>l(u,h,d),this.indexOf=h=>c(u,h),this._offsets=[0,u.length];break}default:Object.setPrototypeOf(this,p1e[o.typeId]),this._offsets=a1e(s);break}this.data=s,this.type=o,this.stride=h0(o),this.numChildren=(i=(r=o.children)===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,n)=>e+n.byteLength,0)}get nullable(){return GJe(this.data)}get nullCount(){return o1e(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${we[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(hV(e,this.length))}set(e,n){}indexOf(e,n){return-1}includes(e,n){return this.indexOf(e,n)>-1}
vendor: 29,343 bytes, line 589
589[Symbol.iterator](){return mV.visit(this)}concat(...e){return new Vi(this.data.concat(e.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(e,n){return new Vi(i1e(this,e,n,({data:r,_offsets:i},s,o)=>l1e(r,i,s,o)))}toJSON(){return[...this]}toArray(){const{type:e,data:n,length:r,stride:i,ArrayType:s}=this;switch(e.typeId){case we.Int:case we.Float:case we.Decimal:case we.Time:case we.Timestamp:switch(n.length){case 0:return new s;case 1:return n[0].values.subarray(0,r*i);default:return n.reduce((o,{values:a,length:l})=>(o.array.set(a.subarray(0,l*i),o.offset),o.offset+=l*i,o),{array:new s(r*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new Vi(this.data.map(({children:n})=>n[e])):null}get isMemoized(){return An.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(An.isDictionary(this.type)){const e=new V8(this.data[0].dictionary),n=this.data.map(r=>{const i=r.clone();return i.dictionary=e,i});return new Vi(n)}return new V8(this)}unmemoize(){if(An.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const i=r.clone();return i.dictionary=e,i});return new Vi(n)}return this}}d1e=Symbol.toStringTag;Vi[d1e]=(t=>{t.type=An.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;const e=Object.keys(we).map(n=>we[n]).filter(n=>typeof n=="number"&&n!==we.NONE);for(const n of e){const r=Bc.getVisitFnByTypeId(n),i=Ph.getVisitFnByTypeId(n),s=U8.getVisitFnByTypeId(n);f1e[n]={get:r,set:i,indexOf:s},p1e[n]=Object.create(t,{isValid:{value:H8(pV)},get:{value:H8(Bc.getVisitFnByTypeId(n))},set:{value:c1e(Ph.getVisitFnByTypeId(n))},indexOf:{value:u1e(U8.getVisitFnByTypeId(n))}})}return"Vector"})(Vi.prototype);class V8 extends Vi{constructor(e){super(e.data);const n=this.get,r=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(o){const a=s[o];if(a!==void 0)return a;const l=n.call(this,o);return s[o]=l,l}}),Object.defineProperty(this,"set",{value(o,a){r.call(this,o,a),s[o]=a}}),Object.defineProperty(this,"slice",{value:(o,a)=>new V8(i.call(this,o,a))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Vi(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class XB{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,n,r,i){return e.prep(8,24),e.writeInt64(BigInt(i??0)),e.pad(4),e.writeInt32(r),e.writeInt64(BigInt(n??0)),e.offset()}}class gu{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFooter(e,n){return(n||new gu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,n){return e.setPosition(e.position()+Gi),(n||new gu).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):wo.V1}schema(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new mf).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new XB).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new XB).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new aa).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,wo.V1)}static addSchema(e,n){e.addFieldOffset(1,n,0)}static addDictionaries(e,n){e.addFieldOffset(2,n,0)}static startDictionariesVector(e,n){e.startVector(24,n,8)}static addRecordBatches(e,n){e.addFieldOffset(3,n,0)}static startRecordBatchesVector(e,n){e.startVector(24,n,8)}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,n){e.finish(n)}static finishSizePrefixedFooterBuffer(e,n){e.finish(n,void 0,!0)}}let no=class cy{constructor(e=[],n,r,i=wo.V5){this.fields=e||[],this.metadata=n||new Map,r||(r=JB(this.fields)),this.dictionaries=r,this.metadataVersion=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,n)=>`${n}: ${e}`).join(", ")} }>`}select(e){const n=new Set(e),r=this.fields.filter(i=>n.has(i.name));return new cy(r,this.metadata)}selectAt(e){const n=e.map(r=>this.fields[r]).filter(Boolean);return new cy(n,this.metadata)}assign(...e){const n=e[0]instanceof cy?e[0]:Array.isArray(e[0])?new cy(e[0]):new cy(e),r=[...this.fields],i=j5(j5(new Map,this.metadata),n.metadata),s=n.fields.filter(a=>{const l=r.findIndex(c=>c.name===a.name);return~l?(r[l]=a.clone({metadata:j5(j5(new Map,r[l].metadata),a.metadata)}))&&!1:!0}),o=JB(s,new Map);return new cy([...r,...s],i,new Map([...this.dictionaries,...o]))}};no.prototype.fields=null;no.prototype.metadata=null;no.prototype.dictionaries=null;class Rs{static new(...e){let[n,r,i,s]=e;return e[0]&&typeof e[0]=="object"&&({name:n}=e[0],r===void 0&&(r=e[0].type),i===void 0&&(i=e[0].nullable),s===void 0&&(s=e[0].metadata)),new Rs(`${n}`,r,i,s)}constructor(e,n,r=!1,i){this.name=e,this.type=n,this.nullable=r,this.metadata=i||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[n,r,i,s]=e;return!e[0]||typeof e[0]!="object"?[n=this.name,r=this.type,i=this.nullable,s=this.metadata]=e:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=e[0],Rs.new(n,r,i,s)}}Rs.prototype.type=null;Rs.prototype.name=null;Rs.prototype.nullable=null;Rs.prototype.metadata=null;function j5(t,e){return new Map([...t||new Map,...e||new Map])}function JB(t,e=new Map){for(let n=-1,r=t.length;++n<r;){const s=t[n].type;if(An.isDictionary(s)){if(!e.has(s.id))e.set(s.id,s.dictionary);else if(e.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&JB(s.children,e)}return e}var XJe=Fme,JJe=Bx;class zk{static decode(e){e=new JJe(li(e));const n=gu.getRootAsFooter(e),r=no.decode(n.schema(),new Map,n.version());return new ZJe(r,n)}static encode(e){const n=new XJe,r=no.encode(n,e.schema);gu.startRecordBatchesVector(n,e.numRecordBatches);for(const o of[...e.recordBatches()].slice().reverse())Hg.encode(n,o);const i=n.endVector();gu.startDictionariesVector(n,e.numDictionaries);for(const o of[...e.dictionaryBatches()].slice().reverse())Hg.encode(n,o);const s=n.endVector();return gu.startFooter(n),gu.addSchema(n,r),gu.addVersion(n,wo.V5),gu.addRecordBatches(n,i),gu.addDictionaries(n,s),gu.finishFooterBuffer(n,gu.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,n=wo.V5,r,i){this.schema=e,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}*recordBatches(){for(let e,n=-1,r=this.numRecordBatches;++n<r;)(e=this.getRecordBatch(n))&&(yield e)}*dictionaryBatches(){for(let e,n=-1,r=this.numDictionaries;++n<r;)(e=this.getDictionaryBatch(n))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class ZJe extends zk{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,n){super(e,n.version()),this._footer=n}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const n=this._footer.recordBatches(e);if(n)return Hg.decode(n)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const n=this._footer.dictionaries(e);if(n)return Hg.decode(n)}return null}}class Hg{static decode(e){return new Hg(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,n){const{metaDataLength:r}=n,i=BigInt(n.offset),s=BigInt(n.bodyLength);return XB.createBlock(e,i,r,s)}constructor(e,n,r){this.metaDataLength=e,this.offset=us(r),this.bodyLength=us(n)}}const oo=Object.freeze({done:!0,value:void 0});class oee{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class gV{tee(){return this._getDOMStream().tee()}pipe(e,n){return this._getNodeStream().pipe(e,n)}pipeTo(e,n){return this._getDOMStream().pipeTo(e,n)}pipeThrough(e,n){return this._getDOMStream().pipeThrough(e,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class eZe extends gV{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return Vn(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(oo);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return sh.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return sh.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return Vn(this,void 0,void 0,function*(){return yield this.abort(e),oo})}return(e){return Vn(this,void 0,void 0,function*(){return yield this.close(),oo})}read(e){return Vn(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return Vn(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve(oo)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class G6 extends eZe{write(e){if((e=li(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?UB(this.toUint8Array(!0)):this.toUint8Array(!1).then(UB)}toUint8Array(e=!1){return e?ap(this._values)[0]:Vn(this,void 0,void 0,function*(){var n,r,i,s;const o=[];let a=0;try{for(var l=!0,c=Yy(this),u;u=yield c.next(),n=u.done,!n;l=!0){s=u.value,l=!1;const h=s;o.push(h),a+=h.byteLength}}catch(h){r={error:h}}finally{try{!l&&!n&&(i=c.return)&&(yield i.call(c))}finally{if(r)throw r.error}}return ap(o,a)[0]})}}class W8{constructor(e){e&&(this.source=new tZe(sh.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class jx{constructor(e){e instanceof jx?this.source=e.source:e instanceof G6?this.source=new Q1(sh.fromAsyncIterable(e)):Nme(e)?this.source=new Q1(sh.fromNodeStream(e)):sV(e)?this.source=new Q1(sh.fromDOMStream(e)):Mme(e)?this.source=new Q1(sh.fromDOMStream(e.body)):l_(e)?this.source=new Q1(sh.fromIterable(e)):fb(e)?this.source=new Q1(sh.fromAsyncIterable(e)):Dw(e)&&(this.source=new Q1(sh.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class tZe{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,n="read"){return this.source.next({cmd:n,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||oo)}return(e){return Object.create(this.source.return&&this.source.return(e)||oo)}}class Q1{constructor(e){this.source=e,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(e){return Vn(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return Vn(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return Vn(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return Vn(this,arguments,void 0,function*(n,r="read"){return yield this.source.next({cmd:r,size:n})})}throw(e){return Vn(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(e))||oo;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(e){return Vn(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(e))||oo;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class aee extends W8{constructor(e,n){super(),this.position=0,this.buffer=li(e),this.size=n===void 0?this.buffer.byteLength:n}readInt32(e){const{buffer:n,byteOffset:r}=this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:n,size:r,position:i}=this;return n&&i<r?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(r,i+Math.min(r-i,e)),n.subarray(i,this.position)):null}readAt(e,n){const r=this.buffer,i=Math.min(this.size,e+n);return r?r.subarray(e,i):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class q8 extends jx{constructor(e,n){super(),this.position=0,this._handle=e,typeof n=="number"?this.size=n:this._pending=Vn(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return Vn(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)})}seek(e){return Vn(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return Vn(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:i}=this;if(n&&i<r){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let s=i,o=0,a=0;const l=Math.min(r,s+Math.min(r-s,e)),c=new Uint8Array(Math.max(0,(this.position=l)-s));for(;(s+=a)<l&&(o+=a)<c.byteLength;)({bytesRead:a}=yield n.read(c,o,c.byteLength-o,s));return c}return null})}readAt(e,n){return Vn(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:i}=this;if(r&&e+n<i){const s=Math.min(i,e+n),o=new Uint8Array(s-e);return(yield r.read(o,0,n,e)).buffer}return new Uint8Array(n)})}close(){return Vn(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return Vn(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return Vn(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const nZe=65536;function I2(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const zx=8,yV=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class m1e{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let i=n[3]*r[3];this.buffer[0]=i&65535;let s=i>>>16;return i=n[2]*r[3],s+=i,i=n[3]*r[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?nZe:0,this.buffer[1]+=s>>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(e){const n=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${I2(this.buffer[1])} ${I2(this.buffer[0])}`}}class Xi extends m1e{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,n=new Uint32Array(2)){return Xi.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return Xi.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.length,i=new Xi(n);for(let s=0;s<r;){const o=zx<r-s?zx:r-s,a=new Xi(new Uint32Array([Number.parseInt(e.slice(s,s+o),10),0])),l=new Xi(new Uint32Array([yV[o],0]));i.times(l),i.plus(a),s+=o}return i}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,i=e.length;++r<i;)Xi.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new Xi(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new Xi(new Uint32Array(e.buffer)).plus(n)}}class fc extends m1e{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const n=this.buffer[1]<<0,r=e.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<e.buffer[0]}static from(e,n=new Uint32Array(2)){return fc.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return fc.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.startsWith("-"),i=e.length,s=new fc(n);for(let o=r?1:0;o<i;){const a=zx<i-o?zx:i-o,l=new fc(new Uint32Array([Number.parseInt(e.slice(o,o+a),10),0])),c=new fc(new Uint32Array([yV[a],0]));s.times(c),s.plus(l),o+=a}return r?s.negate():s}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,i=e.length;++r<i;)fc.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new fc(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new fc(new Uint32Array(e.buffer)).plus(n)}}class gf{constructor(e){this.buffer=e}high(){return new fc(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new fc(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const n=new Xi(new Uint32Array([this.buffer[3],0])),r=new Xi(new Uint32Array([this.buffer[2],0])),i=new Xi(new Uint32Array([this.buffer[1],0])),s=new Xi(new Uint32Array([this.buffer[0],0])),o=new Xi(new Uint32Array([e.buffer[3],0])),a=new Xi(new Uint32Array([e.buffer[2],0])),l=new Xi(new Uint32Array([e.buffer[1],0])),c=new Xi(new Uint32Array([e.buffer[0],0]));let u=Xi.multiply(s,c);this.buffer[0]=u.low();const h=new Xi(new Uint32Array([u.high(),0]));return u=Xi.multiply(i,c),h.plus(u),u=Xi.multiply(s,l),h.plus(u),this.buffer[1]=h.low(),this.buffer[3]=h.lessThan(u)?1:0,this.buffer[2]=h.high(),new Xi(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Xi.multiply(r,c)).plus(Xi.multiply(i,l)).plus(Xi.multiply(s,a)),this.buffer[3]+=Xi.multiply(n,c).plus(Xi.multiply(r,l)).plus(Xi.multiply(i,a)).plus(Xi.multiply(s,o)).low(),this}plus(e){const n=new Uint32Array(4);return n[3]=this.buffer[3]+e.buffer[3]>>>0,n[2]=this.buffer[2]+e.buffer[2]>>>0,n[1]=this.buffer[1]+e.buffer[1]>>>0,n[0]=this.buffer[0]+e.buffer[0]>>>0,n[0]<this.buffer[0]>>>0&&++n[1],n[1]<this.buffer[1]>>>0&&++n[2],n[2]<this.buffer[2]>>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${I2(this.buffer[3])} ${I2(this.buffer[2])} ${I2(this.buffer[1])} ${I2(this.buffer[0])}`}static multiply(e,n){return new gf(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new gf(new Uint32Array(e.buffer)).plus(n)}static from(e,n=new Uint32Array(4)){return gf.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(4)){return gf.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(4)){const r=e.startsWith("-"),i=e.length,s=new gf(n);for(let o=r?1:0;o<i;){const a=zx<i-o?zx:i-o,l=new gf(new Uint32Array([Number.parseInt(e.slice(o,o+a),10),0,0,0])),c=new gf(new Uint32Array([yV[a],0,0,0]));s.times(c),s.plus(l),o+=a}return r?s.negate():s}static convertArray(e){const n=new Uint32Array(e.length*4);for(let r=-1,i=e.length;++r<i;)gf.from(e[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class g1e extends Qr{constructor(e,n,r,i,s=wo.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=n,this.buffers=r,this.dictionaries=i,this.metadataVersion=s}visit(e){return super.visit(e instanceof Rs?e.type:e)}visitNull(e,{length:n}=this.nextFieldNode()){return Jr({type:e,length:n})}visitBool(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitInt(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFloat(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitUtf8(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDate(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTimestamp(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTime(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDecimal(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),children:this.visitMany(e.children)})}visitUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return this.metadataVersion<wo.V5&&this.readNullBitmap(e,r),e.mode===yl.Sparse?this.visitSparseUnion(e,{length:n,nullCount:r}):this.visitDenseUnion(e,{length:n,nullCount:r})}visitDenseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDuration(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFixedSizeList(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),child:this.visit(e.children[0])})}visitMap(e,{length:n,nullCount:r}=this.nextFieldNode()){return Jr({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,n,r=this.nextBufferRange()){return n>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,n){return this.readData(e,n)}readTypeIds(e,n){return this.readData(e,n)}readData(e,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(e){return this.dictionaries.get(e.id)}}class rZe extends g1e{constructor(e,n,r,i,s){super(new Uint8Array(0),n,r,i,s),this.sources=e}readNullBitmap(e,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):z8(this.sources[r])}readOffsets(e,{offset:n}=this.nextBufferRange()){return Ji(Uint8Array,Ji(e.OffsetArrayType,this.sources[n]))}readTypeIds(e,{offset:n}=this.nextBufferRange()){return Ji(Uint8Array,Ji(e.ArrayType,this.sources[n]))}readData(e,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return An.isTimestamp(e)||(An.isInt(e)||An.isTime(e))&&e.bitWidth===64||An.isDuration(e)||An.isDate(e)&&e.unit===Ah.MILLISECOND?Ji(Uint8Array,fc.convertArray(r[n])):An.isDecimal(e)?Ji(Uint8Array,gf.convertArray(r[n])):An.isBinary(e)||An.isLargeBinary(e)||An.isFixedSizeBinary(e)?iZe(r[n]):An.isBool(e)?z8(r[n]):An.isUtf8(e)||An.isLargeUtf8(e)?iV(r[n].join("")):Ji(Uint8Array,Ji(e.ArrayType,r[n].map(i=>+i)))}}function iZe(t){const e=t.join(""),n=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)n[r>>1]=Number.parseInt(e.slice(r,r+2),16);return n}class tr extends Qr{compareSchemas(e,n){return e===n||n instanceof e.constructor&&this.compareManyFields(e.fields,n.fields)}compareManyFields(e,n){return e===n||Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((r,i)=>this.compareFields(r,n[i]))}compareFields(e,n){return e===n||n instanceof e.constructor&&e.name===n.name&&e.nullable===n.nullable&&this.visit(e.type,n.type)}}function Kl(t,e){return e instanceof t.constructor}function Rb(t,e){return t===e||Kl(t,e)}function hm(t,e){return t===e||Kl(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function VO(t,e){return t===e||Kl(t,e)&&t.precision===e.precision}function sZe(t,e){return t===e||Kl(t,e)&&t.byteWidth===e.byteWidth}function bV(t,e){return t===e||Kl(t,e)&&t.unit===e.unit}function c_(t,e){return t===e||Kl(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function u_(t,e){return t===e||Kl(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function oZe(t,e){return t===e||Kl(t,e)&&t.children.length===e.children.length&&Ug.compareManyFields(t.children,e.children)}function aZe(t,e){return t===e||Kl(t,e)&&t.children.length===e.children.length&&Ug.compareManyFields(t.children,e.children)}function vV(t,e){return t===e||Kl(t,e)&&t.mode===e.mode&&t.typeIds.every((n,r)=>n===e.typeIds[r])&&Ug.compareManyFields(t.children,e.children)}function lZe(t,e){return t===e||Kl(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Ug.visit(t.indices,e.indices)&&Ug.visit(t.dictionary,e.dictionary)}function xV(t,e){return t===e||Kl(t,e)&&t.unit===e.unit}function h_(t,e){return t===e||Kl(t,e)&&t.unit===e.unit}function cZe(t,e){return t===e||Kl(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Ug.compareManyFields(t.children,e.children)}
589function uZe(t,e){return t===e||Kl(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Ug.compareManyFields(t.children,e.children)}tr.prototype.visitNull=Rb;tr.prototype.visitBool=Rb;tr.prototype.visitInt=hm;tr.prototype.visitInt8=hm;tr.prototype.visitInt16=hm;tr.prototype.visitInt32=hm;tr.prototype.visitInt64=hm;tr.prototype.visitUint8=hm;tr.prototype.visitUint16=hm;tr.prototype.visitUint32=hm;tr.prototype.visitUint64=hm;tr.prototype.visitFloat=VO;tr.prototype.visitFloat16=VO;tr.prototype.visitFloat32=VO;tr.prototype.visitFloat64=VO;tr.prototype.visitUtf8=Rb;tr.prototype.visitLargeUtf8=Rb;tr.prototype.visitBinary=Rb;tr.prototype.visitLargeBinary=Rb;tr.prototype.visitFixedSizeBinary=sZe;tr.prototype.visitDate=bV;tr.prototype.visitDateDay=bV;tr.prototype.visitDateMillisecond=bV;tr.prototype.visitTimestamp=c_;tr.prototype.visitTimestampSecond=c_;tr.prototype.visitTimestampMillisecond=c_;tr.prototype.visitTimestampMicrosecond=c_;tr.prototype.visitTimestampNanosecond=c_;tr.prototype.visitTime=u_;tr.prototype.visitTimeSecond=u_;tr.prototype.visitTimeMillisecond=u_;tr.prototype.visitTimeMicrosecond=u_;tr.prototype.visitTimeNanosecond=u_;tr.prototype.visitDecimal=Rb;tr.prototype.visitList=oZe;tr.prototype.visitStruct=aZe;tr.prototype.visitUnion=vV;tr.prototype.visitDenseUnion=vV;tr.prototype.visitSparseUnion=vV;tr.prototype.visitDictionary=lZe;tr.prototype.visitInterval=xV;tr.prototype.visitIntervalDayTime=xV;tr.prototype.visitIntervalYearMonth=xV;tr.prototype.visitDuration=h_;tr.prototype.visitDurationSecond=h_;tr.prototype.visitDurationMillisecond=h_;tr.prototype.visitDurationMicrosecond=h_;tr.prototype.visitDurationNanosecond=h_;tr.prototype.visitFixedSizeList=cZe;tr.prototype.visitMap=uZe;const Ug=new tr;function ZB(t,e){return Ug.compareSchemas(t,e)}function ZM(t,e){return hZe(t,e.map(n=>n.data.concat()))}function hZe(t,e){const n=[...t.fields],r=[],i={numBatches:e.reduce((h,d)=>Math.max(h,d.length),0)};let s=0,o=0,a=-1;const l=e.length;let c,u=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,a=-1;++a<l;)u[a]=c=e[a].shift(),o=Math.min(o,c?c.length:o);Number.isFinite(o)&&(u=dZe(n,o,u,e,i),o>0&&(r[s++]=Jr({type:new Nl(n),length:o,nullCount:0,children:u.slice()})))}return[t=t.assign(n),r.map(h=>new yc(t,h))]}function dZe(t,e,n,r,i){var s;const o=(e+63&-64)>>3;for(let a=-1,l=r.length;++a<l;){const c=n[a],u=c?.length;if(u>=e)u===e?n[a]=c:(n[a]=c.slice(0,e),i.numBatches=Math.max(i.numBatches,r[a].unshift(c.slice(e,u-e))));else{const h=t[a];t[a]=h.clone({nullable:!0}),n[a]=(s=c?._changeLengthAndBackfillNullBitmap(e))!==null&&s!==void 0?s:Jr({type:h.type,length:e,nullCount:e,nullBitmap:new Uint8Array(o)})}}return n}var y1e;class Ml{constructor(...e){var n,r;if(e.length===0)return this.batches=[],this.schema=new no([]),this._offsets=[0],this;let i,s;e[0]instanceof no&&(i=e.shift()),e.at(-1)instanceof Uint32Array&&(s=e.pop());const o=l=>{if(l){if(l instanceof yc)return[l];if(l instanceof Ml)return l.batches;if(l instanceof Qi){if(l.type instanceof Nl)return[new yc(new no(l.type.children),l)]}else{if(Array.isArray(l))return l.flatMap(c=>o(c));if(typeof l[Symbol.iterator]=="function")return[...l].flatMap(c=>o(c));if(typeof l=="object"){const c=Object.keys(l),u=c.map(p=>new Vi([l[p]])),h=i??new no(c.map((p,g)=>new Rs(String(p),u[g].type,u[g].nullable))),[,d]=ZM(h,u);return d.length===0?[new yc(l)]:d}}}return[]},a=e.flatMap(l=>o(l));if(i=(r=i??((n=a[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new no([]),!(i instanceof no))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const l of a){if(!(l instanceof yc))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!ZB(i,l.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=a,this._offsets=s??a1e(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,n)=>e+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=o1e(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(hV(e,this.numRows))}set(e,n){}indexOf(e,n){return-1}[Symbol.iterator](){return this.batches.length>0?mV.visit(new Vi(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[ 590 ${this.toArray().join(`, 591 `)} 592]`}concat(...e){const n=this.schema,r=this.data.concat(e.flatMap(({data:i})=>i));return new Ml(n,r.map(i=>new yc(n,i)))}slice(e,n){const r=this.schema;[e,n]=i1e({length:this.numRows},e,n);const i=l1e(this.data,this._offsets,e,n);return new Ml(r,i.map(s=>new yc(r,s)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const n=this.data.map(r=>r.children[e]);if(n.length===0){const{type:r}=this.schema.fields[e],i=Jr({type:r,length:0,nullCount:0});
vendor: 4,242 bytes, line 592
592n.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new Vi(n)}return null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e),n)}setChildAt(e,n){let r=this.schema,i=[...this.batches];if(e>-1&&e<this.numCols){n||(n=new Vi([Jr({type:new zg,length:this.numRows})]));const s=r.fields.slice(),o=s[e].clone({type:n.type}),a=this.schema.fields.map((l,c)=>this.getChildAt(c));[s[e],a[e]]=[o,n],[r,i]=ZM(r,a)}return new Ml(r,i)}select(e){const n=this.schema.fields.reduce((r,i,s)=>r.set(i.name,s),new Map);return this.selectAt(e.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(e){const n=this.schema.selectAt(e),r=this.batches.map(i=>i.selectAt(e));return new Ml(n,r)}assign(e){const n=this.schema.fields,[r,i]=e.schema.fields.reduce((a,l,c)=>{const[u,h]=a,d=n.findIndex(p=>p.name===l.name);return~d?h[d]=c:u.push(c),a},[[],[]]),s=this.schema.assign(e.schema),o=[...n.map((a,l)=>[l,i[l]]).map(([a,l])=>l===void 0?this.getChildAt(a):e.getChildAt(l)),...r.map(a=>e.getChildAt(a))].filter(Boolean);return new Ml(...ZM(s,o))}}y1e=Symbol.toStringTag;Ml[y1e]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=H8(pV),t.get=H8(Bc.getVisitFn(we.Struct)),t.set=c1e(Ph.getVisitFn(we.Struct)),t.indexOf=u1e(U8.getVisitFn(we.Struct)),"Table"))(Ml.prototype);var b1e;let yc=class Q3{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof no))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Jr({nullCount:0,type:new Nl(this.schema.fields),children:this.schema.fields.map(n=>Jr({type:n.type,nullCount:0}))})]=e,!(this.data instanceof Qi))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=lee(this.schema,this.data.children);break}case 1:{const[n]=e,{fields:r,children:i,length:s}=Object.keys(n).reduce((l,c,u)=>(l.children[u]=n[c],l.length=Math.max(l.length,n[c].length),l.fields[u]=Rs.new({name:c,type:n[c].type,nullable:!0}),l),{length:0,fields:new Array,children:new Array}),o=new no(r),a=Jr({type:new Nl(r),length:s,children:i,nullCount:0});[this.schema,this.data]=lee(o,a.children,s);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=v1e(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Bc.visit(this.data,e)}at(e){return this.get(hV(e,this.numRows))}set(e,n){return Ph.visit(this.data,e,n)}indexOf(e,n){return U8.visit(this.data,e,n)}[Symbol.iterator](){return mV.visit(new Vi([this.data]))}toArray(){return[...this]}concat(...e){return new Ml(this.schema,[this,...e])}slice(e,n){const[r]=new Vi([this.data]).slice(e,n).data;return new Q3(this.schema,r)}getChild(e){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new Vi([this.data.children[e]]):null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e),n)}setChildAt(e,n){let r=this.schema,i=this.data;if(e>-1&&e<this.numCols){n||(n=new Vi([Jr({type:new zg,length:this.numRows})]));const s=r.fields.slice(),o=i.children.slice(),a=s[e].clone({type:n.type});[s[e],o[e]]=[a,n.data[0]],r=new no(s,new Map(this.schema.metadata)),i=Jr({type:new Nl(s),children:o})}return new Q3(r,i)}select(e){const n=this.schema.select(e),r=new Nl(n.fields),i=[];for(const s of e){const o=this.schema.fields.findIndex(a=>a.name===s);~o&&(i[o]=this.data.children[o])}return new Q3(n,Jr({type:r,length:this.numRows,children:i}))}selectAt(e){const n=this.schema.selectAt(e),r=e.map(s=>this.data.children[s]).filter(Boolean),i=Jr({type:new Nl(n.fields),length:this.numRows,children:r});return new Q3(n,i)}};b1e=Symbol.toStringTag;yc[b1e]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(yc.prototype);function lee(t,e,n=e.reduce((r,i)=>
592Math.max(r,i.length),0)){var r;const i=[...t.fields],s=[...e],o=(n+63&-64)>>3;for(const[a,l]of t.fields.entries()){const c=e[a];(!c||c.length!==n)&&(i[a]=l.clone({nullable:!0}),s[a]=(r=c?._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:Jr({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[t.assign(i),Jr({type:new Nl(i),length:n,children:s})]}function v1e(t,e,n=new Map){var r,i;if(((r=t?.length)!==null&&r!==void 0?r:0)>0&&t?.length===e?.length)for(let s=-1,o=t.length;++s<o;){const{type:a}=t[s],l=e[s];for(const c of[l,...((i=l?.dictionary)===null||i===void 0?void 0:i.data)||[]])v1e(a.children,c?.children,n);if(An.isDictionary(a)){const{id:c}=a;if(!n.has(c))l?.dictionary&&n.set(c,l.dictionary);else if(n.get(c)!==l.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return n}class wV extends yc{constructor(e){const n=e.fields.map(i=>Jr({type:i.type})),r=Jr({type:new Nl(e.fields),nullCount:0,children:n});super(e,r)}}let qm=class hf{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMessage(e,n){return(n||new hf).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+Gi),(n||new hf).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):wo.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Pi.NONE}header(e){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(e,this.bb_pos+n):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new aa).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,wo.V1)}static addHeaderType(e,n){e.addFieldInt8(1,n,Pi.NONE)}static addHeader(e,n){e.addFieldOffset(2,n,0)}static addBodyLength(e,n){e.addFieldInt64(3,n,BigInt("0"))}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,n){e.finish(n)}static finishSizePrefixedMessageBuffer(e,n){e.finish(n,void 0,!0)}static createMessage(e,n,r,i,s,o){return hf.startMessage(e),hf.addVersion(e,n),hf.addHeaderType(e,r),hf.addHeader(e,i),hf.addBodyLength(e,s),hf.addCustomMetadata(e,o),hf.endMessage(e)}};class fZe extends Qr{visit(e,n){return e==null||n==null?void 0:super.visit(e,n)}visitNull(e,n){return ZZ.startNull(n),ZZ.endNull(n)}visitInt(e,n){return wu.startInt(n),wu.addBitWidth(n,e.bitWidth),wu.addIsSigned(n,e.isSigned),wu.endInt(n)}visitFloat(e,n){return Of.startFloatingPoint(n),Of.addPrecision(n,e.precision),Of.endFloatingPoint(n)}visitBinary(e,n){return KZ.startBinary(n),KZ.endBinary(n)}visitLargeBinary(e,n){return QZ.startLargeBinary(n),QZ.endLargeBinary(n)}visitBool(e,n){return YZ.startBool(n),YZ.endBool(n)}visitUtf8(e,n){return eee.startUtf8(n),eee.endUtf8(n)}visitLargeUtf8(e,n){return XZ.startLargeUtf8(n),XZ.endLargeUtf8(n)}visitDecimal(e,n){return Qv.startDecimal(n),Qv.addScale(n,e.scale),Qv.addPrecision(n,e.precision),Qv.addBitWidth(n,e.bitWidth),Qv.endDecimal(n)}visitDate(e,n){return z6.startDate(n),z6.addUnit(n,e.unit),z6.endDate(n)}visitTime(e,n){return oh.startTime(n),oh.addUnit(n,e.unit),oh.addBitWidth(n,e.bitWidth),oh.endTime(n)}visitTimestamp(e,n){const r=e.timezone&&n.createString(e.timezone)||void 0;return ah.startTimestamp(n),ah.addUnit(n,e.unit),r!==void 0&&ah.addTimezone(n,r),ah.endTimestamp(n)}visitInterval(e,n){return If.startInterval(n),If.addUnit(n,e.unit),If.endInterval(n)}visitDuration(e,n){return H6.startDuration(n),H6.addUnit(n,e.unit),H6.endDuration(n)}visitList(e,n){return JZ.startList(n),JZ.endList(n)}visitStruct(e,n){return Iy.startStruct_(n),Iy.endStruct_(n)}visitUnion(e,n){gc.startTypeIdsVector(n,e.typeIds.length);const r=gc.createTypeIdsVector(n,e.typeIds);return gc.startUnion(n),gc.addMode(n,e.mode),gc.addTypeIds(n,r),gc.endUnion(n)}visitDictionary(e,n){const r=this.visit(e.indices,n);return S0.startDictionaryEncoding(n),S0.addId(n,BigInt(e.id)),S0.addIsOrdered(n,e.isOrdered),r!==void 0&&S0.addIndexType(n,r),S0.endDictionaryEncoding(n)}visitFixedSizeBinary(e,n){return U6.startFixedSizeBinary(n),U6.addByteWidth(n,e.byteWidth),U6.endFixedSizeBinary(n)}visitFixedSizeList(e,n){return V6.startFixedSizeList(n),V6.addListSize(n,e.listSize),V6.endFixedSizeList(n)}
592visitMap(e,n){return W6.startMap(n),W6.addKeysSorted(n,e.keysSorted),W6.endMap(n)}}const eN=new fZe;function pZe(t,e=new Map){return new no(gZe(t,e),K6(t.metadata),e)}function x1e(t){return new Ru(t.count,w1e(t.columns),S1e(t.columns))}function mZe(t){return new cp(x1e(t.data),t.id,t.isDelta)}function gZe(t,e){return(t.fields||[]).filter(Boolean).map(n=>Rs.fromJSON(n,e))}function cee(t,e){return(t.children||[]).filter(Boolean).map(n=>Rs.fromJSON(n,e))}function w1e(t){return(t||[]).reduce((e,n)=>[...e,new Vg(n.count,yZe(n.VALIDITY)),...w1e(n.children)],[])}function S1e(t,e=[]){for(let n=-1,r=(t||[]).length;++n<r;){const i=t[n];i.VALIDITY&&e.push(new Bf(e.length,i.VALIDITY.length)),i.TYPE_ID&&e.push(new Bf(e.length,i.TYPE_ID.length)),i.OFFSET&&e.push(new Bf(e.length,i.OFFSET.length)),i.DATA&&e.push(new Bf(e.length,i.DATA.length)),e=S1e(i.children,e)}return e}function yZe(t){return(t||[]).reduce((e,n)=>e+ +(n===0),0)}function bZe(t,e){let n,r,i,s,o,a;return!e||!(s=t.dictionary)?(o=hee(t,cee(t,e)),i=new Rs(t.name,o,t.nullable,K6(t.metadata))):e.has(n=s.id)?(r=(r=s.indexType)?uee(r):new jk,a=new $x(e.get(n),r,n,s.isOrdered),i=new Rs(t.name,a,t.nullable,K6(t.metadata))):(r=(r=s.indexType)?uee(r):new jk,e.set(n,o=hee(t,cee(t,e))),a=new $x(o,r,n,s.isOrdered),i=new Rs(t.name,a,t.nullable,K6(t.metadata))),i||null}function K6(t=[]){return new Map(t.map(({key:e,value:n})=>[e,n]))}function uee(t){return new pb(t.isSigned,t.bitWidth)}function hee(t,e){const n=t.type.name;switch(n){case"NONE":return new zg;case"null":return new zg;case"binary":return new C8;case"largebinary":return new _8;case"utf8":return new T8;case"largeutf8":return new E8;case"bool":return new A8;case"list":return new R8((e||[])[0]);case"struct":return new Nl(e||[]);case"struct_":return new Nl(e||[])}switch(n){case"int":{const r=t.type;return new pb(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=t.type;return new k8(ml[r.precision])}case"decimal":{const r=t.type;return new P8(r.scale,r.precision,r.bitWidth)}case"date":{const r=t.type;return new O8(Ah[r.unit])}case"time":{const r=t.type;return new I8(sr[r.unit],r.bitWidth)}case"timestamp":{const r=t.type;return new D8(sr[r.unit],r.timezone)}case"interval":{const r=t.type;return new M8(lp[r.unit])}case"duration":{const r=t.type;return new N8(sr[r.unit])}case"union":{const r=t.type,[i,...s]=(r.mode+"").toLowerCase(),o=i.toUpperCase()+s.join("");return new L8(yl[o],r.typeIds||[],e||[])}case"fixedsizebinary":{const r=t.type;return new B8(r.byteWidth)}case"fixedsizelist":{const r=t.type;return new F8(r.listSize,(e||[])[0])}case"map":{const r=t.type;return new $8((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var vZe=Fme,xZe=Bx;let O0=class i2{static fromJSON(e,n){const r=new i2(0,wo.V5,n);return r._createHeader=wZe(e,n),r}static decode(e){e=new xZe(li(e));const n=qm.getRootAsMessage(e),r=n.bodyLength(),i=n.version(),s=n.headerType(),o=new i2(r,i,s);return o._createHeader=SZe(n,s),o}static encode(e){const n=new vZe;let r=-1;return e.isSchema()?r=no.encode(n,e.header()):e.isRecordBatch()?r=Ru.encode(n,e.header()):e.isDictionaryBatch()&&(r=cp.encode(n,e.header())),qm.startMessage(n),qm.addVersion(n,wo.V5),qm.addHeader(n,r),qm.addHeaderType(n,e.headerType),qm.addBodyLength(n,BigInt(e.bodyLength)),qm.finishMessageBuffer(n,qm.endMessage(n)),n.asUint8Array()}static from(e,n=0){if(e instanceof no)return new i2(0,wo.V5,Pi.Schema,e);if(e instanceof Ru)return new i2(n,wo.V5,Pi.RecordBatch,e);if(e instanceof cp)return new i2(n,wo.V5,Pi.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Pi.Schema}isRecordBatch(){return this.headerType===Pi.RecordBatch}isDictionaryBatch(){return this.headerType===Pi.DictionaryBatch}constructor(e,n,r,i){this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=us(e)}};class Ru{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,n,r){this._nodes=n,this._buffers=r,this._length=us(e)}}class cp{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,n,r=!1){this._data=e,this._isDelta=r,this._id=us(n)}}class Bf{constructor(e,n){this.offset=us(e),this.length=us(n)}}class Vg{constructor(e,n){this.length=us(e),this.nullCount=us(n)}}function wZe(t,e){return()=>{switch(e){case Pi.Schema:return no.fromJSON(t);case Pi.RecordBatch:return Ru.fromJSON(t);case Pi.DictionaryBatch:return cp.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${Pi[e]}, type: ${e} }`)}}function SZe(t,e){return()=>{switch(e){case Pi.Schema:return no.decode(t.header(new mf),new Map,t.version());case Pi.RecordBatch:return Ru.decode(t.header(new c0),t.version());case Pi.DictionaryBatch:return cp.decode(t.header(new Kv),t.version())}throw new Error(`Unrecognized Message type: { name: ${Pi[e]}, type: ${e} }`)}}Rs.encode=MZe;Rs.decode=IZe;Rs.fromJSON=bZe;no.encode=DZe;no.decode=kZe;no.fromJSON=pZe;Ru.encode=NZe;Ru.decode=CZe;Ru.fromJSON=x1e;cp.encode=RZe;cp.decode=_Ze;cp.fromJSON=mZe;Vg.encode=LZe;Vg.decode=EZe;Bf.encode=BZe;Bf.decode=TZe;
vendor: 26,616 bytes, line 592
592function kZe(t,e=new Map,n=wo.V5){const r=OZe(t,e);return new no(r,Y6(t),e,n)}function CZe(t,e=wo.V5){if(t.compression()!==null)throw new Error("Record batch compression not implemented");return new Ru(t.length(),AZe(t),PZe(t,e))}function _Ze(t,e=wo.V5){return new cp(Ru.decode(t.data(),e),t.id(),t.isDelta())}function TZe(t){return new Bf(t.offset(),t.length())}function EZe(t){return new Vg(t.length(),t.nullCount())}function AZe(t){const e=[];for(let n,r=-1,i=-1,s=t.nodesLength();++r<s;)(n=t.nodes(r))&&(e[++i]=Vg.decode(n));return e}function PZe(t,e){const n=[];for(let r,i=-1,s=-1,o=t.buffersLength();++i<o;)(r=t.buffers(i))&&(e<wo.V4&&(r.bb_pos+=8*(i+1)),n[++s]=Bf.decode(r));return n}function OZe(t,e){const n=[];for(let r,i=-1,s=-1,o=t.fieldsLength();++i<o;)(r=t.fields(i))&&(n[++s]=Rs.decode(r,e));return n}function dee(t,e){const n=[];for(let r,i=-1,s=-1,o=t.childrenLength();++i<o;)(r=t.children(i))&&(n[++s]=Rs.decode(r,e));return n}function IZe(t,e){let n,r,i,s,o,a;return!e||!(a=t.dictionary())?(i=pee(t,dee(t,e)),r=new Rs(t.name(),i,t.nullable(),Y6(t))):e.has(n=us(a.id()))?(s=(s=a.indexType())?fee(s):new jk,o=new $x(e.get(n),s,n,a.isOrdered()),r=new Rs(t.name(),o,t.nullable(),Y6(t))):(s=(s=a.indexType())?fee(s):new jk,e.set(n,i=pee(t,dee(t,e))),o=new $x(i,s,n,a.isOrdered()),r=new Rs(t.name(),o,t.nullable(),Y6(t))),r||null}function Y6(t){const e=new Map;if(t)for(let n,r,i=-1,s=Math.trunc(t.customMetadataLength());++i<s;)(n=t.customMetadata(i))&&(r=n.key())!=null&&e.set(r,n.value());return e}function fee(t){return new pb(t.isSigned(),t.bitWidth())}function pee(t,e){const n=t.typeType();switch(n){case gs.NONE:return new zg;case gs.Null:return new zg;case gs.Binary:return new C8;case gs.LargeBinary:return new _8;case gs.Utf8:return new T8;case gs.LargeUtf8:return new E8;case gs.Bool:return new A8;case gs.List:return new R8((e||[])[0]);case gs.Struct_:return new Nl(e||[])}switch(n){case gs.Int:{const r=t.type(new wu);return new pb(r.isSigned(),r.bitWidth())}case gs.FloatingPoint:{const r=t.type(new Of);return new k8(r.precision())}case gs.Decimal:{const r=t.type(new Qv);return new P8(r.scale(),r.precision(),r.bitWidth())}case gs.Date:{const r=t.type(new z6);return new O8(r.unit())}case gs.Time:{const r=t.type(new oh);return new I8(r.unit(),r.bitWidth())}case gs.Timestamp:{const r=t.type(new ah);return new D8(r.unit(),r.timezone())}case gs.Interval:{const r=t.type(new If);return new M8(r.unit())}case gs.Duration:{const r=t.type(new H6);return new N8(r.unit())}case gs.Union:{const r=t.type(new gc);return new L8(r.mode(),r.typeIdsArray()||[],e||[])}case gs.FixedSizeBinary:{const r=t.type(new U6);return new B8(r.byteWidth())}case gs.FixedSizeList:{const r=t.type(new V6);return new F8(r.listSize(),(e||[])[0])}case gs.Map:{const r=t.type(new W6);return new $8((e||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${gs[n]}" (${n})`)}function DZe(t,e){const n=e.fields.map(s=>Rs.encode(t,s));mf.startFieldsVector(t,n.length);const r=mf.createFieldsVector(t,n),i=e.metadata&&e.metadata.size>0?mf.createCustomMetadataVector(t,[...e.metadata].map(([s,o])=>{const a=t.createString(`${s}`),l=t.createString(`${o}`);return aa.startKeyValue(t),aa.addKey(t,a),aa.addValue(t,l),aa.endKeyValue(t)})):-1;return mf.startSchema(t),mf.addFields(t,r),mf.addEndianness(t,FZe?Fx.Little:Fx.Big),i!==-1&&mf.addCustomMetadata(t,i),mf.endSchema(t)}function MZe(t,e){let n=-1,r=-1,i=-1;const s=e.type;let o=e.typeId;An.isDictionary(s)?(o=s.dictionary.typeId,i=eN.visit(s,t),r=eN.visit(s.dictionary,t)):r=eN.visit(s,t);const a=(s.children||[]).map(u=>Rs.encode(t,u)),l=eh.createChildrenVector(t,a),c=e.metadata&&e.metadata.size>0?eh.createCustomMetadataVector(t,[...e.metadata].map(([u,h])=>{const d=t.createString(`${u}`),p=t.createString(`${h}`);return aa.startKeyValue(t),aa.addKey(t,d),aa.addValue(t,p),aa.endKeyValue(t)})):-1;return e.name&&(n=t.createString(e.name)),eh.startField(t),eh.addType(t,r),eh.addTypeType(t,o),eh.addChildren(t,l),eh.addNullable(t,!!e.nullable),n!==-1&&eh.addName(t,n),i!==-1&&eh.addDictionary(t,i),c!==-1&&eh.addCustomMetadata(t,c),eh.endField(t)}function NZe(t,e){const n=e.nodes||[],r=e.buffers||[];c0.startNodesVector(t,n.length);for(const o of n.slice().reverse())Vg.encode(t,o);const i=t.endVector();c0.startBuffersVector(t,r.length);for(const o of r.slice().reverse())Bf.encode(t,o);const s=t.endVector();return c0.startRecordBatch(t),c0.addLength(t,BigInt(e.length)),c0.addNodes(t,i),c0.addBuffers(t,s),c0.endRecordBatch(t)}function RZe(t,e){const n=Ru.encode(t,e.data);return Kv.startDictionaryBatch(t),Kv.addId(t,BigInt(e.id)),Kv.addIsDelta(t,e.isDelta),Kv.addData(t,n),Kv.endDictionaryBatch(t)}function LZe(t,e){return zme.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))}function BZe(t,e){return jme.createBuffer(t,BigInt(e.offset),BigInt(e.length))}const FZe=(()=>{const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})(),SV=t=>`Expected ${Pi[t]} Message in stream, but was null or length 0.`,kV=t=>`Header pointer of flatbuffer-encoded ${Pi[t]} Message is null or length 0.`,k1e=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,C1e=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class _1e{constructor(e){this.source=e instanceof W8?e:new W8(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?oo:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(SV(e));return n.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const n=li(this.source.read(e));if(n.byteLength<e)throw new Error(C1e(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(e=!1){const n=Pi.Schema,r=this.readMessage(n),i=r?.header();if(e&&!i)throw new Error(kV(n));return i}readMetadataLength(){const e=this.source.read(WO),n=e&&new Bx(e),r=n?.readInt32(0)||0;return{done:r===0,value:r}}readMetadata(e){const n=this.source.read(e);if(!n)return oo;if(n.byteLength<e)throw new Error(k1e(e,n.byteLength));return{done:!1,value:O0.decode(n)}}}class $Ze{constructor(e,n){this.source=e instanceof jx?e:Dme(e)?new q8(e,n):new jx(e)}[Symbol.asyncIterator](){return this}next(){return Vn(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?oo:e})}throw(e){return Vn(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return Vn(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return Vn(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(SV(e));return n.value})}readMessageBody(e){return Vn(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const n=li(yield this.source.read(e));if(n.byteLength<e)throw new Error(C1e(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(){return Vn(this,arguments,void 0,function*(e=!1){const n=Pi.Schema,r=yield this.readMessage(n),i=r?.header();if(e&&!i)throw new Error(kV(n));return i})}readMetadataLength(){return Vn(this,void 0,void 0,function*(){const e=yield this.source.read(WO),n=e&&new Bx(e),r=n?.readInt32(0)||0;return{done:r===0,value:r}})}readMetadata(e){return Vn(this,void 0,void 0,function*(){const n=yield this.source.read(e);if(!n)return oo;if(n.byteLength<e)throw new Error(k1e(e,n.byteLength));return{done:!1,value:O0.decode(n)}})}}class jZe extends _1e{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof oee?e:new oee(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:O0.fromJSON(e.schema,Pi.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const n=e.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:O0.fromJSON(n,Pi.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const n=e.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:O0.fromJSON(n,Pi.RecordBatch)}}return this._body=[],oo}readMessageBody(e){return n(this._body);function n(r){return(r||[]).reduce((i,s)=>[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE_ID&&[s.TYPE_ID]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...n(s.children)],[])}}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(SV(e));return n.value}readSchema(){const e=Pi.Schema,n=this.readMessage(e),r=n?.header();if(!n||!r)throw new Error(kV(e));return r}}const WO=4,eF="ARROW1",Hk=new Uint8Array(eF.length);for(let t=0;t<eF.length;t+=1)Hk[t]=eF.codePointAt(t);function CV(t,e=0){for(let n=-1,r=Hk.length;++n<r;)if(Hk[n]!==t[e+n])return!1;return!0}const d_=Hk.length,T1e=d_+WO,zZe=d_*2+WO;class wh extends gV{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const n=this._impl.open(e);return fb(n)?n.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return sh.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return sh.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof wh?e:VB(e)?WZe(e):Dme(e)?KZe(e):fb(e)?Vn(this,void 0,void 0,function*(){return yield wh.from(yield e)}):Mme(e)||sV(e)||Nme(e)||Dw(e)?GZe(new jx(e)):qZe(new W8(e))}static readAll(e){return e instanceof wh?e.isSync()?mee(e):gee(e):VB(e)||ArrayBuffer.isView(e)||l_(e)||Ime(e)?mee(e):gee(e)}}class G8 extends wh{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Rf(this,arguments,function*(){yield qr(yield*k6(Yy(this[Symbol.iterator]())))})}}class K8 extends wh{constructor(e){super(e),this._impl=e}readAll(){return Vn(this,void 0,void 0,function*(){var e,n,r,i;const s=new Array;try{for(var o=!0,a=Yy(this),l;l=yield a.next(),e=l.done,!e;o=!0){i=l.value,o=!1;const c=i;s.push(c)}}catch(c){n={error:c}}finally{try{!o&&!e&&(r=a.return)&&(yield r.call(a))}finally{if(n)throw n.error}}return s})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class E1e extends G8{constructor(e){super(e),this._impl=e}}class HZe extends K8{constructor(e){super(e),this._impl=e}}class A1e{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,n){const r=this._loadVectors(e,n,this.schema.fields),i=Jr({type:new Nl(this.schema.fields),length:e.length,children:r});return new yc(this.schema,i)}_loadDictionaryBatch(e,n){const{id:r,isDelta:i}=e,{dictionaries:s,schema:o}=this,a=s.get(r),l=o.dictionaries.get(r),c=this._loadVectors(e.data,n,[l]);return(a&&i?a.concat(new Vi(c)):new Vi(c)).memoize()}_loadVectors(e,n,r){return new g1e(n,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}}class Y8 extends A1e{constructor(e,n){super(n),this._reader=VB(e)?new jZe(this._handle=e):new _1e(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=O1e(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):oo}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):oo}next(){if(this.closed)return oo;let e;const{_reader:n}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),i=n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),i=n.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new wV(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Q8 extends A1e{constructor(e,n){super(n),this._reader=new $Ze(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return Vn(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return Vn(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=O1e(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return Vn(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):oo})}return(e){return Vn(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):oo})}next(){return Vn(this,void 0,void 0,function*(){if(this.closed)return oo;let e;const{_reader:n}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),i=yield n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),i=yield n.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new wV(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return Vn(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class P1e extends Y8{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,n){super(e instanceof aee?e:new aee(e),n)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(Pi.RecordBatch);if(i?.isRecordBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null}_readDictionaryBatch(e){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(Pi.DictionaryBatch);if(i?.isDictionaryBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength),a=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,a)}}}_readFooter(){const{_handle:e}=this,n=e.size-T1e,r=e.readInt32(n),i=e.readAt(n-r,r);return zk.decode(i)}_readNextMessageAndValidate(e){var n;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(e)}return null}}class UZe extends Q8{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...n){const r=typeof n[0]!="number"?n.shift():void 0,i=n[0]instanceof Map?n.shift():void 0;super(e instanceof q8?e:new q8(e,r),i)}isFile(){return!0}isAsync(){return!0}open(e){const n=Object.create(null,{open:{get:()=>super.open}});return Vn(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield n.open.call(this,e)})}readRecordBatch(e){return Vn(this,void 0,void 0,function*(){var n;if(this.closed)return null;this._footer||(yield this.open());const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(Pi.RecordBatch);if(i?.isRecordBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null})}_readDictionaryBatch(e){return Vn(this,void 0,void 0,function*(){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(Pi.DictionaryBatch);if(i?.isDictionaryBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength),a=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,a)}}})}_readFooter(){return Vn(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const n=e.size-T1e,r=yield e.readInt32(n),i=yield e.readAt(n-r,r);return zk.decode(i)})}_readNextMessageAndValidate(e){return Vn(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=this._footer.getRecordBatch(this._recordBatchIndex);if(n&&(yield this._handle.seek(n.offset)))return yield this._reader.readMessage(e)}return null})}}class VZe extends Y8{constructor(e,n){super(e,n)}_loadVectors(e,n,r){return new rZe(n,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}}function O1e(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*mee(t){const e=wh.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function gee(t){return Rf(this,arguments,function*(){const n=yield qr(wh.from(t));try{if(!(yield qr(n.open({autoDestroy:!1}))).closed)do yield yield qr(n);while(!(yield qr(n.reset().open())).closed)}finally{yield qr(n.cancel())}})}function WZe(t){return new G8(new VZe(t))}function qZe(t){const e=t.peek(d_+7&-8);return e&&e.byteLength>=4?CV(e)?new E1e(new P1e(t.read())):new G8(new Y8(t)):new G8(new Y8(function*(){}()))}function GZe(t){return Vn(this,void 0,void 0,function*(){const e=yield t.peek(d_+7&-8);return e&&e.byteLength>=4?CV(e)?new E1e(new P1e(yield t.read())):new K8(new Q8(t)):new K8(new Q8(function(){return Rf(this,arguments,function*(){})}()))})}function KZe(t){return Vn(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new q8(t,e);return e>=zZe&&CV(yield n.readAt(0,d_+7&-8))?new HZe(new UZe(n)):new K8(new Q8(n))})}class lo extends Qr{static assemble(...e){const n=i=>i.flatMap(s=>Array.isArray(s)?n(s):s instanceof yc?s.data.children:s.data),r=new lo;return r.visitMany(n(e)),r}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof Vi)return this.visitMany(e.data),this;const{type:n}=e;if(!An.isDictionary(n)){const{length:r}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(An.isUnion(n))this.nodes.push(new Vg(r,0));else{const{nullCount:i}=e;An.isNull(n)||Ed.call(this,i<=0?new Uint8Array(0):j8(e.offset,r,e.nullBitmap)),this.nodes.push(new Vg(r,i))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Ed(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Bf(this._byteLength,e)),this._byteLength+=e,this}function YZe(t){var e;const{type:n,length:r,typeIds:i,valueOffsets:s}=t;if(Ed.call(this,i),n.mode===yl.Sparse)return tF.call(this,t);if(n.mode===yl.Dense){if(t.offset<=0)return Ed.call(this,s),tF.call(this,t);{const o=new Int32Array(r),a=Object.create(null),l=Object.create(null);for(let c,u,h=-1;++h<r;)(c=i[h])!==void 0&&((u=a[c])===void 0&&(u=a[c]=s[h]),o[h]=s[h]-u,l[c]=((e=l[c])!==null&&e!==void 0?e:0)+1);Ed.call(this,o),this.visitMany(t.children.map((c,u)=>{const h=n.typeIds[u],d=a[h],p=l[h];return c.slice(d,Math.min(r,p))}))}}return this}function QZe(t){let e;return t.nullCount>=t.length?Ed.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?Ed.call(this,j8(t.offset,t.length,e)):Ed.call(this,z8(t.values))}function dm(t){return Ed.call(this,t.values.subarray(0,t.length*t.stride))}function qO(t){const{length:e,values:n,valueOffsets:r}=t,i=us(r[0]),s=us(r[e]),o=Math.min(s-i,n.byteLength-i);return Ed.call(this,Lme(-i,e+1,r)),Ed.call(this,n.subarray(i,i+o)),this}function _V(t){const{length:e,valueOffsets:n}=t;if(n){const{[0]:r,[e]:i}=n;return Ed.call(this,Lme(-r,e+1,n)),this.visit(t.children[0].slice(r,i-r))}return this.visit(t.children[0])}function tF(t){return this.visitMany(t.type.children.map((e,n)=>t.children[n]).filter(Boolean))[0]}lo.prototype.visitBool=QZe;lo.prototype.visitInt=dm;lo.prototype.visitFloat=dm;lo.prototype.visitUtf8=qO;lo.prototype.visitLargeUtf8=qO;lo.prototype.visitBinary=qO;lo.prototype.visitLargeBinary=qO;lo.prototype.visitFixedSizeBinary=dm;lo.prototype.visitDate=dm;lo.prototype.visitTimestamp=dm;lo.prototype.visitTime=dm;lo.prototype.visitDecimal=dm;lo.prototype.visitList=_V;lo.prototype.visitStruct=tF;lo.prototype.visitUnion=YZe;lo.prototype.visitInterval=dm;lo.prototype.visitDuration=dm;lo.prototype.visitFixedSizeList=_V;lo.prototype.visitMap=_V;class I1e extends gV{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}constructor(e){super(),this._position=0,this._started=!1,this._sink=new G6,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Lc(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return fb(e)?e.then(n=>this.writeAll(n)):Dw(e)?PV(this,e):AV(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,n=null){return e===this._sink||e instanceof G6?this._sink=e:(this._sink=new G6,e&&EXe(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&AXe(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!n||!ZB(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(e){let n=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof Ml&&!(n=e.schema))return this.finish()&&void 0;if(e instanceof yc&&!(n=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!ZB(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}e instanceof yc?e instanceof wV||this._writeRecordBatch(e):e instanceof Ml?this.writeAll(e.batches):l_(e)&&this.writeAll(e)}_writeMessage(e,n=8){const r=n-1,i=O0.encode(e),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,a=s+o+r&~r,l=a-s-o;return e.headerType===Pi.RecordBatch?this._recordBatchBlocks.push(new Hg(a,e.bodyLength,this._position)):e.headerType===Pi.DictionaryBatch&&this._dictionaryBlocks.push(new Hg(a,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-o)),s>0&&this._write(i),this._writePadding(l)}_write(e){if(this._started){const n=li(e);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(e){return this._writeMessage(O0.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Hk)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:n,nodes:r,bufferRegions:i,buffers:s}=lo.assemble(e),o=new Ru(e.numRows,r,i),a=O0.from(o,n);
592return this._writeDictionaries(e)._writeMessage(a)._writeBodyBuffers(s)}_writeDictionaryBatch(e,n,r=!1){const{byteLength:i,nodes:s,bufferRegions:o,buffers:a}=lo.assemble(new Vi([e])),l=new Ru(e.length,s,o),c=new cp(l,n,r),u=O0.from(c,i);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(e){let n,r,i;for(let s=-1,o=e.length;++s<o;)(n=e[s])&&(r=n.byteLength)>0&&(this._write(n),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(e){var n,r;for(const[i,s]of e.dictionaries){const o=(n=s?.data)!==null&&n!==void 0?n:[],a=this._seenDictionaries.get(i),l=(r=this._dictionaryDeltaOffsets.get(i))!==null&&r!==void 0?r:0;if(!a||a.data[0]!==o[0])for(const[c,u]of o.entries())this._writeDictionaryBatch(u,i,c>0);else if(l<o.length)for(const c of o.slice(l))this._writeDictionaryBatch(c,i,!0);this._seenDictionaries.set(i,s),this._dictionaryDeltaOffsets.set(i,o.length)}return this}}class TV extends I1e{static writeAll(e,n){const r=new TV(n);return fb(e)?e.then(i=>r.writeAll(i)):Dw(e)?PV(r,e):AV(r,e)}}class EV extends I1e{static writeAll(e){const n=new EV;return fb(e)?e.then(r=>n.writeAll(r)):Dw(e)?PV(n,e):AV(n,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,n,r=!1){if(!r&&this._seenDictionaries.has(n))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,n,r)}_writeFooter(e){const n=zk.encode(new zk(e,wo.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function AV(t,e){let n=e;e instanceof Ml&&(n=e.batches,t.reset(void 0,e.schema));for(const r of n)t.write(r);return t.finish()}function PV(t,e){return Vn(this,void 0,void 0,function*(){var n,r,i,s,o,a,l;try{for(n=!0,r=Yy(e);i=yield r.next(),s=i.done,!s;n=!0){l=i.value,n=!1;const c=l;t.write(c)}}catch(c){o={error:c}}finally{try{!n&&!s&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return t.finish()})}function XZe(t,e="stream"){return(e==="stream"?TV:EV).writeAll(t).toUint8Array(!0)}var JZe=Object.create,D1e=Object.defineProperty,ZZe=Object.getOwnPropertyDescriptor,eet=Object.getOwnPropertyNames,tet=Object.getPrototypeOf,net=Object.prototype.hasOwnProperty,ret=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),iet=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of eet(e))!net.call(t,i)&&i!==n&&D1e(t,i,{get:()=>e[i],enumerable:!(r=ZZe(e,i))||r.enumerable});return t},set=(t,e,n)=>(n=t!=null?JZe(tet(t)):{},iet(!t||!t.__esModule?D1e(n,"default",{value:t,enumerable:!0}):n,t)),oet=ret((t,e)=>{e.exports=Worker}),aet=(t=>(t[t.UNDEFINED=0]="UNDEFINED",t[t.AUTOMATIC=1]="AUTOMATIC",t[t.READ_ONLY=2]="READ_ONLY",t[t.READ_WRITE=3]="READ_WRITE",t))(aet||{}),cet=(t=>(t[t.IDENTIFIER=0]="IDENTIFIER",t[t.NUMERIC_CONSTANT=1]="NUMERIC_CONSTANT",t[t.STRING_CONSTANT=2]="STRING_CONSTANT",t[t.OPERATOR=3]="OPERATOR",t[t.KEYWORD=4]="KEYWORD",t[t.COMMENT=5]="COMMENT",t))(cet||{}),uet=(t=>(t[t.NONE=0]="NONE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARNING=3]="WARNING",t[t.ERROR=4]="ERROR",t))(uet||{}),het=(t=>(t[t.NONE=0]="NONE",t[t.CONNECT=1]="CONNECT",t[t.DISCONNECT=2]="DISCONNECT",t[t.OPEN=3]="OPEN",t[t.QUERY=4]="QUERY",t[t.INSTANTIATE=5]="INSTANTIATE",t))(het||{}),det=(t=>(t[t.NONE=0]="NONE",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR",t[t.START=3]="START",t[t.RUN=4]="RUN",t[t.CAPTURE=5]="CAPTURE",t))(det||{}),fet=(t=>(t[t.NONE=0]="NONE",t[t.WEB_WORKER=1]="WEB_WORKER",t[t.NODE_WORKER=2]="NODE_WORKER",t[t.BINDINGS=3]="BINDINGS",t[t.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",t))(fet||{}),pet=class{log(e){}},met=class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}},get=(t=>(t[t.SUCCESS=0]="SUCCESS",t))(get||{}),yet=class{constructor(e,n){this._bindings=e,this._conn=n}get bindings(){return this._bindings}async close(){return this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}async query(e){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let n=await this._bindings.runQuery(this._conn,e),r=wh.from(n);return console.assert(r.isSync(),"Reader is not sync"),console.assert(r.isFile(),"Reader is not file"),new Ml(r)}async send(e){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let n=await this._bindings.startPendingQuery(this._conn,e);for(;n==null;)n=await this._bindings.pollPendingQuery(this._conn);let r=new M1e(this._bindings,this._conn,n),i=await wh.from(r);return console.assert(i.isAsync()),console.assert(i.isStream()),i}async cancelSent(){return await this._bindings.cancelPendingQuery(this._conn)}async getTableNames(e){return await this._bindings.getTableNames(this._conn,e)}async prepare(e){let n=await this._bindings.createPrepared(this._conn,e);return new bet(this._bindings,this._conn,n)}async insertArrowTable(e,n){let r=XZe(e,"stream");await this.insertArrowFromIPCStream(r,n)}async insertArrowFromIPCStream(e,n){await this._bindings.insertArrowFromIPCStream(this._conn,e,n)}async insertCSVFromPath(e,n){await this._bindings.insertCSVFromPath(this._conn,e,n)}async insertJSONFromPath(e,n){await this._bindings.insertJSONFromPath(this._conn,e,n)}},M1e=class{constructor(e,n,r){this.db=e,this.conn=n,this.header=r,this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return this._inFlight!=null?(e=await this._inFlight,this._inFlight=null):e=await this.db.fetchQueryResults(this.conn),this._depleted=e.length==0,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}},bet=class{constructor(e,n,r){this.bindings=e,this.connectionId=n,this.statementId=r}async close(){await this.bindings.closePrepared(this.connectionId,this.statementId)}async query(...e){let n=await this.bindings.runPrepared(this.connectionId,this.statementId,e),r=wh.from(n);return console.assert(r.isSync()),console.assert(r.isFile()),new Ml(r)}async send(...e){let n=await this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new M1e(this.bindings,this.connectionId,n),i=await wh.from(r);return console.assert(i.isAsync()),console.assert(i.isStream()),i}},vet=(t=>(t.CANCEL_PENDING_QUERY="CANCEL_PENDING_QUERY",t.CLOSE_PREPARED="
592CLOSE_PREPARED",t.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",t.CONNECT="CONNECT",t.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",t.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",t.CREATE_PREPARED="CREATE_PREPARED",t.DISCONNECT="DISCONNECT",t.DROP_FILE="DROP_FILE",t.DROP_FILES="DROP_FILES",t.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",t.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",t.FLUSH_FILES="FLUSH_FILES",t.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",t.GET_TABLE_NAMES="GET_TABLE_NAMES",t.GET_VERSION="GET_VERSION",t.GLOB_FILE_INFOS="GLOB_FILE_INFOS",t.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",t.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",t.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",t.INSTANTIATE="INSTANTIATE",t.OPEN="OPEN",t.PING="PING",t.POLL_PENDING_QUERY="POLL_PENDING_QUERY",t.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",t.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",t.REGISTER_FILE_URL="REGISTER_FILE_URL",t.RESET="RESET",t.RUN_PREPARED="RUN_PREPARED",t.RUN_QUERY="RUN_QUERY",t.SEND_PREPARED="SEND_PREPARED",t.START_PENDING_QUERY="START_PENDING_QUERY",t.TOKENIZE="TOKENIZE",t))(vet||{}),xet=(t=>(t.CONNECTION_INFO="CONNECTION_INFO",t.ERROR="ERROR",t.FEATURE_FLAGS="FEATURE_FLAGS",t.FILE_BUFFER="FILE_BUFFER",t.FILE_INFOS="FILE_INFOS",t.FILE_SIZE="FILE_SIZE",t.FILE_STATISTICS="FILE_STATISTICS",t.INSTANTIATE_PROGRESS="INSTANTIATE_PROGRESS",t.LOG="LOG",t.OK="OK",t.PREPARED_STATEMENT_ID="PREPARED_STATEMENT_ID",t.QUERY_PLAN="QUERY_PLAN",t.QUERY_RESULT="QUERY_RESULT",t.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",t.QUERY_RESULT_HEADER="QUERY_RESULT_HEADER",t.QUERY_RESULT_HEADER_OR_NULL="QUERY_RESULT_HEADER_OR_NULL",t.REGISTERED_FILE="REGISTERED_FILE",t.SCRIPT_TOKENS="SCRIPT_TOKENS",t.SUCCESS="SUCCESS",t.TABLE_NAMES="TABLE_NAMES",t.VERSION_STRING="VERSION_STRING",t))(xet||{}),vi=class{constructor(e,n){this.promiseResolver=()=>{}
592,this.promiseRejecter=()=>{},this.type=e,this.data=n,this.promise=new Promise((r,i)=>{this.promiseResolver=r,this.promiseRejecter=i})}};function Q6(t){switch(t.typeId){case we.Binary:return{sqlType:"binary"};case we.Bool:return{sqlType:"bool"};case we.Date:return{sqlType:"date"};case we.DateDay:return{sqlType:"date32[d]"};case we.DateMillisecond:return{sqlType:"date64[ms]"};case we.Decimal:{let e=t;return{sqlType:"decimal",precision:e.precision,scale:e.scale}}case we.Float:return{sqlType:"float"};case we.Float16:return{sqlType:"float16"};case we.Float32:return{sqlType:"float32"};case we.Float64:return{sqlType:"float64"};case we.Int:return{sqlType:"int32"};case we.Int16:return{sqlType:"int16"};case we.Int32:return{sqlType:"int32"};case we.Int64:return{sqlType:"int64"};case we.Uint16:return{sqlType:"uint16"};case we.Uint32:return{sqlType:"uint32"};case we.Uint64:return{sqlType:"uint64"};case we.Uint8:return{sqlType:"uint8"};case we.IntervalDayTime:return{sqlType:"interval[dt]"};case we.IntervalYearMonth:return{sqlType:"interval[m]"};case we.List:return{sqlType:"list",valueType:Q6(t.valueType)};case we.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:t.byteWidth};case we.Null:return{sqlType:"null"};case we.Utf8:return{sqlType:"utf8"};case we.Struct:return{sqlType:"struct",fields:t.children.map(e=>nF(e.name,e.type))};case we.Map:{let e=t;return{sqlType:"map",keyType:Q6(e.keyType),valueType:Q6(e.valueType)}}case we.Time:return{sqlType:"time[s]"};case we.TimeMicrosecond:return{sqlType:"time[us]"};case we.TimeMillisecond:return{sqlType:"time[ms]"};case we.TimeNanosecond:return{sqlType:"time[ns]"};case we.TimeSecond:return{sqlType:"time[s]"};case we.Timestamp:return{sqlType:"timestamp",timezone:t.timezone||void 0};case we.TimestampSecond:return{sqlType:"timestamp[s]",timezone:t.timezone||void 0};case we.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:t.timezone||void 0};case we.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:t.timezone||void 0};case we.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:t.timezone||void 0}}throw new Error("unsupported arrow type: ".concat(t.toString()))}function nF(t,e){let n=Q6(e);return n.name=t,n}var wet=new TextEncoder,ket=class{constructor(e,n=null){this._onInstantiationProgress=[],this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{},this._nextMessageId=0,this._pendingRequests=new Map,this._logger=e,this._onMessageHandler=this.onMessage.bind(this),this._onErrorHandler=this.onError.bind(this),this._onCloseHandler=this.onClose.bind(this),n!=null&&this.attach(n)}get logger(){return this._logger}attach(e){this._worker=e,this._worker.addEventListener("message",this._onMessageHandler),this._worker.addEventListener("error",this._onErrorHandler),this._worker.addEventListener("close",this._onCloseHandler),this._workerShutdownPromise=new Promise((n,r)=>{this._workerShutdownResolver=n})}detach(){this._worker&&(this._worker.removeEventListener("message",this._onMessageHandler),this._worker.removeEventListener("error",this._onErrorHandler),this._worker.removeEventListener("close",this._onCloseHandler),this._worker=null,this._workerShutdownResolver(null),this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async terminate(){this._worker&&(this._worker.terminate(),this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async postTask(e,n=[]){if(!this._worker){console.error("cannot send a message since the worker is not set!");return}let r=this._nextMessageId++;return this._pendingRequests.set(r,e),this._worker.postMessage({messageId:r,type:e.type,data:e.data},n),await e.promise}onMessage(e){var n;let r=e.data;switch(r.type){case"LOG":{this._logger.log(r.data);return}case"INSTANTIATE_PROGRESS":{for(let s of this._onInstantiationProgress)s(r.data);return}}let i=this._pendingRequests.get(r.requestId);if(!i){console.warn("unassociated response: [".concat(r.requestId,", ").concat(r.type.toString(),"]"));return}if(this._pendingRequests.delete(r.requestId),r.type=="ERROR"){let s=new Error(r.data.message);s.name=r.data.name,(n=Object.getOwnPropertyDescriptor(s,"stack"))!=null&&n.writable&&(s.stack=r.data.stack),i.promiseRe
vendor: 7,752 bytes, line 592
592jecter(s);return}switch(i.type){case"CLOSE_PREPARED":case"COLLECT_FILE_STATISTICS":case"COPY_FILE_TO_PATH":case"DISCONNECT":case"DROP_FILE":case"DROP_FILES":case"FLUSH_FILES":case"INSERT_ARROW_FROM_IPC_STREAM":case"IMPORT_CSV_FROM_PATH":case"IMPORT_JSON_FROM_PATH":case"OPEN":case"PING":case"REGISTER_FILE_BUFFER":case"REGISTER_FILE_HANDLE":case"REGISTER_FILE_URL":case"RESET":if(r.type=="OK"){i.promiseResolver(r.data);return}break;case"INSTANTIATE":if(this._onInstantiationProgress=[],r.type=="OK"){i.promiseResolver(r.data);return}break;case"GLOB_FILE_INFOS":if(r.type=="FILE_INFOS"){i.promiseResolver(r.data);return}break;case"GET_VERSION":if(r.type=="VERSION_STRING"){i.promiseResolver(r.data);return}break;case"GET_FEATURE_FLAGS":if(r.type=="FEATURE_FLAGS"){i.promiseResolver(r.data);return}break;case"GET_TABLE_NAMES":if(r.type=="TABLE_NAMES"){i.promiseResolver(r.data);return}break;case"TOKENIZE":if(r.type=="SCRIPT_TOKENS"){i.promiseResolver(r.data);return}break;case"COPY_FILE_TO_BUFFER":if(r.type=="FILE_BUFFER"){i.promiseResolver(r.data);return}break;case"EXPORT_FILE_STATISTICS":if(r.type=="FILE_STATISTICS"){i.promiseResolver(r.data);return}break;case"CONNECT":if(r.type=="CONNECTION_INFO"){i.promiseResolver(r.data);return}break;case"RUN_PREPARED":case"RUN_QUERY":if(r.type=="QUERY_RESULT"){i.promiseResolver(r.data);return}break;case"SEND_PREPARED":if(r.type=="QUERY_RESULT_HEADER"){i.promiseResolver(r.data);return}break;case"START_PENDING_QUERY":if(r.type=="QUERY_RESULT_HEADER_OR_NULL"){i.promiseResolver(r.data);return}break;case"POLL_PENDING_QUERY":if(r.type=="QUERY_RESULT_HEADER_OR_NULL"){i.promiseResolver(r.data);return}break;case"CANCEL_PENDING_QUERY":if(this._onInstantiationProgress=[],r.type=="SUCCESS"){i.promiseResolver(r.data);return}break;case"FETCH_QUERY_RESULTS":if(r.type=="QUERY_RESULT_CHUNK"){i.promiseResolver(r.data);return}break;case"CREATE_PREPARED":if(r.type=="PREPARED_STATEMENT_ID"){i.promiseResolver(r.data);return}break}i.promiseRejecter(new Error("unexpected response type: ".concat(r.type.toString())))}onError(e){console.error(e),console.error("error in duckdb worker: ".concat(e.message)),this._pendingRequests.clear()}onClose(){if(this._workerShutdownResolver(null),this._pendingRequests.size!=0){console.warn("worker terminated with ".concat(this._pendingRequests.size," pending requests"));return}this._pendingRequests.clear()}async reset(){let e=new vi("RESET",null);return await this.postTask(e)}async ping(){let e=new vi("PING",null);await this.postTask(e)}async dropFile(e){let n=new vi("DROP_FILE",e);return await this.postTask(n)}async dropFiles(){let e=new vi("DROP_FILES",null);return await this.postTask(e)}async flushFiles(){let e=new vi("FLUSH_FILES",null);return await this.postTask(e)}async instantiate(e,n=null,r=i=>{}){this._onInstantiationProgress.push(r);let i=new vi("INSTANTIATE",[e,n]);return await this.postTask(i)}async getVersion(){let e=new vi("GET_VERSION",null);return await this.postTask(e)}async getFeatureFlags(){let e=new vi("GET_FEATURE_FLAGS",null);return await this.postTask(e)}async open(e){let n=new vi("OPEN",e);await this.postTask(n)}async tokenize(e){let n=new vi("TOKENIZE",e);return await this.postTask(n)}async connectInternal(){let e=new vi("CONNECT",null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new yet(this,e)}async disconnect(e){let n=new vi("DISCONNECT",e);await this.postTask(n)}async runQuery(e,n){let r=new vi("RUN_QUERY",[e,n]);return await this.postTask(r)}async startPendingQuery(e,n){let r=new vi("START_PENDING_QUERY",[e,n]);return await this.postTask(r)}async pollPendingQuery(e){let n=new vi("POLL_PENDING_QUERY",e);return await this.postTask(n)}async cancelPendingQuery(e){let n=new vi("CANCEL_PENDING_QUERY",e);return await this.postTask(n)}async fetchQueryResults(e){let n=new vi("FETCH_QUERY_RESULTS",e);return await this.postTask(n)}async getTableNames(e,n){let r=new vi("GET_TABLE_NAMES",[e,n]);return await this.postTask(r)}async createPrepared(e,n){let r=new vi("CREATE_PREPARED",[e,n]);return await this.postTask(r)}async closePrepared(e,n){let r=new vi("CLOSE_PREPARED",[e,n]);await this.postTask(r)}async runPrepared(e,n,r){let i=new vi("RUN_PREPARED",[e,n,r]);return await this.postTask(i)}async sendPrepared(e,n,r){let i=new vi("SEND_PREPARED",[e,n,r]);return await this.postTask(i)}async globFiles(e){let n=new vi("GLOB_FILE_INFOS",e);return await this.postTask(n)}async registerFileText(e,n){let r=wet.encode(n);await this.registerFileBuffer(e,r)}async registerFileURL(e,n,r,i){n===void 0&&(n=e);let s=new vi("REGISTER_FILE_URL",[e,n,r,i]);await this.postTask(s)}async registerEmptyFileBuffer(e){}async registerFileBuffer(e,n){let r=new vi("REGISTER_FILE_BUFFER",[e,n]);await this.postTask(r,[n.buffer])}async registerFileHandle(e,n,r,i){let s=new vi("REGISTER_FILE_HANDLE",[e,n,r,i]);await this.postTask(s,[])}async collectFileStatistics(e,n){let r=new vi("COLLECT_FILE_STATISTICS",[e,n]);await this.postTask(r,[])}async exportFileStatistics(e){let n=new vi("EXPORT_FILE_STATISTICS",e);return await this.postTask(n,[])}async copyFileToBuffer(e){let n=new vi("COPY_FILE_TO_BUFFER",e);return await this.postTask(n)}async copyFileToPath(e,n){let r=new vi("COPY_FILE_TO_PATH",[e,n]);await this.postTask(r)}async insertArrowFromIPCStream(e,n,r){if(n.length==0)return;let i=new vi("INSERT_ARROW_FROM_IPC_STREAM",[e,n,r]);await this.postTask(i,[n.buffer])}async insertCSVFromPath(e,n,r){if(r.columns!==void 0){let s=[];for(let o in r.columns){let a=r.columns[o];s.push(nF(o,a))}r.columnsFlat=s,delete r.columns}let i=new vi("IMPORT_CSV_FROM_PATH",[e,n,r]);await this.postTask(i)}async insertJSONFromPath(e,n,r){if(r.columns!==void 0){let s=[];for(let o in r.columns){let a=r.columns[o];s.push(nF(o,a))}r.columnsFlat=s,delete r.columns}let i=new vi("IMPORT_JSON_FROM_PATH",[e,n,r]);await this.postTask(i)}},Cet=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),_et=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),Tet=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),Eet=()=>(async t=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(t)}catch{return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])),OV={name:"@duckdb/duckdb-wasm",version:"1.29.0"},Aet=OV.name,Pet=OV.version,IV=OV.version.split(".");IV[0];IV[1];IV[2];var Oet=()=>typeof navigator>"u";function Iet(){let t="https://cdn.jsdelivr.net/npm/".concat(Aet,"@").concat(Pet,"/dist/");return{mvp:{mainModule:"".concat(t,"duckdb-mvp.wasm"),mainWorker:"".concat(t,"duckdb-browser-mvp.worker.js")},eh:{mainModule:"".concat(t,"duckdb-eh.wasm"),mainWorker:"".concat(t,"duckdb-browser-eh.worker.js")}}}var tN=null,nN=null,rN=null,iN=null,sN=null;async function Det(){return tN==null&&(tN=typeof BigInt64Array<"u"),nN==null&&(nN=await _et()),rN==null&&(rN=await Eet()),iN==null&&(iN=await Tet()),sN==null&&(sN=await Cet()),{bigInt64Array:tN,crossOriginIsolated:Oet()||globalThis.crossOriginIsolated||!1,wasmExceptions:nN,wasmSIMD:iN,wasmThreads:rN,wasmBulkMemory:sN}}async function Met(t){let e=await Det();if(e.wasmExceptions){if(e.wasmSIMD&&e.wasmThreads&&e.crossOriginIsolated&&t.coi)return{mainModule:t.coi.mainModule,mainWorker:t.coi.mainWorker,pthreadWorker:t.coi.pthreadWorker};if(t.eh)return{mainModule:t.eh.mainModule,mainWorker:t.eh.mainWorker,pthreadWorker:null}}return{mainModule:t.mvp.mainModule,mainWorker:t.mvp.mainWorker,pthreadWorker:null}}
592set(oet());function Net(){let t=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),t.decode(e))}Net();var Ret=(t=>(t[t.BUFFER=0]="BUFFER",t[t.NODE_FS=1]="NODE_FS",t[t.BROWSER_FILEREADER=2]="BROWSER_FILEREADER",t[t.BROWSER_FSACCESS=3]="BROWSER_FSACCESS",t[t.HTTP=4]="HTTP",t[t.S3=5]="S3",t))(Ret||{});async function Let(t=!0){const e=Iet(),n=await Met(e),r=URL.createObjectURL(new Blob([`importScripts("${n.mainWorker}");`],{type:"text/javascript"})),i=new Worker(r),s=t?new met:new pet,o=new ket(s,i);return await o.instantiate(n.mainModule,n.pthreadWorker),URL.revokeObjectURL(r),o}let X6;const Bet=()=>!!X6,Fet=async t=>(X6||(X6=await Let(t)),X6);function N1e(t){return t.toArray().map(e=>e.toJSON())}async function Wg(t){let e=null;try{const n=await Fet();return e=await n.connect(),await t(e,n)}finally{await e?.close()}}async function J6(t,e){return Wg(async n=>{try{if(!e?.length)return await n.query(t);const r=await n.prepare(t);try{return await r.query(...e)}finally{await r.close()}}catch(r){throw k0.isCatalogError(r)?new k0(r):C0.isFileError(r)?new C0(r):r}})}async function $et(t){if(t instanceof File||t instanceof Blob)return await t.text();const e=await fetch(t);if(!e.ok)throw new Error(`Failed to fetch content: ${e.statusText}`);return await e.text()}function jet(t){const{schema:e,...n}=t;if("types"in n||"names"in n||"nullstr"in n){const r=n;return Object.entries({...n,types:Array.isArray(r.types)?r.types.join(", "):JSON.stringify(r.types),names:r.names?.join(", "),nullstr:Array.isArray(r.nullstr)?r.nullstr.join(", "):r.nullstr}).filter(([i,s])=>s!==void 0).map(([i,s])=>typeof s=="boolean"?`${i}=${s}`:Array.isArray(s)?`${i}=[${s}]`:`${i}='${s}'`).join(", ")}return Object.entries(n).filter(([r,i])=>i!==void 0).map(([r,i])=>typeof i=="boolean"?`${r}=${i}`:typeof i=="number"?`${r}=${i}`:`${r}='${i}'`).join(", ")}async function zet(t,e){return Wg(async(n,r)=>{let i;typeof e=="string"?i=new TextEncoder().encode(e):i=new Uint8Array(await e.arrayBuffer()),await r.registerFileBuffer(t,i)})}async function Het(t,e,n={}){return Wg(async(r,i)=>{const s=typeof e=="string"?e:await $et(e),o=`temp_${t}_${Date.now()}`,a=n.schema||"main";try{await i.registerFileBuffer(o,new TextEncoder().encode(s));const l=jet(n);await r.query(` 593 CREATE OR REPLACE TABLE ${a}.${t} AS 594 SELECT * FROM read_json('${o}'${l?", "+l:""}) 595 `)}finally{await i.dropFile(o)}})}async function Uet(t="*"){return Wg((e,n)=>n.globFiles(t))}class k0 extends Error{static ERROR_NAME="DuckDBCatalogError";static catalogErrorPattern=/Catalog Error: Table with name (\w+) does not exist!/;tableName;constructor(e){if(!k0.isCatalogError(e))throw new Error("Not a DuckDB catalog error");const n=k0.extractTableName(e);if(!n)throw new Error("Failed to extract table name from error message");super(`Table '${n}' does not exist in DuckDB catalog`),this.tableName=n,this.name=k0.ERROR_NAME}static isCatalogError(e){return e instanceof Error&&k0.extractTableName(e)!==null}static extractTableName(e){return e.message.match(k0.catalogErrorPattern)?.[1]??null}}class C0 extends Error{static ERROR_NAME="DuckDBFileError";static ioErrorPattern=/IO Error: No files found that match the pattern "(.+)"/;filePath;constructor(e){if(!C0.isFileError(e))throw new Error("Not a DuckDB IO error");const n=C0.extractFilePath(e);if(!n)throw new Error("Failed to extract file path from error message");super(`File '${n}' not found`),this.filePath=n,this.name=C0.ERROR_NAME}static isFileError(e){return e instanceof Error&&C0.extractFilePath(e)!==null}static extractFilePath(e){return e.message.match(C0.ioErrorPattern)?.[1]??null}}class Vet extends Error{constructor(e){super(`File not found: "${e}"`),this.name="FileNotFoundError"}}class Wet{id;name;size;type;chatCraftFile;chat;constructor(e,n){this.chatCraftFile=e,this.chat=n,this.id=e.id,this.name=e.name,this.size=e.size,this.type=e.type}async blob(){return this.chatCraftFile.content}async removeFile(){return await this.chat.removeFile(this.chatCraftFile)}async renameFile(e){return await this.chat.renameFile(this.chatCraftFile,e)}async toURL(){return await this.chatCraftFile.toURL()}async download(){return this.chatCraftFile.download()}}class DV{id;name;size;type;constructor(e){this.id=String(e.fileId)||"unknown",this.name=e.fileName,this.size=e.fileSize||0,this.type=DV.getFileType(e.fileName)}static getFileType(e){const n="application/octet-stream",r=e.split(".").pop()?.toLowerCase()||"";return{csv:"text/csv",tsv:"text/tab-separated-values",txt:"text/plain",parquet:"application/vnd.apache.parquet",json:"application/json",jsonl:"application/jsonl",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",db:"application/x-sqlite3",sqlite:"application/x-sqlite3",sqlite3:"application/x-sqlite3"}[r]||n}async blob(){return Wg(async(e,n)=>{const r=await n.copyFileToBuffer(this.name);
595return new Blob([r],{type:this.type})})}async removeFile(){return Wg(async(e,n)=>{await n.dropFile(this.name)})}async renameFile(e){const n=await this.blob();this.removeFile(),zet(e,n)}async toURL(){const e=await this.blob();return URL.createObjectURL(e)}async download(){const e=await this.blob();xd(e,this.name,this.type)}}async function MV(t){const e=new Map;return Bet()&&(await Uet()).forEach(i=>{e.set(i.fileName,new DV(i))}),t.files().forEach(r=>{e.set(r.name,new Wet(r,t))}),Array.from(e.values())}async function NV(t,e){const r=(await MV(e)).find(i=>i.name===t);if(!r)throw new Vet(t);return r}async function R1e(t,e){await(await NV(t,e)).removeFile()}async function qet(t,e,n){await(await NV(t,n)).renameFile(e)}async function Get(t,e){await(await NV(t,e)).download()}function Ket(t){const e=new Set,n=/chatcraft\.(\w+)(?:\s|;|$)/g;return[...t.matchAll(n)].forEach(i=>{e.add(i[1])}),[...e]}const Yet=(t,e)=>e.reduce((n,r)=>r in t&&t[r]instanceof Date?{...n,[r]:t[r].toISOString()}:n,t);async function Qet(t){const n=(await vr.byTableName(t).toArray()).map(r=>{const i=["date","created"];return Yet({...r},i)});await Het(t,JSON.stringify(n),{schema:"chatcraft"})}async function Xet(t,{params:e,chat:n}={}){try{return await J6(t,e)}catch(r){if(r instanceof k0){const i=Ket(t);if(i.length>0){await Wg(async s=>{await s.query("CREATE SCHEMA IF NOT EXISTS chatcraft")});for(const s of i)WYe(s)&&await Qet(s);return await J6(t,e)}}if(r instanceof C0){if(!n)throw r;const i=n.files();if(!i.length)throw r;const s=r.filePath,o=i.find(a=>a.id===s||a.name===s);return o&&await ett(o,s),await J6(t,e)}throw r}}async function L1e(t,{params:e,chat:n}={}){const r=await Xet(t,{params:e,chat:n}),i=N1e(r);return nV(i)}async function Jet(){const t=await J6("show tables"),e=N1e(t);return s0e.forEach(n=>{e.push({name:`chatcraft.${n}`})}),nV(e)}async function Zet(t){const n=(await MV(t)).map(r=>({file:r.name}));return n.length?nV(n):""}async function ett(t,e){const n=e||t.name,r=new Uint8Array(await t.content.arrayBuffer());await Wg(async(i,s)=>{await s.registerFileBuffer(n,r)})}globalThis.__esbuildWasmLoaded=!1;const B1e=["js","javascript"],F1e=["ts","typescript"],$1e=["py","python"],j1e=["rb","ruby"],ttt=[...B1e,...F1e,...$1e,...j1e,"sql"];function ntt(t){return B1e.includes(t)}function rtt(t){return F1e.includes(t)}function itt(t){return $1e.includes(t)}function stt(t){return j1e.includes(t)}function ott(t){return ttt.includes(t)}async function rF(t){const e={log:console.log,info:console.info,warn:console.warn,error:console.error};let n="";const r=s=>(...o)=>{n+=`[${s}] `+o.map(a=>String(a)).join(" ")+` 596`,e[s].apply(console,o)};console.log=r("log"),console.info=r("info"),console.warn=r("warn"),console.error=r("error");let i;try{i=await t()}finally{console.log=e.log,console.info=e.info,console.warn=e.warn,console.error=e.error}return{logs:n.trim()||void 0,ret:i}}async function att(t){try{const e=`return eval(${JSON.stringify(t)});`,n=new Function(e);return await rF(()=>n())}catch(e){let n=!1;if(e instanceof SyntaxError){const r=e.message;n=r.includes("module")||r.includes("import")||r.includes("export")}if(n){const r=new Blob([t],{type:"text/javascript"}),i=await rF(async()=>await import(URL.createObjectURL(r))),s=i.ret;if(!("default"in s))throw new Error("No default export in ES6 module");return{...i,ret:s.default}}throw e}}async function yee(t,e){const{WASI:n}=await ge(async()=>{const{WASI:o}=await import("./runno-BFQm_hXx.js");return{WASI:o}},[]);let r,i;if(e==="python")r="https://unpkg.com/@antonz/python-wasi/dist/python.wasm",i=["python","-c",t];else if(e==="ruby")r="https://unpkg.com/@antonz/ruby-wasi/dist/ruby.wasm",i=["ruby","-e",t];else throw new Error("Unsupported language");return await rF(async()=>new Promise((a,l)=>{n.start(fetch(r),{args:i,stdout:c=>{console.log(c)},stderr:c=>{console.error(c)}}).then(c=>{c.exitCode===0?a():l(new Error("Script execution failed"))}).catch(c=>{l(c)})}))}async function ltt(){try{const t=await ge(()=>import("./browser-CQEMm-Tl.js").then(e=>e.b),[]);return globalThis.__esbuildWasmLoaded||(await t.initialize({wasmURL:kXe}),globalThis.__esbuildWasmLoaded=!0),t}
596catch(t){if(!t.message.includes('Cannot call "initialize" more than once'))throw t}}async function z1e(t){const e=await ltt();if(!e)throw new Error("Unable to load esbuild, needed to parse TS code");return(await e.transform(t,{loader:"ts"})).code}async function ctt(t,e){try{return{ret:await L1e(t,{chat:e}),logs:void 0}}catch(n){return{ret:"",logs:n instanceof Error?n.stack:String(n)}}}async function utt(t,e,n){return rtt(e)&&(t=await z1e(t),e="js"),ntt(e)?att(t):itt(e)?yee(t,"python"):stt(e)?yee(t,"ruby"):e==="sql"?ctt(t,n):{ret:"",logs:`Unsupported language: ${e}`}}const H1e=(t,e)=>{const n=`${e}()`;if(t.startsWith("https://")){const{hostname:r}=new URL(t);return`${r} - ${n}`}return n},U1e=t=>{const e=i=>{const s=/^https:\/\/gist\.github\.com\/([a-zA-Z0-9_-]+)\/([a-f0-9]+)$/,o=i.match(s);if(o){const[,a,l]=o;return`https://gist.githubusercontent.com/${a}/${l}/raw`}return i},n=t.match(/@(fn): ?([\w\s,]+)|@(fn-url): ?(https:\/\/[^\s]+)/);return n?n[3]==="fn-url"?[e(n[4])]:n[2].split(",").map(i=>i.trim()):[]},V1e=async(t,e)=>{const n=async a=>{const l=await vr.functions.where("name").anyOfIgnoreCase(...a).toArray();return Promise.all(l.map(c=>al.fromDB(c)))},r=async a=>Promise.all(a.map(l=>al.fromUrl(new URL(l)).catch(c=>{console.warn(`Unable to load remote function ${l}`,c),e&&e(new Error(`Unable to load remote function at ${l} (${c.message})`))}))),[i,s]=await Promise.all([n(t.filter(a=>!a.startsWith("https://"))),r(t.filter(a=>a.startsWith("https://")))]),o=[...i,...s].filter(a=>!!a);return o.length?o:void 0},bee=`/** 597* Example Function Module. Each function needs you to define the following: 598* 1. jsdoc comment with function description and @param descriptions 599* 2. exported named function in typescript 600*/ 601 602/** 603 * This function echoes back the input passed to it. 604 * @param txt The text to echo back 605 */ 606export async function echo(txt: string) { 607 return txt; 608} 609`,oN=async t=>{let e=null;try{let n=function(h){const d=Object.values(h);return u(...d)};const r=await z1e(t),{parseTypeScript:i}=await ge(async()=>{const{parseTypeScript:h}=await import("./index-Dbk5arh8.js");return{parseTypeScript:h}},[]),s=i(t),o=new Blob([r],{type:"text/javascript"});e=URL.createObjectURL(o);const a=await import(e);if(Object.keys(a).length===0)throw new Error("No functions exported in module");const c=s[0],u=a[c.name];return{name:c.name,description:c.description||"",parameters:c.parameters,default:n}}catch(n){throw console.warn("Unable to parse module",n),new Error(`Unable to parse module: ${n.message}`)}finally{e&&URL.revokeObjectURL(e)}};class al{id;date;name;description;parameters;code;constructor({id:e,date:n,name:r,description:i,parameters:s,code:o}){this.id=e??f1(),this.date=n??new Date,this.name=r,this.description=i,this.parameters=s,this.code=o}get prettyName(){return H1e(this.id,this.name)}get url(){return this.id.startsWith("https://")?this.id:`/f/${this.id}`}toESModule(){return oN(this.code)}static async parse(e){const{name:n,description:r,parameters:i}=await oN(e);return new al({name:n,description:r,parameters:i,code:e})}static async find(e){if(e.startsWith("https://"))return al.fromUrl(new URL(e));const n=await vr.functions.get(e);if(n)return new al(n)}async save(){this.date=new Date;try{const{name:e,description:n,parameters:r}=await this.toESModule();this.name=e,this.description=n,this.parameters=r}catch(e){console.error(e);const n=`Unable to parse code: ${e.message}`;this.name="function",this.description=n,this.parameters={error:n}}return vr.functions.put(this.toDB())}async invoke(e){const{id:n}=this,{name:r,default:i}=await this.toESModule();let s;try{s=await i(e);const o=typeof s=="string"?s:cd(JSON.stringify(s,null,2),"json");return new B0({text:o,func:{id:n,name:r,result:s}})}catch(o){const a=`**Error**: 610 611${cd(o)} 612`;return new B0({text:a,func:{id:n,name:r,result:o.toString()}})}}toJSON(){return{id:this.id,date:this.date.toISOString(),name:this.name,description:this.description,parameters:this.parameters,code:this.code}}toDB(){return{id:this.id,date:this.date,name:this.name,description:this.description,parameters:this.parameters,code:this.code}}toOpenAIFunction(){const e=this.parameters;return{name:this.name,description:this.description,parameters:e}}static async delete(e){if(await al.find(e))return vr.functions.delete(e)}static fromDB(e){return new al({...e})}static async fromUrl(e){const n=await fetch(e);if(!n.ok)throw new Error(`Unable to download function: ${n.statusText}`);const r=await n.text(),{name:i,description:s,parameters:o}=await oN(r);return new al({id:e.href,name:i,description:s,parameters:o,code:r})}}class B4{id;date;model;text;constructor({date:e,model:n,text:r}){this.id=f1(),this.date=e??new Date,this.model=n,this.text=r}toJSON(){return{...this,model:this.model.toString()}}}class Sh{id;date;type;text;imageUrls;readonly;constructor({id:e,date:n,type:r,text:i,imageUrls:s,readonly:o}){this.id=e??f1(),this.date=n??new Date,this.type=r,this.text=i,this.imageUrls=s??[],this.readonly=o===!0}async tokens(){return vXe(this.text)}static async delete(e){return vr.messages.delete(e)}
612clone(){return new Sh({type:this.type,text:this.text,imageUrls:this.imageUrls})}toJSON(){return{id:this.id,date:this.date.toISOString(),type:this.type,text:this.text,imageUrls:this.imageUrls}}toOpenAiMessage(){const e=this.text,n=[{type:"text",text:e}];this.imageUrls.length>0&&this.imageUrls.forEach(i=>{n.push({type:"image_url",image_url:{url:i}})});const r=this.imageUrls.length||n.length>1?n:e;switch(this.type){case"ai":return{role:"assistant",content:e};case"human":return{role:"user",content:r};case"system":return{role:"system",content:e};case"function":case"generic":default:throw new Error(`${this.type} message conversion to openai not implemented`)}}toDB(e){return{id:this.id,date:this.date,chatId:e,type:this.type,text:this.text,imageUrls:this.imageUrls}}async save(e){if(!this.readonly)return vr.messages.put(this.toDB(e))}static fromJSON(e){switch(e.type){case"ai":return"func"in e?L0.fromJSON(e):Pu.fromJSON(e);case"human":return Go.fromJSON(e);case"system":return Fc.fromJSON(e);case"function":return B0.fromJSON(e);case"generic":return Us.fromJSON(e);default:throw new Error(`Error parsing unknown message type: ${e.type}`)}}static fromDB(e){switch(e.type){case"ai":return"func"in e?L0.fromDB(e):Pu.fromDB(e);case"human":return Go.fromDB(e);case"system":return Fc.fromDB(e);case"function":return B0.fromDB(e);case"generic":return Us.fromDB(e);default:throw new Error(`Error parsing unknown message type: ${e.type}`)}}}class Pu extends Sh{model;versions;constructor({id:e,date:n,model:r,text:i,versions:s,readonly:o}){super({id:e,date:n,type:"ai",text:i,readonly:o}),this.model=r,this.versions=s??[new B4({date:n,model:r,text:i})]}addVersion(e){this.readonly||this.versions.push(e)}switchVersion(e){if(this.readonly)return;const n=this.versions.find(o=>o.id===e);if(!n)throw new Error(`no such version: ${e}`);const{date:r,model:i,text:s}=n;this.date=r,this.model=i,this.text=s}get currentVersion(){if(!this.versions?.length)return null;const{model:e,text:n,versions:r}=this;for(const i of r)if(i.model===e&&i.text===n)return i;return null}clone(){return new Pu({model:this.model,text:this.text,versions:this.versions})}toJSON(){return{...super.toJSON(),model:this.model.toString(),versions:this.versions.map(e=>({...e,date:e.date.toISOString(),model:e.model.toString()}))}}toDB(e){return{id:this.id,date:this.date,chatId:e,type:this.type,text:this.text,imageUrls:this.imageUrls,model:this.model.toString(),versions:this.versions.map(n=>({id:n.id,date:n.date,model:n.model.toString(),text:n.text,imageUrls:[]}))}}static fromJSON(e){return new Pu({id:e.id,date:new Date(e.date),model:e.model?new _c(e.model):Rc().currentProvider.defaultModelForProvider(),text:e.text,versions:e.versions?.map(n=>new B4({...n,date:new Date(n.date),model:new _c(n.model)})),readonly:!0})}static fromDB(e){return new Pu({id:e.id,date:e.date,model:e.model?new _c(e.model):Rc().currentProvider.defaultModelForProvider(),text:e.text,versions:e.versions?.map(n=>new B4({...n,model:new _c(n.model)}))})}}class Go extends Sh{user;constructor({id:e,date:n,user:r,text:i,imageUrls:s,readonly:o}){super({id:e,date:n,type:"human",text:i,imageUrls:s,readonly:o}),this.user=r}clone(){return new Go({user:this.user,text:this.text,imageUrls:this.imageUrls})}toJSON(){return{...super.toJSON(),user:this.user}}toDB(e){return{id:this.id,date:this.date,chatId:e,type:this.type,text:this.text,imageUrls:this.imageUrls,user:this.user}}async functions(e){const n=new Set;return U1e(this.text).forEach(r=>n.add(r)),V1e([...n],e)}static fromJSON(e){return new Go({id:e.id,date:new Date(e.date),user:e.user,text:e.text,imageUrls:e.imageUrls,readonly:!0})}static fromDB(e){return new Go({id:e.id,date:e.date,user:e.user,text:e.text,imageUrls:e.imageUrls})}}class Fc extends Sh{constructor({id:e,date:n,text:r,readonly:i}){super({id:e,date:n,type:"system",text:r,readonly:i})}static fromJSON(e){return new Fc({id:e.id,date:new Date(e.date),text:e.text,readonly:!0})}static fromDB(e){return new Fc({id:e.id,date:e.date,text:e.text})}}class Us extends Sh{constructor({id:e,date:n,text:r,readonly:i}){super({id:e,date:n,type:"generic",text:r,readonly:i})}async tokens(){return 0}clone(){return new Us({text:this.text})}static fromJSON(e){return new Us({id:e.id,date:new Date(e.date),text:e.text,readonly:!0})}static fromDB(e){return new Us({id:e.id,date:e.date,text:e.text})}
612static instructions(){return new Us({text:"app:instructions"})}static isInstructions(e){return e instanceof Us&&e.text==="app:instructions"}static help(){return new Us({text:"app:help"})}static isHelp(e){return e instanceof Us&&e.text==="app:help"}static commandsHelp(){return new Us({text:"app:commands"})}static isCommandsHelp(e){return e instanceof Us&&e.text.startsWith("app:commands")}}class L0 extends Sh{model;func;constructor({id:e,date:n,model:r,func:i,text:s,readonly:o}){super({id:e,date:n,type:"ai",text:s,readonly:o}),this.model=r,this.func=i}clone(){return new L0({model:this.model,func:this.func,text:this.text})}toOpenAiMessage(){return{role:"assistant",content:null,function_call:{name:this.func.name,arguments:JSON.stringify(this.func.params)}}}toJSON(){return{...super.toJSON(),model:this.model.toString(),func:this.func}}toDB(e){return{id:this.id,date:this.date,chatId:e,type:this.type,text:this.text,imageUrls:this.imageUrls,model:this.model.toString(),func:this.func}}static fromJSON(e){if(!e.func)throw new Error("missing function properties on serialized message");if(!("params"in e.func))throw new Error("missing function params on serialized message");return new L0({id:e.id,date:new Date(e.date),func:e.func,model:e.model?new _c(e.model):Rc().currentProvider.defaultModelForProvider(),text:e.text,readonly:!0})}static fromDB(e){if(!e.func)throw new Error("missing function properties on message db record");if(!("params"in e.func))throw new Error("missing function params on message db record");return new L0({id:e.id,date:e.date,func:e.func,model:e.model?new _c(e.model):Rc().currentProvider.defaultModelForProvider(),text:e.text})}}class B0 extends Sh{func;constructor({id:e,date:n,func:r,text:i,readonly:s}){super({id:e,date:n,type:"function",text:i,readonly:s}),this.func=r}clone(){return new B0({func:this.func,text:this.text})}toJSON(){return{...super.toJSON(),func:this.func}}toDB(e){return{id:this.id,date:this.date,chatId:e,type:this.type,text:this.text,imageUrls:this.imageUrls,func:this.func}}toOpenAiMessage(){const{text:e}=this,{name:n}=this.func;return{role:"function",content:e,name:n}}static fromJSON(e){if(!e.func)throw new Error("missing function properties on serialized message");if(!("result"in e.func))throw new Error("missing function result on serialized message");return new B0({id:e.id,date:new Date(e.date),func:e.func,text:e.text,readonly:!0})}static fromDB(e){if(!e.func)throw new Error("missing function properties on message db record");if(!("result"in e.func))throw new Error("missing function result on message db record");return new B0({id:e.id,date:e.date,func:e.func,text:e.text})}}let htt={one:{},two:{},three:{},four:{}},dtt={one:{},two:{},three:{}},ftt={},ptt=[];const iF={methods:htt,model:dtt,compute:ftt,hooks:ptt},mtt=t=>Object.prototype.toString.call(t)==="[object Array]",gtt={compute:function(t){const{world:e}=this,n=e.compute;return typeof t=="string"&&n.hasOwnProperty(t)?n[t](this):mtt(t)?t.forEach(r=>{e.compute.hasOwnProperty(r)?n[r](this):console.warn("no compute:",t)}):typeof t=="function"?t(this):console.warn("no compute:",t),this}},ytt=function(t){return this.fullPointer.forEach((n,r)=>{let i=this.update([n]);t(i,r)}),this},btt=function(t,e){let r=this.fullPointer.map((s,o)=>{let a=this.update([s]),l=t(a,o);return l===void 0?this.none():l});if(r.length===0)return e||this.update([]);if(r[0]!==void 0&&(typeof r[0]=="string"||typeof r[0]=="object"&&(r[0]===null||!r[0].isView)))return r;let i=[];return r.forEach(s=>{i=i.concat(s.fullPointer)}),this.toView(i)},vtt=function(t){let e=this.fullPointer;return e=e.filter((r,i)=>{let s=this.update([r]);return t(s,i)}),this.update(e)},xtt=function(t){let n=this.fullPointer.find((r,i)=>{let s=this.update([r]);return t(s,i)});return this.update([n])},wtt=function(t){return this.fullPointer.some((n,r)=>{let i=this.update([n]);return t(i,r)})},Stt=function(t=1){let e=this.fullPointer,n=Math.floor(Math.random()*e.length);return n+t>this.length&&(n=this.length-t,n=n<0?0:n),e=e.slice(n,n+t),this.update(e)},ktt={forEach:ytt,map:btt,filter:vtt,find:xtt,some:wtt,random:Stt},Md={termList:function(){return this.methods.one.termList(this.docs)},terms:function(t){let e=this.match(".");return typeof t=="number"?e.eq(t):e},groups:function(t){if(t||t===0)return this.update(this._groups[t]||[]);let e={};
612return Object.keys(this._groups).forEach(n=>{e[n]=this.update(this._groups[n])}),e},eq:function(t){let e=this.pointer;return e||(e=this.docs.map((n,r)=>[r])),e[t]?this.update([e[t]]):this.none()},first:function(){return this.eq(0)},last:function(){let t=this.fullPointer.length-1;return this.eq(t)},firstTerms:function(){return this.match("^.")},lastTerms:function(){return this.match(".$")},slice:function(t,e){let n=this.pointer||this.docs.map((r,i)=>[i]);return n=n.slice(t,e),this.update(n)},all:function(){return this.update().toView()},fullSentences:function(){let t=this.fullPointer.map(e=>[e[0]]);return this.update(t).toView()},none:function(){return this.update([])},isDoc:function(t){if(!t||!t.isView)return!1;let e=this.fullPointer,n=t.fullPointer;return!e.length===n.length?!1:e.every((r,i)=>n[i]?r[0]===n[i][0]&&r[1]===n[i][1]&&r[2]===n[i][2]:!1)},wordCount:function(){return this.docs.reduce((t,e)=>(t+=e.filter(n=>n.text!=="").length,t),0)},isFull:function(){let t=this.pointer;if(!t)return!0;if(t.length===0||t[0][0]!==0)return!1;let e=0,n=0;return this.document.forEach(r=>e+=r.length),this.docs.forEach(r=>n+=r.length),e===n},getNth:function(t){return typeof t=="number"?this.eq(t):typeof t=="string"?this.if(t):this}};Md.group=Md.groups;Md.fullSentence=Md.fullSentences;Md.sentence=Md.fullSentences;Md.lastTerm=Md.lastTerms;Md.firstTerm=Md.firstTerms;const sF=Object.assign({},Md,gtt,ktt);sF.get=sF.eq;class Ig{constructor(e,n,r={}){[["document",e],["world",iF],["_groups",r],["_cache",null],["viewType","View"]].forEach(s=>{Object.defineProperty(this,s[0],{value:s[1],writable:!0})}),this.ptrs=n}get docs(){let e=this.document;return this.ptrs&&(e=iF.methods.one.getDoc(this.ptrs,this.document)),e}get pointer(){return this.ptrs}get methods(){return this.world.methods}get model(){return this.world.model}get hooks(){return this.world.hooks}get isView(){return!0}get found(){return this.docs.length>0}get length(){return this.docs.length}get fullPointer(){let{docs:e,ptrs:n,document:r}=this;return(n||e.map((s,o)=>[o])).map(s=>{let[o,a,l,c,u]=s;return a=a||0,l=l||(r[o]||[]).length,r[o]&&r[o][a]&&(c=c||r[o][a].id,r[o][l-1]&&(u=u||r[o][l-1].id)),[o,a,l,c,u]})}update(e){let n=new Ig(this.document,e);if(this._cache&&e&&e.length>0){let r=[];e.forEach((i,s)=>{let[o,a,l]=i;i.length===1?r[s]=this._cache[o]:a===0&&this.document[o].length===l&&(r[s]=this._cache[o])}),r.length>0&&(n._cache=r)}return n.world=this.world,n}toView(e){return new Ig(this.document,e||this.pointer)}fromText(e){const{methods:n}=this;let r=n.one.tokenize.fromString(e,this.world),i=new Ig(r);return i.world=this.world,i.compute(["normal","freeze","lexicon"]),this.world.compute.preTagger&&i.compute("preTagger"),i.compute("unfreeze"),i}clone(){let e=this.document.slice(0);e=e.map(r=>r.map(i=>(i=Object.assign({},i),i.tags=new Set(i.tags),i)));let n=this.update(this.pointer);return n.document=e,n._cache=this._cache,n}}Object.assign(Ig.prototype,sF);const Ctt="14.14.4",vee=function(t){return t&&typeof t=="object"&&!Array.isArray(t)};function W1e(t,e){if(vee(e))for(const n in e)vee(e[n])?(t[n]||Object.assign(t,{[n]:{}}),W1e(t[n],e[n])):Object.assign(t,{[n]:e[n]});return t}function _tt(t,e){for(const n in e)t[n]=t[n]||{},Object.assign(t[n],e[n]);return t}const Ttt=function(t,e){let n=t.two.models||{};Object.keys(e).forEach(r=>{e[r].pastTense&&(n.toPast&&(n.toPast.ex[r]=e[r].pastTense),n.fromPast&&(n.fromPast.ex[e[r].pastTense]=r)),e[r].presentTense&&(n.toPresent&&(n.toPresent.ex[r]=e[r].presentTense),n.fromPresent&&(n.fromPresent.ex[e[r].presentTense]=r)),e[r].gerund&&(n.toGerund&&(n.toGerund.ex[r]=e[r].gerund),n.fromGerund&&(n.fromGerund.ex[e[r].gerund]=r)),e[r].comparative&&(n.toComparative&&(n.toComparative.ex[r]=e[r].comparative),n.fromComparative&&(n.fromComparative.ex[e[r].comparative]=r)),e[r].superlative&&(n.toSuperlative&&(n.toSuperlative.ex[r]=e[r].superlative),n.fromSuperlative&&(n.fromSuperlative.ex[e[r].superlative]=r))})},Ett=function(t,e,n,r){const{methods:i,model:s,compute:o,hooks:a}=e;t.methods&&_tt(i,t.methods),t.model&&W1e(s,t.model),t.irregulars&&Ttt(s,t.irregulars),t.compute&&Object.assign(o,t.compute),a&&(e.hooks=a.concat(t.hooks||[])),t.api&&t.api(n),t.lib&&Object.keys(t.lib).forEach(l=>r[l]=t.lib[l]),t.tags&&r.addTags(t.tags),t.words&&r.addWords(t.words),t.frozen&&r.addWords(t.frozen,!0),t.mutate&&t.mutate(e,r)};var xee={};const Att=function(t){const e=typeof process>"u"||!xee?self.env||{}:xee;return e.DEBUG_TAGS=t==="tagger"||t===!0?!0:"",e.DEBUG_MATCH=t==="match"||t===!0?!0:"",e.DEBUG_CHUNKS=t==="chunker"||t===!0?!0:"",this},Ptt=t=>Object.prototype.toString.call(t)==="[object Object]",oF=function(t){return Object.prototype.toString.call(t)==="[object Array]"},Ott=function(t){return t.map(e=>e.terms.map(n=>(oF(n.tags)&&(n.tags=new Set(n.tags)),n)))},Itt=function(t){return t.map(e=>e.map(n=>({text:n,normal:n,pre:"",post:" ",tags:new Set})))},q1e=function(t,e,n){const{methods:r}=n;let i=new e([]);if(i.world=n,typeof t=="number"&&(t=String(t)),!t)return i;if(typeof t=="string"){let s=r.one.tokenize.fromString(t,n);return new e(s)}if(Ptt(t)&&t.isView)return new e(t.document,t.ptrs);if(oF(t)){if(oF(t[0])){let o=Itt(t);return new e(o)}let s=Ott(t);return new e(s)}return i};let X8=Object.assign({},iF);const gr=function(t,e){e&&gr.addWords(e);let n=q1e(t,Ig,X8);return t&&n.compute(X8.hooks),n};Object.defineProperty(gr,"_world",{value:X8,writable:!0});gr.tokenize=function(t,e){const{compute:n}=this._world;e&&gr.addWords(e);let r=q1e(t,Ig,X8);return n.contractions&&r.compute(["alias","normal","machine","contractions"]),r};gr.plugin=function(t){return Ett(t,this._world,Ig,this),this};gr.extend=gr.plugin;gr.world=function(){return this._world};gr.model=function(){return this._world.model};gr.methods=function(){return this._world.methods};gr.hooks=function(){return this._world.hooks};gr.verbose=Att;gr.version=Ctt;const Dtt=function(t){return t.map(n=>{let r=new Set;
612return n.forEach(i=>{i.normal!==""&&r.add(i.normal),i.switch&&r.add(`%${i.switch}%`),i.implicit&&r.add(i.implicit),i.machine&&r.add(i.machine),i.root&&r.add(i.root),i.alias&&i.alias.forEach(o=>r.add(o));let s=Array.from(i.tags);for(let o=0;o<s.length;o+=1)r.add("#"+s[o])}),r})},Mtt={one:{cacheDoc:Dtt}},Ntt={cache:function(){return this._cache=this.methods.one.cacheDoc(this.document),this},uncache:function(){return this._cache=null,this}},Rtt=function(t){Object.assign(t.prototype,Ntt)},Ltt={cache:function(t){t._cache=t.methods.one.cacheDoc(t.document)}},Btt={api:Rtt,compute:Ltt,methods:Mtt},Ftt={toLowerCase:function(){return this.termList().forEach(t=>{t.text=t.text.toLowerCase()}),this},toUpperCase:function(){return this.termList().forEach(t=>{t.text=t.text.toUpperCase()}),this},toTitleCase:function(){return this.termList().forEach(t=>{t.text=t.text.replace(/^ *[a-z\u00C0-\u00FF]/,e=>e.toUpperCase())}),this},toCamelCase:function(){return this.docs.forEach(t=>{t.forEach((e,n)=>{n!==0&&(e.text=e.text.replace(/^ *[a-z\u00C0-\u00FF]/,r=>r.toUpperCase())),n!==t.length-1&&(e.post="")})}),this}},wee=t=>/^\p{Lu}[\p{Ll}'â]/u.test(t)||/^\p{Lu}$/u.test(t),$tt=t=>t.replace(/^\p{Ll}/u,e=>e.toUpperCase()),jtt=t=>t.replace(/^\p{Lu}/u,e=>e.toLowerCase()),G1e=(t,e,n)=>{if(n.forEach(r=>r.dirty=!0),t){let r=[e,0].concat(n);Array.prototype.splice.apply(t,r)}return t},D2=function(t){const e=/ $/,n=/[-ââ]/;let r=t[t.length-1];r&&!e.test(r.post)&&!n.test(r.post)&&(r.post+=" ")},See=(t,e,n)=>{const r=/[-.?!,;:)ââ'"]/g;let i=t[e-1];if(!i)return;let s=i.post;if(r.test(s)){let o=s.match(r).join(""),a=n[n.length-1];a.post=o+a.post,i.post=i.post.replace(r,"")}},ztt=function(t,e,n){let r=t[e];if(e!==0||!wee(r.text))return;n[0].text=$tt(n[0].text);let i=t[e];i.tags.has("ProperNoun")||i.tags.has("Acronym")||wee(i.text)&&i.text.length>1&&(i.text=jtt(i.text))},Htt=function(t,e,n,r){let[i,s,o]=e;s===0||o===r[i].length?D2(n):(D2(n),D2([t[e[1]]])),ztt(t,s,n),G1e(t,s,n)},Utt=function(t,e,n,r){let[i,,s]=e,o=(r[i]||[]).length;s<o?(See(t,s,n),D2(n)):o===s&&(D2(t),See(t,s,n),r[i+1]&&(n[n.length-1].post+=" ")),G1e(t,e[2],n),e[4]=n[n.length-1].id};let VS=0;const kee=t=>(t=t.length<3?"0"+t:t,t.length<3?"0"+t:t),K1e=function(t){let[e,n]=t.index||[0,0];VS+=1,VS=VS>46655?0:VS,e=e>46655?0:e,n=n>1294?0:n;let r=kee(VS.toString(36));r+=kee(e.toString(36));let i=n.toString(36);i=i.length<2?"0"+i:i,r+=i;let s=parseInt(Math.random()*36,10);return r+=s.toString(36),t.normal+"|"+r.toUpperCase()},Cee=function(t){t.has("@hasContraction")&&typeof t.contractions=="function"&&t.grow("@hasContraction").contractions().expand()},_ee=t=>Object.prototype.toString.call(t)==="[object Array]",Vtt=function(t){return t=t.map(e=>(e.id=K1e(e),e)),t},Wtt=function(t,e){const{methods:n}=e;return typeof t=="string"?n.one.tokenize.fromString(t,e)[0]:typeof t=="object"&&t.isView?t.clone().docs[0]||[]:_ee(t)?_ee(t[0])?t[0]:t:[]},Tee=function(t,e,n){const{document:r,world:i}=e;e.uncache();let s=e.fullPointer,o=e.fullPointer;e.forEach((l,c)=>{let u=l.fullPointer[0],[h]=u,d=r[h],p=Wtt(t,i);p.length!==0&&(p=Vtt(p),n?(Cee(e.update([u]).firstTerm()),Htt(d,u,p,r)):(Cee(e.update([u]).lastTerm()),Utt(d,u,p,r)),r[h]&&r[h][u[1]]&&(u[3]=r[h][u[1]].id),o[c]=u,u[2]+=p.length,s[c]=u)});let a=e.toView(s);return e.ptrs=o,a.compute(["id","index","freeze","lexicon"]),a.world.compute.preTagger&&a.compute("preTagger"),a.compute("unfreeze"),a},mb={insertAfter:function(t){return Tee(t,this,!1)},insertBefore:function(t){return Tee(t,this,!0)}};mb.append=mb.insertAfter;mb.prepend=mb.insertBefore;mb.insert=mb.insertAfter;const qtt=/\$[0-9a-z]+/g,RV={},Gtt=t=>/^\p{Lu}[\p{Ll}'â]/u.test(t)||/^\p{Lu}$/u.test(t),Ktt=t=>t.replace(/^\p{Ll}/u,e=>e.toUpperCase()),Ytt=t=>t.replace(/^\p{Lu}/u,e=>e.toLowerCase()),Qtt=function(t,e,n){return t.forEach(r=>{let i=e(r);r.replaceWith(i,n)}),t},Xtt=function(t,e){if(typeof t!="string")return t;let n=e.groups();return t=t.replace(qtt,r=>{let i=r.replace(/\$/,"");return n.hasOwnProperty(i)?n[i].text():r}),t};RV.replaceWith=function(t,e={}){let n=this.fullPointer,r=this;if(this.uncache(),typeof t=="function")return Qtt(r,t,e);let i=r.docs[0];if(!i)return r;let s=e.possessives&&i[i.length-1].tags.has("Possessive"),o=e.case&&Gtt(i[0].text);t=Xtt(t,r);let a=this.update(n);n=n.map(d=>d.slice(0,3));let l=(a.docs[0]||[]).map(d=>Array.from(d.tags)),c=a.docs[0][0].pre,u=a.docs[0][a.docs[0].length-1].post;if(typeof t=="string"&&(t=this.fromText(t).compute("id")),r.insertAfter(t),a.has("@hasContraction")&&r.contractions&&r.grow("@hasContraction+").contractions().expand(),r.delete(a),s){let d=r.docs[0],p=d[d.length-1];p.tags.has("Possessive")||(p.text+="'s",p.normal+="'s",p.tags.add("Possessive"))}if(c&&r.docs[0]&&(r.docs[0][0].pre=c),u&&r.docs[0]){let d=r.docs[0][r.docs[0].length-1];d.post.trim()||(d.post=u)}let h=r.toView(n).compute(["index","freeze","lexicon"]);if(h.world.compute.preTagger&&h.compute("preTagger"),h.compute("unfreeze"),e.tags&&h.terms().forEac
612h((d,p)=>{d.tagSafe(l[p])}),!h.docs[0]||!h.docs[0][0])return h;if(e.case){let d=o?Ktt:Ytt;h.docs[0][0].text=d(h.docs[0][0].text)}return h};RV.replace=function(t,e,n){if(t&&!e)return this.replaceWith(t,n);let r=this.match(t);return r.found?(this.soften(),r.replaceWith(e,n)):this};const Jtt=function(t,e){let n=t.length-1,r=t[n],i=t[n-e];i&&r&&(i.post+=r.post,i.post=i.post.replace(/ +([.?!,;:])/,"$1"),i.post=i.post.replace(/[,;:]+([.?!])/,"$1"))},Ztt=function(t,e){e.forEach(n=>{let[r,i,s]=n,o=s-i;t[r]&&(s===t[r].length&&s>1&&Jtt(t[r],o),t[r].splice(i,o))});for(let n=t.length-1;n>=0;n-=1)if(t[n].length===0&&(t.splice(n,1),n===t.length&&t[n-1])){let r=t[n-1],i=r[r.length-1];i&&(i.post=i.post.trimEnd())}return t},ent=function(t,e){return t=t.map(n=>{let[r]=n;return e[r]&&e[r].forEach(i=>{let s=i[2]-i[1];n[1]<=i[1]&&n[2]>=i[2]&&(n[2]-=s)}),n}),t.forEach((n,r)=>{if(n[1]===0&&n[2]==0)for(let i=r+1;i<t.length;i+=1)t[i][0]-=1,t[i][0]<0&&(t[i][0]=0)}),t=t.filter(n=>n[2]-n[1]>0),t=t.map(n=>(n[3]=null,n[4]=null,n)),t},aF={remove:function(t){const{indexN:e}=this.methods.one.pointer;this.uncache();let n=this.all(),r=this;t&&(n=this,r=this.match(t));let i=!n.ptrs;r.has("@hasContraction")&&r.contractions&&r.grow("@hasContraction").contractions().expand();let s=n.fullPointer,o=r.fullPointer.reverse(),a=Ztt(this.document,o),l=e(o);return s=ent(s,l),n.ptrs=s,n.document=a,n.compute("index"),i&&(n.ptrs=void 0),t?n.toView(s):(this.ptrs=[],n.none())}};aF.delete=aF.remove;const Uk={pre:function(t,e){return t===void 0&&this.found?this.docs[0][0].pre:(this.docs.forEach(n=>{let r=n[0];e===!0?r.pre+=t:r.pre=t}),this)},post:function(t,e){if(t===void 0){let n=this.docs[this.docs.length-1];return n[n.length-1].post}return this.docs.forEach(n=>{let r=n[n.length-1];e===!0?r.post+=t:r.post=t}),this},trim:function(){if(!this.found)return this;let t=this.docs,e=t[0][0];e.pre=e.pre.trimStart();let n=t[t.length-1],r=n[n.length-1];return r.post=r.post.trimEnd(),this},hyphenate:function(){return this.docs.forEach(t=>{t.forEach((e,n)=>{n!==0&&(e.pre=""),t[n+1]&&(e.post="-")})}),this},dehyphenate:function(){const t=/[-ââ]/;return this.docs.forEach(e=>{e.forEach(n=>{t.test(n.post)&&(n.post=" ")})}),this},toQuotations:function(t,e){return t=t||'"',e=e||'"',this.docs.forEach(n=>{n[0].pre=t+n[0].pre;let r=n[n.length-1];r.post=e+r.post}),this},toParentheses:function(t,e){return t=t||"(",e=e||")",this.docs.forEach(n=>{n[0].pre=t+n[0].pre;let r=n[n.length-1];r.post=e+r.post}),this}};Uk.deHyphenate=Uk.dehyphenate;Uk.toQuotation=Uk.toQuotations;const tnt=(t,e)=>t.normal<e.normal?-1:t.normal>e.normal?1:0,nnt=(t,e)=>{let n=t.normal.trim().length,r=e.normal.trim().length;return n<r?1:n>r?-1:0},rnt=(t,e)=>t.words<e.words?1:t.words>e.words?-1:0,int=(t,e)=>t[0]<e[0]?1:t[0]>e[0]?-1:t[1]>e[1]?1:-1,snt=function(t){let e={};return t.forEach(n=>{e[n.normal]=e[n.normal]||0,e[n.normal]+=1}),t.sort((n,r)=>{let i=e[n.normal],s=e[r.normal];return i<s?1:i>s?-1:0}),t},aN={alpha:tnt,length:nnt,wordCount:rnt,sequential:int,byFreq:snt},ont=new Set(["index","sequence","seq","sequential","chron","chronological"]),ant=new Set(["freq","frequency","topk","repeats"]),lnt=new Set(["alpha","alphabetical"]),cnt=function(t,e){let n=t.fullPointer;return n=n.sort((r,i)=>(r=t.update([r]),i=t.update([i]),e(r,i))),t.ptrs=n,t},unt=function(t){let{docs:e,pointer:n}=this;if(this.uncache(),typeof t=="function")return cnt(this,t);t=t||"alpha";let r=n||e.map((s,o)=>[o]),i=e.map((s,o)=>({index:o,words:s.length,normal:s.map(a=>a.machine||a.normal||"").join(" "),pointer:r[o]}));return ont.has(t)&&(t="sequential"),lnt.has(t)&&(t="alpha"),ant.has(t)?(i=aN.byFreq(i),this.update(i.map(s=>s.pointer))):typeof aN[t]=="function"?(i=i.sort(aN[t]),this.update(i.map(s=>s.pointer))):this},hnt=function(){let t=this.pointer||this.docs.map((e,n)=>[n]);return t=[].concat(t),t=t.reverse(),this._cache&&(this._cache=this._cache.reverse()),this.update(t)},dnt=function(){let t=new Set;return this.filter(n=>{let r=n.text("machine");return t.has(r)?!1:(t.add(r),!0)})},fnt={unique:dnt,reverse:hnt,sort:unt},pnt=t=>Object.prototype.toString.call(t)==="[object Array]",Y1e=function(t,e){if(t.length>0){let n=t[t.length-1],r=n[n.length-1];/ /.test(r.post)===!1&&(r.post+=" ")}return t=t.concat(e),t},mnt=function(t,e){if(t.document===e.document){let r=t.fullPointer.concat(e.fullPointer);return t.toView(r).compute("index")}return e.fullPointer.forEach(r=>{r[0]+=t.document.length}),t.document=Y1e(t.document,e.docs),t.all()},gnt={concat:function(t){if(typeof t=="string"){let e=this.fromText(t);if(!this.found||!this.ptrs)this.document=this.document.concat(e.document);else{let n=this.fullPointer,r=n[n.length-1][0];this.document.splice(r,0,...e.document)}return this.all().compute("index")}if(typeof t=="object"&&t.isView)return mnt(this,t);if(pnt(t)){let e=Y1e(this.document,t);return this.document=e,this.all()}return this}},ynt=function(){return this.ptrs=this.fullPointer,this},bnt=function(){let t=this.ptrs;return!t||t.length<1?this:(t=t.map(e=>e.slice(0,3)),this.ptrs=t,this)},vnt={harden:ynt,soften:bnt},xnt=Object.assign({},Ftt,mb,RV,aF,Uk,fnt,gnt,vnt),wnt=function(t){Object.assign(t.prototype,xnt)},Snt={id:function(t){let e=t.docs;for(let n=0;n<e.length;n+=1)for(let r=0;r<e[n].length;r+=1){let i=e[n][r];i.id=i.id||K1e(i)}}},knt={api:wnt,compute:Snt},Cnt=[{word:"@",out:["at"]},{word:"arent",out:["are","not"]},{word:"alot",out:["a","lot"]},{word:"brb",out:["be","right","back"]},{word:"cannot",out:["can","not"]},{word:"dun",out:["do","not"]},{word:"can't",out:["can","not"]},{word:"shan't",out:["should","not"]},{word:"won't",out:["will","not"]},{word:"that's",out:["that","is"]},{word:"what's",out:["what","is"]},{word:"let's",out:["let","us"]},{word:"dunno",out:["do","not","know"]},{word:"gonna",out:["going","to"]},{word:"gotta",out:["have","got","to"]},{word:"gimme",out:["give","me"]},{word:"outta",out:["out","of"]},{word:"tryna",out:["trying","to"]},{word:"gtg",out:["got","to","go"]},{word:"im",out:["i","am"]},{word:"imma",out:["I","will"]},{word:"imo",out:["in","my","opinion"]},{word:"irl",out:["in","real","life"]},{word:"ive",out:["i","have"]},{word:"rn",out:["right","now"]},{word:"tbh",out:["to","be","honest"]},{word:"wanna",out:["want","to"]},{word:"c'mere",out:["come","here"]},{word:"c'mon",out:["come","on"]},{word:"shoulda",out:["should","have"]},{word:"coulda",out:["coulda","have"]},{word:"woulda",out:["woulda","have"]},{word:"musta",out:["must","have"]},{word:"tis",out:["it","is"]},{word:"twas",out:["it","was"]},{word:"y'know",out:["you","know"]},{word:"ne'er",out:["never"]},{word:"o'er",out:["over"]},{after:"ll",out:["will"]},{after:"ve",out:["have"]},{after:"re",out:["are"]},{after:"m",out:["am"]},{before:"c",out:["ce"]},{before:"m",out:["me"]},{before:"n",out:["ne"]},{before:"qu",out:["que"]},{before:"s",out:["se"]},{before:"t",out:["tu"]},{word:"shouldnt",out:["should","not"]},{word:"couldnt",out:["could","not"]},{word:"wouldnt",out:["would","not"]},{word:"hasnt",out:["has","not"]},{word:"wasnt",out:["was","not"]},{word:"isnt",out:["is","not"]},{word:"cant",out:["can","not"]},{word:"dont",out:["do","not"]},{word:"wont",out:["will","not"]},{word:"howd",out:["how","did"]},{word:"whatd",out:["what","did"]},{word:"whend",out:["when","did"]},{word:"whered",out:["where","did"]}],su=!0,_nt={st:su,nd:su,rd:su,th:su,am:su,pm:su,max:su,"°":su,s:su,e:su,er:su,ère:su,ème:su},Tnt={one:{contractions:Cnt,numberSuffixes:_nt}},lN=function(t,e,n){let[r,i]=e;!n||n.length===0||(n=n.map((s,o)=>
612(s.implicit=s.text,s.machine=s.text,s.pre="",s.post="",s.text="",s.normal="",s.index=[r,i+o],s)),n[0]&&(n[0].pre=t[r][i].pre,n[n.length-1].post=t[r][i].post,n[0].text=t[r][i].text,n[0].normal=t[r][i].normal),t[r].splice(i,1,...n))},Ent=/'/,Ant=new Set(["what","how","when","where","why"]),Pnt=new Set(["be","go","start","think","need"]),Ont=new Set(["been","gone"]),Int=function(t,e){let n=t[e].normal.split(Ent)[0];if(Ant.has(n))return[n,"did"];if(t[e+1]){if(Ont.has(t[e+1].normal))return[n,"had"];if(Pnt.has(t[e+1].normal))return[n,"would"]}return null},Dnt=function(t,e){return t[e].normal==="ain't"||t[e].normal==="aint"?null:[t[e].normal.replace(/n't/,""),"not"]},LV=/'/,Mnt=/(e|é|aison|sion|tion)$/,Nnt=/(age|isme|acle|ege|oire)$/,Rnt=(t,e)=>{let n=t[e].normal.split(LV)[1];return n&&n.endsWith("e")?["la",n]:["le",n]},Lnt=(t,e)=>{let n=t[e].normal.split(LV)[1];return n&&Mnt.test(n)&&!Nnt.test(n)?["du",n]:n&&n.endsWith("s")?["des",n]:["de",n]},Bnt=(t,e)=>["je",t[e].normal.split(LV)[1]],cN={preJ:Bnt,preL:Rnt,preD:Lnt},Fnt=/^([0-9.]{1,4}[a-z]{0,2}) ?[-ââ] ?([0-9]{1,4}[a-z]{0,2})$/i,$nt=/^([0-9]{1,2}(:[0-9][0-9])?(am|pm)?) ?[-ââ] ?([0-9]{1,2}(:[0-9][0-9])?(am|pm)?)$/i,jnt=/^[0-9]{3}-[0-9]{4}$/,znt=function(t,e){let n=t[e],r=n.text.match(Fnt);return r!==null?n.tags.has("PhoneNumber")===!0||jnt.test(n.text)?null:[r[1],"to",r[2]]:(r=n.text.match($nt),r!==null?[r[1],"to",r[4]]:null)},Hnt=/^([+-]?[0-9][.,0-9]*)([a-z°²³µ/]+)$/,Unt=function(t,e,n){const r=n.model.one.numberSuffixes||{};let s=t[e].text.match(Hnt);if(s!==null){let o=s[2].toLowerCase().trim();return r.hasOwnProperty(o)?null:[s[1],o]}return null},Eee=/'/,Vnt=/^[0-9][^-ââ]*[-ââ].*?[0-9]/,Aee=function(t,e,n,r){let i=e.update();i.document=[t];let s=n+r;n>0&&(n-=1),t[s]&&(s+=1),i.ptrs=[[0,n,s]]},Pee={t:(t,e)=>Dnt(t,e),d:(t,e)=>Int(t,e)},Oee={j:(t,e)=>cN.preJ(t,e),l:(t,e)=>cN.preL(t,e),d:(t,e)=>cN.preD(t,e)},Wnt=function(t,e,n,r){for(let i=0;i<t.length;i+=1){let s=t[i];if(s.word===e.normal)return s.out;if(r!==null&&r===s.after)return[n].concat(s.out);if(n!==null&&n===s.before&&r&&r.length>2)return s.out.concat(r)}return null},uN=function(t,e){let n=e.fromText(t.join(" "));return n.compute(["id","alias"]),n.docs[0]},qnt=function(t,e){for(let n=e+1;n<5&&t[n];n+=1)if(t[n].normal==="been")return["there","has"];return["there","is"]},Gnt=t=>{let{world:e,document:n}=t;const{model:r,methods:i}=e;let s=r.one.contractions||[];n.forEach((o,a)=>{for(let l=o.length-1;l>=0;l-=1){let c=null,u=null;if(Eee.test(o[l].normal)===!0){let d=o[l].normal.split(Eee);c=d[0],u=d[1]}let h=Wnt(s,o[l],c,u);if(!h&&Pee.hasOwnProperty(u)&&(h=Pee[u](o,l,e)),!h&&Oee.hasOwnProperty(c)&&(h=Oee[c](o,l)),c==="there"&&u==="s"&&(h=qnt(o,l)),h){h=uN(h,t),lN(n,[a,l],h),Aee(n[a],t,l,h.length);continue}if(Vnt.test(o[l].normal)){h=znt(o,l),h&&(h=uN(h,t),lN(n,[a,l],h),i.one.setTag(h,"NumberRange",e),h[2]&&h[2].tags.has("Time")&&i.one.setTag([h[0]],"Time",e,null,"time-range"),Aee(n[a],t,l,h.length));continue}h=Unt(o,l,e),h&&(h=uN(h,t),lN(n,[a,l],h),i.one.setTag([h[1]],"Unit",e,null,"contraction-unit"))}})},Knt={contractions:Gnt},Ynt={model:Tnt,compute:Knt,hooks:["contractions"]},Iee=function(t){const e=t.world,{model:n,methods:r}=t.world,i=r.one.setTag,{frozenLex:s}=n.one,o=n.one._multiCache||{};t.docs.forEach(a=>{for(let l=0;l<a.length;l+=1){let c=a[l],u=c.machine||c.normal;if(o[u]!==void 0&&a[l+1]){let h=l+o[u]-1;for(let d=h;d>l;d-=1){let p=a.slice(l,d+1),g=p.map(y=>y.machine||y.normal).join(" ");if(s.hasOwnProperty(g)===!0){i(p,s[g],e,!1,"1-frozen-multi-lexicon"),p.forEach(y=>y.frozen=!0);continue}}}if(s[u]!==void 0&&s.hasOwnProperty(u)){i([c],s[u],e,!1,"1-freeze-lexicon"),c.frozen=!0;continue}}})},Qnt=function(t){return t.docs.forEach(e=>{e.forEach(n=>{delete n.frozen})}),t},Xnt={frozen:Iee,freeze:Iee,unfreeze:Qnt},Dee=t=>"\x1B[34m"+t+"\x1B[0m",Mee=t=>"\x1B[3m\x1B[2m"+t+"\x1B[0m",Nee=function(t){t.docs.forEach(e=>{console.log(Dee(` 613 ââââââââââ`)),e.forEach(n=>{let r=` ${Mee("â")} `,i=n.implicit||n.text||"-";n.frozen===!0?r+=`${Dee(i)} âï¸`:r+=Mee(i),console.log(r)})})},Jnt={compute:Xnt,mutate:t=>{const e=t.methods.one;e.termMethods.isFrozen=n=>n.frozen===!0,e.debug.freeze=Nee,e.debug.frozen=Nee},api:function(t){t.prototype.freeze=function(){return this.docs.forEach(e
613=>{e.forEach(n=>{n.frozen=!0})}),this},t.prototype.unfreeze=function(){this.compute("unfreeze")},t.prototype.isFrozen=function(){return this.match("@isFrozen+")}},hooks:["freeze"]},Znt=function(t,e,n){const{model:r,methods:i}=n,s=i.one.setTag,o=r.one._multiCache||{},{lexicon:a}=r.one||{};let l=t[e],c=l.machine||l.normal;if(o[c]!==void 0&&t[e+1]){let u=e+o[c]-1;for(let h=u;h>e;h-=1){let d=t.slice(e,h+1);if(d.length<=1)return!1;let p=d.map(g=>g.machine||g.normal).join(" ");if(a.hasOwnProperty(p)===!0){let g=a[p];return s(d,g,n,!1,"1-multi-lexicon"),g&&g.length===2&&(g[0]==="PhrasalVerb"||g[1]==="PhrasalVerb")&&s([d[1]],"Particle",n,!1,"1-phrasal-particle"),!0}}return!1}return null},Ree=/^(under|over|mis|re|un|dis|semi|pre|post)-?/,ert=new Set(["Verb","Infinitive","PastTense","Gerund","PresentTense","Adjective","Participle"]),trt=function(t,e,n){const{model:r,methods:i}=n,s=i.one.setTag,{lexicon:o}=r.one;let a=t[e],l=a.machine||a.normal;if(o[l]!==void 0&&o.hasOwnProperty(l))return s([a],o[l],n,!1,"1-lexicon"),!0;if(a.alias){let c=a.alias.find(u=>o.hasOwnProperty(u));if(c)return s([a],o[c],n,!1,"1-lexicon-alias"),!0}if(Ree.test(l)===!0){let c=l.replace(Ree,"");if(o.hasOwnProperty(c)&&c.length>3&&ert.has(o[c]))return s([a],o[c],n,!1,"1-lexicon-prefix"),!0}return null},nrt=function(t){const e=t.world;t.docs.forEach(n=>{for(let r=0;r<n.length;r+=1)if(n[r].tags.size===0){let i=null;i=i||Znt(n,r,e),i=i||trt(n,r,e)}})},rrt={lexicon:nrt},irt=function(t){let e={},n={};return Object.keys(t).forEach(r=>{let i=t[r];r=r.toLowerCase().trim(),r=r.replace(/'s\b/,"");let s=r.split(/ /);s.length>1&&(n[s[0]]===void 0||s.length>n[s[0]])&&(n[s[0]]=s.length),e[r]=e[r]||i}),delete e[""],delete e[null],delete e[" "],{lex:e,_multi:n}},srt={one:{expandLexicon:irt}},ort=function(t,e=!1){const n=this.world(),{methods:r,model:i}=n;if(!t)return;if(Object.keys(t).forEach(a=>{typeof t[a]=="string"&&t[a].startsWith("#")&&(t[a]=t[a].replace(/^#/,""))}),e===!0){let{lex:a,_multi:l}=r.one.expandLexicon(t,n);Object.assign(i.one._multiCache,l),Object.assign(i.one.frozenLex,a);return}if(r.two.expandLexicon){let{lex:a,_multi:l}=r.two.expandLexicon(t,n);Object.assign(i.one.lexicon,a),Object.assign(i.one._multiCache,l)}let{lex:s,_multi:o}=r.one.expandLexicon(t,n);Object.assign(i.one.lexicon,s),Object.assign(i.one._multiCache,o)},art={addWords:ort},lrt={one:{lexicon:{},_multiCache:{},frozenLex:{}}},crt={model:lrt,methods:srt,compute:rrt,lib:art,hooks:["lexicon"]},urt=function(t,e){const{methods:n,model:r}=e;return n.one.tokenize.splitTerms(t,r).map(s=>n.one.tokenize.splitWhitespace(s,r)).map(s=>s.text.toLowerCase())},Q1e=function(t,e){let n=[{}],r=[null],i=[0],s=[],o=0;t.forEach(function(a){let l=0,c=urt(a,e);for(let u=0;u<c.length;u++){let h=c[u];n[l]&&n[l].hasOwnProperty(h)?l=n[l][h]:(o++,n[l][h]=o,n[o]={},l=o,r[o]=null)}r[l]=[c.length]});for(let a in n[0])o=n[0][a],i[o]=0,s.push(o);for(;s.length;){let a=s.shift(),l=Object.keys(n[a]);for(let c=0;c<l.length;c+=1){let u=l[c],h=n[a][u];for(s.push(h),o=i[a];o>0&&!n[o].hasOwnProperty(u);)o=i[o];if(n.hasOwnProperty(o)){let d=n[o][u];i[h]=d,r[d]&&(r[h]=r[h]||[],r[h]=r[h].concat(r[d]))}else i[h]=0}}return{goNext:n,endAs:r,failTo:i}},hrt=function(t,e,n){let r=0,i=[];for(let s=0;s<t.length;s++){let o=t[s][n.form]||t[s].normal;for(;r>0&&(e.goNext[r]===void 0||!e.goNext[r].hasOwnProperty(o));)r=e.failTo[r]||0;if(e.goNext[r].hasOwnProperty(o)&&(r=e.goNext[r][o],e.endAs[r])){let a=e.endAs[r];for(let l=0;l<a.length;l++){let c=a[l],u=t[s-c+1],[h,d]=u.index;i.push([h,d,d+c,u.id])}}}return i},drt=function(t,e){for(let n=0;n<t.length;n+=1)if(e.has(t[n])===!0)return!1;return!0},frt=function(t,e,n){let r=[];n.form=n.form||"normal";let i=t.docs;if(!e.goNext||!e.goNext[0])return console.error("Compromise invalid lookup trie"),t.none();let s=Object.keys(e.goNext[0]);for(let o=0;o<i.length;o++){if(t._cache&&t._cache[o]&&drt(s,t._cache[o])===!0)continue;let a=i[o],l=hrt(a,e,n);l.length>0&&(r=r.concat(l))}return t.update(r)},prt=t=>Object.prototype.toString.call(t)==="[object Object]";function mrt(t){t.prototype.lookup=function(e,n={}){if(!e)return this.none();typeof e=="string"&&(e=[e]);let r=prt(e)?e:Q1e(e,this.world),i=frt(this,r,n);return i=i.settle(),i}}const hN=(t,e)=>{for(let n=t.length-1;n>=0;n-=1)if(t[n]!==e)return t=t.slice(0,n+1),t;return t},grt=function(t){return t.goNext=t.goNext.map(e=>{if(Object.keys(e).length!==0)return e}),t.goNext=hN(t.goNext,void 0),t.failTo=hN(t.failTo,0),t.endAs=hN(t.endAs,null),t},lF={buildTrie:function(t){const e=Q1e(t,this.world());return grt(e)}};lF.compile=lF.buildTrie;const yrt={api:mrt,lib:lF},Lee=function(t,e){return e&&t.forEach(n=>{let r=n[0];e[r]&&(n[0]=e[r][0],n[1]+=e[r][1],n[2]+=e[r][1])}),t},X1e=function(t,e){let{ptrs:n,byGroup:r}=t;return n=Lee(n,e),Object.keys(r).forEach(i=>
613{r[i]=Lee(r[i],e)}),{ptrs:n,byGroup:r}},f_=function(t,e,n){const r=n.methods.one;return typeof t=="number"&&(t=String(t)),typeof t=="string"&&(t=r.killUnicode(t,n),t=r.parseMatch(t,e,n)),t},J1e=t=>Object.prototype.toString.call(t)==="[object Object]",p_=t=>t&&J1e(t)&&t.isView===!0,m_=t=>t&&J1e(t)&&t.isNet===!0,brt=function(t,e,n){const r=this.methods.one;if(p_(t))return this.intersection(t);if(m_(t))return this.sweep(t,{tagger:!1}).view.settle();t=f_(t,n,this.world);let i={regs:t,group:e},s=r.match(this.docs,i,this._cache),{ptrs:o,byGroup:a}=X1e(s,this.fullPointer),l=this.toView(o);return l._groups=a,l},vrt=function(t,e,n){const r=this.methods.one;if(p_(t))return this.intersection(t).eq(0);if(m_(t))return this.sweep(t,{tagger:!1,matchOne:!0}).view;t=f_(t,n,this.world);let i={regs:t,group:e,justOne:!0},s=r.match(this.docs,i,this._cache),{ptrs:o,byGroup:a}=X1e(s,this.fullPointer),l=this.toView(o);return l._groups=a,l},xrt=function(t,e,n){const r=this.methods.one;if(p_(t))return this.intersection(t).fullPointer.length>0;if(m_(t))return this.sweep(t,{tagger:!1}).view.found;t=f_(t,n,this.world);let i={regs:t,group:e,justOne:!0};return r.match(this.docs,i,this._cache).ptrs.length>0},wrt=function(t,e,n){const r=this.methods.one;if(p_(t))return this.filter(l=>l.intersection(t).found);if(m_(t)){let l=this.sweep(t,{tagger:!1}).view.settle();return this.if(l)}t=f_(t,n,this.world);let i={regs:t,group:e,justOne:!0},s=this.fullPointer,o=this._cache||[];s=s.filter((l,c)=>{let u=this.update([l]);return r.match(u.docs,i,o[c]).ptrs.length>0});let a=this.update(s);return this._cache&&(a._cache=s.map(l=>o[l[0]])),a},Srt=function(t,e,n){const{methods:r}=this,i=r.one;if(p_(t))return this.filter(a=>!a.intersection(t).found);if(m_(t)){let a=this.sweep(t,{tagger:!1}).view.settle();return this.ifNo(a)}t=f_(t,n,this.world);let s=this._cache||[],o=this.filter((a,l)=>{let c={regs:t,group:e,justOne:!0};return i.match(a.docs,c,s[l]).ptrs.length===0});return this._cache&&(o._cache=o.ptrs.map(a=>s[a[0]])),o},krt={matchOne:vrt,match:brt,has:xrt,if:wrt,ifNo:Srt},Crt=function(t,e,n){const{indexN:r}=this.methods.one.pointer;let i=[],s=r(this.fullPointer);Object.keys(s).forEach(a=>{let l=s[a].sort((c,u)=>c[1]>u[1]?1:-1)[0];l[1]>0&&i.push([l[0],0,l[1]])});let o=this.toView(i);return t?o.match(t,e,n):o},_rt=function(t,e,n){const{indexN:r}=this.methods.one.pointer;let i=[],s=r(this.fullPointer),o=this.document;Object.keys(s).forEach(l=>{let c=s[l].sort((d,p)=>d[1]>p[1]?-1:1)[0],[u,,h]=c;h<o[u].length&&i.push([u,h,o[u].length])});let a=this.toView(i);return t?a.match(t,e,n):a},Trt=function(t,e,n){typeof t=="string"&&(t=this.world.methods.one.parseMatch(t,n,this.world)),t[t.length-1].end=!0;let r=this.fullPointer;return this.forEach((i,s)=>{let o=i.before(t,e);if(o.found){let a=o.terms();r[s][1]-=a.length,r[s][3]=a.docs[0][0].id}}),this.update(r)},Ert=function(t,e,n){typeof t=="string"&&(t=this.world.methods.one.parseMatch(t,n,this.world)),t[0].start=!0;let r=this.fullPointer;return this.forEach((i,s)=>{let o=i.after(t,e);if(o.found){let a=o.terms();r[s][2]+=a.length,r[s][4]=null}}),this.update(r)},Art=function(t,e,n){return this.growRight(t,e,n).growLeft(t,e,n)},Prt={before:Crt,after:_rt,growLeft:Trt,growRight:Ert,grow:Art},Z1e=function(t,e){return[t[0],t[1],e[2]]},Ort=function(t){return Object.prototype.toString.call(t)==="[object Array]"},BV=(t,e,n)=>typeof t=="string"||Ort(t)?e.match(t,n):t||e.none(),FV=function(t,e){let[n,r,i]=t;return e.document[n]&&e.document[n][r]&&(t[3]=t[3]||e.document[n][r].id,e.document[n][i-1]&&(t[4]=t[4]||e.document[n][i-1].id)),t},Hx={};Hx.splitOn=function(t,e){const{splitAll:n}=this.methods.one.pointer;let r=BV(t,this,e).fullPointer,i=n(this.fullPointer,r),s=[];return i.forEach(o=>{s.push(o.passthrough),s.push(o.before),s.push(o.match),s.push(o.after)}),s=s.filter(o=>o),s=s.map(o=>FV(o,this)),this.update(s)};Hx.splitBefore=function(t,e){const{splitAll:n}=this.methods.one.pointer;let r=BV(t,this,e).fullPointer,i=n(this.fullPointer,r);for(let o=0;o<i.length;o+=1)!i[o].after&&i[o+1]&&i[o+1].before&&i[o].match&&i[o].match[0]===i[o+1].before[0]&&(i[o].after=i[o+1].before,delete i[o+1].before);let s=[];
613return i.forEach(o=>{s.push(o.passthrough),s.push(o.before),o.match&&o.after?s.push(Z1e(o.match,o.after)):s.push(o.match)}),s=s.filter(o=>o),s=s.map(o=>FV(o,this)),this.update(s)};Hx.splitAfter=function(t,e){const{splitAll:n}=this.methods.one.pointer;let r=BV(t,this,e).fullPointer,i=n(this.fullPointer,r),s=[];return i.forEach(o=>{s.push(o.passthrough),o.before&&o.match?s.push(Z1e(o.before,o.match)):(s.push(o.before),s.push(o.match)),s.push(o.after)}),s=s.filter(o=>o),s=s.map(o=>FV(o,this)),this.update(s)};Hx.split=Hx.splitAfter;const Irt=function(t,e){return!t||!e||t[0]!==e[0]?!1:t[2]===e[1]},Bee=function(t,e,n){const r=t.world,i=r.methods.one.parseMatch;e=e||".$",n=n||"^.";let s=i(e,{},r),o=i(n,{},r);s[s.length-1].end=!0,o[0].start=!0;let a=t.fullPointer,l=[a[0]];for(let c=1;c<a.length;c+=1){let u=l[l.length-1],h=a[c],d=t.update([u]),p=t.update([h]);Irt(u,h)&&d.has(s)&&p.has(o)?l[l.length-1]=[u[0],u[1],h[2],u[3],h[4]]:l.push(h)}return t.update(l)},Drt={joinIf:function(t,e){return Bee(this,t,e)},join:function(){return Bee(this)}},Nd=Object.assign({},krt,Prt,Hx,Drt);Nd.lookBehind=Nd.before;Nd.lookBefore=Nd.before;Nd.lookAhead=Nd.after;Nd.lookAfter=Nd.after;Nd.notIf=Nd.ifNo;const Mrt=function(t){Object.assign(t.prototype,Nd)},Nrt=/(?:^|\s)([![^]*(?:<[^<]*>)?\/.*?[^\\/]\/[?\]+*$~]*)(?:\s|$)/,Rrt=/([!~[^]*(?:<[^<]*>)?\([^)]+[^\\)]\)[?\]+*$~]*)(?:\s|$)/,Lrt=/ /g,Brt=t=>/^[![^]*(<[^<]*>)?\(/.test(t)&&/\)[?\]+*$~]*$/.test(t),Fee=t=>/^[![^]*(<[^<]*>)?\//.test(t)&&/\/[?\]+*$~]*$/.test(t),$ee=function(t){return t=t.map(e=>e.trim()),t=t.filter(e=>e),t},Frt=function(t){let e=t.split(Nrt),n=[];e.forEach(i=>{if(Fee(i)){n.push(i);return}n=n.concat(i.split(Rrt))}),n=$ee(n);let r=[];return n.forEach(i=>{Brt(i)||Fee(i)?r.push(i):r=r.concat(i.split(Lrt))}),r=$ee(r),r},jee=/\{([0-9]+)?(, *[0-9]*)?\}/,zee=/&&/,$rt=new RegExp(/^<\s*(\S+)\s*>/),Hee=t=>t.charAt(0).toUpperCase()+t.substring(1),Qu=t=>t.charAt(t.length-1),ou=t=>t.charAt(0),s2=t=>t.substring(1),o2=t=>t.substring(0,t.length-1),WS=function(t){return t=s2(t),t=o2(t),t},eye=function(t,e){let n={};for(let r=0;r<2;r+=1){if(Qu(t)==="$"&&(n.end=!0,t=o2(t)),ou(t)==="^"&&(n.start=!0,t=s2(t)),Qu(t)==="?"&&(n.optional=!0,t=o2(t)),(ou(t)==="["||Qu(t)==="]")&&(n.group=null,ou(t)==="["&&(n.groupStart=!0),Qu(t)==="]"&&(n.groupEnd=!0),t=t.replace(/^\[/,""),t=t.replace(/\]$/,""),ou(t)==="<")){const i=$rt.exec(t);i.length>=2&&(n.group=i[1],t=t.replace(i[0],""))}if(Qu(t)==="+"&&(n.greedy=!0,t=o2(t)),t!=="*"&&Qu(t)==="*"&&t!=="\\*"&&(n.greedy=!0,t=o2(t)),ou(t)==="!"&&(n.negative=!0,t=s2(t)),ou(t)==="~"&&Qu(t)==="~"&&t.length>2&&(t=WS(t),n.fuzzy=!0,n.min=e.fuzzy||.85,/\(/.test(t)===!1))return n.word=t,n;if(ou(t)==="/"&&Qu(t)==="/")return t=WS(t),e.caseSensitive&&(n.use="text"),n.regex=new RegExp(t),n;if(jee.test(t)===!0&&(t=t.replace(jee,(i,s,o)=>(o===void 0?(n.min=Number(s),n.max=Number(s)):(o=o.replace(/, */,""),s===void 0?(n.min=0,n.max=Number(o)):(n.min=Number(s),n.max=Number(o||999))),n.greedy=!0,n.min||(n.optional=!0),""))),ou(t)==="("&&Qu(t)===")"){zee.test(t)?(n.choices=t.split(zee),n.operator="and"):(n.choices=t.split("|"),n.operator="or"),n.choices[0]=s2(n.choices[0]);let i=n.choices.length-1;n.choices[i]=o2(n.choices[i]),n.choices=n.choices.map(s=>s.trim()),n.choices=n.choices.filter(s=>s),n.choices=n.choices.map(s=>s.split(/ /g).map(o=>eye(o,e))),t=""}if(ou(t)==="{"&&Qu(t)==="}"){if(t=WS(t),n.root=t,/\//.test(t)){let i=n.root.split(/\//);n.root=i[0],n.pos=i[1],n.pos==="adj"&&(n.pos="Adjective"),n.pos=n.pos.charAt(0).toUpperCase()+n.pos.substr(1).toLowerCase(),i[2]!==void 0&&(n.sense=i[2])}return n}if(ou(t)==="<"&&Qu(t)===">")return t=WS(t),n.chunk=Hee(t),n.greedy=!0,n;if(ou(t)==="%"&&Qu(t)==="%")return t=WS(t),n.switch=t,n}return ou(t)==="#"?(n.tag=s2(t),n.tag=Hee(n.tag),n):ou(t)==="@"?(n.method=s2(t),n):t==="."?(n.anything=!0,n):t==="*"?(n.anything=!0,n.greedy=!0,n.optional=!0,n):(t&&(t=t.replace("\\*","*"),t=t.replace("\\.","."),e.caseSensitive?n.use="text":t=t.toLowerCase(),n.word=t),n)},jrt=/[a-z0-9][-ââ][a-z]/i,zrt=function(t,e){let n=e.model.one.prefixes;for(let r=t.length-1;r>=0;r-=1){let i=t[r];
613if(i.word&&jrt.test(i.word)){let s=i.word.split(/[-ââ]/g);if(n.hasOwnProperty(s[0]))continue;s=s.filter(o=>o).reverse(),t.splice(r,1),s.forEach(o=>{let a=Object.assign({},i);a.word=o,t.splice(r,0,a)})}}return t},Uee=function(t,e){let{all:n}=e.methods.two.transform.verb||{},r=t.root;return n?n(r,e.model):[]},Vee=function(t,e){let{all:n}=e.methods.two.transform.noun||{};return n?n(t.root,e.model):[t.root]},Wee=function(t,e){let{all:n}=e.methods.two.transform.adjective||{};return n?n(t.root,e.model):[t.root]},Hrt=function(t,e){return t=t.map(n=>{if(n.root)if(e.methods.two&&e.methods.two.transform){let r=[];n.pos?n.pos==="Verb"?r=r.concat(Uee(n,e)):n.pos==="Noun"?r=r.concat(Vee(n,e)):n.pos==="Adjective"&&(r=r.concat(Wee(n,e))):(r=r.concat(Uee(n,e)),r=r.concat(Vee(n,e)),r=r.concat(Wee(n,e))),r=r.filter(i=>i),r.length>0&&(n.operator="or",n.fastOr=new Set(r))}else n.machine=n.root,delete n.id,delete n.root;return n}),t},Urt=function(t){let e=0,n=null;for(let r=0;r<t.length;r++){const i=t[r];i.groupStart===!0&&(n=i.group,n===null&&(n=String(e),e+=1)),n!==null&&(i.group=n),i.groupEnd===!0&&(n=null)}return t},Vrt=function(t){return t.map(e=>{if(e.choices!==void 0){if(e.operator!=="or"||e.fuzzy===!0)return e;e.choices.every(r=>{if(r.length!==1)return!1;let i=r[0];return i.fuzzy===!0||i.start||i.end?!1:i.word!==void 0&&i.negative!==!0&&i.optional!==!0&&i.method!==!0})===!0&&(e.fastOr=new Set,e.choices.forEach(r=>{e.fastOr.add(r[0].word)}),delete e.choices)}return e})},Wrt=function(t){return t.map(e=>(e.fuzzy&&e.choices&&e.choices.forEach(n=>{n.length===1&&n[0].word&&(n[0].fuzzy=!0,n[0].min=e.min)}),e))},qrt=function(t){return t=Urt(t),t=Vrt(t),t=Wrt(t),t},Grt=function(t,e,n){if(t==null||t==="")return[];e=e||{},typeof t=="number"&&(t=String(t));let r=Frt(t);return r=r.map(i=>eye(i,e)),r=zrt(r,n),r=Hrt(r,n),r=qrt(r),r},Krt=function(t,e){for(let n of e)if(t.has(n))return!0;return!1},Yrt=function(t,e){for(let n=0;n<t.length;n+=1){let r=t[n];if(!(r.optional===!0||r.negative===!0||r.fuzzy===!0)){if(r.word!==void 0&&e.has(r.word)===!1||r.tag!==void 0&&e.has("#"+r.tag)===!1)return!0;if(r.fastOr&&Krt(r.fastOr,e)===!1)return!1}}return!1},Qrt=function(t,e){let n=t.length,r=e.length;if(n===0)return r;if(r===0)return n;let i=(r>n?r:n)+1;if(Math.abs(n-r)>(i||100))return i||100;let s=[];for(let d=0;d<i;d++)s[d]=[d],s[d].length=i;for(let d=0;d<i;d++)s[0][d]=d;let o,a,l,c,u,h;for(let d=1;d<=n;++d)for(a=t[d-1],o=1;o<=r;++o){if(d===o&&s[d][o]>4)return n;l=e[o-1],c=a===l?0:1,u=s[d-1][o]+1,(h=s[d][o-1]+1)<u&&(u=h),(h=s[d-1][o-1]+c)<u&&(u=h),d>1&&o>1&&a===e[o-2]&&t[d-2]===l&&(h=s[d-2][o-2]+c)<u?s[d][o]=h:s[d][o]=u}return s[n][r]},Xrt=function(t,e,n=3){if(t===e)return 1;if(t.length<n||e.length<n)return 0;const r=Qrt(t,e);let i=Math.max(t.length,e.length);return 1-(i===0?0:r/i)},Jrt=/([\u0022\uFF02\u0027\u201C\u2018\u201F\u201B\u201E\u2E42\u201A\u00AB\u2039\u2035\u2036\u2037\u301D\u0060\u301F])/,Zrt=/([\u0022\uFF02\u0027\u201D\u2019\u00BB\u203A\u2032\u2033\u2034\u301E\u00B4])/,qee=/^[-ââ]$/,Gee=/ [-ââ]{1,3} /,sf=(t,e)=>t.post.indexOf(e)!==-1,Vk={hasQuote:t=>Jrt.test(t.pre)||Zrt.test(t.post),hasComma:t=>sf(t,","),hasPeriod:t=>sf(t,".")===!0&&sf(t,"...")===!1,hasExclamation:t=>sf(t,"!"),hasQuestionMark:t=>sf(t,"?")||sf(t,"¿"),hasEllipses:t=>sf(t,"..")||sf(t,"â¦"),hasSemicolon:t=>sf(t,";"),hasColon:t=>
613sf(t,":"),hasSlash:t=>/\//.test(t.text),hasHyphen:t=>qee.test(t.post)||qee.test(t.pre),hasDash:t=>Gee.test(t.post)||Gee.test(t.pre),hasContraction:t=>!!t.implicit,isAcronym:t=>t.tags.has("Acronym"),isKnown:t=>t.tags.size>0,isTitleCase:t=>/^\p{Lu}[a-z'\u00C0-\u00FF]/u.test(t.text),isUpperCase:t=>/^\p{Lu}+$/u.test(t.text)};Vk.hasQuotation=Vk.hasQuote;let Pa=function(){};const eit=function(t,e,n,r){if(e.anything===!0)return!0;if(e.start===!0&&n!==0||e.end===!0&&n!==r-1)return!1;if(e.id!==void 0&&e.id===t.id)return!0;if(e.word!==void 0)return e.use?e.word===t[e.use]:t.machine!==null&&t.machine===e.word||t.alias!==void 0&&t.alias.hasOwnProperty(e.word)||e.fuzzy===!0&&(e.word===t.root||Xrt(e.word,t.normal)>=e.min)||t.alias&&t.alias.some(i=>i===e.word)?!0:e.word===t.text||e.word===t.normal;if(e.tag!==void 0)return t.tags.has(e.tag)===!0;if(e.method!==void 0)return typeof Vk[e.method]=="function"&&Vk[e.method](t)===!0;if(e.pre!==void 0)return t.pre&&t.pre.includes(e.pre);if(e.post!==void 0)return t.post&&t.post.includes(e.post);if(e.regex!==void 0){let i=t.normal;return e.use&&(i=t[e.use]),e.regex.test(i)}if(e.chunk!==void 0)return t.chunk===e.chunk;if(e.switch!==void 0)return t.switch===e.switch;if(e.machine!==void 0)return t.normal===e.machine||t.machine===e.machine||t.root===e.machine;if(e.sense!==void 0)return t.sense===e.sense;if(e.fastOr!==void 0){if(e.pos&&!t.tags.has(e.pos))return null;let i=t.root||t.implicit||t.machine||t.normal;return e.fastOr.has(i)||e.fastOr.has(t.text)}return e.choices!==void 0?e.operator==="and"?e.choices.every(i=>Pa(t,i,n,r)):e.choices.some(i=>Pa(t,i,n,r)):!1};Pa=function(t,e,n,r){let i=eit(t,e,n,r);return e.negative===!0?!i:i};const tit=function(t,e){let n=Object.assign({},t.regs[t.r],{start:!1,end:!1}),r=t.t;for(;t.t<t.terms.length;t.t+=1){if(e&&Pa(t.terms[t.t],e,t.start_i+t.t,t.phrase_length))return t.t;let i=t.t-r+1;if(n.max!==void 0&&i===n.max)return t.t;if(Pa(t.terms[t.t],n,t.start_i+t.t,t.phrase_length)===!1)return n.min!==void 0&&i<n.min?null:t.t}return t.t},nit=function(t,e){let n=t.t;if(!e)return t.terms.length;for(;n<t.terms.length;n+=1)if(Pa(t.terms[n],e,t.start_i+n,t.phrase_length)===!0)return n;return null},rit=function(t,e){if(t.end===!0&&t.greedy===!0&&e.start_i+e.t<e.phrase_length-1){let n=Object.assign({},t,{end:!1});if(Pa(e.terms[e.t],n,e.start_i+e.t,e.phrase_length)===!0)return!0}return!1},GO=function(t,e){return t.groups[t.inGroup]||(t.groups[t.inGroup]={start:e,length:0}),t.groups[t.inGroup]},iit=function(t){let{regs:e}=t,n=e[t.r],r=nit(t,e[t.r+1]);if(r===null||r===0||n.min!==void 0&&r-t.t<n.min)return null;if(n.max!==void 0&&r-t.t>n.max)return t.t=t.t+n.max,!0;if(t.hasGroup===!0){const i=GO(t,t.t);i.length=r-t.t}return t.t=r,!0},sit=function(t){return Object.prototype.toString.call(t)==="[object Array]"},tye=function(t,e=0){let n=t.regs[t.r],r=!1;for(let i=0;i<n.choices.length;i+=1){let s=n.choices[i];if(!sit(s))return!1;if(r=s.every((o,a)=>{let l=0,c=t.t+a+e+l;if(t.terms[c]===void 0)return!1;let u=Pa(t.terms[c],o,c+t.start_i,t.phrase_length);if(u===!0&&o.greedy===!0)for(let h=1;h<t.terms.length;h+=1){let d=t.terms[c+h];if(d)if(Pa(d,o,t.start_i+h,t.phrase_length)===!0)l+=1;else break}return e+=l,u}),r){e+=s.length;break}}return r&&n.greedy===!0?tye(t,e):e},oit=function(t){let e=0;return t.regs[t.r].choices.every(i=>{let s=i.every((o,a)=>{let l=t.t+a;return t.terms[l]===void 0?!1:Pa(t.terms[l],o,l,t.phrase_length)});return s===!0&&i.length>e&&(e=i.length),s})===!0?e:!1},ait=function(t){const{regs:e}=t;let n=e[t.r],r=tye(t);if(r){if(n.negative===!0)return null;if(t.hasGroup===!0){const i=GO(t,t.t);i.length+=r}if(n.end===!0){let i=t.phrase_length;if(t.t+t.start_i+r!==i)return null}return t.t+=r,!0}else if(!n.optional)return null;return!0},lit=function(t){const{regs:e}=t;let n=e[t.r],r=oit(t);if(r){if(n.negative===!0)return null;if(t.hasGroup===!0){const i=GO(t,t.t);i.length+=r}if(n.end===!0){let i=t.phrase_length-1;if(t.t+t.start_i!==i)return null}return t.t+=r,!0}else if(!n.optional)return null;return!0},cit=function(t,e,n){let r=0;for(let i=t.t;i<t.terms.length;i+=1){let s=Pa(t.terms[i],e,t.start_i+t.t,t.phrase_length);if(s||n&&(s=Pa(t.terms[i],n,t.start_i+t.t,t.phrase_length),s)||(r+=1,e.max!==void 0&&r===e.max))break}return r===0||e.min&&e.min>r?!1:(t.t+=r,!0)},uit=function(t){const{regs:e}=t;let n=e[t.r],r=Object.assign({},n);if(r.negative=!1,Pa(t.terms[t.t],r,t.start_i+t.t,t.phrase_length))return!1;if(n.optional){let s=e[t.r+1];s&&(Pa(t.terms[t.t],s,t.start_i+t.t,t.phrase_length)?t.r+=1:s.optional&&e[t.r+2]&&Pa(t.terms[t.t],e[t.r+2],t.start_i+t.t,t.phrase_length)&&(t.r+=2))}return n.greedy?cit(t,r,e[t.r+1]):(t.t+=1,!0)},hit=function(t){const{regs:e}=t;let n=e[t.r],r=t.terms[t.t],i=Pa(r,e[t.r+1],t.start_i+t.t,t.phrase_length);if(n.negative||i){let s=t.terms[t.t+1];(!s||!Pa(s,e[t.r+1],t.start_i+t.t,t.phrase_length))&&(t.r+=1)}},dit=function(t){const{regs:e,phrase_length:n}=t;let r=e[t.r];return t.t=tit(t,e[t.r+1]),t.t===null||r.min&&r.min>t.t||r.end===!0&&t.start_i+t.t!==n?null:!0},fit=function(t){let e=t.terms[t.t],n=t.regs[t.r];if(e.implicit&&t.terms[t.t+1]){if(!t.terms[t.t+1].implicit)return;n.word===e.normal&&(t.t+=1),n.method==="hasContraction"&&(t.t+=1)}},pit=function(t,e){let n=t.regs[t.r];const r=GO(t,e);t.t>1&&n.greedy?r.length+=t.t-e:r.length++},dN=function(t){const{regs:e}=t;let n=e[t.r],r=t.terms[t.t],i=t.t;return n.optional&&e[t.r+1]&&n.negative?!0:(n.optional&&e[t.r+1]&&hit(t),r.implicit&&t.terms[t.t+1]&&fit(t),t.t+=1,n.end===!0&&t.t!==t.terms.length&&n.greedy!==!0||n.greedy===!0&&!dit(t)?null:(t.hasGroup===!0&&pit(t,i),!0))},$V=function(t,e,n,r){if(t.length===0||e.length===0)return null;let i={t:0,terms:t,r:0,regs:e,groups:{},start_i:n,phrase_length:r,inGroup:null};for(;i.r<e.length;i.r+=1){let a=e[i.r];if(i.hasGroup=!!a.group,i.hasGroup===!0?i.inGroup=a.group:i.inGroup=null,!i.terms[i.t]){if(e.slice(i.r).some(u=>!u.optional)===!1)break;return null}if(a.anything===!0&&a.greedy===!0){if(!iit(i))return null;continue}if(a.choices!==void 0&&a.operator==="or"){if(!ait(i))return null;continue}if(a.choices!==void 0&&a.operator==="and"){if(!lit(i))return null;continue}if(a.anything===!0){if(a.negative&&a.anything||!dN(i))return null;continue}if(rit(a,i)===!0){if(!dN(i))return null;continue}if(a.negative){if(!uit(i))return null;continue}if(Pa(i.terms[i.t],a,i.start_i+i.t,i.phrase_length)===!0){if(!dN(i))return null;continue}if(a.optional!==!0)return null}let s=[null,n,i.t+n];if(s[1]===s[2])return null;let o={};
613return Object.keys(i.groups).forEach(a=>{let l=i.groups[a],c=n+l.start;o[a]=[null,c,c+l.length]}),{pointer:s,groups:o}},mit=function(t,e){let n=[],r={};return t.length===0?{ptrs:n,byGroup:r}:(typeof e=="number"&&(e=String(e)),e?t.forEach(i=>{i.groups[e]&&n.push(i.groups[e])}):t.forEach(i=>{n.push(i.pointer),Object.keys(i.groups).forEach(s=>{r[s]=r[s]||[],r[s].push(i.groups[s])})}),{ptrs:n,byGroup:r})},git=function(t,e,n){return t=t.filter(r=>{let[i,s,o]=r.pointer,a=n[i].slice(s,o);for(let l=0;l<a.length;l+=1){let c=a.slice(l);if($V(c,e,l,a.length)!==null)return!1}return!0}),t},nye=function(t,e){return t.pointer[0]=e,Object.keys(t.groups).forEach(n=>{t.groups[n][0]=e}),t},yit=function(t,e,n){let r=$V(t,e,0,t.length);return r?(r=nye(r,n),r):null},bit=function(t,e,n){n=n||[];let{regs:r,group:i,justOne:s}=e,o=[];if(!r||r.length===0)return{ptrs:[],byGroup:{}};const a=r.filter(l=>l.optional!==!0&&l.negative!==!0).length;e:for(let l=0;l<t.length;l+=1){let c=t[l];if(!(n[l]&&Yrt(r,n[l]))){if(r[0].start===!0){let u=yit(c,r,l);u&&o.push(u);continue}for(let u=0;u<c.length;u+=1){let h=c.slice(u);if(h.length<a)break;let d=$V(h,r,u,c.length);if(d){if(d=nye(d,l),o.push(d),s===!0)break e;let p=d.pointer[2];Math.abs(p-1)>u&&(u=Math.abs(p-1))}}}}return r[r.length-1].end===!0&&(o=o.filter(l=>{let c=l.pointer[0];return t[c].length===l.pointer[2]})),e.notIf&&(o=git(o,e.notIf,t)),o=mit(o,i),o.ptrs.forEach(l=>{let[c,u,h]=l;l[3]=t[c][u].id,l[4]=t[c][h-1].id}),o},vit={one:{termMethods:Vk,parseMatch:Grt,match:bit}},xit={parseMatch:function(t,e){const n=this.world();let r=n.methods.one.killUnicode;return r&&(t=r(t,n)),n.methods.one.parseMatch(t,e,n)}},wit={api:Mrt,methods:vit,lib:xit},Sit=/^\../,kit=/^#./,Cit=t=>(t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,"""),t=t.replace(/'/g,"'"),t),_it=function(t){let e="",n="</span>";return t=Cit(t),Sit.test(t)?e=`<span class="${t.replace(/^\./,"")}"`:kit.test(t)?e=`<span id="${t.replace(/^#/,"")}"`:(e=`<${t}`,n=`</${t}>`),e+=">",{start:e,end:n}},Tit=function(t,e){let n={},r={};return Object.keys(e).forEach(i=>{let s=e[i],o=_it(i);typeof s=="string"&&(s=t.match(s)),s.docs.forEach(a=>{if(a.every(u=>u.implicit))return;let l=a[0].id;n[l]=n[l]||[],n[l].push(o.start);let c=a[a.length-1].id;r[c]=r[c]||[],r[c].push(o.end)})}),{starts:n,ends:r}},Eit=function(t){let{starts:e,ends:n}=Tit(this,t),r="";return this.docs.forEach(i=>{for(let s=0;s<i.length;s+=1){let o=i[s];e.hasOwnProperty(o.id)&&(r+=e[o.id].join("")),r+=o.pre||"",r+=o.text||"",n.hasOwnProperty(o.id)&&(r+=n[o.id].join("")),r+=o.post||""}}),r},Ait={html:Eit},rye=/[,:;)\]*.?~!\u0022\uFF02\u201D\u2019\u00BB\u203A\u2032\u2033\u2034\u301E\u00B4â-]+$/,cF=/^[(['"*~\uFF02\u201C\u2018\u201F\u201B\u201E\u2E42\u201A\u00AB\u2039\u2035\u2036\u2037\u301D\u0060\u301F]+/,Pit=/[,:;)('"\u201D\]]/,Oit=/^[-ââ]$/,Iit=/ /,uy=function(t,e,n=!0){let r="";return t.forEach(i=>{let s=i.pre||"",o=i.post||"";e.punctuation==="some"&&(s=s.replace(cF,""),Oit.test(o)&&(o=" "),o=o.replace(Pit,""),o=o.replace(/\?!+/,"?"),o=o.replace(/!+/,"!"),o=o.replace(/\?+/,"?"),o=o.replace(/\.{2,}/,""),i.tags.has("Abbreviation")&&(o=o.replace(/\./,""))),e.whitespace==="some"&&(s=s.replace(/\s/,""),o=o.replace(/\s+/," ")),e.keepPunct||(s=s.replace(cF,""),o==="-"?o=" ":o=o.replace(rye,""));let a=i[e.form||"text"]||i.normal||"";e.form==="implicit"&&(a=i.implicit||i.text),e.form==="root"&&i.implicit&&(a=i.root||i.implicit||i.normal),(e.form==="machine"||e.form==="implicit"||e.form==="root")&&i.implicit&&(!o||!Iit.test(o))&&(o+=" "),r+=s+a+o}),n===!1&&(r=r.trim()),e.lowerCase===!0&&(r=r.toLowerCase()),r},Dit=function(t,e){let n="";if(!t||!t[0]||!t[0][0])return n;for(let r=0;r<t.length;r+=1)n+=uy(t[r],e,!0);if(e.keepSpace||(n=n.trim()),e.keepEndPunct===!1){t[0][0].tags.has("Emoticon")||(n=n.replace(cF,""));let r=t[t.length-1];r[r.length-1].tags.has("Emoticon")||(n=n.replace(rye,"")),n.endsWith("'")&&!n.endsWith("s'")&&(n=n.replace(/'/,""))}return e.cleanWhitespace===!0&&(n=n.trim()),n},qg={text:{form:"text"},normal:{whitespace:"some",punctuation:"some",case:"some",unicode:"some",form:"normal"},machine:{keepSpace:!1,whitespace:"some",punctuation:"some",case:"none",unicode:"some",form:"machine"},root:{keepSpace:!1,whitespace:"some",punctuation:"some",case:"some",unicode:"some",form:"root"}
613,implicit:{form:"implicit"}};qg.clean=qg.normal;qg.reduced=qg.root;let iye=[],Dy=0;for(;Dy<64;)iye[Dy]=0|Math.sin(++Dy%Math.PI)*4294967296;const jV=function(t){let e,n,r,i=[e=1732584193,n=4023233417,~e,~n],s=[],o=decodeURI(encodeURI(t))+"Â",a=o.length;for(t=--a/4+2|15,s[--t]=a*8;~a;)s[a>>2]|=o.charCodeAt(a)<<8*a--;for(Dy=o=0;Dy<t;Dy+=16){for(a=i;o<64;a=[r=a[3],e+((r=a[0]+[e&n|~e&r,r&e|~r&n,e^n^r,n^(e|~r)][a=o>>4]+iye[o]+~~s[Dy|[o,5*o+1,3*o+5,7*o][a]&15])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|r>>>-a),e,n])e=a[1]|0,n=a[2];for(o=4;o;)i[--o]+=a[o]}for(t="";o<32;)t+=(i[o>>3]>>(1^o++)*4&15).toString(16);return t},Mit={text:!0,terms:!0};let Kee={case:"none",unicode:"some",form:"machine",punctuation:"some"};const fN=function(t,e){return Object.assign({},t,e)},Q0={text:t=>uy(t,{keepPunct:!0},!1),normal:t=>uy(t,fN(qg.normal,{keepPunct:!0}),!1),implicit:t=>uy(t,fN(qg.implicit,{keepPunct:!0}),!1),machine:t=>uy(t,Kee,!1),root:t=>uy(t,fN(Kee,{form:"root"}),!1),hash:t=>jV(uy(t,{keepPunct:!0},!1)),offset:t=>{let e=Q0.text(t).length;return{index:t[0].offset.index,start:t[0].offset.start,length:e}},terms:t=>t.map(e=>{let n=Object.assign({},e);return n.tags=Array.from(e.tags),n}),confidence:(t,e,n)=>e.eq(n).confidence(),syllables:(t,e,n)=>e.eq(n).syllables(),sentence:(t,e,n)=>e.eq(n).fullSentence().text(),dirty:t=>t.some(e=>e.dirty===!0)};Q0.sentences=Q0.sentence;Q0.clean=Q0.normal;Q0.reduced=Q0.root;const Nit=function(t,e){return e=e||{},typeof e=="string"&&(e={}),e=Object.assign({},Mit,e),e.offset&&t.compute("offset"),t.docs.map((n,r)=>{let i={};return Object.keys(e).forEach(s=>{e[s]&&Q0[s]&&(i[s]=Q0[s](n,t,r))}),i})},uF={json:function(t){let e=Nit(this,t);return typeof t=="number"?e[t]:e}};uF.data=uF.json;const Rit=()=>typeof window<"u"&&window.document,Lit=function(t){let e=this.methods.one.debug||{};return t&&e.hasOwnProperty(t)?(e[t](this),this):Rit()?(e.clientSide(this),this):(e.tags(this),this)},Bit=function(t){let e=t.pre||"",n=t.post||"";return e+t.text+n},Fit=function(t,e){let n={};return Object.keys(e).forEach(r=>{t.match(r).fullPointer.forEach(s=>{n[s[3]]={fn:e[r],end:s[2]}})}),n},sye=function(t,e){let n=Fit(t,e),r="";return t.docs.forEach((i,s)=>{for(let o=0;o<i.length;o+=1){let a=i[o];if(n.hasOwnProperty(a.id)){let{fn:l,end:c}=n[a.id],u=t.update([[s,o,c]]);r+=i[o].pre||"",r+=l(u),o=c-1,r+=i[o].post||""}else r+=Bit(a)}}),r},$it=t=>Object.prototype.toString.call(t)==="[object Object]",jit=function(t){let e={};return t.forEach(r=>{e[r]=e[r]||0,e[r]+=1}),Object.keys(e).map(r=>({normal:r,count:e[r]})).sort((r,i)=>r.count>i.count?-1:0)},zit=function(t){if($it(t))return sye(this,t);if(t==="text")return this.text();if(t==="normal")return this.text("normal");if(t==="root")return this.text("root");
613if(t==="machine"||t==="reduced")return this.text("machine");if(t==="hash"||t==="md5")return jV(this.text());if(t==="json")return this.json();if(t==="offset"||t==="offsets")return this.compute("offset"),this.json({offset:!0});if(t==="array")return this.docs.map(n=>n.reduce((r,i)=>r+i.pre+i.text+i.post,"").trim()).filter(n=>n);if(t==="freq"||t==="frequency"||t==="topk")return jit(this.json({normal:!0}).map(e=>e.normal));if(t==="terms"){let e=[];return this.docs.forEach(n=>{let r=n.map(i=>i.text);r=r.filter(i=>i),e=e.concat(r)}),e}return t==="tags"?this.docs.map(e=>e.reduce((n,r)=>(n[r.implicit||r.normal]=Array.from(r.tags),n),{})):t==="debug"?this.debug():this.text()},Hit={debug:Lit,out:zit,wrap:function(t){return sye(this,t)}},Uit=t=>Object.prototype.toString.call(t)==="[object Object]",Vit={text:function(t){let e={};if(t&&typeof t=="string"&&qg.hasOwnProperty(t)?e=Object.assign({},qg[t]):t&&Uit(t)&&(e=Object.assign({},t)),e.keepSpace===void 0&&!this.isFull()&&(e.keepSpace=!1),e.keepEndPunct===void 0&&this.pointer){let n=this.pointer[0];n&&n[1]?e.keepEndPunct=!1:e.keepEndPunct=!0}return e.keepPunct===void 0&&(e.keepPunct=!0),e.keepSpace===void 0&&(e.keepSpace=!0),Dit(this.docs,e)}},Wit=Object.assign({},Hit,Vit,uF,Ait),qit=function(t){Object.assign(t.prototype,Wit)},Git=function(t){console.log("%c -=-=- ","background-color:#6699cc;"),t.forEach(e=>{console.groupCollapsed(e.text());let r=e.docs[0].map(i=>{let s=i.text||"-";i.implicit&&(s="["+i.implicit+"]");let o="["+Array.from(i.tags).join(", ")+"]";return{text:s,tags:o}});console.table(r,["text","tags"]),console.groupEnd()})},Kp="\x1B[0m",vu={green:t=>"\x1B[32m"+t+Kp,red:t=>"\x1B[31m"+t+Kp,blue:t=>"\x1B[34m"+t+Kp,magenta:t=>"\x1B[35m"+t+Kp,cyan:t=>"\x1B[36m"+t+Kp,yellow:t=>"\x1B[33m"+t+Kp,black:t=>"\x1B[30m"+t+Kp,dim:t=>"\x1B[2m"+t+Kp,i:t=>"\x1B[3m"+t+Kp},Kit=function(t,e){return e.one.tagSet&&(t=t.map(n=>{if(!e.one.tagSet.hasOwnProperty(n))return n;const r=e.one.tagSet[n].color||"blue";return vu[r](n)})),t.join(", ")},Yit=function(t){let{docs:e,model:n}=t;e.length===0&&console.log(vu.blue(` 614 ââââââ`)),e.forEach(r=>{console.log(vu.blue(` 615 ââââââââââ`)),r.forEach(i=>{let s=[...i.tags||[]],o=i.text||"-";i.sense&&(o=`{${i.normal}/${i.sense}}`),i.implicit&&(o="["+i.implicit+"]"),o=vu.yellow(o);let a="'"+o+"'";if(i.reference){let c=t.update([i.reference]).text("normal");a+=` - ${vu.dim(vu.i("["+c+"]"))}`}a=a.padEnd(18);let l=vu.blue(" â ")+vu.i(a)+" - "+Kit(s,n);console.log(l)})}),console.log(` 616`)},Qit=function(t){let{docs:e}=t;console.log(""),e.forEach(n=>{let r=[];n.forEach(i=>{i.chunk==="Noun"?r.push(vu.blue(i.implicit||i.normal)):i.chunk==="Verb"?r.push(vu.green(i.implicit||i.normal)):i.chunk==="Adjective"?r.push(vu.yellow(i.implicit||i.normal)):i.chunk==="Pivot"?r.push(vu.red(i.implicit||i.normal)):r.push(i.implicit||i.normal)}),console.log(r.join(" "),` 617`)}),console.log(` 618`)},Xit=(t,e,n)=>{let r=n*9,i=e.start+r,s=i+e.length,o=t.substring(0,i),a=t.substring(i,s),l=t.substring(s,t.length);return[o,a,l]},Jit=function(t,e,n){let r=Xit(t,e,n);return`${r[0]}${vu.blue(r[1])}${r[2]}`},Zit=function(t){if(!t.found)return;let e={};t.fullPointer.forEach(n=>{e[n[0]]=e[n[0]]||[],e[n[0]].push(n)}),Object.keys(e).forEach(n=>{let i=t.update([[Number(n)]]).text();t.update(e[n]).json({offset:!0}).forEach((a,l)=>{i=Jit(i,a.offset,l)}),console.log(i)}),console.log(` 619`)},est={tags:Yit,clientSide:Git,chunks:Qit,highlight:Zit},tst={api:qit,methods:{one:{hash:jV,debug:est}}},oye=function(t,e){if(t[0]!==e[0])return!1;let[,n,r]=t,[,i,s]=e;return n<=i&&r>i||i<=n&&s>n},nst=function(t){let e=t[0][1],n=t[0][2];return t.forEach(r=>{r[1]<e&&(e=r[1]),r[2]>n&&(n=r[2])}),[t[0][0],e,n]},KO=function(t){let e={};return t.forEach(n=>{e[n[0]]=e[n[0]]||[],e[n[0]].push(n)}),e},rst=function(t){let e={};for(let n=0;n<t.length;n+=1)e[t[n].join(",")]=t[n];return Object.values(e)},ist=function(t,e){let[n,r]=t,i=e[1],s=e[2],o={};if(r<i){let a=i<t[2]?i:t[2];o.before=[n,r,a]}return o.match=e,t[2]>s&&(o.after=[n,s,t[2]]),o},sst=function(t,e){return t[1]<=e[1]&&e[2]<=t[2]},aye=function(t,e){let n=KO(e),r=[];return t.forEach(i=>
619{let[s]=i,o=n[s]||[];if(o=o.filter(l=>sst(i,l)),o.length===0){r.push({passthrough:i});return}o=o.sort((l,c)=>l[1]-c[1]);let a=i;o.forEach((l,c)=>{let u=ist(a,l);o[c+1]?(r.push({before:u.before,match:u.match}),u.after&&(a=u.after)):r.push(u)})}),r},ost=20,ast=function(t,e,n){for(let r=0;r<ost;r+=1){if(e[n-r]){let i=e[n-r].findIndex(s=>s.id===t);if(i!==-1)return[n-r,i]}if(e[n+r]){let i=e[n+r].findIndex(s=>s.id===t);if(i!==-1)return[n+r,i]}}return null},lst=function(t,e){let[n,r,,,i]=t,s=e[n],o=s.findIndex(a=>a.id===i);return o===-1?(t[2]=e[n].length,t[4]=s.length?s[s.length-1].id:null):t[2]=o,e[n].slice(r,t[2]+1)},cst=function(t,e){let n=[];return t.forEach((r,i)=>{if(!r)return;let[s,o,a,l,c]=r,u=e[s]||[];if(o===void 0&&(o=0),a===void 0&&(a=u.length),l&&(!u[o]||u[o].id!==l)){let h=ast(l,e,s);if(h!==null){let d=a-o;u=e[h[0]].slice(h[1],h[1]+d);let p=u[0]?u[0].id:null;t[i]=[h[0],h[1],h[1]+d,p]}}else u=u.slice(o,a);u.length!==0&&o!==a&&(c&&u[u.length-1].id!==c&&(u=lst(r,e)),n.push(u))}),n=n.filter(r=>r.length>0),n},ust=function(t){let e=[];for(let n=0;n<t.length;n+=1)for(let r=0;r<t[n].length;r+=1)e.push(t[n][r]);return e},hst={one:{termList:ust,getDoc:cst,pointer:{indexN:KO,splitAll:aye}}},lye=function(t,e){let n=t.concat(e),r=KO(n),i=[];return n.forEach(s=>{let[o]=s;if(r[o].length===1){i.push(s);return}let a=r[o].filter(c=>oye(s,c));a.push(s);let l=nst(a);i.push(l)}),i=rst(i),i},cye=function(t,e){let n=[];return aye(t,e).forEach(i=>{i.passthrough&&n.push(i.passthrough),i.before&&n.push(i.before),i.after&&n.push(i.after)}),n},dst=function(t,e){let n=t[1]<e[1]?e[1]:t[1],r=t[2]>e[2]?e[2]:t[2];return n<r?[t[0],n,r]:null},fst=function(t,e){let n=KO(e),r=[];return t.forEach(i=>{let s=n[i[0]]||[];s=s.filter(o=>oye(i,o)),s.length!==0&&s.forEach(o=>{let a=dst(i,o);a&&r.push(a)})}),r},pst=function(t){return Object.prototype.toString.call(t)==="[object Array]"},zV=(t,e)=>typeof t=="string"||pst(t)?e.match(t):t||e.none(),g_=function(t,e){return t.map(n=>{let[r,i]=n;return e[r]&&e[r][i]&&(n[3]=e[r][i].id),n})},up={};up.union=function(t){t=zV(t,this);let e=lye(this.fullPointer,t.fullPointer);return e=g_(e,this.document),this.toView(e)};up.and=up.union;up.intersection=function(t){t=zV(t,this);let e=fst(this.fullPointer,t.fullPointer);return e=g_(e,this.document),this.toView(e)};up.not=function(t){t=zV(t,this);let e=cye(this.fullPointer,t.fullPointer);return e=g_(e,this.document),this.toView(e)};up.difference=up.not;up.complement=function(){let t=this.all(),e=cye(t.fullPointer,this.fullPointer);return e=g_(e,this.document),this.toView(e)};up.settle=function(){let t=this.fullPointer;return t.forEach(e=>{t=lye(t,[e])}),t=g_(t,this.document),this.update(t)};const mst=function(t){Object.assign(t.prototype,up)},gst={methods:hst,api:mst},yst={buildNet:function(t){let n=this.methods().one.buildNet(t,this.world());return n.isNet=!0,n}},bst=function(t){t.prototype.sweep=function(e,n={}){const{world:r,docs:i}=this,{methods:s}=r;let o=s.one.bulkMatch(i,e,this.methods,n);n.tagger!==!1&&s.one.bulkTagger(o,i,this.world),o=o.map(l=>{let c=l.pointer,u=i[c[0]][c[1]],h=c[2]-c[1];return u.index&&(l.pointer=[u.index[0],u.index[1],c[1]+h]),l});let a=o.map(l=>l.pointer);return o=o.map(l=>(l.view=this.update([l.pointer]),delete l.regs,delete l.needs,delete l.pointer,delete l._expanded,l)),{view:this.update(a),found:o}}},hF=function(t){return t.optional===!0||t.negative===!0?null:t.tag?"#"+t.tag:t.word?t.word:t.switch?`%${t.switch}%`:null},vst=function(t){let e=[];return t.forEach(n=>{e.push(hF(n)),n.operator==="and"&&n.choices&&n.choices.forEach(r=>{r.forEach(i=>{e.push(hF(i))})})}),e.filter(n=>n)},xst=function(t){let e=[],n=0;return t.forEach(r=>{r.operator==="or"&&!r.optional&&!r.negative&&(r.fastOr&&Array.from(r.fastOr).forEach(i=>{e.push(i)}),r.choices&&r.choices.forEach(i=>{i.forEach(s=>{let o=hF(s);o&&e.push(o)})}),n+=1)}),{wants:e,count:n}},wst=function(t,e){const n=e.methods.one.parseMatch;return t.forEach(r=>{r.regs=n(r.match,{},e),typeof r.ifNo=="string"&&(r.ifNo=[r.ifNo]),r.notIf&&(r.notIf=n(r.notIf,{},e)),r.needs=vst(r.regs);let{wants:i,count:s}=xst(r.regs);r.wants=i,r.minWant=s,r.minWords=r.regs.filter(o=>!o.optional).length}),t},Sst=function(t,e){t=wst(t,e);let n={};t.forEach(i=>
619{i.needs.forEach(s=>{n[s]=Array.isArray(n[s])?n[s]:[],n[s].push(i)}),i.wants.forEach(s=>{n[s]=Array.isArray(n[s])?n[s]:[],n[s].push(i)})}),Object.keys(n).forEach(i=>{let s={};n[i]=n[i].filter(o=>typeof s[o.match]=="boolean"?!1:(s[o.match]=!0,!0))});let r=t.filter(i=>i.needs.length===0&&i.wants.length===0);return{hooks:n,always:r}},kst=function(t,e){return t.map((n,r)=>{let i=[];Object.keys(e).forEach(o=>{t[r].has(o)&&(i=i.concat(e[o]))});let s={};return i=i.filter(o=>typeof s[o.match]=="boolean"?!1:(s[o.match]=!0,!0)),i})},Cst=function(t,e){return t.map((n,r)=>{let i=e[r];return n=n.filter(s=>s.needs.every(o=>i.has(o))),n=n.filter(s=>!(s.ifNo!==void 0&&s.ifNo.some(o=>i.has(o))===!0)),n=n.filter(s=>s.wants.length===0?!0:s.wants.filter(a=>i.has(a)).length>=s.minWant),n})},_st=function(t,e,n,r,i){let s=[];for(let o=0;o<t.length;o+=1)for(let a=0;a<t[o].length;a+=1){let l=t[o][a],c=r.one.match([e[o]],l);if(c.ptrs.length>0&&(c.ptrs.forEach(u=>{u[0]=o;let h=Object.assign({},l,{pointer:u});l.unTag!==void 0&&(h.unTag=l.unTag),s.push(h)}),i.matchOne===!0))return[s[0]]}return s},Tst=function(t,e){return t.map((n,r)=>{let i=e[r].length;return n=n.filter(s=>i>=s.minWords),n})},Est=function(t,e,n,r={}){let i=n.one.cacheDoc(t),s=kst(i,e.hooks);return s=Cst(s,i),e.always.length>0&&(s=s.map(a=>a.concat(e.always))),s=Tst(s,t),_st(s,t,i,n,r)},Ast=function(t,e,n){let r=n.one.tagSet;if(!r.hasOwnProperty(e))return!0;let i=r[e].not||[];for(let s=0;s<t.length;s+=1){let o=t[s];for(let a=0;a<i.length;a+=1)if(o.tags.has(i[a])===!0)return!1}return!0};var Yee={};const Pst=function(t,e,n){const{model:r,methods:i}=n,{getDoc:s,setTag:o,unTag:a}=i.one,l=i.two.looksPlural;return t.length===0?t:((typeof process>"u"||!Yee?self.env||{}:Yee).DEBUG_TAGS&&console.log(` 620 621 \x1B[32mâ ${t.length} post-tagger:\x1B[0m`),t.map(u=>{if(!u.tag&&!u.chunk&&!u.unTag)return;let h=u.reason||u.match,d=s([u.pointer],e)[0];if(!(u.safe===!0&&(Ast(d,u.tag,r)===!1||d[d.length-1].post==="-"))){if(u.tag!==void 0){if(o(d,u.tag,n,u.safe,`[post] '${h}'`),u.tag==="Noun"&&l){let p=d[d.length-1];l(p.text)?o([p],"Plural",n,u.safe,"quick-plural"):o([p],"Singular",n,u.safe,"quick-singular")}u.freeze===!0&&d.forEach(p=>p.frozen=!0)}u.unTag!==void 0&&a(d,u.unTag,n,u.safe,h),u.chunk&&d.forEach(p=>p.chunk=u.chunk)}}))},Ost={buildNet:Sst,bulkMatch:Est,bulkTagger:Pst},Ist={lib:yst,api:bst,methods:{one:Ost}};var Qee={};const uye=/ /,Xee=function(t,e){e==="Noun"&&(t.chunk=e),e==="Verb"&&(t.chunk=e)},hye=function(t,e,n,r){if(t.tags.has(e)===!0||e===".")return null;t.frozen===!0&&(r=!0);let i=n[e];if(i){if(i.not&&i.not.length>0)for(let s=0;s<i.not.length;s+=1){if(r===!0&&t.tags.has(i.not[s]))return null;t.tags.delete(i.not[s])}if(i.parents&&i.parents.length>0)for(let s=0;s<i.parents.length;s+=1)t.tags.add(i.parents[s]),Xee(t,i.parents[s])}return t.tags.add(e),t.dirty=!0,Xee(t,e),!0},Dst=function(t,e,n,r){let i=e.split(uye);t.forEach((s,o)=>{let a=i[o];a&&(a=a.replace(/^#/,""),hye(s,a,n,r))})},Mst=function(t){return Object.prototype.toString.call(t)==="[object Array]"},Nst=(t,e,n="")=>{const r=o=>"\x1B[33m\x1B[3m"+o+"\x1B[0m",i=o=>"\x1B[3m"+o+"\x1B[0m";let s=t.map(o=>o.text||"["+o.implicit+"]").join(" ");typeof e!="string"&&e.length>2&&(e=e.slice(0,2).join(", #")+" +"),e=typeof e!="string"?e.join(", #"):e,console.log(` ${r(s).padEnd(24)} \x1B[32mâ\x1B[0m #${e.padEnd(22)} ${i(n)}`)},dye=function(t,e,n={},r,i){const s=n.model.one.tagSet||{};if(!e)return;const o=typeof process>"u"||!Qee?self.env||{}:Qee;if(o&&o.DEBUG_TAGS&&Nst(t,e,i),Mst(e)===!0){e.forEach(a=>dye(t,a,n,r));return}if(typeof e!="string"){console.warn(`compromise: Invalid tag '${e}'`);return}if(e=e.trim(),uye.test(e)){Dst(t,e,s,r);return}e=e.replace(/^#/,"");for(let a=0;a<t.length;a+=1)hye(t[a],e,s,r)},Rst=function(t,e,n){e=e.trim().replace(/^#/,"");for(let r=0;r<t.length;r+=1){let i=t[r];if(i.frozen===!0)continue;if(e==="*"){i.tags.clear();continue}let s=n[e];if(s&&s.children.length>0)for(let o=0;o<s.children.length;o+=1)i.tags.delete(s.children[o]);i.tags.delete(e)}},Lst=function(t,e,n){if(!n.hasOwnProperty(e))return!0;let r=n[e].not||[];for(let i=0;i<r.length;i+=1)if(t.tags.has(r[i]))return!1;return!0},xg=function(t){return t.children=t.children||[],t._cache=t._cache||{},t.props=t.props||{},t._cache.parents=t._cache.parents||[],t._cache.children=t._cache.children||[],t},Bst=/^ *(#|\/\/)/,Fst=function(t){let e=t.trim().split(/->/),n=[];e.forEach(i=>
621{n=n.concat(function(s){if(!(s=s.trim()))return null;if(/^\[/.test(s)&&/\]$/.test(s)){let o=(s=(s=s.replace(/^\[/,"")).replace(/\]$/,"")).split(/,/);return o=o.map(a=>a.trim()).filter(a=>a),o=o.map(a=>xg({id:a})),o}return[xg({id:s})]}(i))}),n=n.filter(i=>i);let r=n[0];for(let i=1;i<n.length;i+=1)r.children.push(n[i]),r=n[i];return n[0]},_0=(t,e)=>{let n=[],r=[t];for(;r.length>0;){let i=r.pop();n.push(i),i.children&&i.children.forEach(s=>{e&&e(i,s),r.push(s)})}return n},HV=t=>Object.prototype.toString.call(t)==="[object Array]",z5=t=>(t=t||"").trim(),$st=function(t=[]){return typeof t=="string"?function(n){let r=n.split(/\r?\n/),i=[];r.forEach(o=>{if(!o.trim()||Bst.test(o))return;let a=(l=>{const c=/^( {2}|\t)/;let u=0;for(;c.test(l);)l=l.replace(c,""),u+=1;return u})(o);i.push({indent:a,node:Fst(o)})});let s=function(o){let a={children:[]};return o.forEach((l,c)=>{l.indent===0?a.children=a.children.concat(l.node):o[c-1]&&function(u,h){let d=u[h].indent;for(;h>=0;h-=1)if(u[h].indent<d)return u[h];return u[0]}(o,c).node.children.push(l.node)}),a}(i);return s=xg(s),s}(t):HV(t)?function(n){let r={};n.forEach(s=>{r[s.id]=s});let i=xg({});return n.forEach(s=>{if((s=xg(s)).parent)if(r.hasOwnProperty(s.parent)){let o=r[s.parent];delete s.parent,o.children.push(s)}else console.warn(`[Grad] - missing node '${s.parent}'`);else i.children.push(s)}),i}(t):(_0(e=t).forEach(xg),e);var e},jst=t=>"\x1B[31m"+t+"\x1B[0m",zst=t=>"\x1B[2m"+t+"\x1B[0m",dF=function(t,e){let n="-> ";e&&(n=zst("â "));let r="";return _0(t).forEach((i,s)=>{let o=i.id||"";if(e&&(o=jst(o)),s===0&&!i.id)return;let a=i._cache.parents.length;r+=" ".repeat(a)+n+o+` 622`}),r},Jee=function(t){let e=_0(t);e.forEach(r=>{delete(r=Object.assign({},r)).children});let n=e[0];return n&&!n.id&&Object.keys(n.props).length===0&&e.shift(),e},Zee={text:dF,txt:dF,array:Jee,flat:Jee},ete=function(t,e){return e==="nested"||e==="json"?t:e==="debug"?(console.log(dF(t,!0)),null):Zee.hasOwnProperty(e)?Zee[e](t):t},pN=t=>{_0(t,(e,n)=>{e.id&&(e._cache.parents=e._cache.parents||[],n._cache.parents=e._cache.parents.concat([e.id]))})},Hst=(t,e)=>(Object.keys(e).forEach(n=>{if(e[n]instanceof Set){let r=t[n]||new Set;t[n]=new Set([...r,...e[n]])}else if((r=>r&&typeof r=="object"&&!Array.isArray(r))(e[n])){let r=t[n]||{};t[n]=Object.assign({},e[n],r)}else HV(e[n])?t[n]=e[n].concat(t[n]||[]):t[n]===void 0&&(t[n]=e[n])}),t),Ust=/\//;let Vst=class Z6{constructor(e={}){Object.defineProperty(this,"json",{enumerable:!1,value:e,writable:!0})}get children(){return this.json.children}get id(){return this.json.id}get found(){return this.json.id||this.json.children.length>0}props(e={}){let n=this.json.props||{};return typeof e=="string"&&(n[e]=!0),this.json.props=Object.assign(n,e),this}get(e){if(e=z5(e),!Ust.test(e)){let r=this.json.children.find(i=>i.id===e);return new Z6(r)}let n=((r,i)=>{let s=(o=>typeof o!="string"?o:(o=o.replace(/^\//,"")).split(/\//))(i=i||"");for(let o=0;o<s.length;o+=1){let a=r.children.find(l=>l.id===s[o]);if(!a)return null;r=a}return r})(this.json,e)||xg({});return new Z6(n)}add(e,n={}){if(HV(e))return e.forEach(i=>this.add(z5(i),n)),this;e=z5(e);let r=xg({id:e,props:n});return this.json.children.push(r),new Z6(r)}remove(e){return e=z5(e),this.json.children=this.json.children.filter(n=>n.id!==e),this}nodes(){return _0(this.json).map(e=>(delete(e=Object.assign({},e)).children,e))}cache(){return(e=>{let n=_0(e,(i,s)=>{i.id&&(i._cache.parents=i._cache.parents||[],i._cache.children=i._cache.children||[],s._cache.parents=i._cache.parents.concat([i.id]))}),r={};n.forEach(i=>{i.id&&(r[i.id]=i)}),n.forEach(i=>{i._cache.parents.forEach(s=>{r.hasOwnProperty(s)&&r[s]._cache.children.push(i.id)})}),e._cache.children=Object.keys(r)})(this.json),this}list(){return _0(this.json)}fillDown(){var e;return e=this.json,_0(e,(n,r)=>{r.props=Hst(r.props,n.props)}),this}depth(){pN(this.json);let e=_0(this.json),n=e.length>1?1:0;return e.forEach(r=>{if(r._cache.parents.length===0)return;let i=r._cache.parents.length+1;i>n&&(n=i)}),n}out(e){return pN(this.json),ete(this.json,e)}debug(){return pN(this.json),ete(this.json,"debug"),this}};const fye=function(t){let e=$st(t);return new Vst(e)};fye.prototype.plugin=function(t){t(this)};const Mv={Noun:"blue",Verb:"green",Negative:"green",Date:"red",Value:"red",Adjective:"magenta",Preposition:"cyan",Conjunction:"cyan",Determiner:"cyan",Hyphenated:"cyan",Adverb:"cyan"},Wst=function(t){if(Mv.hasOwnProperty(t.id))return Mv[t.id];if(Mv.hasOwnProperty(t.is))return Mv[t.is];let e=t._cache.parents.find(n=>Mv[n]);return Mv[e]},qst=function(t){const e={};return t.forEach(n=>{let{not:r,also:i,is:s,novel:o}=n.props,a=n._cache.parents;i&&(a=a.concat(i)),e[n.id]={is:s,not:r,novel:o,also:i,parents:a,children:n._cache.children,color:Wst(n)}}),Object.keys(e).forEach(n=>{let r=new Set(e[n].not);e[n].not.forEach(i=>
622{e[i]&&e[i].children.forEach(s=>r.add(s))}),e[n].not=Array.from(r)}),e},tte=function(t){return t?typeof t=="string"?[t]:t:[]},Gst=function(t,e){return Object.keys(t).forEach(n=>{t[n].isA&&(t[n].is=t[n].isA),t[n].notA&&(t[n].not=t[n].notA),t[n].is&&typeof t[n].is=="string"&&!e.hasOwnProperty(t[n].is)&&!t.hasOwnProperty(t[n].is)&&(t[t[n].is]={}),t[n].not&&typeof t[n].not=="string"&&!t.hasOwnProperty(t[n].not)&&!e.hasOwnProperty(t[n].not)&&!t.hasOwnProperty(t[n].not)&&(t[t[n].not]={})}),t},Kst=function(t,e){return t=Gst(t,e),Object.keys(t).forEach(n=>{t[n].children=tte(t[n].children),t[n].not=tte(t[n].not)}),Object.keys(t).forEach(n=>{(t[n].not||[]).forEach(i=>{t[i]&&t[i].not&&t[i].not.push(n)})}),t},Yst=function(t){const e=Object.keys(t).map(r=>{let i=t[r];const s={not:new Set(i.not),also:i.also,is:i.is,novel:i.novel};return{id:r,parent:i.is,props:s,children:[]}});return fye(e).cache().fillDown().out("array")},Qst=function(t){return Object.keys(t).forEach(e=>{t[e]=Object.assign({},t[e]),t[e].novel=!0}),t},Xst=function(t,e){Object.keys(e).length>0&&(t=Qst(t)),t=Kst(t,e);let n=Object.assign({},e,t);const r=Yst(n);return qst(r)},Jst={one:{setTag:dye,unTag:Rst,addTags:Xst,canBe:Lst}},nte=function(t){return Object.prototype.toString.call(t)==="[object Array]"},Zst={tag:function(t,e="",n){if(!this.found||!t)return this;let r=this.termList();if(r.length===0)return this;const{methods:i,verbose:s,world:o}=this;return s===!0&&console.log(" + ",t,e||""),nte(t)?t.forEach(a=>i.one.setTag(r,a,o,n,e)):i.one.setTag(r,t,o,n,e),this.uncache(),this},tagSafe:function(t,e=""){return this.tag(t,e,!0)},unTag:function(t,e){if(!this.found||!t)return this;let n=this.termList();if(n.length===0)return this;const{methods:r,verbose:i,model:s}=this;i===!0&&console.log(" - ",t,e||"");let o=s.one.tagSet;return nte(t)?t.forEach(a=>r.one.unTag(n,a,o)):r.one.unTag(n,t,o),this.uncache(),this},canBe:function(t){t=t.replace(/^#/,"");let e=this.model.one.tagSet,n=this.methods.one.canBe,r=[];this.document.forEach((s,o)=>{s.forEach((a,l)=>{n(a,t,e)||r.push([o,l,l+1])})});let i=this.update(r);return this.difference(i)}},eot=function(t){Object.assign(t.prototype,Zst)},tot=function(t){const{model:e,methods:n}=this.world(),r=e.one.tagSet,i=n.one.addTags;let s=i(t,r);return e.one.tagSet=s,this},not={addTags:tot},rte=new Set(["Auxiliary","Possessive"]),rot=function(t,e){return t=t.sort((n,r)=>{if(rte.has(n)||!e.hasOwnProperty(r))return 1;if(rte.has(r)||!e.hasOwnProperty(n))return-1;let i=e[n].children||[],s=i.length;i=e[r].children||[];let o=i.length;return s-o}),t},iot=function(t){const{document:e,world:n}=t,r=n.model.one.tagSet;e.forEach(i=>{i.forEach(s=>{let o=Array.from(s.tags);s.tagRank=rot(o,r)})})},sot={model:{one:{tagSet:{}}},compute:{tagRank:iot},methods:Jst,api:eot,lib:not},oot=/([.!?\u203D\u2E18\u203C\u2047-\u2049\u3002]+\s)/g,aot=/^[.!?\u203D\u2E18\u203C\u2047-\u2049\u3002]+\s$/,lot=/((?:\r?\n|\r)+)/,cot=function(t){let e=[],n=t.split(lot);for(let r=0;r<n.length;r++){let i=n[r].split(oot);for(let s=0;s<i.length;s++)i[s+1]&&aot.test(i[s+1])===!0&&(i[s]+=i[s+1],i[s+1]=""),i[s]!==""&&e.push(i[s])}return e},uot=/[a-z0-9\u00C0-\u00FF\u00a9\u00ae\u2000-\u3300\ud000-\udfff]/i,hot=/\S/,dot=function(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];if(!(r===void 0||r==="")){if(hot.test(r)===!1||uot.test(r)===!1){if(e[e.length-1]){e[e.length-1]+=r;continue}else if(t[n+1]){t[n+1]=r+t[n+1];continue}}e.push(r)}}return e},fot=function(t,e){const n=e.methods.one.tokenize.isSentence,r=e.model.one.abbreviations||new Set;let i=[];for(let s=0;s<t.length;s++){let o=t[s];t[s+1]&&n(o,r)===!1?t[s+1]=o+(t[s+1]||""):o&&o.length>0&&(i.push(o),t[s]="")}return i},ite=280,pye={'"':'"',"ï¼":"ï¼","â":"â","â":"â","â":"â","â¹":"â","â":"â","«":"»","â¹":"âº","âµ":"â²","â¶":"â³","â·":"â´","ã":"ã","ã":"ã"},pot=RegExp("["+Object.keys(pye).join("")+"]","g"),mot=RegExp("["+Object.values(pye).join("")+"]","g"),ste=function(t){if(!t)return!1;let e=t.match(mot);return e!==null&&e.length===1},got=function(t){let e=[];for(let n=0;n<t.length;n+=1){let i=t[n].match(pot);if(i!==null&&i.length===1){if(ste(t[n+1])&&t[n+1].length<ite){t[n]+=t[n+1],e.push(t[n]),t[n+1]="",n+=1;continue}if(ste(t[n+2])){let s=t[n+1]+t[n+2];if(s.length<ite){t[n]+=s,e.push(t[n]),t[n+1]="",t[n+2]="",n+=2;continue}}}e.push(t[n])}return e},yot=250,ote=/\(/g,bot=/\)/g,vot=function(t){let e=[];for(let n=0;n<t.length;n+=1){let i=t[n].match(ote);if(i!==null&&i.length===1&&t[n+1]&&t[n+1].length<yot&&t[n+1].match(bot)!==null&&i.length===1&&!ote.test(t[n+1])){t[n]+=t[n+1],e.push(t[n]),t[n+1]="",n+=1;continue}e.push(t[n])}return e},xot=/\S/,ate=/^\s+/,wot=function(t,e){if(t=t||"",t=String(t),!t||typeof t!="string"||xot.test(t)===!1)return[];t=t.replace(" "," ");let n=cot(t),r=dot(n);if(r=fot(r,e),r=got(r),r=vot(r),r.length===0)return[t];for(let i=1;i<r.length;i+=1){let s=r[i].match(ate);s!==null&&(r[i-1]+=s[0],r[i]=r[i].replace(ate,""))}return r},Sot=function(t,e){let n=t.split(/[-ââ]/);if(n.length<=1)return!1;const{prefixes:r,suffixes:i}=e.one;return n[0].length===1&&/[a-z]/i.test(n[0])||r.hasOwnProperty(n[0])||(n[1]=n[1].trim().replace(/[.?!]$/,""),i.hasOwnProperty(n[1]))?!1:/^([a-z\u00C0-\u00FF`"'/]+)[-ââ]([a-z0-9\u00C0-\u00FF].*)/i.test(t)===!0||/^[('"]?([0-9]{1,4})[-ââ]([a-z\u00C0-\u00FF`"'/-]+[)'"]?$)/i.test(t)===!0},kot=function(t){let e=[];const n=t.split(/[-ââ]/);let r="-",i=t.match(/[-ââ]/);i&&i[0]&&(r=i);for(let s=0;s<n.length;s++)s===n.length-1?e.push(n[s]):e.push(n[s]+r);return e},Cot=function(t){const e=/^[0-9]{1,4}(:[0-9][0-9])?([a-z]{1,2})? ?[-ââ] ?$/,n=/^[0-9]{1,4}([a-z]{1,2})? ?$/;for(let r=0;r<t.length-1;r+=1)t[r+1]&&e.test(t[r])&&n.test(t[r+1])&&(t[r]=t[r]+t[r+1],t[r+1]=null);return t},_ot=/\p{L} ?\/ ?\p{L}+$/u,Tot=function(t){for(let e=1;e<t.length-1;e++)_ot.test(t[e])&&(t[e-1]+=t[e]+t[e+1],t[e]=null,t[e+1]=null);return t},Eot=/\S/,Aot=/^[!?.]+$/,Pot=/(\S+)/;let fF=[".","?","!",":",";","-","â","â","--","...","(",")","[","]",'"',"'","`","«","»","*","â¢"];fF=fF.reduce((t,e)=>(t[e]=!0,t),{});const Oot=function(t){return Object.prototype.toString.call(t)==="[object Array]"},Iot=function(t,e){let n=[],r=[];if(t=t||"",typeof t=="number"&&(t=String(t)),Oot(t))return t;const i=t.split(Pot);for(let o=0;o<i.length;o++){if(Sot(i[o],e)===!0){r=r.concat(kot(i[o]));continue}r.push(i[o])}let s="";for(let o=0;o<r.length;o++){let a=r[o];Eot.test(a)===!0&&fF.hasOwnProperty(a)===!1&&Aot.test(a)===!1?(n.length>0?(n[n.length-1]+=s,n.push(a)):n.push(s+a),s=""):s+=a}return s&&(n.length===0&&(n[0]=""),n[n.length-1]+=s),n=Tot(n),n=Cot(n),n=n.filter(o=>o),n},lte=/\p{Letter}/u,H5=/[\p{Number}\p{Currency_Symbol}]/u,Dot=/^[a-z]\.([a-z]\.)+/i,Mot=/[sn]['â]$/,Not=function(t,e){let{prePunctuation:n,postPunctuation:r,emoticons:i}=e.one,s=t,o="",a="",l=Array.from(t);if(i.hasOwnProperty(t.trim()))return{str:t.trim(),pre:o,post:" "};let c=l.length;for(let u=0;u<c;u+=1){let h=l[0];if(n[h]!==!0){if((h==="+"||h==="-")&&H5.test(l[1])||h==="'"&&h.length===3&&H5.test(l[1])||lte.test(h)||H5.test(h))break;o+=l.shift()}}c=l.length;for(let u=0;u<c;u+=1){let h=l[l.length-1];if(r[h]!==!0){if(lte.test(h)||H5.test(h))break;h==="."&&Dot.test(s)===!0||h==="'"&&Mot.test(s)===!0||(a=l.pop()+a)}}return t=l.join(""),t===""&&(s=s.replace(/ *$/,u=>(a=u||"","")),t=s,o=""),{str:t,pre:o,post:a}},Rot=(t,e)=>{let{str:n,pre:r,post:i}=Not(t,e);return{text:n,pre:r,post:i,tags:new Set}},Lot=function(t,e){const n=e.model.one.unicode||{};t=t||"";let r=t.split("");return r.forEach((i,s)=>{n[i]&&(r[s]=n[i])}),r.join("")},Bot=function(t){t=t||"",t=t.toLowerCase(),t=t.trim();let e=t;return t=t.replace(/[,;.!?]+$/,""),t=t.replace(/\u2026/g,"..."),t=t.replace(/\u2013/g,"-"),/^[
622:;]/.test(t)===!1&&(t=t.replace(/\.{3,}$/g,""),t=t.replace(/[",.!:;?)]+$/g,""),t=t.replace(/^['"(]+/g,"")),t=t.replace(/[\u200B-\u200D\uFEFF]/g,""),t=t.trim(),t===""&&(t=e),t=t.replace(/([0-9]),([0-9])/g,"$1$2"),t},Fot=/([A-Z]\.)+[A-Z]?,?$/,$ot=/^[A-Z]\.,?$/,jot=/[A-Z]{2,}('s|,)?$/,zot=/([a-z]\.)+[a-z]\.?$/,Hot=function(t){return Fot.test(t)===!0||zot.test(t)===!0||$ot.test(t)===!0||jot.test(t)===!0},Uot=function(t){return Hot(t)&&(t=t.replace(/\./g,"")),t},mye=function(t,e){const n=e.methods.one.killUnicode;let r=t.text||"";r=Bot(r),r=n(r,e),r=Uot(r),t.normal=r},Vot=function(t,e){const{methods:n,model:r}=e,{splitSentences:i,splitTerms:s,splitWhitespace:o}=n.one.tokenize;return t=t||"",t=i(t,e).map(l=>{let c=s(l,r);return c=c.map(u=>o(u,r)),c.forEach(u=>{mye(u,e)}),c}),t},Wot=/[ .][A-Z]\.? *$/i,qot=/(?:\u2026|\.{2,}) *$/,Got=/\p{L}/u,Kot=/\. *$/,Yot=/^[A-Z]\. $/,Qot=function(t,e){if(Got.test(t)===!1||Wot.test(t)===!0||t.length===3&&Yot.test(t)||qot.test(t)===!0)return!1;let r=t.replace(/[.!?\u203D\u2E18\u203C\u2047-\u2049] *$/,"").split(" "),i=r[r.length-1].toLowerCase();return!(e.hasOwnProperty(i)===!0&&Kot.test(t)===!0)},Xot={one:{killUnicode:Lot,tokenize:{splitSentences:wot,isSentence:Qot,splitTerms:Iot,splitWhitespace:Rot,fromString:Vot}}},Jot={"&":"and","@":"at","%":"percent",plz:"please",bein:"being"},Zot=["approx","apt","bc","cyn","eg","esp","est","etc","ex","exp","prob","pron","gal","min","pseud","fig","jd","lat","lng","vol","fm","def","misc","plz","ea","ps","sec","pt","pref","pl","pp","qt","fr","sq","nee","ss","tel","temp","vet","ver","fem","masc","eng","adj","vb","rb","inf","situ","vivo","vitro","wr"],eat=["adj","adm","adv","asst","atty","bldg","brig","capt","cmdr","comdr","cpl","det","dr","esq","gen","gov","hon","jr","llb","lt","maj","messrs","mlle","mme","mr","mrs","ms","mstr","phd","prof","pvt","rep","reps","res","rev","sen","sens","sfc","sgt","sir","sr","supt","surg"],tat=["jan","feb","mar","apr","jun","jul","aug","sep","sept","oct","nov","dec"],nat=["ad","al","arc","ba","bl","ca","cca","col","corp","ft","fy","ie","lit","ma","md","pd","tce"],rat=["dept","univ","assn","bros","inc","ltd","co"],iat=["rd","st","dist","mt","ave","blvd","cl","cres","hwy","ariz","cal","calif","colo","conn","fla","fl","ga","ida","ia","kan","kans","minn","neb","nebr","okla","penna","penn","pa","dak","tenn","tex","ut","vt","va","wis","wisc","wy","wyo","usafa","alta","ont","que","sask"],sat=["dl","ml","gal","qt","pt","tbl","tsp","tbsp","km","dm","cm","mm","mi","td","hr","hrs","kg","hg","dg","cg","mg","µg","lb","oz","sq ft","hz","mps","mph","kmph","kb","mb","tb","lx","lm","fl oz","yb"];let oat=[[Zot],[sat,"Unit"],[nat,"Noun"],[eat,"Honorific"],[tat,"Month"],[rat,"Organization"],[iat,"Place"]],gye={},eA={};oat.forEach(t=>{t[0].forEach(e=>{gye[e]=!0,eA[e]="Abbreviation",t[1]!==void 0&&(eA[e]=[eA[e],t[1]])})});const aat=["anti","bi","co","contra","de","extra","infra","inter","intra","macro","micro","mis","mono","multi","peri","pre","pro","proto","pseudo","re","sub","supra","trans","tri","un","out","ex"].reduce((t,e)=>(t[e]=!0,t),{}),lat={like:!0,ish:!0,less:!0,able:!0,elect:!0,type:!0,designate:!0};let cte={"!":"¡","?":"¿É",'"':'ââ"ââ',"'":"âââââ","-":"ââ",a:"ªÃÃÃÃÃÃ
à áâãäåÄÄÄÄÄÄ
ÇÇÇÇÇ Ç¡ÇºÇ»ÈÈÈÈȦȧȺÎÎÎÎάαλÐаѦѧÓÓÓÓÆÃ¦",b:"ÃÃ¾ÆÆÆÆÆÆ
ÉÎβÏϦÐÐЪЬвÑÑѢѣÒÒ",c:"¢©ÃçÄÄÄÄÄÄÄÄÆÆÆÈ»È¼Í»Í¼Ï²Ï¹Ï½Ï¾Ð¡ÑÑÒÒÒªÒ«",d:"ÃÄÄÄÄÆÆÈ¡ÆÆ",e:"ÃÃÃÃèéêëÄÄÄÄÄÄÄÄÄÄÆÈÈ
ÈÈȨȩÉÉÎÎÎΣÎεξϵÐÐÐеÑÑÒ¼Ò½Ò¾Ò¿ÓÓá»
",f:"ÆÆÏÏÓºÓ»ÒÒÅ¿",g:"ÄÄÄÄÄ Ä¡Ä¢Ä£ÆÇ¤Ç¥Ç¦Ç§Ç´Çµ",h:"ĤĥĦħÆÇ¶ÈÈÎÎÐÐÐÐнÑÑÒ¢Ò£Ò¤Ò¥ÒºÒ»ÓÓ",I:"ÃÃÃÃ",i:"ìÃîïĨĩĪīĬÄÄ®Ä¯Ä°Ä±ÆÆÈÈÈÈÎÎΪίιÏÐÐÑÑiÌ",j:"ĴĵǰȷÉÉϳÐÑ",k:"Ä¶Ä·Ä¸ÆÆÇ¨Ç©ÎκÐÐÐжкÑÒÒÒÒÒÒÒ Ò¡",l:"ĹĺĻļĽľĿÅÅÅÆÆªÇÇÇȴȽÎÓÓ",m:"ÎϺϻÐмÓÓ",n:"ÃñÅÅÅ
ÅÅÅÅÅÅÆÆÇ¸Ç¹È ȵÎΠήηÏÐÐÐÐÐийлпÑÒÒÓ
ÓÓ¢Ó£Ó¤Ó¥Ï",o:"ÃÃÃÃÃÃðòóôõöøÅÅÅÅÅÅÆÆ Æ¡ÇÇǪǫǬÇǾǿÈÈÈÈȪȫȬÈȮȯȰȱÎÎÎθοÏÏÏÏÏϬϴÐФоѲѳӦӧӨөӪӫ",p:"ƤΡÏϷϸϼРÑÒÒÃ",q:"ÉÉ",r:"ÅÅÅÅÅÅÆ¦ÈÈÈÈÉÉÐÐЯгÑÑÒÒ",s:"ÅÅÅÅÅÅŠšƧƨÈÈÈ¿Ð
Ñ",t:"Å¢Å£Å¤Å¥Å¦Å§Æ«Æ¬ÆÆ®ÈÈȶȾÎΤÏϮТÑ",u:"ÃÃÃÃùúûüŨũŪūŬÅŮůŰűŲųƯưƱƲÇÇÇÇÇÇÇÇÇÇÈÈÈÈÉΰÏ
ÏÏ",v:"νѴѵѶѷ",w:"ŴŵÆÏÏÏϢϣШЩÑÑѡѿ",x:"ÃΧÏÏϰХÑ
Ò²Ò³Ó¼Ó½
622Ó¾Ó¿",y:"ÃýÿŶŷŸƳƴȲȳÉÉÎΥΫγÏÏÏÏÐУÑÑÑѰѱҮүҰұӮӯӰӱӲӳ",z:"ŹźŻżŽžƵƶȤȥÉÎ"},yye={};Object.keys(cte).forEach(function(t){cte[t].split("").forEach(function(e){yye[e]=t})});const cat={"#":!0,"@":!0,_:!0,"°":!0,"â":!0,"â":!0,"â":!0,"\uFEFF":!0},uat={"%":!0,_:!0,"°":!0,"â":!0,"â":!0,"â":!0,"\uFEFF":!0},hat={"<3":!0,"</3":!0,"<\\3":!0,":^P":!0,":^p":!0,":^O":!0,":^3":!0},dat={one:{aliases:Jot,abbreviations:gye,prefixes:aat,suffixes:lat,prePunctuation:cat,postPunctuation:uat,lexicon:eA,unicode:yye,emoticons:hat}},ute=/\//,fat=/[a-z]\.[a-z]/i,pat=/[0-9]/,mat=function(t,e){let n=t.normal||t.text||t.machine;const r=e.model.one.aliases;if(r.hasOwnProperty(n)&&(t.alias=t.alias||[],t.alias.push(r[n])),ute.test(n)&&!fat.test(n)&&!pat.test(n)){let i=n.split(ute);i.length<=3&&i.forEach(s=>{s=s.trim(),s!==""&&(t.alias=t.alias||[],t.alias.push(s))})}return t},gat=/^\p{Letter}+-\p{Letter}+$/u,yat=function(t){let e=t.implicit||t.normal||t.text;e=e.replace(/['â]s$/,""),e=e.replace(/s['â]$/,"s"),e=e.replace(/([aeiou][ktrp])in'$/,"$1ing"),gat.test(e)&&(e=e.replace(/-/g,"")),e=e.replace(/^[#@]/,""),e!==t.normal&&(t.machine=e)},bat=function(t){let e=t.docs,n={};for(let r=0;r<e.length;r+=1)for(let i=0;i<e[r].length;i+=1){let s=e[r][i],o=s.machine||s.normal;n[o]=n[o]||0,n[o]+=1}for(let r=0;r<e.length;r+=1)for(let i=0;i<e[r].length;i+=1){let s=e[r][i],o=s.machine||s.normal;s.freq=n[o]}},vat=function(t){let e=0,n=0,r=t.document;for(let i=0;i<r.length;i+=1)for(let s=0;s<r[i].length;s+=1){let o=r[i][s];o.offset={index:n,start:e+o.pre.length,length:o.text.length},e+=o.pre.length+o.text.length+o.post.length,n+=1}},xat=function(t){let e=t.document;for(let n=0;n<e.length;n+=1)for(let r=0;r<e[n].length;r+=1)e[n][r].index=[n,r]},wat=function(t){let e=0,n=t.docs;for(let r=0;r<n.length;r+=1)for(let i=0;i<n[r].length;i+=1)n[r][i].normal!==""&&(e+=1,n[r][i].wordCount=e)},mN=function(t,e){let n=t.docs;for(let r=0;r<n.length;r+=1)for(let i=0;i<n[r].length;i+=1)e(n[r][i],t.world)},Sat={alias:t=>mN(t,mat),machine:t=>mN(t,yat),normal:t=>mN(t,mye),freq:bat,offset:vat,index:xat,wordCount:wat},kat={compute:Sat,methods:Xot,model:dat,hooks:["alias","machine","index","id"]},Cat=function(t){const e=t.model.one.typeahead,n=t.docs;if(n.length===0||Object.keys(e).length===0)return;let r=n[n.length-1]||[],i=r[r.length-1];if(!i.post&&e.hasOwnProperty(i.normal)){let s=e[i.normal];i.implicit=s,i.machine=s,i.typeahead=!0,t.compute.preTagger&&t.last().unTag("*").compute(["lexicon","preTagger"])}},_at={typeahead:Cat},Tat=function(){const t=this.docs;if(t.length===0)return this;let e=t[t.length-1]||[],n=e[e.length-1];return n.typeahead===!0&&n.machine&&(n.text=n.machine,n.normal=n.machine),this},Eat=function(t){t.prototype.autoFill=Tat},Aat=function(t,e,n){let r={},i=[],s=n.prefixes||{};return t.forEach(o=>{o=o.toLowerCase().trim();let a=o.length;e.max&&a>e.max&&(a=e.max);for(let l=e.min;l<a;l+=1){let c=o.substring(0,l);if(!(e.safe&&n.model.one.lexicon.hasOwnProperty(c))){if(s.hasOwnProperty(c)===!0){i.push(c);continue}if(r.hasOwnProperty(c)===!0){i.push(c);continue}r[c]=o}}}),r=Object.assign({},s,r),i.forEach(o=>{delete r[o]}),r},Pat=t=>Object.prototype.toString.call(t)==="[object Object]",Oat={safe:!0,min:3},Iat=function(t=[],e={}){let n=this.model();e=Object.assign({},Oat,e),Pat(t)&&(Object.assign(n.one.lexicon,t),t=Object.keys(t));let r=Aat(t,e,this.world());return Object.keys(r).forEach(i=>{if(n.one.typeahead.hasOwnProperty(i)){delete n.one.typeahead[i];return}n.one.typeahead[i]=r[i]}),this},Dat={typeahead:Iat},Mat={one:{typeahead:{}}},Nat={model:Mat,api:Eat,lib:Dat,compute:_at,hooks:["typeahead"]};gr.extend(knt);gr.extend(tst);gr.extend(wit);gr.extend(gst);gr.extend(sot);gr.plugin(Ynt);gr.extend(kat);gr.extend(Jnt);gr.plugin(Btt);gr.extend(yrt);gr.extend(Nat);gr.extend(crt);gr.extend(Ist);var gN,hte;function Rat(){return hte||(hte=1,gN=function(t,e){e=e||{},e.listUnicodeChar=e.hasOwnProperty("listUnicodeChar")?e.listUnicodeChar:!1,e.stripListLeaders=e.hasOwnProperty("stripListLeaders")?e.stripListLeaders:!0,e.gfm=e.hasOwnProperty("gfm")?e.gfm:!0,e.useImgAltText=e.hasOwnProperty("useImgAltText")?e.useImgAltText:!0,e.abbr=e.hasOwnProperty("abbr")?e.abbr:!1,e.replaceLinksWithURL=e.hasOwnProperty("replaceLinksWithURL")?e.replaceLinksWithURL:!1,e.htmlTagsToSkip=e.hasOwnProperty("htmlTagsToSkip")?e.htmlTagsToSkip:[],e.throwError=e.hasOwnProperty("throwError")?e.throwError:!1;var n=t||"";n=n.replace(/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/gm,"");try{e.stripListLeaders&&(e.listUnicodeChar?n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):n=n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(n=n.replace(/\n={2,}/g,` 623`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),e.abbr&&(n=n.replace(/\*\[.*\]:.*\n/,""));let r=/<[^>]*>/g;if(e.htmlTagsToSkip&&e.htmlTagsToSkip.length>0){const i=e.htmlTagsToSkip.join("|");r=new RegExp(`<(?!/?(${i})(?=>|s[^>]*>))[^>]*>`,"g")}n=n.replace(r,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[([^\]]*?)\][\[\(].*?[\]\)]/g,e.replaceLinksWithURL?"$2":"$1").replace(/^(\n)?\s{0,3}>\s?/gm,"$1").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s*( (.+))? +#+$|^(\n)?\s{0,}#{1,6}\s*( (.+))?$/gm,"$1$3$4$6").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(r){if(e.throwError)throw r;return console.error("remove-markdown encountered error: %s",r),t}return n}),gN}var Lat=Rat();const Bat=zc(Lat);function Fat(t,e=3){const n=$at(t),{sentences:r,terms:i}=UV(n),s=jat(r,i),o=zat(r,i),a=r.map(l=>gr(l).terms().out("array").reduce((u,h)=>u+(s[h]||0)*(o[h]||0),0));return Hat(r,a,e)}function $at(t){return Bat(t).replace(/\r?\n/g," ").replace(/ {2,}/g," ")}function UV(t){const e=gr(t).json().map(r=>r.text),n=gr(t).terms().out("array");return{sentences:e,terms:n}}function pF(t,e=4096){const{sentences:n}=UV(t),r=[];let i="";for(const s of n)if(s.length>=e){i.length&&(r.push(i),i="");const o=s.match(new RegExp(`.{1,${e}}\\b`,"g"))||[];r.push(...o)}else i.length+s.length<e?i+=` ${s.trim()}`:(i.length&&r.push(i),i=s);return i.length&&(r.push(i),i=""),r}function jat(t,e){const n={};for(const r of e)n[r]=t.reduce((i,s)=>i+(s.includes(r)?1:0),0)/t.length;return n}function zat(t,e){const n={};for(const r of e){const i=t.filter(s=>s.includes(r)).length;n[r]=Math.log(t.length/(1+i))}return n}function Hat(t,e,n){const r=t.map((i,s)=>[i,e[s]]);return r.sort((i,s)=>s[1]-i[1]),r.slice(0,n).map(i=>i[0]).join(" ")}const Uat=`I am ChatCraft, a web-based, expert programming AI assistant. I help programmers learn, experiment, and be more creative with code. 624 625I follow these rules when responding: 626 627- Use GitHub flavored Markdown 628- ALWAYS include the programming language name (js) or type of data (csv) at the start of Markdown code blocks 629- Format ALL lines of code to 80 characters or fewer 630- Use Nomnoml or Mermaid(quote titles to avoid syntax errors) diagrams when discussing visual topics 631- If using functions, only use the specific functions I have been provided with 632- If responding with math markdown, inline or otherwise, I use KaTeX syntax in math Markdown by enclosing EVERY mathematical expression, equation, variable, and formula with double-dollar signs \`($$)\`, for example: $$O(n\\log n)$$, $$1024 * 1024 = 1048576$$, $$1024^2$$, $$X$$ 633`,J8=()=>{const{customSystemPrompt:t}=Rc();return t??Uat};function dte(){return new Fc({text:J8()})}function Vat(t){let{text:e}=t;return e=e.split(` 634`)[0],e=e.length>250?`${e.slice(0,250).trim()}...`:e,e.length<t.text.length&&(e+="..."),e}function fte(t,e){return mF(t,e,"/api/share")}function mF(t,e,n="/c"){const{origin:r}=new URL(location.href);return new URL(`${n}/${e.username}/${t.id}`,r).href}function Wat(t){return t.includes("/api/share")?t.replace("/api/share","/c"):t}function qat(t,e){const n=document.cloneNode(!0),r=n instanceof Document?n:null,i=r?.querySelector("main");if(!r||!i)throw new Error("index.html changed without updating this code!");i.innerHTML="";const s=document.createElement("pre");
634s.textContent=t.toYAML(),i.append(s),[...i.attributes].forEach(l=>i.attributes.removeNamedItem(l.name));const a=t.messages().pop()?.text;return r.head.querySelectorAll("style")?.forEach(l=>l.remove()),r.head.querySelectorAll("script")?.forEach(l=>l.remove()),of(r,"http-equiv","refresh",`0;url=${mF(t,e)}`),of(r,"property","og:title",t.summary),of(r,"property","og:url",mF(t,e)),of(r,"property","og:type","website"),of(r,"name","description",t.summary),of(r,"name","twitter:card","summary_large_image"),of(r,"name","twitter:title","chatcraft.org"),of(r,"name","twitter:description",t.summary),of(r,"name","twitter:image","https://chatcraft.org/favicon-32x32.png"),Gat(r,t.summary),a&&of(r,"property","og:description",a),r.documentElement.outerHTML}function of(t,e,n,r){let i=t.head.querySelector(`meta[${e}='${n}']`);if(!i){i=t.createElement("meta");let s=t.head.lastChild;s||(s=t.createTextNode(` 635`),t.head.appendChild(s));const o=t.head.querySelectorAll(`meta[${e}]`);o.length>0&&(s=o[o.length-1]),s.after(t.createTextNode(` 636`)),s.after(i),s.after(t.createTextNode(` 637`))}i.setAttribute(e,n),i.setAttribute("content",r)}function Gat(t,e){let n=t.head.querySelector("title");n||(n=t.createElement("title"),t.head.appendChild(n),t.head.appendChild(t.createTextNode(` 638`))),n.textContent=e}async function pte(t,e){const n=await fetch(`/api/share/${e.username}/${t.id}`,{method:"PUT",credentials:"same-origin",headers:{"Content-Type":"text/html"},body:qat(t,e)});if(!n.ok){const{message:r}=await n.json();throw new Error(`Unable to share chat: ${r||"unknown error"}`)}}async function mte(t,e){const n=await fetch(`/api/share/${t}/${e}`);if(!n.ok)throw new Error("Unable to load shared chat"+await n.text());const r=await n.text();try{const a=JSON.parse(r);return Vs.fromJSON(a)}catch{}const o=new DOMParser().parseFromString(r,"text/html").querySelector("main")?.textContent;if(!o)throw new Error("No shared found in the shared html");return Vs.fromYAML(o)}async function Kat(t,e){const n=await fetch(`/api/share/${t.username}/${e}`,{method:"DELETE",credentials:"same-origin"});if(!n.ok){const{message:r}=await n.json();throw new Error(`Unable to unshare chat: ${r||"unknown error"}`)}}class Ux{id;url;date;summary;chat;constructor({id:e,url:n,date:r,summary:i,chat:s}){this.id=e,this.url=n,this.date=r,this.summary=i,this.chat=s}toDB(){return{id:this.id,url:this.url,date:this.date,summary:this.summary,chat:this.chat.toJSON()}}static fromDB(e){return new Ux({...e,chat:Vs.fromJSON(e.chat)})}static async delete(e,n){if(await await vr.shared.get(n))return Promise.all([Kat(e,n),vr.shared.delete(n)])}}class dd{id;name;type;size;content;text;created;metadata;chunks;constructor(e,n){if(this.id=e,!n.name?.trim())throw new Error("File name is required");if(this.name=n.name,!/^[^/]+\/[^/]+/.test(n.type))throw new Error("File type must be a valid mime-type");this.type=n.type,this.content=n.content,this.size=n.content.size,this.text=n.text,this.created=new Date,this.metadata=n.metadata,this.chunks=n.chunks}get extension(){return this.name.split(".").pop()||""}get originalName(){return this.name}static async calculateHash(e){const n=await e.arrayBuffer(),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(o=>o.toString(16).padStart(2,"0")).join("")}static async findOrCreate(e,n){let r;e instanceof File?(r={name:e.name,type:e.type||"application/octet-stream",content:e,metadata:{lastModified:new Date(e.lastModified)}},n&&(r={...r,...n,metadata:{...r.metadata,...n.metadata}})):r=e;const i=await dd.calculateHash(r.content),s=await dd.findById(i);if(s)return s;const o=new dd(i,r);return await vr.files.add(o.toDB()),o}static async findById(e){const n=await vr.files.get(e);if(n)return dd.fromDB(n)}static async findByContent(e){const n=await dd.calculateHash(e);return dd.findById(n)}static async delete(e){const n=typeof e=="string"?e:e.id;return vr.files.delete(n)}getMetadata(e){return this.metadata?.[e]}getChunk(e){return this.chunks?.[e]}setMetadata(e,n){this.metadata||(this.metadata={}),this.metadata[e]=n}async setChunks(e){this.chunks=e,await vr.files.update(this.id,{chunks:e})}hasChunks(){return!!this.chunks&&this.chunks.length>0}async generateChunks(e=1e3,n=20){if(!this.text)throw new Error("File has no text content to chunk!");if(this.size<=3e5)return console.log(`File ${this.name} is too small (${this.size} bytes / ${Math.round(this.size/1024)}KB), skipping chunking`),[];const i=pF(this.text,e),o=this.addOverlapToChunks(i,e,n).map((a,l)=>({text:a,embeddings:[],metadata:{index:l,length:a.length,fileSize:this.size,fileName:this.name,strategy:"fixed-size-with-overlap",overlapPercentage:n}}));return await this.setChunks(o),console.log(`Generated ${o.length} chunks with ${n}% overlap for file: ${this.name} (${Math.round(this.size/1024)}KB)`),o}addOverlapToChunks(e,n,r){if(e.length<=1)return e;const i=[],s=Math.max(50,Math.floor(n*r/100));for(let o=0;o<e.length;o++)if(o===0)i.push(e[o]);else{const a=e[o-1],l=e[o];let c="";if(a.length>s){const u=a.length-s,h=a.indexOf(" ",u);h!==-1?c=a.substring(h+1):c=a.substring(u)}c&&!l.startsWith(c)?i.push(c+" "+l):i.push(l)}return i}download(){xd(this.content,this.name,this.type)}isImage(){return this.type.startsWith("image/")}isText(){return this.type.startsWith("text/")}isJSON(){return this.type.startsWith("application/json")}isCSV(){return this.type.startsWith("text/csv")}isMarkdown(){return this.type.startsWith("application/markdown")}isPDF(){return this.type.startsWith("application/pdf")}isWord(){return this.type.startsWith("application/vnd.openxmlformats-officedocument.wordprocessingml.document")}
638toFile(){return new File([this.content],this.name,{type:this.type,lastModified:this.created.getTime()})}toURL(){return URL.createObjectURL(this.content)}toDB(){return{id:this.id,name:this.name,type:this.type,size:this.size,content:this.content,text:this.text,created:this.created,metadata:this.metadata,chunks:this.chunks}}static fromDB(e){return new dd(e.id,e)}}function Yat(t,e=200){const n=t.messages({includeAppMessages:!1,includeSystemMessages:!1}).map(s=>s.text);n.length>1&&n.pop();const r=n.join(` 639 640`),i=Fat(r);return i.length>e?i.slice(0,e)+"...":i}class Vs{id;readonly;date;_summary;_messages;_files;constructor({id:e,date:n,summary:r,messages:i,files:s,fileRefs:o,readonly:a}={}){if(this.id=e??f1(),this._messages=i??[dte()],this.date=n??new Date,this._summary=r,this.readonly=a===!0,s||o){if(!s||!o)throw new Error("Both files and fileRefs must be provided together");const l=new Set(s.map(d=>d.id)),c=new Set(o.map(d=>d.id)),u=new Map;s.forEach(d=>{const p=o.find(g=>g.id===d.id);p&&u.set(d.id,{file:d,ref:p})});const h=[...c].filter(d=>!l.has(d));h.length&&console.warn(`Missing files for refs: ${h.join(", ")}`),this._files=u}}getFileValues(e){return Array.from(this._files?.values()??[]).map(e)}messages(e={}){const r={...{includeAppMessages:!0,includeSystemMessages:!0,includeHumanMessages:!0,includeAiMessages:!0},...e},i=r.includeAppMessages===!0,s=r.includeSystemMessages===!0,o=r.includeHumanMessages===!0,a=r.includeAiMessages===!0;return this._messages.filter(l=>!(!i&&l instanceof Us||!s&&l instanceof Fc||!o&&l instanceof Go||!a&&l instanceof Pu))}files(){return this.getFileValues(e=>e.file)}async functions(e){const n=this.messages({includeAppMessages:!1,includeAiMessages:!1}),r=new Set;for(const i of n)U1e(i.text).forEach(s=>r.add(s));return V1e([...r],e)}async tokens(){const e=this.messages({includeAppMessages:!1,includeSystemMessages:!0});return Eme(e)}get summary(){return this._summary||Yat(this)}set summary(e){this._summary=e}async addMessage(e){this.readonly||(this._messages=[...this._messages,e],await this.save())}async removeMessage(e){this.readonly||(await Sh.delete(e),this._messages=this._messages.filter(n=>n.id!==e),await this.save())}async addFile(e,n){if(this.readonly)return;const r=(n||e.name).trim();if(!r)throw new Error("File name is required");const i=new Map(this._files||new Map);i.set(e.id,{file:e,ref:{id:e.id,name:r}}),this._files=i,await this.save()}async removeFile(e){if(this.readonly)return;const n=typeof e=="string"?e:e.id;if(!this._files?.has(n))throw new Error(`No file found with id ${n}`);this._files.delete(n),await this.save()}async renameFile(e,n){if(this.readonly)return;const r=typeof e=="string"?e:e.id;if(n=n.trim(),!n)throw new Error("File name is required");if(!this._files?.has(r))throw new Error(`No file found with id ${r}`);const i=this._files.get(r);this._files.set(r,{...i,ref:{...i.ref,name:n}}),await this.save()}async removeMessagesBefore(e){if(this.readonly)return;const n=this._messages.findIndex(s=>s.id===e);if(n===-1){console.warn(`No such message at id ${e} in current chat, unable to delete messages`);return}let r=this._messages.slice(0,n);r[0]instanceof Fc&&(r=r.slice(1));const i=r.map(s=>s.id);return await vr.messages.bulkDelete(i),this._messages=this._messages.filter(s=>!i.includes(s.id)),this.save()}async removeMessagesAfter(e){if(this.readonly)return;const n=this._messages.findIndex(s=>s.id===e);if(n===-1){console.warn(`No such message at id ${e} in current chat, unable to delete messages`);return}const i=this._messages.slice(n+1).map(s=>s.id);await vr.messages.bulkDelete(i),this._messages=this._messages.filter(s=>!i.includes(s.id)),await this.save()}async resetMessages(){this.readonly||(await vr.messages.bulkDelete(this._messages.map(({id:e})=>e)),this._messages=[dte()],await this.save())}toMarkdown(){return this.messages({includeAppMessages:!1}).map(e=>e.text).join(` 641 642--- 643 644`)}static async find(e){const n=await vr.chats.get(e);if(!n)return;const r=await vr.messages.bulkGet(n.messageIds),{fileRefs:i}=n;if(i?.length){const o=(await vr.files.bulkGet(i.map(a=>a.id))).filter(a=>!!a).map(a=>{const l=i.find(u=>u.id===a.id);if(!l)return;const c=dd.fromDB(a);return Object.defineProperty(c,"name",{value:l.name,writable:!1}),c}).filter(a=>!!a);return Vs.fromDB(n,r,o)}return Vs.fromDB(n,r)}async save(){if(this.readonly)return;const e=this.id;this.date=new Date,await vr.transaction("rw",vr.chats,vr.messages,async()=>{await vr.messages.bulkPut(this._messages.map(n=>n.toDB(e))),await vr.chats.put(this.toDB())})}async fork(e){let n=this.messages({includeAppMessages:!1,includeSystemMessages:!0});if(e){const i=n.findIndex(s=>s.id===e);i&&(n=n.slice(0,i+1))}const r=new Vs({messages:n.map(i=>i.clone()),files:this.getFileValues(i=>i.file),fileRefs:this.getFileValues(i=>i.ref),summary:this.summary});return await r.save(),r}clone(){return new Vs({summary:this.summary,messages:this._messages,readonly:this.readonly,files:this.getFileValues(e=>e.file),fileRefs:this.getFileValues(e=>e.ref)})}toOpenAiFormat(e){return{messages:this._messages.map(n=>({role:n.type,content:n.text})),model:e}}toJSON(){return{id:this.id,date:this.date.toISOString(),summary:this.summary,messages:this.messages({includeAppMessages:!1,includeSystemMessages:!0}).map(e=>e.toJSON())}}toYAML(){return f8(this.toJSON())}toDB(){return{id:this.id,date:this.date,summary:this.summary,messageIds:this._messages.map(({id:e})=>e),fileRefs:this.getFileValues(e=>e.ref)}}async share(e,n){const r=this.clone();n&&(r.summary=n);const i=fte(r,e);await pte(r,e);
644const s=new Ux({id:r.id,url:i,date:r.date,summary:r.summary,chat:r});return await vr.shared.add(s.toDB()),s}async shareSingleMessage(e,n){const r=this._messages.find(a=>a.id===n);if(!r)throw new Error("Message not found");const i=new Vs({messages:[r],summary:this.summary}),s=fte(i,e);await pte(i,e);const o=new Ux({id:i.id,url:s,date:i.date,summary:i.summary,chat:i});return await vr.shared.add(o.toDB()),o}static async delete(e){return vr.transaction("rw",[vr.chats,vr.messages,vr.files],async()=>{const n=await vr.chats.get(e);if(!n)throw new Error("Missing or invalid chat");const r=n.messageIds,i=n.fileRefs??[];await vr.chats.delete(e),await vr.messages.bulkDelete(r);for(const s of i)await vr.chats.filter(a=>Array.isArray(a.fileRefs)&&a.fileRefs.some(l=>l.id===s.id)).count()===0&&await vr.files.delete(s.id)}).catch(n=>{throw console.error("Failed to delete chat:",n),new Error(`Failed to delete chat ${e}. Some data may be in an inconsistent state.`)})}static fromJSON({id:e,date:n,summary:r,messages:i}){return new Vs({id:e,date:new Date(n),summary:r,messages:i.map(s=>Sh.fromJSON(s)),readonly:!0})}static fromYAML(e){return Vs.fromJSON(i0e(e))}static fromDB(e,n,r){const i=[],s=[];return r?.length&&e.fileRefs?.length&&r.filter(o=>!!o).forEach(o=>{const a=e.fileRefs?.find(l=>l.id===o.id);if(a){const l=dd.fromDB(o);Object.defineProperty(l,"name",{value:a.name,writable:!1}),i.push(l),s.push(a)}}),new Vs({...e,messages:n.filter(o=>!!o).map(o=>Sh.fromDB(o)),files:i,fileRefs:s})}}var bye={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gte=ii.createContext&&ii.createContext(bye),Qat=["attr","size","title"];function Xat(t,e){if(t==null)return{};var n=Jat(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Jat(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Z8(){return Z8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Z8.apply(this,arguments)}function yte(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 e7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yte(Object(n),!0).forEach(function(r){Zat(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yte(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zat(t,e,n){return e=elt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function elt(t){var e=tlt(t,"string");return typeof e=="symbol"?e:e+""}function tlt(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vye(t){return t&&t.map((e,n)=>ii.createElement(e.tag,e7({key:n},e.attr),vye(e.child)))}function yn(t){return e=>ii.createElement(nlt,Z8({attr:e7({},t.attr)},e),vye(t.child))}function nlt(t){var e=n=>{var{attr:r,size:i,title:s}=t,o=Xat(t,Qat),a=i||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),ii.createElement("svg",Z8({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:e7(e7({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&ii.createElement("title",null,s),t.children)};return gte!==void 0?ii.createElement(gte.Consumer,null,n=>e(n)):e(bye)}function rlt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M14.8285 12.0259L16.2427 13.4402L12 17.6828L7.7574 13.4402L9.17161 12.0259L11 13.8544V6.31724H13V13.8544L14.8285 12.0259Z",fill:"currentColor"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7782 19.7782C15.4824 24.0739 8.51759 24.0739 4.22183 19.7782C-0.0739417 15.4824 -0.0739417 8.51759 4.22183 4.22183C8.51759 -0.0739419 15.4824 -0.0739419 19.7782 4.22183C24.0739 8.51759 24.0739 15.4824 19.7782 19.7782ZM18.364 18.364C14.8492 21.8787 9.15076 21.8787 5.
64463604 18.364C2.12132 14.8492 2.12132 9.15076 5.63604 5.63604C9.15076 2.12132 14.8492 2.12132 18.364 5.63604C21.8787 9.15076 21.8787 14.8492 18.364 18.364Z",fill:"currentColor"},child:[]}]})(t)}function xye(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z",fill:"currentColor"},child:[]}]})(t)}function ilt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z"},child:[]}]})(t)}function slt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.742 13.045a8.088 8.088 0 0 1-2.077.271c-2.135 0-4.14-.83-5.646-2.336a8.025 8.025 0 0 1-2.064-7.723A1 1 0 0 0 9.73 2.034a10.014 10.014 0 0 0-4.489 2.582c-3.898 3.898-3.898 10.243 0 14.143a9.937 9.937 0 0 0 7.072 2.93 9.93 9.93 0 0 0 7.07-2.929 10.007 10.007 0 0 0 2.583-4.491 1.001 1.001 0 0 0-1.224-1.224zm-2.772 4.301a7.947 7.947 0 0 1-5.656 2.343 7.953 7.953 0 0 1-5.658-2.344c-3.118-3.119-3.118-8.195 0-11.314a7.923 7.923 0 0 1 2.06-1.483 10.027 10.027 0 0 0 2.89 7.848 9.972 9.972 0 0 0 7.848 2.891 8.036 8.036 0 0 1-1.484 2.059z"},child:[]}]})(t)}function olt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.993 12c0 2.761 2.246 5.007 5.007 5.007s5.007-2.246 5.007-5.007S14.761 6.993 12 6.993 6.993 9.239 6.993 12zM12 8.993c1.658 0 3.007 1.349 3.007 3.007S13.658 15.007 12 15.007 8.993 13.658 8.993 12 10.342 8.993 12 8.993zM10.998 19h2v3h-2zm0-17h2v3h-2zm-9 9h3v2h-3zm17 0h3v2h-3zM4.219 18.363l2.12-2.122 1.415 1.414-2.12 2.122zM16.24 6.344l2.122-2.122 1.414 1.414-2.122 2.122zM6.342 7.759 4.22 5.637l1.415-1.414 2.12 2.122zm13.434 10.605-1.414 1.414-2.122-2.122 1.414-1.414z"},child:[]}]})(t)}function alt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5z"},child:[]}]})(t)}function llt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM3.517 14.841a1.13 1.13 0 0 0 .401.823q.195.162.478.252.284.091.665.091.507 0 .859-.158.354-.158.539-.44.187-.284.187-.656 0-.336-.134-.56a1 1 0 0 0-.375-.357 2 2 0 0 0-.566-.21l-.621-.144a1 1 0 0 1-.404-.176.37.37 0 0 1-.144-.299q0-.234.185-.384.188-.152.512-.152.214 0 .37.068a.6.6 0 0 1 .246.181.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.2-.566 1.2 1.2 0 0 0-.5-.41 1.8 1.8 0 0 0-.78-.152q-.439 0-.776.15-.337.149-.527.421-.19.273-.19.639 0 .302.122.524.124.223.352.367.228.143.539.213l.618.144q.31.073.463.193a.39.39 0 0 1 .152.326.5.5 0 0 1-.085.29.56.56 0 0 1-.255.193q-.167.07-.413.07-.175 0-.32-.04a.8.8 0 0 1-.248-.115.58.58 0 0 1-.255-.384zM.806 13.693q0-.373.102-.633a.87.87 0 0 1 .302-.399.8.8 0 0 1 .475-.137q.225 0 .398.097a.7.7 0 0 1 .272.26.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964 1.4 1.4 0 0 0-.489-.272 1.8 1.8 0 0 0-.606-.097q-.534 0-.911.223-.375.222-.572.632-.195.41-.196.979v.498q0 .568.193.976.197.407.572.626.375.217.914.217.439 0 .785-.164t.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.8.8 0 0 1-.118.363.7.7 0 0 1-.272.25.9.9 0 0 1-.401.087.85.85 0 0 1-.478-.132.83.83 0 0 1-.299-.392 1.7 1.7 0 0 1-.102-.627zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879z"},child:[]}]})(t)}function bte(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-7.839 9.166v.522q0 .384-.117.641a.86.86 0 0 1-.322.387.9.9 0 0 1-.469.126.9.9 0 0 1-.471-.126.87.87 0 0 1-.32-.386 1.55 1.55 0 0 1-.117-.
644642v-.522q0-.386.117-.641a.87.87 0 0 1 .32-.387.87.87 0 0 1 .471-.129q.264 0 .469.13a.86.86 0 0 1 .322.386q.117.255.117.641m.803.519v-.513q0-.565-.205-.972a1.46 1.46 0 0 0-.589-.63q-.381-.22-.917-.22-.533 0-.92.22a1.44 1.44 0 0 0-.589.627q-.204.406-.205.975v.513q0 .563.205.973.205.406.59.627.386.216.92.216.535 0 .916-.216.383-.22.59-.627.204-.41.204-.973M0 11.926v4h1.459q.603 0 .999-.238a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.59-.68q-.395-.234-1.004-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082H.79V12.57Zm7.422.483a1.7 1.7 0 0 0-.103.633v.495q0 .369.103.627a.83.83 0 0 0 .298.393.85.85 0 0 0 .478.131.9.9 0 0 0 .401-.088.7.7 0 0 0 .273-.248.8.8 0 0 0 .117-.364h.765v.076a1.27 1.27 0 0 1-.226.674q-.205.29-.55.454a1.8 1.8 0 0 1-.786.164q-.54 0-.914-.216a1.4 1.4 0 0 1-.571-.627q-.194-.408-.194-.976v-.498q0-.568.197-.978.195-.411.571-.633.378-.223.911-.223.328 0 .607.097.28.093.489.272a1.33 1.33 0 0 1 .466.964v.073H9.78a.85.85 0 0 0-.12-.38.7.7 0 0 0-.273-.261.8.8 0 0 0-.398-.097.8.8 0 0 0-.475.138.87.87 0 0 0-.301.398"},child:[]}]})(t)}function vte(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-4.34 8.132q.114.23.14.492h-.776a.8.8 0 0 0-.097-.249.7.7 0 0 0-.17-.19.7.7 0 0 0-.237-.126 1 1 0 0 0-.299-.044q-.428 0-.665.302-.234.301-.234.85v.498q0 .351.097.615a.9.9 0 0 0 .304.413.87.87 0 0 0 .519.146 1 1 0 0 0 .457-.096.67.67 0 0 0 .272-.264q.09-.164.091-.363v-.255H8.24v-.59h1.576v.798q0 .29-.097.55a1.3 1.3 0 0 1-.293.458 1.4 1.4 0 0 1-.495.313q-.296.111-.697.111a2 2 0 0 1-.753-.132 1.45 1.45 0 0 1-.533-.377 1.6 1.6 0 0 1-.32-.58 2.5 2.5 0 0 1-.105-.745v-.506q0-.543.2-.95.201-.406.582-.633.384-.228.926-.228.357 0 .636.1.28.1.48.275t.314.407ZM0 14.786q0 .246.082.465.083.22.243.39.165.17.407.267.246.093.569.093.63 0 .984-.345.357-.346.358-1.005v-2.725h-.791v2.745q0 .303-.138.466t-.422.164a.5.5 0 0 1-.454-.246.6.6 0 0 1-.073-.27H0Zm4.92-2.86H3.322v4h.791v-1.343h.803q.43 0 .732-.172.305-.177.463-.475.162-.302.161-.677 0-.374-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179Zm.546 1.333a.8.8 0 0 1-.085.381.57.57 0 0 1-.238.24.8.8 0 0 1-.375.082H4.11v-1.406h.66q.327 0 .512.182.185.181.185.521Z"},child:[]}]})(t)}function xte(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM4.151 15.29a1.2 1.2 0 0 1-.111-.449h.764a.58.58 0 0 0 .255.384q.105.073.25.114.142.041.319.041.245 0 .413-.07a.56.56 0 0 0 .255-.193.5.5 0 0 0 .084-.29.39.39 0 0 0-.152-.326q-.152-.12-.463-.193l-.618-.143a1.7 1.7 0 0 1-.539-.214 1 1 0 0 1-.352-.367 1.1 1.1 0 0 1-.123-.524q0-.366.19-.639.192-.272.528-.422.337-.15.777-.149.456 0 .779.152.326.153.5.41.18.255.2.566h-.75a.56.56 0 0 0-.12-.258.6.6 0 0 0-.246-.181.9.9 0 0 0-.37-.068q-.324 0-.512.152a.47.47 0 0 0-.185.384q0 .18.144.3a1 1 0 0 0 .404.175l.621.143q.326.075.566.211a1 1 0 0 1 .375.358q.135.222.135.56 0 .37-.188.656a1.2 1.2 0 0 1-.539.439q-.351.158-.858.158-.381 0-.665-.09a1.4 1.4 0 0 1-.478-.252 1.1 1.1 0 0 1-.29-.375m-3.104-.033a1.3 1.3 0 0 1-.082-.466h.764a.6.6 0 0 0 .074.27.5.5 0 0 0 .454.246q.285 0 .422-.164.137-.165.137-.466v-2.745h.791v2.725q0 .66-.357 1.005-.355.345-.985.345a1.6 1.6 0 0 1-.568-.094 1.15 1.15 0 0 1-.407-.266 1.1 1.1 0 0 1-.243-.39m9.091-1.585v.522q0 .384-.117.641a.86.86 0 0 1-.322.387.9.9 0 0 1-.47.126.9.9 0 0 1-.47-.126.87.87 0 0 1-.32-.387 1.55 1.55 0 0 1-.117-.641v-.522q0-.386.117-.641a.87.87 0 0 1 .32-.387.87.87 0 0 1 .47-.129q.265 0 .47.129a.86.86 0 0 1 .322.387q.117.255.117.641m.803.519v-.513q0-.565-.205-.973a1.46 1.46 0 0 0-.59-.63q-.38-.22-.916-.22-.534 0-.92.22a1.44 1.44 0 0 0-.589.628q-.205.407-.205.975v.513q0 .562.205.973.205.407.589.626.386.217.92.217.536 0 .917-.217.384-.22.589-.626.204-.41.205-.973m1.29-.935v2.675h-.746v-3.999h.662l1.752 2.66h.032v-2.66h.75v4h-.656l-1.761-2.676z"},child:[]}]})(t)}function clt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2H9v-1h3a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM.706 13.189v2.66H0V11.85h.806l1.14 2.596h.026l1.14-2.596h.8v3.999h-.716v-2.66h-.038l-.946 2.159h-.516l-.952-2.16H.706Zm3.919 2.66V11.85h1.459q.609 0 1.005.234t.589.68q.195.445.196 1.075 0 .634-.196 1.084-.197.451-.595.689-.396.237-1 .237H4.626Zm1.353-3.354h-.562v2.707h.562q.279 0 .484-.082a.8.8 0 0 0 .334-.252 1.1 1.1 0 0 0 .196-.422q.067-.252.067-.592a2.1 2.1 0 0 0-.117-.753.9.9 0 0 0-.354-.454q-.238-.152-.61-.152"},child:[]}]})(t)}function ult(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.
64463-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"},child:[]}]})(t)}function hlt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-3.76 8.132q.114.23.14.492h-.776a.8.8 0 0 0-.097-.249.7.7 0 0 0-.17-.19.7.7 0 0 0-.237-.126 1 1 0 0 0-.299-.044q-.427 0-.665.302-.234.301-.234.85v.498q0 .351.097.615a.9.9 0 0 0 .304.413.87.87 0 0 0 .519.146 1 1 0 0 0 .457-.096.67.67 0 0 0 .272-.264q.09-.164.091-.363v-.255H8.82v-.59h1.576v.798q0 .29-.097.55a1.3 1.3 0 0 1-.293.458 1.4 1.4 0 0 1-.495.313q-.296.111-.697.111a2 2 0 0 1-.753-.132 1.45 1.45 0 0 1-.533-.377 1.6 1.6 0 0 1-.32-.58 2.5 2.5 0 0 1-.105-.745v-.506q0-.543.2-.95.201-.406.582-.633.384-.228.926-.228.357 0 .636.1.281.1.48.275.2.176.314.407Zm-8.64-.706H0v4h.791v-1.343h.803q.43 0 .732-.172.305-.177.463-.475a1.4 1.4 0 0 0 .161-.677q0-.374-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.381.57.57 0 0 1-.238.24.8.8 0 0 1-.375.082H.788v-1.406h.66q.327 0 .512.182.185.181.185.521m1.964 2.666V13.25h.032l1.761 2.675h.656v-3.999h-.75v2.66h-.032l-1.752-2.66h-.662v4z"},child:[]}]})(t)}function dlt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM0 14.841a1.13 1.13 0 0 0 .401.823q.194.162.478.252.285.091.665.091.507 0 .858-.158.355-.158.54-.44a1.17 1.17 0 0 0 .187-.656q0-.336-.135-.56a1 1 0 0 0-.375-.357 2 2 0 0 0-.565-.21l-.621-.144a1 1 0 0 1-.405-.176.37.37 0 0 1-.143-.299q0-.234.184-.384.187-.152.513-.152.214 0 .37.068a.6.6 0 0 1 .245.181.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.199-.566 1.2 1.2 0 0 0-.5-.41 1.8 1.8 0 0 0-.78-.152q-.44 0-.776.15-.337.149-.528.421-.19.273-.19.639 0 .302.123.524t.351.367q.229.143.54.213l.618.144q.31.073.462.193a.39.39 0 0 1 .153.326.5.5 0 0 1-.085.29.56.56 0 0 1-.256.193q-.167.07-.413.07-.176 0-.32-.04a.8.8 0 0 1-.248-.115.58.58 0 0 1-.255-.384zm4.575 1.09h.952l1.327-3.999h-.879l-.887 3.138H5.05l-.897-3.138h-.917zm5.483-3.293q.114.228.14.492h-.776a.8.8 0 0 0-.096-.249.7.7 0 0 0-.17-.19.7.7 0 0 0-.237-.126 1 1 0 0 0-.3-.044q-.427 0-.664.302-.235.3-.235.85v.497q0 .352.097.616a.9.9 0 0 0 .305.413.87.87 0 0 0 .518.146 1 1 0 0 0 .457-.097.67.67 0 0 0 .273-.263q.09-.164.09-.364v-.254h-.823v-.59h1.576v.798q0 .29-.096.55a1.3 1.3 0 0 1-.293.457 1.4 1.4 0 0 1-.495.314q-.296.111-.698.111a2 2 0 0 1-.752-.132 1.45 1.45 0 0 1-.534-.377 1.6 1.6 0 0 1-.319-.58 2.5 2.5 0 0 1-.105-.745v-.507q0-.54.199-.949.202-.406.583-.633.383-.228.926-.228.357 0 .635.1.282.1.48.275.2.176.314.407"},child:[]}]})(t)}function flt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"},child:[]}]})(t)}function wte(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM6.472 15.29a1.2 1.2 0 0 1-.111-.449h.765a.58.58 0 0 0 .254.384q.106.073.25.114.143.041.319.041.246 0 .413-.07a.56.56 0 0 0 .255-.193.5.5 0 0 0 .085-.29.39.39 0 0 0-.153-.326q-.152-.12-.462-.193l-.619-.143a1.7 1.7 0 0 1-.539-.214 1 1 0 0 1-.351-.367 1.1 1.1 0 0 1-.123-.524q0-.366.19-.639.19-.272.527-.422.338-.15.777-.149.457 0 .78.152.324.153.5.41.18.255.2.566h-.75a.56.56 0 0 0-.12-.258.6.6 0 0 0-.247-.181.9.9 0 0 0-.369-.068q-.325 0-.513.152a.47.47 0 0 0-.184.384q0 .18.143.3a1 1 0 0 0 .405.175l.62.143q.326.075.566.211a1 1 0 0 1 .375.358q.135.222.135.56 0 .37-.188.656a1.2 1.2 0 0 1-.539.439q-.351.158-.858.158-.381 0-.665-.09a1.4 1.4 0 0 1-.478-.252 1.1 1.1 0 0 1-.29-.375m-2.945-3.358h-.893L1.81 13.37h-.036l-.832-1.438h-.93l1.227 1.983L0 15.931h.861l.853-1.415h.035l.85 1.415h.908L2.253 13.94zm2.727 3.325H4.557v-3.325h-.79v4h2.487z"},child:[]}]})(t)}function wye(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.
64404 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"},child:[]}]})(t)}function plt(t){return yn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0z"},child:[]}]})(t)}function mlt(t){return yn({attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:`M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r 645 c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r 646 c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z`},child:[]},{tag:"path",attr:{fill:"#FF3D00",d:`M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r 647 C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z`},child:[]},{tag:"path",attr:{fill:"#4CAF50",d:`M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r 648 c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z`},child:[]},{tag:"path",attr:{fill:"#1976D2",d:`M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r 649 c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z`},child:[]}]})(t)}function glt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"},child:[]}]})(t)}function ylt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l5 5l10 -10"},child:[]}]})(t)}function Sye(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 9l6 6l6 -6"},child:[]}]})(t)}function kye(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 15l6 -6l6 6"},child:[]}]})(t)}function y_(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"},child:[]},{tag:"path",attr:{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"},child:[]}]})(t)}function blt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]}]})(t)}function VV(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"},child:[]},{tag:"path",attr:{d:"M7 11l5 5l5 -5"},child:[]},{tag:"path",attr:{d:"M12 4l0 12"},child:[]}]})(t)}function Cye(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"},child:[]},{tag:"path",attr:{d:"M11 13l9 -9"},child:[]},{tag:"path",attr:{d:"M15 4h5v5"},child:[]}]})(t)}function vlt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 15m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"},child:[]},{tag:"path",attr:{d:"M18.5 18.5l2.5 2.5"},child:[]},{tag:"path",attr:{d:"M4 6h16"},child:[]},{tag:"path",attr:{d:"M4 12h4"},child:[]},{tag:"path",attr:{d:"M4 18h4"},child:[]}]})(t)}function _ye(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"},child:[]},{tag:"path",attr:{d:"M5 10a7 7 0 0 0 14 0"},child:[]},{tag:"path",attr:{d:"M8 21l8 0"},child:[]},{tag:"path",attr:{d:"M12 17l0 4"},child:[]}]})(t)}function xlt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"},child:[]},{tag:"path",attr:{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"},child:[]}]})(t)}function wlt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 4v16l13 -8z"},child:[]}]})(t)}function Slt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 7l5 5l-5 5"},child:[]},{tag:"path",attr:{d:"M13 17l6 0"},child:[]}]})(t)}function klt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M4 17l5 1l.75 -1.5"},child:[]},{tag:"path",attr:{d:"M15 21l0 -4l-4 -3l1 -6"},child:[]},{tag:"path",attr:{d:"M7 12l0 -3l5 -1l3 3l3 1"},child:[]}]})(t)}function YO(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"},child:[]},{tag:"path",attr:{d:"M21 21l-6 -6"},child:[]}]})(t)}function Clt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 14l11 -11"},child:[]},{tag:"path",attr:{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"},child:[]}]})(t)}function WV(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4v4c-6.575 1.028 -9.02 6.788 -10 12c-.037 .206 5.384 -5.962 10 -6v4l8 -7l-8 -7z"},child:[]}]})(t)}function _lt(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"},child:[]}]})(t)}function ix(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 7l16 0"},child:[]},{tag:"path",attr:{d:"M10 11l0 6"},child:[]},{tag:"path",attr:{d:"M14 11l0 6"},child:[]},{tag:"path",attr:{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"},child:[]},{tag:"path",attr:{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"},child:[]}]})(t)}function gF(t){return yn({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.
6491,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"},child:[]}]})(t)}function Tlt(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m352 296-96-96-96 96"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"},child:[]}]})(t)}function Elt(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(t)}function Alt(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40m64 160 80-80-80-80m-192 80h256"},child:[]}]})(t)}var Tye=typeof global=="object"&&global&&global.Object===Object&&global,Plt=typeof self=="object"&&self&&self.Object===Object&&self,zd=Tye||Plt||Function("return this")(),Vx=zd.Symbol,Eye=Object.prototype,Olt=Eye.hasOwnProperty,Ilt=Eye.toString,qS=Vx?Vx.toStringTag:void 0;function Dlt(t){var e=Olt.call(t,qS),n=t[qS];try{t[qS]=void 0;var r=!0}catch{}var i=Ilt.call(t);return r&&(e?t[qS]=n:delete t[qS]),i}var Mlt=Object.prototype,Nlt=Mlt.toString;function Rlt(t){return Nlt.call(t)}var Llt="[object Null]",Blt="[object Undefined]",Ste=Vx?Vx.toStringTag:void 0;
vendor: 5,505 bytes, line 649
649function Lb(t){return t==null?t===void 0?Blt:Llt:Ste&&Ste in Object(t)?Dlt(t):Rlt(t)}function Nw(t){return t!=null&&typeof t=="object"}var Flt="[object Symbol]";function Aye(t){return typeof t=="symbol"||Nw(t)&&Lb(t)==Flt}function $lt(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Wk=Array.isArray,kte=Vx?Vx.prototype:void 0,Cte=kte?kte.toString:void 0;function Pye(t){if(typeof t=="string")return t;if(Wk(t))return $lt(t,Pye)+"";if(Aye(t))return Cte?Cte.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var jlt=/\s/;function zlt(t){for(var e=t.length;e--&&jlt.test(t.charAt(e)););return e}var Hlt=/^\s+/;function Ult(t){return t&&t.slice(0,zlt(t)+1).replace(Hlt,"")}function hp(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _te=NaN,Vlt=/^[-+]0x[0-9a-f]+$/i,Wlt=/^0b[01]+$/i,qlt=/^0o[0-7]+$/i,Glt=parseInt;function Tte(t){if(typeof t=="number")return t;if(Aye(t))return _te;if(hp(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=hp(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Ult(t);var n=Wlt.test(t);return n||qlt.test(t)?Glt(t.slice(2),n?2:8):Vlt.test(t)?_te:+t}function Oye(t){return t}var Klt="[object AsyncFunction]",Ylt="[object Function]",Qlt="[object GeneratorFunction]",Xlt="[object Proxy]";function qV(t){if(!hp(t))return!1;var e=Lb(t);return e==Ylt||e==Qlt||e==Klt||e==Xlt}var yN=zd["__core-js_shared__"],Ete=function(){var t=/[^.]+$/.exec(yN&&yN.keys&&yN.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Jlt(t){return!!Ete&&Ete in t}var Zlt=Function.prototype,ect=Zlt.toString;function Bb(t){if(t!=null){try{return ect.call(t)}catch{}try{return t+""}catch{}}return""}var tct=/[\\^$.*+?()[\]{}|]/g,nct=/^\[object .+?Constructor\]$/,rct=Function.prototype,ict=Object.prototype,sct=rct.toString,oct=ict.hasOwnProperty,act=RegExp("^"+sct.call(oct).replace(tct,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lct(t){if(!hp(t)||Jlt(t))return!1;var e=qV(t)?act:nct;return e.test(Bb(t))}function cct(t,e){return t?.[e]}function Fb(t,e){var n=cct(t,e);return lct(n)?n:void 0}var yF=Fb(zd,"WeakMap"),Ate=Object.create,uct=function(){function t(){}return function(e){if(!hp(e))return{};if(Ate)return Ate(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function hct(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function dct(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var fct=800,pct=16,mct=Date.now;function gct(t){var e=0,n=0;return function(){var r=mct(),i=pct-(r-n);if(n=r,i>0){if(++e>=fct)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function yct(t){return function(){return t}}var t7=function(){try{var t=Fb(Object,"defineProperty");return t({},"",{}),t}catch{}}(),bct=t7?function(t,e){return t7(t,"toString",{configurable:!0,enumerable:!1,value:yct(e),writable:!0})}:Oye,vct=gct(bct),xct=9007199254740991,wct=/^(?:0|[1-9]\d*)$/;function Iye(t,e){var n=typeof t;return e=e??xct,!!e&&(n=="number"||n!="symbol"&&wct.test(t))&&t>-1&&t%1==0&&t<e}function GV(t,e,n){e=="__proto__"&&t7?t7(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function QO(t,e){return t===e||t!==t&&e!==e}var Sct=Object.prototype,kct=Sct.hasOwnProperty;function Cct(t,e,n){var r=t[e];(!(kct.call(t,e)&&QO(r,n))||n===void 0&&!(e in t))&&GV(t,e,n)}function _ct(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),i?GV(n,a,l):Cct(n,a,l)}return n}var Pte=Math.max;function Tct(t,e,n){return e=Pte(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Pte(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),hct(t,this,a)}}function Ect(t,e){return vct(Tct(t,e,Oye),t+"")}var Act=9007199254740991;function Dye(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Act}function XO(t){return t!=null&&Dye(t.length)&&!qV(t)}function Pct(t,e,n){if(!hp(n))return!1;var r=typeof e;return(r=="number"?XO(n)&&Iye(e,n.length):r=="string"&&e in n)?QO(n[e],t):!1}function Oct(t){return Ect(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&Pct(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,s)}return e})}var Ict=Object.prototype;function JO(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Ict;return t===n}function Dct(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Mct="[object Arguments]";function Ote(t){return Nw(t)&&Lb(t)==Mct}var Mye=Object.prototype,Nct=Mye.hasOwnProperty,Rct=Mye.propertyIsEnumerable,n7=Ote(function(){return arguments}())?Ote:function(t){return Nw(t)&&Nct.call(t,"callee")&&!Rct.call(t,"callee")};function Lct(){return!1}var Nye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ite=Nye&&typeof module=="object"&&module&&!module.nodeType&&module,Bct=Ite&&Ite.exports===Nye,Dte=Bct?zd.Buffer:void 0,Fct=Dte?Dte.isBuffer:void 0,KV=Fct||Lct,$ct="[object Arguments]",jct="[object Array]",zct="[object Boolean]",Hct="[object Date]",Uct="[object Error]",Vct="[object Function]",Wct="[object Map]",qct="[object Number]",Gct="[object Object]",Kct="[object RegExp]",Yct="[object Set]",Qct="[object String]",Xct="[object WeakMap]",Jct="[object ArrayBuffer]",Zct="[object DataView]",eut="[object Float32Array]",tut="[object Float64Array
649]",nut="[object Int8Array]",rut="[object Int16Array]",iut="[object Int32Array]",sut="[object Uint8Array]",out="[object Uint8ClampedArray]",aut="[object Uint16Array]",lut="[object Uint32Array]",Os={};Os[eut]=Os[tut]=Os[nut]=Os[rut]=Os[iut]=Os[sut]=Os[out]=Os[aut]=Os[lut]=!0;Os[$ct]=Os[jct]=Os[Jct]=Os[zct]=Os[Zct]=Os[Hct]=Os[Uct]=Os[Vct]=Os[Wct]=Os[qct]=Os[Gct]=Os[Kct]=Os[Yct]=Os[Qct]=Os[Xct]=!1;function cut(t){return Nw(t)&&Dye(t.length)&&!!Os[Lb(t)]}function uut(t){return function(e){return t(e)}}var Rye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,F4=Rye&&typeof module=="object"&&module&&!module.nodeType&&module,hut=F4&&F4.exports===Rye,bN=hut&&Tye.process,Mte=function(){try{var t=F4&&F4.require&&F4.require("util").types;return t||bN&&bN.binding&&bN.binding("util")}catch{}}(),Nte=Mte&&Mte.isTypedArray,YV=Nte?uut(Nte):cut,dut=Object.prototype,fut=dut.hasOwnProperty;function put(t,e){var n=Wk(t),r=!n&&n7(t),i=!n&&!r&&KV(t),s=!n&&!r&&!i&&YV(t),o=n||r||i||s,a=o?Dct(t.length,String):[],l=a.length;for(var c in t)(e||fut.call(t,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Iye(c,l)))&&a.push(c);return a}function Lye(t,e){return function(n){return t(e(n))}}var mut=Lye(Object.keys,Object),gut=Object.prototype,yut=gut.hasOwnProperty;function but(t){if(!JO(t))return mut(t);var e=[];for(var n in Object(t))yut.call(t,n)&&n!="constructor"&&e.push(n);return e}function vut(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var xut=Object.prototype,wut=xut.hasOwnProperty;function Sut(t){if(!hp(t))return vut(t);var e=JO(t),n=[];for(var r in t)r=="constructor"&&(e||!wut.call(t,r))||n.push(r);return n}function Bye(t){return XO(t)?put(t,!0):Sut(t)}var qk=Fb(Object,"create");function kut(){this.__data__=qk?qk(null):{},this.size=0}function Cut(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var _ut="__lodash_hash_undefined__",Tut=Object.prototype,Eut=Tut.hasOwnProperty;function Aut(t){var e=this.__data__;if(qk){var n=e[t];return n===_ut?void 0:n}return Eut.call(e,t)?e[t]:void 0}var Put=Object.prototype,Out=Put.hasOwnProperty;function Iut(t){var e=this.__data__;return qk?e[t]!==void 0:Out.call(e,t)}var Dut="__lodash_hash_undefined__";function Mut(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=qk&&e===void 0?Dut:e,this}function gb(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}gb.prototype.clear=kut;gb.prototype.delete=Cut;gb.prototype.get=Aut;gb.prototype.has=Iut;gb.prototype.set=Mut;function Nut(){this.__data__=[],this.size=0}function ZO(t,e){for(var n=t.length;n--;)if(QO(t[n][0],e))return n;return-1}var Rut=Array.prototype,Lut=Rut.splice;function But(t){var e=this.__data__,n=ZO(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Lut.call(e,n,1),--this.size,!0}function Fut(t){var e=this.__data__,n=ZO(e,t);return n<0?void 0:e[n][1]}function $ut(t){return ZO(this.__data__,t)>-1}function jut(t,e){var n=this.__data__,r=ZO(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function fm(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}fm.prototype.clear=Nut;fm.prototype.delete=But;fm.prototype.get=Fut;fm.prototype.has=$ut;fm.prototype.set=jut;var Gk=Fb(zd,"Map");function zut(){this.size=0,this.__data__={hash:new gb,map:new(Gk||fm),string:new gb}}function Hut(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function eI(t,e){var n=t.__data__;return Hut(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Uut(t){var e=eI(this,t).delete(t);return this.size-=e?1:0,e}function Vut(t){return eI(this,t).get(t)}function Wut(t){return eI(this,t).has(t)}function qut(t,e){var n=eI(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function y1(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}y1.prototype.clear=zut;y1.prototype.delete=Uut;y1.prototype.get=Vut;y1.prototype.has=Wut;y1.prototype.set=qut;var Gut="Expected a function";function b_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Gut);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);
vendor: 5,109 bytes, line 649
649var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(b_.Cache||y1),n}b_.Cache=y1;function Fye(t){return t==null?"":Pye(t)}var $ye=Lye(Object.getPrototypeOf,Object),Kut="[object Object]",Yut=Function.prototype,Qut=Object.prototype,jye=Yut.toString,Xut=Qut.hasOwnProperty,Jut=jye.call(Object);function Zut(t){if(!Nw(t)||Lb(t)!=Kut)return!1;var e=$ye(t);if(e===null)return!0;var n=Xut.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&jye.call(n)==Jut}function eht(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function tht(t,e,n){var r=t.length;return n=n===void 0?r:n,eht(t,e,n)}var nht="\\ud800-\\udfff",rht="\\u0300-\\u036f",iht="\\ufe20-\\ufe2f",sht="\\u20d0-\\u20ff",oht=rht+iht+sht,aht="\\ufe0e\\ufe0f",lht="\\u200d",cht=RegExp("["+lht+nht+oht+aht+"]");function zye(t){return cht.test(t)}function uht(t){return t.split("")}var Hye="\\ud800-\\udfff",hht="\\u0300-\\u036f",dht="\\ufe20-\\ufe2f",fht="\\u20d0-\\u20ff",pht=hht+dht+fht,mht="\\ufe0e\\ufe0f",ght="["+Hye+"]",bF="["+pht+"]",vF="\\ud83c[\\udffb-\\udfff]",yht="(?:"+bF+"|"+vF+")",Uye="[^"+Hye+"]",Vye="(?:\\ud83c[\\udde6-\\uddff]){2}",Wye="[\\ud800-\\udbff][\\udc00-\\udfff]",bht="\\u200d",qye=yht+"?",Gye="["+mht+"]?",vht="(?:"+bht+"(?:"+[Uye,Vye,Wye].join("|")+")"+Gye+qye+")*",xht=Gye+qye+vht,wht="(?:"+[Uye+bF+"?",bF,Vye,Wye,ght].join("|")+")",Sht=RegExp(vF+"(?="+vF+")|"+wht+xht,"g");function kht(t){return t.match(Sht)||[]}function Cht(t){return zye(t)?kht(t):uht(t)}function _ht(t){return function(e){e=Fye(e);var n=zye(e)?Cht(e):void 0,r=n?n[0]:e.charAt(0),i=n?tht(n,1).join(""):e.slice(1);return r[t]()+i}}var Tht=_ht("toUpperCase");function Rte(t){return Tht(Fye(t).toLowerCase())}function Eht(){this.__data__=new fm,this.size=0}function Aht(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Pht(t){return this.__data__.get(t)}function Oht(t){return this.__data__.has(t)}var Iht=200;function Dht(t,e){var n=this.__data__;if(n instanceof fm){var r=n.__data__;if(!Gk||r.length<Iht-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new y1(r)}return n.set(t,e),this.size=n.size,this}function Rw(t){var e=this.__data__=new fm(t);this.size=e.size}Rw.prototype.clear=Eht;Rw.prototype.delete=Aht;Rw.prototype.get=Pht;Rw.prototype.has=Oht;Rw.prototype.set=Dht;var Kye=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lte=Kye&&typeof module=="object"&&module&&!module.nodeType&&module,Mht=Lte&&Lte.exports===Kye,Bte=Mht?zd.Buffer:void 0,Fte=Bte?Bte.allocUnsafe:void 0;function Nht(t,e){if(e)return t.slice();var n=t.length,r=Fte?Fte(n):new t.constructor(n);return t.copy(r),r}var xF=Fb(zd,"DataView"),wF=Fb(zd,"Promise"),SF=Fb(zd,"Set"),$te="[object Map]",Rht="[object Object]",jte="[object Promise]",zte="[object Set]",Hte="[object WeakMap]",Ute="[object DataView]",Lht=Bb(xF),Bht=Bb(Gk),Fht=Bb(wF),$ht=Bb(SF),jht=Bb(yF),hy=Lb;(xF&&hy(new xF(new ArrayBuffer(1)))!=Ute||Gk&&hy(new Gk)!=$te||wF&&hy(wF.resolve())!=jte||SF&&hy(new SF)!=zte||yF&&hy(new yF)!=Hte)&&(hy=function(t){var e=Lb(t),n=e==Rht?t.constructor:void 0,r=n?Bb(n):"";if(r)switch(r){case Lht:return Ute;case Bht:return $te;case Fht:return jte;case $ht:return zte;case jht:return Hte}return e});var Vte=zd.Uint8Array;function zht(t){var e=new t.constructor(t.byteLength);return new Vte(e).set(new Vte(t)),e}function Hht(t,e){var n=e?zht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Uht(t){return typeof t.constructor=="function"&&!JO(t)?uct($ye(t)):{}}function Vht(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return e}}var Wht=Vht(),vN=function(){return zd.Date.now()},qht="Expected a function",Ght=Math.max,Kht=Math.min;function Yht(t,e,n){var r,i,s,o,a,l,c=0,u=!1,h=!1,d=!0;if(typeof t!="function")throw new TypeError(qht);e=Tte(e)||0,hp(n)&&(u=!!n.leading,h="maxWait"in n,s=h?Ght(Tte(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d);function p(O){var P=r,$=i;return r=i=void 0,c=O,o=t.apply($,P),o}function g(O){return c=O,a=setTimeout(w,e),u?p(O):o}function y(O){var P=O-l,$=O-c,W=e-P;return h?Kht(W,s-$):W}function b(O){var P=O-l,$=O-c;return l===void 0||P>=e||P<0||h&&$>=s}function w(){var O=vN();if(b(O))return S(O);a=setTimeout(w,y(O))}function S(O){return a=void 0,d&&r?p(O):(r=i=void 0,o)}function T(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function D(){return a===void 0?o:S(vN())}function E(){var O=vN(),P=b(O);if(r=arguments,i=this,l=O,P){if(a===void 0)return g(l);if(h)return clearTimeout(a),a=setTimeout(w,e),p(l)}return a===void 0&&(a=setTimeout(w,e)),o}return E.cancel=T,E.flush=D,E}function kF(t,e,n){(n!==void 0&&!QO(t[e],n)||n===void 0&&!(e in t))&&GV(t,e,n)}function Qht(t){return Nw(t)&&XO(t)}function CF(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Xht(t){return _ct(t,Bye(t))}function Jht(t,e,n,r,i,s,o){var a=CF(t,n),l=CF(e,n),c=o.get(l);if(c){kF(t,n,c);return}var u=s?s(a,l,n+"",t,e,o):void 0,h=u===void 0;
649if(h){var d=Wk(l),p=!d&&KV(l),g=!d&&!p&&YV(l);u=l,d||p||g?Wk(a)?u=a:Qht(a)?u=dct(a):p?(h=!1,u=Nht(l,!0)):g?(h=!1,u=Hht(l,!0)):u=[]:Zut(l)||n7(l)?(u=a,n7(a)?u=Xht(a):(!hp(a)||qV(a))&&(u=Uht(l))):h=!1}h&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),kF(t,n,u)}function Yye(t,e,n,r,i){t!==e&&Wht(e,function(s,o){if(i||(i=new Rw),hp(s))Jht(t,e,o,n,Yye,r,i);else{var a=r?r(CF(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),kF(t,o,a)}},Bye)}var Zht="[object Map]",edt="[object Set]",tdt=Object.prototype,ndt=tdt.hasOwnProperty;function Wte(t){if(t==null)return!0;if(XO(t)&&(Wk(t)||typeof t=="string"||typeof t.splice=="function"||KV(t)||YV(t)||n7(t)))return!t.length;var e=hy(t);if(e==Zht||e==edt)return!t.size;if(JO(t))return!but(t).length;for(var n in t)if(ndt.call(t,n))return!1;return!0}var rdt=Oct(function(t,e,n){Yye(t,e,n)});function idt(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function sdt(t){return yn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},child:[]}]})(t)}
649function odt(t){return yn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"},child:[]}]})(t)}function qte(t){return yn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"},child:[]}]})(t)}function adt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]}]})(t)}function Qye(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06a8.99 8.99 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z"},child:[]}]})(t)}function QV(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"},child:[]}]})(t)}function Gte(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(t)}function ldt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(t)}function cdt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 4h3v16h-3zM5 14h3v6H5zm6-5h3v11h-3z"},child:[]}]})(t)}function udt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"},child:[]}]})(t)}function hdt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM18 13h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(t)}function ddt(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm6.39 8.56C13.71 14.7 11.53 14 9 14s-4.71.7-6.39 1.56A2.97 2.97 0 0 0 1 18.22V21h16v-2.78c0-1.12-.61-2.15-1.61-2.66zM15 19H3v-.78c0-.38.2-.72.52-.88C4.71 16.73 6.63 16 9 16c2.37 0 4.29.73 5.48 1.34.32.16.52.5.52.88V19zm2.93-3 1.63-1.63c-2.77-3.02-2.77-7.56 0-10.74L17.93 2c-3.9 3.89-3.91 9.95 0 14zm4.99-5.05a3.317 3.317 0 0 1 0-3.89l-1.68-1.69c-2.02 2.02-2.02 5.07 0 7.27l1.68-1.69z"},child:[]}]})(t)}function Xye(t){return yn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"},child:[]}]})(t)}function fdt(t){return yn({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(t)}function pdt({title:t,message:e,progressPercentage:n,showPercentage:r,onClose:i}){return x.jsxs(qt,{bgColor:ws("blue.600","blue.200"),color:ws("white","black"),p:3,gap:5,flexDirection:"column",justifyContent:"center",rounded:"md",position:"relative",children:[i&&x.jsx(Br,{position:"absolute",display:"flex",bgColor:"transparent",alignItems:"center",top:0,right:0,"aria-label":"Cancel Process",onClick:i,_active:{},size:"sm",icon:x.jsx(fdt,{})}),x.jsxs(qt,{alignItems:"center",gap:5,children:[x.jsx(Ofe,{isIndeterminate:!0,thickness:5,color:"black"}),x.jsxs(Sn,{children:[x.jsx(zr,{as:"h2",fontSize:"md",fontWeight:"bold",children:t}),e&&x.jsx(zr,{children:e})]})]}),x.jsxs(qt,{alignItems:"center",gap:2,children:[r&&x.jsxs(zr,{children:[n,"%"]}),x.jsx(Ife,{flexGrow:1,value:n,size:"xs",colorScheme:ws("whatsapp","gray"),css:{"> div:first-of-type":{transition:"width 500ms ease-in-out"}}})]})]})}const mdt="(max-width: 480px)";function gp(){const[t]=Zde(mdt);return t}function U5(t){return t?t.length>200?`${t.substring(0,200)}...`:t:""}const V5=[];function Eo(){const t=Aqe(),e=gp(),n=_.useCallback(({id:l,title:c,message:u})=>t({id:l,title:c,description:U5(u),colorScheme:"blue",status:"success",position:"top",isClosable:!0,duration:3e3}),[t]),r=_.useCallback(({id:l,title:c,message:u})=>
649{V5.forEach(d=>t.close(d));const h=t({id:l,title:c,description:U5(u),status:"error",position:"top",isClosable:!0,duration:null,containerStyle:{width:e?"90vw":"initial"},onCloseComplete(){V5.splice(V5.findIndex(d=>d===h),1)}});return V5.push(h),h},[t,e]),i=_.useCallback(({id:l,title:c,message:u})=>t({id:l,title:c,description:U5(u),status:"success",position:"top",isClosable:!0,duration:2e3}),[t]),s=_.useCallback(({id:l,title:c,message:u})=>t({id:l,title:c,description:U5(u),status:"warning",position:"top",isClosable:!0,duration:3e3}),[t]),o=_.useCallback(({id:l,title:c,message:u,progressPercentage:h,updateOnly:d=!1,showPercentage:p=!0,isClosable:g=!0,handleClose:y})=>{const b={status:"loading",position:"top",isClosable:g,duration:null,render:({onClose:w})=>{const S=()=>{y?.(),w()};return x.jsx(pdt,{title:c,message:u,progressPercentage:h,showPercentage:p,onClose:g?S:void 0})}};if(l)t.isActive(l)&&t.update(l,b);else if(!d)return t({...b})},[t]),a=_.useCallback(l=>{l&&t.close(l)},[t]);return{info:n,error:r,success:i,warning:s,progress:o,closeToast:a}}const Jye=_.createContext({addToAudioQueue:()=>{},clearAudioQueue:()=>{},disableAudioQueue:()=>{},enableAudioQueue:()=>{},audioQueueDisabledRef:null,isPlaying:!1,isAudioQueueEmpty:!0}),gdt=({children:t})=>{const[e,n]=_.useState([]),[r,i]=_.useState(!1),[s,o]=_.useState(),{error:a}=Eo(),l=_.useRef(!1),c=_.useCallback(async y=>{try{i(!0);const b=await y,w=new Audio(b);w.preload="auto",w.onended=()=>{URL.revokeObjectURL(b),n(S=>S.slice(1)),i(!1),o(null)},w.play(),o({audioElement:w,audioUrl:b})}catch(b){console.error(b),a({title:"Error playing audio",message:b.message})}},[a]);_.useEffect(()=>{!r&&e.length>0&&c(e[0])},[e,r,c]);const u=y=>{l.current||n(b=>[...b,y])},h=()=>{s&&(s.audioElement.pause(),URL.revokeObjectURL(s.audioUrl),o(null),i(!1)),n([])},g={addToAudioQueue:u,clearAudioQueue:h,disableAudioQueue:()=>{l.current=!0,h()},enableAudioQueue:()=>{l.current=!1},audioQueueDisabledRef:l,isPlaying:r,isAudioQueueEmpty:e.length===0};return x.jsx(Jye.Provider,{value:g,children:t})},b1=()=>_.useContext(Jye);function ydt(){var t=_.useRef(!1),e=_.useCallback(function(){return t.current},[]);return _.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}var bdt=function(t){t===void 0&&(t={});var e=_.useState(t),n=e[0],r=e[1],i=_.useCallback(function(s){r(function(o){return Object.assign({},o,s instanceof Function?s(o):s)})},[]);return[n,i]},_F=function(){};function vdt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function xdt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var XV=typeof window<"u",xN={exports:{}};/*! 650 * JavaScript Cookie v2.2.1 651 * https://github.com/js-cookie/js-cookie 652 * 653 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack 654 * Released under the MIT license 655 */var Kte;function wdt(){return Kte||(Kte=1,function(t,e){(function(n){var r;if(t.exports=n(),r=!0,!r){var i=window.Cookies,s=window.Cookies=n();s.noConflict=function(){return window.Cookies=i,s}}})(function(){function n(){for(var s=0,o={};s<arguments.length;s++){var a=arguments[s];for(var l in a)o[l]=a[l]}return o}function r(s){return s.replace(/(%[0-9A-Z]{2}
655)+/g,decodeURIComponent)}function i(s){function o(){}function a(c,u,h){if(!(typeof document>"u")){h=n({path:"/"},o.defaults,h),typeof h.expires=="number"&&(h.expires=new Date(new Date*1+h.expires*864e5)),h.expires=h.expires?h.expires.toUTCString():"";try{var d=JSON.stringify(u);/^[\{\[]/.test(d)&&(u=d)}catch{}u=s.write?s.write(u,c):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var p="";for(var g in h)h[g]&&(p+="; "+g,h[g]!==!0&&(p+="="+h[g].split(";")[0]));return document.cookie=c+"="+u+p}}function l(c,u){if(!(typeof document>"u")){for(var h={},d=document.cookie?document.cookie.split("; "):[],p=0;p<d.length;p++){var g=d[p].split("="),y=g.slice(1).join("=");!u&&y.charAt(0)==='"'&&(y=y.slice(1,-1));try{var b=r(g[0]);if(y=(s.read||s)(y,b)||r(y),u)try{y=JSON.parse(y)}catch{}if(h[b]=y,c===b)break}catch{}}return c?h[c]:h}}return o.set=a,o.get=function(c){return l(c,!1)},o.getJSON=function(c){return l(c,!0)},o.remove=function(c,u){a(c,"",n(u,{expires:-1}))},o.defaults={},o.withConverter=i,o}return i(function(){})})}(xN)),xN.exports}var Sdt=wdt();const wN=zc(Sdt);var kdt=function(t){var e=_.useState(function(){return wN.get(t)||null}),n=e[0],r=e[1],i=_.useCallback(function(o,a){wN.set(t,o,a),r(o)},[t]),s=_.useCallback(function(){wN.remove(t),r(null)},[t]);return[n,i,s]},JV=function(){var t=ydt(),e=bdt({value:void 0,error:void 0,noUserInteraction:!0}),n=e[0],r=e[1],i=_.useCallback(function(s){if(t()){var o,a;try{if(typeof s!="string"&&typeof s!="number"){var l=new Error("Cannot copy typeof "+typeof s+" to clipboard, must be a string");r({value:s,error:l,noUserInteraction:!0});return}else if(s===""){var l=new Error("Cannot copy empty string to clipboard.");r({value:s,error:l,noUserInteraction:!0});return}a=s.toString(),o=yL(a),r({value:a,error:void 0,noUserInteraction:o})}catch(c){r({value:a,error:c,noUserInteraction:o})}}},[]);return[n,i]};function Cdt(t,e){var n=_.useRef(!1),r=_.useRef(),i=_.useRef(t),s=_.useCallback(function(){return n.current},[]),o=_.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},e)},[e]),a=_.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return _.useEffect(function(){i.current=t},[t]),_.useEffect(function(){return o(),a},[e]),[s,a,o]}function Zye(t,e,n){n===void 0&&(n=[]);var r=Cdt(t,e),i=r[0],s=r[1],o=r[2];return _.useEffect(o,n),[i,s]}var _dt=XV?window:null,Yte=function(t){return!!t.addEventListener},Qte=function(t){return!!t.on},Tdt=function(t,e,n,r){n===void 0&&(n=_dt),_.useEffect(function(){if(e&&n)return Yte(n)?vdt(n,t,e,r):Qte(n)&&n.on(t,e,r),function(){Yte(n)?xdt(n,t,e,r):Qte(n)&&n.off(t,e,r)}},[t,e,n,JSON.stringify(r)])},Edt=function(t){return function(e){return e.key===t}},ebe=function(t,e,n,r){e===void 0&&(e=_F),n===void 0&&(n={}),r===void 0&&(r=[t]);var i=n.event,s=i===void 0?"keydown":i,o=n.target,a=n.options,l=_.useMemo(function(){var c=Edt(t),u=function(h){if(c(h))return e(h)};return u},r);Tdt(s,l,o,a)},ZV=function(t,e,n){if(!XV)return[e,_F,_F];if(!t)throw new Error("useLocalStorage key may not be falsy");var r=n?n.raw?function(u){return u}:n.deserializer:JSON.parse,i=_.useRef(function(u){try{var h=n?n.raw?String:n.serializer:JSON.stringify,d=localStorage.getItem(u);return d!==null?r(d):(e&&localStorage.setItem(u,h(e)),e)}catch{return e}}),s=_.useState(function(){return i.current(t)}),o=s[0],a=s[1];_.useLayoutEffect(function(){return a(i.current(t))},[t]);var l=_.useCallback(function(u){try{var h=typeof u=="function"?u(o):u;if(typeof h>"u")return;var d=void 0;n?n.raw?typeof h=="string"?d=h:d=JSON.stringify(h):n.serializer?d=n.serializer(h):d=JSON.stringify(h):d=JSON.stringify(h),localStorage.setItem(t,d),a(r(d))}catch{}},[t,a]),c=_.useCallback(function(){try{localStorage.removeItem(t),a(void 0)}catch{}},[t,a]);return[o,l,c]},Adt=function(t,e,n){if(!XV)return[e,function(){}];var r=_.useState(function(){try{var o=sessionStorage.getItem(t);return typeof o!="string"?(sessionStorage.setItem(t,n?String(e):JSON.stringify(e)),e):n?o:JSON.parse(o||"null")}catch{return e}}),i=r[0],s=r[1];return _.useEffect(function(){try{var o=n?String(i):JSON.stringify(i);sessionStorage.setItem(t,o)}catch{}}),[i,s]};const tbe=_.createContext({settings:Jy,setSettings:()=>{}}),Ks=()=>_.useContext(tbe),Pdt=({children:t})=>{const[e,n]=ZV(kme,Jy,{raw:!1,serializer:gXe,deserializer:Cme}),[r,i]=_.useState(e||Jy),s=new URLSearchParams(window.location.search),o=s.get("code");_.useEffect(()=>{o&&(u=>{fetch("https://openrouter.ai/api/v1/auth/keys",{method:"POST",body:JSON.stringify({code:u})}).then(d=>d.json()).then(d=>{const p=d.key;if(p!==void 0){const g=new m1(p);n({...r,currentProvider:g,providers:{...r.providers,[g.name]:g}}),s.delete("code");const{origin:y,pathname:b,hash:w}=window.location,S=`${y}${b}${w}${s.toString()}`;window.history.replaceState({},document.title,S)}else console.error("OpenRouter OAuth PKCE response missing API key")}).catch(d=>{console.error("Error authenticating with OpenRouter",d)})})(o)},[o]),_.useEffect(()=>{i(e||Jy)},[]);const a=_.useCallback(c=>{const u={...r,...c};i(u),n(u)},[r,n]),l={settings:r,setSettings:a};return x.jsx(tbe.Provider,{value:l,children:t})};new TextEncoder;const nbe=new TextDecoder,Odt=t=>{const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n},Idt=t=>{let e=t;e instanceof Uint8Array&&(e=nbe.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Odt(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};
655class Yl extends Error{constructor(e,n){super(e,n),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}Yl.code="ERR_JOSE_GENERIC";class Ddt extends Yl{constructor(e,n,r="unspecified",i="unspecified"){super(e,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=n}}Ddt.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class Mdt extends Yl{constructor(e,n,r="unspecified",i="unspecified"){super(e,{cause:{claim:r,reason:i,payload:n}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=n}}Mdt.code="ERR_JWT_EXPIRED";class Ndt extends Yl{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}Ndt.code="ERR_JOSE_ALG_NOT_ALLOWED";class Rdt extends Yl{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}Rdt.code="ERR_JOSE_NOT_SUPPORTED";class Ldt extends Yl{constructor(e="decryption operation failed",n){super(e,n),this.code="ERR_JWE_DECRYPTION_FAILED"}}Ldt.code="ERR_JWE_DECRYPTION_FAILED";class Bdt extends Yl{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}Bdt.code="ERR_JWE_INVALID";class Fdt extends Yl{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}Fdt.code="ERR_JWS_INVALID";class ng extends Yl{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}ng.code="ERR_JWT_INVALID";class $dt extends Yl{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}$dt.code="ERR_JWK_INVALID";class jdt extends Yl{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}jdt.code="ERR_JWKS_INVALID";class zdt extends Yl{constructor(e="no applicable key found in the JSON Web Key Set",n){super(e,n),this.code="ERR_JWKS_NO_MATCHING_KEY"}}zdt.code="ERR_JWKS_NO_MATCHING_KEY";class Hdt extends Yl{constructor(e="multiple matching keys found in the JSON Web Key Set",n){super(e,n),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Hdt.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class Udt extends Yl{constructor(e="request timed out",n){super(e,n),this.code="ERR_JWKS_TIMEOUT"}}Udt.code="ERR_JWKS_TIMEOUT";class Vdt extends Yl{constructor(e="signature verification failed",n){super(e,n),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}Vdt.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";function Wdt(t){return typeof t=="object"&&t!==null}function qdt(t){if(!Wdt(t)||Object.prototype.toString.call(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}const Gdt=Idt;function Kdt(t){if(typeof t!="string")throw new ng("JWTs must use Compact JWS serialization, JWT must be a string");const{1:e,length:n}=t.split(".");if(n===5)throw new ng("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new ng("Invalid JWT");if(!e)throw new ng("JWTs must contain a payload");let r;try{r=Gdt(e)}catch{throw new ng("Failed to base64url decode the payload")}let i;try{i=JSON.parse(nbe.decode(r))}catch{throw new ng("Failed to parse the decoded payload as JSON")}if(!qdt(i))throw new ng("Invalid JWT Claims Set");return i}const rbe=_.createContext({user:void 0,login:t=>{},logout:t=>new Promise(()=>{})}),Lw=()=>_.useContext(rbe),Ydt=({children:t})=>{const e=aXe()?"__Host-id_token":"id_token",[n]=kdt(e),[r,i]=_.useState();_.useEffect(()=>{if(n)try{const{username:a,name:l,avatarUrl:c,email:u}=Kdt(n);typeof a=="string"&&typeof l=="string"&&typeof c=="string"?i({username:a,name:l,avatarUrl:c,email:typeof u=="string"?u:null}):console.warn("ChatCraft ID Token missing expected values, ignoring",{username:a,name:l,avatarUrl:c,email:u})}catch(a){console.error("Unable to decode id token",{err:a,idToken:n})}},[n]);const o={user:r,login(a,l){const c=l?`/api/login?provider=${a}&chat_id=${l}`:`/api/login?provider=${a}`;window.location.href=c},logout:async a=>{const l=a?`/api/logout?chat_id=${a}`:"/api/login";try{if(!(await fetch(l,{credentials:"same-origin"})).ok)throw new Error("Unable to logout")}catch(c){console.warn("Logout error",c)}finally{i(void 0)}}};return x.jsx(rbe.Provider,{value:o,children:t})};function v_(){const{user:t}=Lw(),{settings:e}=Ks(),[n,r]=_.useState(void 0);_.useEffect(()=>{fetch("/api/providers").then(a=>{if(!a.ok)throw new Error(`Server responded with ${a.status}`);if(!a.headers.get("content-type")?.startsWith("application/json"))throw new Error("Server responded with
655non-JSON response");return a.json()}).then(a=>r(a)).catch(a=>{console.warn("Unable to get system providers, using default",a),r({"Free AI Models":{apiUrl:"https://free-chatcraft-ai.deno.dev/api/v1",defaultModel:"auto",apiKey:"no-api-key",isSystemProvider:!0}})})},[t]);const i=_.useMemo(()=>{const a=n||{},l={};for(const c in a){const u=zB({...a[c],name:c,id:f1()});l[c]=eV.fromProvider(u)}return l},[n]),s=_.useMemo(()=>e.providers,[e]);return{providers:_.useMemo(()=>({...i,...s}),[i,s])}}const TF=[Rc().currentProvider.defaultModelForProvider()],ibe=_.createContext({models:TF,allAvailableModels:[],allProvidersWithModels:[],error:null,isSpeechToTextSupported:!1,getSpeechToTextClient:()=>null}),pm=()=>_.useContext(ibe),Qdt=(t,e)=>!e||e.find(n=>t.id===n.id)?t:Rc().currentProvider.defaultModelForProvider(),Xdt=({children:t})=>{const[e,n]=_.useState(null),[r,i]=_.useState(null),s=_.useRef(!1),{settings:o,setSettings:a}=Ks(),{providers:l}=v_(),[c,u]=_.useState([]),h=_.useRef(!1);_.useEffect(()=>{if(h.current)return;(async()=>{h.current=!0;try{const w=Object.values(l).map(T=>T.apiKey?T.queryModels(T.apiKey).then(D=>({...T,models:D.map(E=>new _c(E))})).catch(D=>{console.warn(`Couldn't fetch models from provider "${T.name}"`,D)}):Promise.resolve([])),S=(await Promise.all(w)).filter(T=>!!T);u(S.flat())}catch(w){console.warn("Unable to update models for all providers, using defaults.",w),u([]),i(w)}finally{h.current=!1}})()},[l]);const d=_.useMemo(()=>c.map(b=>b.models).flat(),[c]),p=_.useMemo(()=>c.map(b=>b.models).flat().some(b=>v8(b.name)),[c]),g=_.useCallback(b=>{let w=!1;const S=E=>b?E.name===b:v8(E.name),T=c.find(E=>Nb.areSameProviders(E,o.currentProvider));if(T&&(w=T.models.some(S),w&&T.apiKey))return new Mr({apiKey:T.apiKey,baseURL:T.apiUrl,dangerouslyAllowBrowser:!0});const D=c.filter(E=>E.id!==T?.id);for(const E of D)if(w=E.models.some(S),w&&E.apiKey)return new Mr({apiKey:E.apiKey,baseURL:E.apiUrl,dangerouslyAllowBrowser:!0});return null},[c,o.currentProvider]);_.useEffect(()=>{const b=o.currentProvider.apiKey;if(!b||s.current)return;(async()=>{s.current=!0;try{const S=await o.currentProvider.queryModels(b).then(T=>T.map(D=>new _c(D)));n(S),a({...o,model:Qdt(o.model,S)})}catch(S){console.warn("Unable to update OpenAI models, using defaults.",S),n(TF),i(S)}finally{s.current=!1}})()},[o.currentProvider]);const y={models:e||TF,allProvidersWithModels:c,allAvailableModels:d,error:r,isSpeechToTextSupported:p,getSpeechToTextClient:g};return x.jsx(ibe.Provider,{value:y,children:t})},Jdt="Jina AI",Zdt="https://r.jina.ai/";class My extends ZQe{constructor(e){super(Jdt,Zdt,e)}static fromSettings(){const n=Rc().nonLLMProviders["Jina AI"];return n instanceof My?n:n?.apiKey?new My(n.apiKey):new My}static async pdfToMarkdown(e){try{const n=My.fromSettings(),r=await new Promise((a,l)=>{const c=new FileReader;c.onload=()=>{const u=c.result;if(typeof u!="string")throw new Error("Unable to read file");const h=u.split(",")[1];typeof h=="string"?a(h):l(new Error("Unable to read PDF file"))},c.onerror=u=>l(u),c.readAsDataURL(e)}),i={"Content-Type":"application/json",Accept:"application/json",...n.apiKey&&{Authorization:`Bearer ${n.apiKey}`}},s=await fetch("https://r.jina.ai/",{method:"POST",body:JSON.stringify({pdf:r}),headers:i});if(!s.ok){const a=await s.json();throw s.status===429||a?.detail&&a.detail.includes("quota")?new Error("Jina Reader API Free tier limit exceeded. Please add an API key in Settings to process larger files.",{cause:{code:"FreeTierExceeded"}}):new Error(`Error converting PDF file with Jina Reader API: ${a}`)}const o=await s.json();if(o.code!==200)throw new Error(`Error converting PDF file with Jina Reader API: got code ${o.code}`);return o}catch(n){throw console.error("Error converting PDF to markdown",n),n}}}function r7(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M186.301 339.893L96 249.461l-32 30.507L186.301 402 448 140.506 416 110z"},child:[]}]})(t)}function eft(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 199.5h-91.4V64H187.4v135.5H96l160 158.1 160-158.1zM96 402.8V448h320v-45.2H96z"},child:[]}]})(t)}function tft(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256.1 144.8c56.2 0 101.9 45.3 101.9 101.1 0 13.1-2.6 25.5-7.3 37l59.5 59c30.8-25.5 55-58.4 69.9-96-35.3-88.7-122.3-151.6-224.2-151.6-28.5 0-55.8 5.1-81.1 14.1l44 43.7c11.6-4.6 24.1-7.3 37.3-7.3zM52.4 89.7l46.5 46.1 9.4 9.3c-33.9 26-60.4 60.8-76.3 100.8 35.2 88.7 122.2 151.6 224.1 151.6 31.6 0 61.7-6.1 89.2-17l8.6 8.5 59.7 59 25.9-25.7L78.2 64 52.4 89.7zM165 201.4l31.6 31.3c-1 4.2-1.6 8.7-1.6 13.1 0 33.5 27.3 60.6 61.1 60.6 4.5 0 9-.6 13.2-1.6l31.6 31.3c-13.6 6.7-28.7 10.7-44.8 10.7-56.2 0-101.9-45.3-101.9-101.1 0-15.8 4.1-30.7 10.8-44.3zm87.8-15.7l64.2 63.7.4-3.2c0-33.5-27.3-60.
6556-61.1-60.6l-3.5.1z"},child:[]}]})(t)}function nft(t){return yn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 105c-101.8 0-188.4 62.4-224 151 35.6 88.6 122.2 151 224 151s188.4-62.4 224-151c-35.6-88.6-122.2-151-224-151zm0 251.7c-56 0-101.8-45.3-101.8-100.7S200 155.3 256 155.3 357.8 200.6 357.8 256 312 356.7 256 356.7zm0-161.1c-33.6 0-61.1 27.2-61.1 60.4s27.5 60.4 61.1 60.4 61.1-27.2 61.1-60.4-27.5-60.4-61.1-60.4z"},child:[]}]})(t)}function tA({isInvalid:t,size:e="sm",buttonSize:n="sm",paddingRight:r="2.5rem",...i}){const[s,o]=_.useState(!1);return x.jsxs(Kf,{size:e,children:[x.jsx(fl,{size:e,focusBorderColor:t?"red.300":"blue.500",borderColor:t?"red.300":"gray.200",paddingRight:r,isInvalid:t,...i,type:"text",sx:{WebkitTextSecurity:s?"none":"disc"}}),x.jsx(WC,{width:r,children:x.jsx(Br,{variant:"ghost",h:"1.75rem",size:n,icon:s?x.jsx(tft,{}):x.jsx(nft,{}),onClick:()=>o(!s),"aria-label":s?"Hide":"Show",title:s?"Hide":"Show"})})]})}const x_=()=>{const{allProvidersWithModels:t}=pm(),{settings:e}=Ks(),n=_.useMemo(()=>t.map(s=>s.models).flat().some(s=>HB(s.name)),[t]),r=_.useCallback(s=>{let o=!1;const a=u=>s?u.name===s:HB(u.name),l=t.find(u=>Nb.areSameProviders(u,e.currentProvider));if(l&&(o=l.models.some(a),o&&l.apiKey))return new Mr({apiKey:l.apiKey,baseURL:l.apiUrl,dangerouslyAllowBrowser:!0});const c=t.filter(u=>u.id!==l?.id);for(const u of c)if(o=u.models.some(a),o&&u.apiKey)return new Mr({apiKey:u.apiKey,baseURL:u.apiUrl,dangerouslyAllowBrowser:!0});return null},[t,e.currentProvider]);return{isTextToSpeechSupported:n,textToSpeech:async(s,o=rV.ALLOY,a="tts-1")=>{const l=await r(a);if(!l)throw new Error("No configured provider supports text to speech.");const c=await l.audio.speech.create({model:a,voice:o,input:s});return URL.createObjectURL(await c.blob())}}};function rft(t){const{settings:e,setSettings:n}=Ks(),{models:r}=pm(),{error:i,success:s,warning:o}=Eo(),[a,l]=_.useState(!1),[c,u]=_.useState(null),[h,d]=_.useState(null),[p,g]=_.useState(!1),[y,b]=_.useState(!1),[w,S]=_.useState({}),[T,D]=_.useState(e.currentProvider),E=_.useCallback(G=>{n({...e,textToSpeech:{...e.textToSpeech,voice:G}})},[n,e]),{clearAudioQueue:O,addToAudioQueue:P}=b1(),{isTextToSpeechSupported:$,textToSpeech:W}=x_(),H=_.useCallback(async()=>{try{const{voice:G}=e.textToSpeech,B=`Hi there, this is ${G}!`;O(),P(W(B,G))}catch(G){console.error(G),i({title:"Error while generating Audio",message:G.message})}},[P,O,i,e.textToSpeech,W]),K=async(G,B)=>{const Q=R4(G.apiUrl,B,G.name,G.defaultModel);D(Q);const ie={...e.providers};w[Q.name]=Q;try{l(!1),b(!0);const q=await Q.validateApiKey(Q.apiKey);l(!q),b(!1),q?ie[Q.name]=Q:delete ie[Q.name]}catch{l(!0),b(!1),delete ie[Q.name]}n({...e,...Q.name===e.currentProvider.name&&{currentProvider:Q},providers:ie}),Q.name===c?.name&&u(Q),g(!0)},Z=G=>{n({...e,nonLLMProviders:{...e.nonLLMProviders,"Jina AI":new My(G)}})},oe=async()=>{if(!c){console.error("Error trying to set current provider, missing selected provider"),D(null);return}if(c.name===e.currentProvider.name){D(null),o({title:"No change needed",message:"This is already your current provider"});return}D(c);try{l(!1),b(!0);const G=await c.validateApiKey(c.apiKey);l(!G),b(!1),G?(n({...e,currentProvider:c}),g(!0),u(null),s({title:"Current provider changed",message:`${c.name} set as current provider`}),n({...e,currentProvider:c}),g(!0),w[c.name]=c,u(null)):(console.warn("Error validating API key"),i({title:"Provider not set",message:"Invalid API key"}))}catch(G){b(!1),console.warn("Error validating API key",G),l(!0),i({title:"Provider not set",message:G.message})}},te=G=>{c?.name===G.name?u(null):u(G)},re=()=>{l(!1),d(new x0("","","",""))},Y=()=>{if(D(null),!c){console.error("Error trying to delete provider, missing selected provider");return}if(c.name===e.currentProvider.name){o({title:"Action not allowed",message:"You may not delete the current provider."});return}if(H3[c.name]){o({title:"Action not allowed",message:"You may not delete default ChatCraft providers."});return}const G={...e.providers};delete G[c.name],n({...e,providers:G}),u(null),S({...H3,...G})},z=async()=>
655{if(D(h),!h){console.error("Error trying to save new custom provider, missing custom provider");return}const G=new x0(h.name?.trim(),h.apiUrl?.trim(),"",h.apiKey?.trim());if(!G.name||!G.apiUrl||!G.apiKey){d(G);return}if(w[G.name]){o({title:"Provider not added",message:"A provider with this name already exists."});return}const B=R4(G.apiUrl,G.apiKey,G.name);if(B instanceof Og){o({title:"Provider not added",message:"Free AI Models provider already exists"});return}try{l(!1),b(!0);const Q=await B.validateApiKey(B.apiKey);if(l(!Q),b(!1),!Q)return;let ie=[];try{ie=await B.queryModels(B.apiKey)}catch(ke){console.warn("Error querying models for custom provider:",ke),D(null),i({title:"Provider not added",message:ke.message});return}if(ie.length===0){console.warn("No models available for custom provider"),D(null),i({title:"Provider not added",message:"Provider is not OpenAI compatible."});return}const q=R4(h.apiUrl,h.apiKey,h.name,ie[0]),fe={...e.providers};fe[q.name]=q,n({...e,providers:fe}),g(!0),S({...H3,...fe}),s({title:"New provider added",message:`${q.name}`}),d(null),b(!1)}catch(Q){console.warn("Error validating API key",Q.message),D(null),i({title:"Provider not added",message:Q.message}),b(!1);return}},U=G=>{try{const B=G instanceof URL?G.href:G;return new URL(B).hostname}catch(B){return console.error("Error extracting domain from URL:",B),typeof G=="string"?G:"Invalid URL"}};return _.useEffect(()=>{S({...H3,...e.providers}),t||(d(null),l(!1))},[t]),x.jsx(Sn,{my:3,children:w?x.jsxs(Nu,{gap:4,children:[x.jsxs(as,{children:[x.jsxs(Ho,{children:["LLM Providers",x.jsx(pc,{fontSize:"xs",mb:1,children:"OpenAI-Compatible Chat Completion Providers"}),x.jsxs(cm,{ml:3,children:[x.jsx(Yr,{size:"xs",onClick:re,children:"Add"}),x.jsx(Yr,{size:"xs",colorScheme:"red",onClick:Y,isDisabled:!c,children:"Delete"}),x.jsx(Yr,{size:"xs",colorScheme:"blue",onClick:oe,isDisabled:!c,variant:"outline",children:"Set as Current Provider"})]}),x.jsx(pc,{fontSize:"xs",children:"Advanced option for use with other OpenAI-compatible APIs"})]}),x.jsxs(fB,{size:"sm",variant:"simple",sx:{"th:nth-of-type(2), td:nth-of-type(2), th:nth-of-type(3), td:nth-of-type(3)":{width:"30%"},"th, td":{pl:"0.4rem",pr:"0.4rem"},"th:nth-of-type(1), td:nth-of-type(1)":{width:"5%"},"th:nth-of-type(4), td:nth-of-type()":{width:"12%"},"th:last-child, td:last-child":{width:"11%"}},children:[x.jsx(FJ,{children:x.jsxs(FS,{children:[x.jsx(Hm,{}),x.jsx(Hm,{children:"Name"}),x.jsx(Hm,{children:"API URL"}),x.jsx(Hm,{children:"API Key"}),x.jsx(Hm,{sx:{textAlign:"center"},children:"In Use"})]})}),x.jsxs(BJ,{children:[h&&x.jsxs(FS,{children:[x.jsx(ru,{children:x.jsx(Br,{"aria-label":"Cancel adding new provider",icon:x.jsx(udt,{}),size:"xs",onClick:()=>d(null),onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&d(null)},variant:"outline",tabIndex:0,color:"grey",border:"none",p:0,fontSize:16,borderRadius:"50%",_hover:{borderColor:"gray.400",color:"gray.400"},_focus:{_focus:{outline:"none",boxShadow:"0 0 0 3px rgba(66, 153, 225, 0.6)",borderColor:"blue.300"}},_active:{backgroundColor:"none"}})}),x.jsx(ru,{children:x.jsxs(as,{isInvalid:!h.name,children:[x.jsx(Kf,{size:"sm",children:x.jsx(fl,{pl:"0.4rem",fontSize:"md",placeholder:"Name",value:h.name,onChange:G=>{d(new x0(G.target.value,h.apiUrl,"",h.apiKey))}})}),x.jsx(md,{fontSize:"xs",children:"Name is required."})]})}),x.jsx(ru,{children:x.jsxs(as,{isInvalid:!h.apiUrl,children:[x.jsx(Kf,{size:"sm",children:x.jsx(fl,{pl:"0.4rem",fontSize:"md",placeholder:"API URL",value:h.apiUrl,onChange:G=>{d(new x0(h.name,G.target.value,"",h.apiKey))}})}),x.jsx(md,{fontSize:"xs",children:"API URL is required."})]})}),x.jsx(ru,{children:x.jsxs(as,{isInvalid:!h.apiKey,children:[x.jsx(tA,{size:"sm",buttonSize:"xs",paddingRight:"2rem",paddingLeft:"0.5rem",fontSize:"md",value:h.apiKey||"",onChange:G=>{d(new x0(h.name,h.apiUrl,"",G.target.value))}}),x.jsx(md,{fontSize:"xs",children:"API Key is required."})]})}),x.jsx(ru,{sx:{textAlign:"center"},children:x.jsx(qt,{alignItems:"center",justifyContent:"center",children:x.jsx(Yr,{size:"xs",colorScheme:"blue",onClick:z,isLoading:T?.name===h.name&&y,children:"Save"})})})]}),[...Object.values(w)].reverse().map(G=>x.jsxs(FS,{children:[x.jsx(ru,{children:x.jsx(qt,{width:6,justifyContent:"center",children:x.jsx(tO,{onChange:()=>te(G),isChecked:c?.name===G.name})})}),x.jsx(ru,{fontSize:"xs",children:G.name}),x.jsx(ru,{fontSize:"xs",children:x.jsx(Cd,{label:`Click to copy: ${G.apiUrl}`,placement:"top-start",sx:{fontSize:"0.65rem"},children:x.jsx(zr,{cursor:"pointer",onClick:()=>{navigator.clipboard.writeText(G.apiUrl),s({title:"Copied",message:"API URL copied to clipboard"})},children:U(G.apiUrl)})})}),x.jsx(ru,{children:G.name==="Free AI Models"?x.jsx(Kf,{size:"sm",children:x.jsx(fl,{disabled:!0,fontSize:"xs",value:"N/A"})}):x.jsxs(as,{isInvalid:!!(!y&&T?.name===G.name&&a),children:[x.jsx(tA,{size:"sm",buttonSize:"xs",paddingRight:"2rem",paddingLeft:"0.5rem",fontSize:"md",value:G.apiKey,onChange:B=>K(G,B.target.value),onFocus:()=>D(G),isDisabled:G instanceof Og,isInvalid:!!(!y&&T?.name===G.name&&a)}),T?.name===G.name&&y?x.jsxs(qt,{mt:2,children:[x.jsx(Pb,{size:"xs"}),x.jsx(zr,{ml:2,fontSize:"xs",children:"Validating..."})," "]}):x.jsx(md,{fontSize:"xs",children:G.apiKey?"Unable to verify key.":"API Key is required."}),G instanceof m1&&!G.apiKey&&x.jsxs(Yr,{mt:"3",size:"xs",onClick:G.openRouterPkceRedirect,children:["Get OpenRouter key"," "]})]})}),x.jsx(ru,{sx:{textAlign:"center"},children:x.jsx(qt,{alignItems:"center",justifyContent:"center",children:e.currentProvider.name===G.name&&x.jsx(idt,{style:{color:"green"}})})})]},G.name))]})]}),p&&x.jsx(pc,{fontSize:"xs",children:"Your API Key(s) are stored in browser storage"})]}),x.jsxs(as,{children:[x.jsxs(Ho,{children:["Other Providers",x.jsx(pc,{fontSize:"xs",children:"Document Processing and Other AI services"})]}),x.jsxs(fB,{size:"sm",variant:"simple",sx:{"th:nth-of-type(1), td:nth-of-type(1)":{width:"20%"},"th:nth-of-type(2), td:nth-of-type(2)":{width:"45%"},"th:nth-of-type(3), td:nth-of-type(3)":{width:"35%"},"th, td":{pl:"0.4rem",pr:"0.4rem"}},children:[x.jsx(FJ,{children:x.jsxs(FS,{children:[x.jsx(Hm,{children:"Name"}),x.jsx(Hm,{children:"Description"}),x.jsx(Hm,{children:"API Key"})]})}),x.jsx(BJ,{children:x.jsxs(FS,{children:[x.jsx(ru,{fontSize:"xs",children:"Jina Reader API"}),x.jsxs(ru,{fontSize:"xs",children:["Optional service for processing larger files."," ",x.jsx(bh,{href:"https://jina.ai/reader",isExternal:!0,color:"blue.500",_hover:{textDecoration:"underline"},children:"Learn more"})]}),x.jsx(ru,{children:x.jsx(as,{children:x.jsx(tA,{size:"sm",buttonSize:"xs",paddingRight:"2rem",paddingLeft:"0.5rem",fontSize:"xs",value:e.nonLLMProviders["Jina AI"]?.apiKey||"",onChange:G=>Z(G.target.value)})})})]})})]})]}),x.jsxs(as,{children:[x.jsx(Ho,{children:"GPT Model"}),x.jsx(n8,{value:e.model.id,onChange:G=>n({...e,model:new _c(G.target.value)}),children:r.filter(G=>!(e.currentProvider instanceof Iw)||G.id.includes("gpt")).map(G=>x.jsx("option",{value:G.id,children:G.prettyModel},G.id))}),x.jsxs(pc,{children:["See"," ",x.jsx(bh,{href:"https://platform.openai.com/docs/models/gpt-4",textDecoration:"underline",target:"_blank",rel:"noopener noreferrer",children:"docs"})," ","and"," ",x.jsx(bh,{href:"https://openai.com/pricing",textDecoration:"underline",target:"_blank",rel:"noopener noreferrer",children:"pricing"}),". NOTE: not all accounts have access to GPT - 4"]}
vendor: 99,137 bytes, lines 655-661
655)]}),x.jsxs(as,{children:[x.jsxs(Ho,{children:["Temperature: ",e.temperature]}),x.jsx(Sn,{px:"5",children:x.jsxs(A4,{value:e.temperature,onChange:G=>n({...e,temperature:G}),min:0,max:2,step:.05,children:[x.jsx(O4,{children:x.jsx(I4,{})}),x.jsx(P4,{})]})}),x.jsx(md,{children:"Temperature must be a number between 0 and 2."}),x.jsx(pc,{children:"The temperature increases the randomness of the response (0.0 - 2.0)."})]}),$&&x.jsxs(as,{children:[x.jsx(Ho,{children:"Select Voice"}),x.jsxs(qt,{gap:3,alignItems:"center",children:[x.jsx(n8,{value:e.textToSpeech.voice,onChange:G=>E(G.target.value),children:Object.values(rV).map(G=>x.jsx("option",{value:G,children:Rte(G)},G))}),x.jsx(Cd,{label:"Audio Preview",children:x.jsx(Br,{variant:"outline",type:"button","aria-label":"Audio Preview for "+Rte(e.textToSpeech.voice),icon:x.jsx(QV,{}),onClick:H})})]}),x.jsx(pc,{children:"Used when announcing messages in real-time or with the âSpeakâ option"})]})]}):x.jsx(Sn,{children:"Loading providers..."})})}let EF=[],sbe=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?sbe:EF).push(n=n+t[e])})();function ift(t){if(t<768)return!1;for(let e=0,n=EF.length;;){let r=e+n>>1;if(t<EF[r])n=r;else if(t>=sbe[r])e=r+1;else return!0;if(e==n)return!1}}function Xte(t){return t>=127462&&t<=127487}const Jte=8205;function sft(t,e,n=!0,r=!0){return(n?obe:oft)(t,e,r)}function obe(t,e,n){if(e==t.length)return e;e&&abe(t.charCodeAt(e))&&lbe(t.charCodeAt(e-1))&&e--;let r=SN(t,e);for(e+=Zte(r);e<t.length;){let i=SN(t,e);if(r==Jte||i==Jte||n&&ift(i))e+=Zte(i),r=i;else if(Xte(i)){let s=0,o=e-2;for(;o>=0&&Xte(SN(t,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function oft(t,e,n){for(;e>0;){let r=obe(t,e-2,n);if(r<e)return r;e--}return 0}function SN(t,e){let n=t.charCodeAt(e);if(!lbe(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return abe(r)?(n-55296<<10)+(r-56320)+65536:n}function abe(t){return t>=56320&&t<57344}function lbe(t){return t>=55296&&t<56320}function Zte(t){return t<65536?1:2}class mi{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=Wx(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),nA.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Wx(this,e,n);let r=[];return this.decompose(e,n,r,0),nA.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new $4(this),s=new $4(e);for(let o=n,a=n;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(e=1){return new $4(this,e)}iterRange(e,n=this.length){return new cbe(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new ube(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?mi.empty:e.length<=32?new bo(e):nA.from(bo.split(e,[]))}}class bo extends mi{constructor(e,n=aft(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((n?r:a)>=e)return new lft(i,a,r,o);i=a+1,r++}}decompose(e,n,r,i){let s=e<=0&&n>=this.length?this:new bo(ene(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let o=r.pop(),a=rA(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new bo(a,o.length+s.length));else{let l=a.length>>1;r.push(new bo(a.slice(0,l)),new bo(a.slice(l)))}}else r.push(s)}replace(e,n,r){if(!(r instanceof bo))return super.replace(e,n,r);[e,n]=Wx(this,e,n);let i=rA(this.text,rA(r.text,ene(this.text,0,e)),n),s=this.length+r.length-(n-e);return i.length<=32?new bo(i,s):nA.from(bo.split(i,[]),s)}sliceString(e,n=this.length,r=` 656`){[e,n]=Wx(this,e,n);let i="";for(let s=0,o=0;s<=n&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(i+=r),e<l&&n>s&&(i+=a.slice(Math.max(0,e-s),n-s)),s=l+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let s of e)r.push(s),i+=s.length+1,r.length==32&&(n.push(new bo(r,i)),r=[],i=-1);return i>-1&&n.push(new bo(r,i)),n}}let nA=class a2 extends mi{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=r+o.lines-1;if((n?l:a)>=e)return o.lineInner(e,n,r,i);i=a+1,r=l+1}}decompose(e,n,r,i){for(let s=0,o=0;o<=n&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&n>=o){let c=i&((o<=e?1:0)|(l>=n?2:0));o>=e&&l<=n&&!c?r.push(a):a.decompose(e-o,n-o,r,c)}o=l+1}}replace(e,n,r){if([e,n]=Wx(this,e,n),r.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(e>=s&&n<=a){let l=o.replace(e-s,n-s,r),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[i]=l,new a2(u,this.length-(n-e)+r.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=` 657`){[e,n]=Wx(this,e,n);let i="";for(let s=0,o=0;s<this.children.length&&o<=n;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(i+=r),e<l&&n>o&&(i+=a.sliceString(e-o,n-o,r)),o=l+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof a2))return 0;let r=0,[i,s,o,a]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,s+=n){if(i==o||s==a)return r;let l=this.children[i],c=e.children[s];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let p of e)r+=p.lines;if(r<32){let p=[];for(let g of e)g.flatten(p);return new bo(p,n)}let i=Math.max(32,r>>5),s=i<<1,o=i>>1,a=[],l=0,c=-1,u=[];function h(p){let g;if(p.lines>s&&p instanceof a2)for(let y of p.children)h(y);else p.lines>o&&(l>o||!l)?(d(),a.push(p)):p instanceof bo&&l&&(g=u[u.length-1])instanceof bo&&p.lines+g.lines<=32?(l+=p.lines,c+=p.length+1,u[u.length-1]=new bo(g.text.concat(p.text),g.length+1+p.length)):(l+p.lines>i&&d(),l+=p.lines,c+=p.length+1,u.push(p))}function d(){l!=0&&(a.push(u.length==1?u[0]:a2.from(u,c)),c=-1,l=u.length=0)}for(let p of e)h(p);return d(),a.length==1?a[0]:new a2(a,n)}};mi.empty=new bo([""],0);function aft(t){let e=-1;for(let n of t)e+=n.length+1;return e}function rA(t,e,n=0,r=1e9){for(let i=0,s=0,o=!0;s<t.length&&i<=r;s++){let a=t[s],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),o?(e[e.length-1]+=a,o=!1):e.push(a)),i=l+1}return e}function ene(t,e,n){return rA(t,[""],e,n)}class $4{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof bo?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],s=this.offsets[r],o=s>>1,a=i instanceof bo?i.text.length:i.children.length;if(o==(n>0?a:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=` 658`,this;e--}else if(i instanceof bo){let l=i.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=i.children[o+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof bo?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class cbe{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new $4(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ube{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(mi.prototype[Symbol.iterator]=function(){return this.iter()},$4.prototype[Symbol.iterator]=cbe.prototype[Symbol.iterator]=ube.prototype[Symbol.iterator]=function(){return this});class lft{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function Wx(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function qa(t,e,n=!0,r=!0){return sft(t,e,n,r)}function cft(t){return t>=56320&&t<57344}function uft(t){return t>=55296&&t<56320}function bc(t,e){let n=t.charCodeAt(e);if(!uft(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return cft(r)?(n-55296<<10)+(r-56320)+65536:n}function eW(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Df(t){return t<65536?1:2}const AF=/\r\n?|\n/;var Va=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Va||(Va={}));class Zf{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,i=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++];o<0?(e(r,i,s),i+=s):i+=o,r+=s}}iterChangedRanges(e,n=!1){PF(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?e.push(r,i):e.push(i,r)}return new Zf(e)}composeDesc(e){return this.empty?e:e.empty?this:hbe(this,e)}mapDesc(e,n=!1){return e.empty?this:OF(this,e,n)}mapPos(e,n=-1,r=Va.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=i+a;if(l<0){if(c>e)return s+(e-i);s+=a}else{if(r!=Va.Simple&&c>=e&&(r==Va.TrackDel&&i<e&&c>e||r==Va.TrackBefore&&i<e||r==Va.TrackAfter&&c>e))return null;if(c>e||c==e&&n<0&&!a)return e==i||n<0?s:s+l;s+=l}i=c}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let s=this.sections[r++],o=this.sections[r++],a=i+s;if(o>=0&&i<=n&&a>=e)return i<e&&a>n?"cover":!0;i=a}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];e+=(e?" ":"")+r+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Zf(e)}static create(e){return new Zf(e)}}class oa extends Zf{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return PF(this,(n,r,i,s,o)=>e=e.replace(i,i+(r-n),o),!1),e}mapDesc(e,n=!1){return OF(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,s=0;i<n.length;i+=2){let o=n[i],a=n[i+1];if(a>=0){n[i]=a,n[i+1]=o;let l=i>>1;for(;r.length<l;)r.push(mi.empty);r.push(o?e.slice(s,s+o):mi.empty)}s+=o}return new oa(n,r)}compose(e){return this.empty?e:e.empty?this:hbe(this,e,!0)}map(e,n=!1){return e.empty?this:OF(this,e,n,!0)}iterChanges(e,n=!1){PF(this,e,n)}get desc(){return Zf.create(this.sections)}filter(e){let n=[],r=[],i=[],s=new Kk(this);e:for(let o=0,a=0;;){let l=o==e.length?1e9:e[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,l-a);ol(i,u,-1);let h=s.ins==-1?-1:s.off==0?s.ins:0;ol(n,u,h),h>0&&wg(r,n,s.text),s.forward(u),a+=u}let c=e[o++];for(;a<c;){if(s.done)break e;let u=Math.min(s.len,c-a);ol(n,u,-1),ol(i,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),a+=u}}return{changes:new oa(n,r),filtered:Zf.create(i)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,r){let i=[],s=[],o=0,a=null;function l(u=!1){if(!u&&!i.length)return;o<n&&ol(i,n-o,-1);let h=new oa(i,s);a=a?a.compose(h.map(a)):h,i=[],s=[],o=0}function c(u){if(Array.isArray(u))for(let h of u)c(h);else if(u instanceof oa){if(u.length!=n)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${n})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:h,to:d=h,insert:p}=u;if(h>d||h<0||d>n)throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${n})`);let g=p?typeof p=="string"?mi.of(p.split(r||AF)):p:mi.empty,y=g.length;if(h==d&&y==0)return;h<o&&l(),h>o&&ol(i,h-o,-1),ol(i,d-h,y),wg(s,i,g),o=d}}return c(e),l(!a),a}static empty(e){return new oa(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<e.length;i++){let s=e[i];if(typeof s=="number")n.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else{for(;r.length<i;)r.push(mi.empty);r[i]=mi.of(s.slice(1)),n.push(s[0],r[i].length)}}}return new oa(n,r)}static createSet(e,n){return new oa(e,n)}}function ol(t,e,n,r=!1){if(e==0&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:i>=0&&e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function wg(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(mi.empty);t.push(n)}}function PF(t,e,n){let r=t.inserted;for(let i=0,s=0,o=0;o<t.sections.length;){let a=t.sections[o++],l=t.sections[o++];if(l<0)i+=a,s+=a;else{let c=i,u=s,h=mi.empty;for(;c+=a,u+=l,l&&r&&(h=h.append(r[o-2>>1])),!(n||o==t.sections.length||t.sections[o+1]<0);)a=t.sections[o++],l=t.sections[o++];e(i,c,s,u,h),i=c,s=u}}}function OF(t,e,n,r=!1){let i=[],s=r?[]:null,o=new Kk(t),a=new Kk(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);ol(i,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!n))){let c=a.len;for(ol(i,a.ins,-1);c;){let u=Math.min(o.len,c);o.ins>=0&&l<o.i&&o.len<=u&&(ol(i,0,o.ins),s&&wg(s,i,o.text),l=o.i),o.forward(u),c-=u}a.next()}else if(o.ins>=0){let c=0,u=o.len;for(;u;)if(a.ins==-1){let h=Math.min(u,a.len);c+=h,u-=h,a.forward(h)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;ol(i,c,l<o.i?o.ins:0),s&&l<o.i&&wg(s,i,o.text),l=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return s?oa.createSet(i,s):Zf.create(i);throw new Error("Mismatched change set lengths")}}}function hbe(t,e,n=!1){let r=[],i=n?[]:null,s=new Kk(t),o=new Kk(e);for(let a=!1;;){if(s.done&&o.done)return i?oa.createSet(r,i):Zf.create(r);if(s.ins==0)ol(r,s.len,0,a),s.next();else if(o.len==0&&!o.done)ol(r,0,o.ins,a),i&&wg(i,r,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),c=r.length;if(s.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;ol(r,l,u,a),i&&u&&wg(i,r,o.text)}else o.ins==-1?(ol(r,s.off?0:s.len,l,a),i&&wg(i,r,s.textBit(l))):(ol(r,s.off?0:s.len,o.off?0:o.ins,a),i&&!o.off&&wg(i,r,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||r.length>c),s.forward2(l),o.forward(l)}}}}class Kk{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?mi.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?mi.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ny{constructor(e,n,r){this.from=e,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Ny(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return dt.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return dt.range(this.anchor,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return dt.range(e.anchor,e.head)}static create(e,n,r){return new Ny(e,n,r)}}class dt{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:dt.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new dt([this.main],0)}addRange(e,n=!0){return dt.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,dt.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new dt(e.ranges.map(n=>Ny.fromJSON(n)),e.main)}static single(e,n=e){return new dt([dt.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let s=e[i];if(s.empty?s.from<=r:s.from<r)return dt.normalized(e.slice(),n);r=s.to}return new dt(e,n)}static cursor(e,n=0,r,i){return Ny.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(e,n,r,i){let s=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?Ny.create(n,e,48|s):Ny.create(e,n,(n>e?8:0)|s)}static normalized(e,n=0){let r=e[n];e.sort((i,s)=>i.from-s.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let s=e[i],o=e[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);i<=n&&n--,e.splice(--i,2,s.anchor>s.head?dt.range(l,a):dt.range(a,l))}}return new dt(e,n)}}function dbe(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let tW=0;class ln{constructor(e,n,r,i,s){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=tW++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new ln(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:nW),!!e.static,e.enables)}of(e){return new iA([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new iA(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new iA(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function nW(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class iA{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=tW++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,s=this.id,o=e[s]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let h of this.dependencies)h=="doc"?l=!0:h=="selection"?c=!0:(((n=e[h.id])!==null&&n!==void 0?n:1)&1)==0&&u.push(e[h.id]);return{create(h){return h.values[o]=r(h),1},update(h,d){if(l&&d.docChanged||c&&(d.docChanged||d.selection)||IF(h,u)){let p=r(h);if(a?!tne(p,h.values[o],i):!i(p,h.values[o]))return h.values[o]=p,1}return 0},reconfigure:(h,d)=>{let p,g=d.config.address[s];if(g!=null){let y=s7(d,g);if(this.dependencies.every(b=>b instanceof ln?d.facet(b)===h.facet(b):b instanceof Ia?d.field(b,!1)==h.field(b,!1):!0)||(a?tne(p=r(h),y,i):i(p=r(h),y)))return h.values[o]=y,0}else p=r(h);return h.values[o]=p,1}}}}function tne(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function IF(t,e){let n=!1;for(let r of e)j4(t,r)&1&&(n=!0);return n}function hft(t,e,n){let r=n.map(l=>t[l.id]),i=n.map(l=>l.type),s=r.filter(l=>!(l&1)),o=t[e.id]>>1;function a(l){let c=[];for(let u=0;u<r.length;u++){let h=s7(l,r[u]);if(i[u]==2)for(let d of h)c.push(d);else c.push(h)}return e.combine(c)}return{create(l){for(let c of r)j4(l,c);return l.values[o]=a(l),1},update(l,c){if(!IF(l,s))return 0;let u=a(l);return e.compare(u,l.values[o])?0:(l.values[o]=u,1)},reconfigure(l,c){let u=IF(l,r),h=c.config.facets[e.id],d=c.facet(e);if(h&&!u&&nW(n,h))return l.values[o]=d,0;let p=a(l);return e.compare(p,d)?(l.values[o]=d,0):(l.values[o]=p,1)}}}const W5=ln.define({static:!0});class Ia{constructor(e,n,r,i,s){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=s,this.provides=void 0}static define(e){let n=new Ia(tW++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(W5).find(r=>r.field==this);return(n?.create||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let s=r.values[n],o=this.updateF(s,i);return this.compareF(s,o)?0:(r.values[n]=o,1)},reconfigure:(r,i)=>{let s=r.facet(W5),o=i.facet(W5),a;return(a=s.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(r.values[n]=a.create(r),1):i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}}init(e){return[this,W5.of({field:this,create:e})]}get extension(){return this}}const vy={lowest:4,low:3,default:2,high:1,highest:0};function GS(t){return e=>new fbe(e,t)}const v1={highest:GS(vy.highest),high:GS(vy.high),default:GS(vy.default),low:GS(vy.low),lowest:GS(vy.lowest)};class fbe{constructor(e,n){this.inner=e,this.prec=n}}class tI{of(e){return new DF(this,e)}reconfigure(e){return tI.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class DF{constructor(e,n){this.compartment=e,this.inner=n}}class i7{constructor(e,n,r,i,s,o){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let i=[],s=Object.create(null),o=new Map;for(let d of dft(e,n,o))d instanceof Ia?i.push(d):(s[d.facet.id]||(s[d.facet.id]=[])).push(d);let a=Object.create(null),l=[],c=[];for(let d of i)a[d.id]=c.length<<1,c.push(p=>d.slot(p));let u=r?.config.facets;for(let d in s){let p=s[d],g=p[0].facet,y=u&&u[d]||[];if(p.every(b=>b.type==0))if(a[g.id]=l.length<<1|1,nW(y,p))l.push(r.facet(g));else{let b=g.combine(p.map(w=>w.value));l.push(r&&g.compare(b,r.facet(g))?r.facet(g):b)}else{for(let b of p)b.type==0?(a[b.id]=l.length<<1|1,l.push(b.value)):(a[b.id]=c.length<<1,c.push(w=>b.dynamicSlot(w)));a[g.id]=c.length<<1,c.push(b=>hft(b,g,p))}}let h=c.map(d=>d(a));return new i7(e,o,h,a,l,s)}}function dft(t,e,n){let r=[[],[],[],[],[]],i=new Map;function s(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let c=r[l].indexOf(o);c>-1&&r[l].splice(c,1),o instanceof DF&&n.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let c of o)s(c,a);else if(o instanceof DF){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;n.set(o.compartment,c),s(c,a)}else if(o instanceof fbe)s(o.inner,o.prec);else if(o instanceof Ia)r[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof iA)r[a].push(o),o.facet.extensions&&s(o.facet.extensions,vy.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,a)}}return s(t,vy.default),r.reduce((o,a)=>o.concat(a))}function j4(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function s7(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const pbe=ln.define(),MF=ln.define({combine:t=>t.some(e=>e),static:!0}),mbe=ln.define({combine:t=>t.length?t[0]:void 0,static:!0}),gbe=ln.define(),ybe=ln.define(),bbe=ln.define(),vbe=ln.define({combine:t=>t.length?t[0]:!1});class yp{constructor(e,n){this.type=e,this.value=n}static define(){return new fft}}class fft{of(e){return new yp(this,e)}}class pft{constructor(e){this.map=e}of(e){return new Er(this,e)}}class Er{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Er(this.type,n)}is(e){return this.type==e}static define(e={}){return new pft(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let s=i.map(n);s&&r.push(s)}return r}}Er.reconfigure=Er.define();Er.appendConfig=Er.define();class Uo{constructor(e,n,r,i,s,o){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,r&&dbe(r,n.newLength),s.some(a=>a.type==Uo.time)||(this.annotations=s.concat(Uo.time.of(Date.now())))}static create(e,n,r,i,s,o){return new Uo(e,n,r,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(Uo.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}Uo.time=yp.define();Uo.userEvent=yp.define();Uo.addToHistory=yp.define();Uo.remote=yp.define();function mft(t,e){let n=[];for(let r=0,i=0;;){let s,o;if(r<t.length&&(i==e.length||e[i]>=t[r]))s=t[r++],o=t[r++];else if(i<e.length)s=e[i++],o=e[i++];else return n;!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function xbe(t,e,n){var r;let i,s,o;return n?(i=e.changes,s=oa.empty(e.changes.length),o=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(s):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:Er.mapEffects(t.effects,i).concat(Er.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function NF(t,e,n){let r=e.selection,i=sx(e.annotations);return e.userEvent&&(i=i.concat(Uo.userEvent.of(e.userEvent))),{changes:e.changes instanceof oa?e.changes:oa.of(e.changes||[],n,t.facet(mbe)),selection:r&&(r instanceof dt?r:dt.single(r.anchor,r.head)),effects:sx(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function wbe(t,e,n){let r=NF(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(n=!1);let o=!!e[s].sequential;r=xbe(r,NF(t,e[s],o?r.changes.newLength:t.doc.length),o)}let i=Uo.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return yft(n?gft(i):i)}function gft(t){let e=t.startState,n=!0;for(let i of e.facet(gbe)){let s=i(t);if(s===!1){n=!1;break}Array.isArray(s)&&(n=n===!0?s:mft(n,s))}if(n!==!0){let i,s;if(n===!1)s=t.changes.invertedDesc,i=oa.empty(e.doc.length);else{let o=t.changes.filter(n);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}t=Uo.create(e,i,t.selection&&t.selection.map(s),Er.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let r=e.facet(ybe);for(let i=r.length-1;i>=0;i--){let s=r[i](t);s instanceof Uo?t=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Uo?t=s[0]:t=wbe(e,sx(s),!1)}return t}function yft(t){let e=t.startState,n=e.facet(bbe),r=t;for(let i=n.length-1;i>=0;i--){let s=n[i](t);s&&Object.keys(s).length&&(r=xbe(r,NF(e,s,t.changes.newLength),!0))}return r==t?t:Uo.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const bft=[];function sx(t){return t==null?bft:Array.isArray(t)?t:[t]}var Ws=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ws||(Ws={}));const vft=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let RF;try{RF=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function xft(t){if(RF)return RF.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"Â"&&(n.toUpperCase()!=n.toLowerCase()||vft.test(n)))return!0}return!1}function wft(t){return e=>{if(!/\S/.test(e))return Ws.Space;if(xft(e))return Ws.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Ws.Word;return Ws.Other}}class ui{constructor(e,n,r,i,s,o){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)j4(this,a<<1);this.computeSlot=null}field(e,n=!0){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return j4(this,r),s7(this,r)}update(...e){return wbe(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let a of e.effects)a.is(tI.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,c)=>i.set(c,l)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(Er.reconfigure)?(n=null,r=a.value):a.is(Er.appendConfig)&&(n=null,r=sx(r).concat(a.value));let s;n?s=e.startState.values.slice():(n=i7.resolve(r,i,this),s=new ui(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=e.startState.facet(MF)?e.newSelection:e.newSelection.asSingle();new ui(n,e.newDoc,o,s,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:dt.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),s=[r.range],o=sx(r.effects);for(let a=1;a<n.ranges.length;a++){let l=e(n.ranges[a]),c=this.changes(l.changes),u=c.map(i);for(let d=0;d<a;d++)s[d]=s[d].map(u);let h=i.mapDesc(c,!0);s.push(l.range.map(h)),i=i.compose(u),o=Er.mapEffects(o,u).concat(Er.mapEffects(sx(l.effects),h))}return{changes:i,selection:dt.create(s,n.mainIndex),effects:o}}changes(e=[]){return e instanceof oa?e:oa.of(e,this.doc.length,this.facet(ui.lineSeparator))}toText(e){return mi.of(e.split(this.facet(ui.lineSeparator)||AF))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(j4(this,n),s7(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof Ia&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(e[r]),this))}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let s in r)if(Object.prototype.hasOwnProperty.call(e,s)){let o=r[s],a=e[s];i.push(o.init(l=>o.spec.fromJSON(a,l)))}}return ui.create({doc:e.doc,selection:dt.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=i7.resolve(e.extensions||[],new Map),r=e.doc instanceof mi?e.doc:mi.of((e.doc||"").split(n.staticFacet(ui.lineSeparator)||AF)),i=e.selection?e.selection instanceof dt?e.selection:dt.single(e.selection.anchor,e.selection.head):dt.single(0);return dbe(i,r.length),n.staticFacet(MF)||(i=i.asSingle()),new ui(n,r,i,n.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(ui.tabSize)}get lineBreak(){return this.facet(ui.lineSeparator)||` 659`}get readOnly(){return this.facet(vbe)}phrase(e,...n){for(let r of this.facet(ui.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let s=+(i||1);return!s||s>n.length?r:n[s-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let s of this.facet(pbe))for(let o of s(this,n,r))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return wft(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-r,a=e-r;for(;o>0;){let l=qa(n,o,!1);if(s(n.slice(l,o))!=Ws.Word)break;o=l}for(;a<i;){let l=qa(n,a);if(s(n.slice(a,l))!=Ws.Word)break;a=l}return o==a?null:dt.range(o+r,a+r)}}ui.allowMultipleSelections=MF;ui.tabSize=ln.define({combine:t=>t.length?t[0]:4});ui.lineSeparator=mbe;ui.readOnly=vbe;ui.phrases=ln.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}});ui.languageData=pbe;ui.changeFilter=gbe;ui.transactionFilter=ybe;ui.transactionExtender=bbe;tI.reconfigure=Er.define();function bp(t,e,n={}){let r={};for(let i of t)for(let s of Object.keys(i)){let o=i[s],a=r[s];if(a===void 0)r[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(n,s))r[s]=n[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class yb{eq(e){return this==e}range(e,n=e){return LF.create(e,n,this)}}yb.prototype.startSide=yb.prototype.endSide=0;yb.prototype.point=!1;yb.prototype.mapMode=Va.TrackDel;let LF=class Sbe{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new Sbe(e,n,r)}};function BF(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class rW{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let s=r?this.to:this.from;for(let o=i,a=s.length;;){if(o==a)return o;let l=o+a>>1,c=s[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==o)return c>=0?o:a;c>=0?a=l:o=l+1}}between(e,n,r,i){for(let s=this.findIndex(n,-1e9,!0),o=this.findIndex(r,1e9,!1,s);s<o;s++)if(i(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,n){let r=[],i=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],u=this.from[l]+e,h=this.to[l]+e,d,p;if(u==h){let g=n.mapPos(u,c.startSide,c.mapMode);if(g==null||(d=p=g,c.startSide!=c.endSide&&(p=n.mapPos(u,c.endSide),p<d)))continue}else if(d=n.mapPos(u,c.startSide),p=n.mapPos(h,c.endSide),d>p||d==p&&c.startSide>0&&c.endSide<=0)continue;(p-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(a=Math.max(a,p-d)),r.push(c),i.push(d-o),s.push(p-o))}return{mapped:r.length?new rW(i,s,r,a):null,pos:o}}}class wi{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(e,n,r,i){return new wi(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:s=this.length}=e,o=e.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(BF)),this.isEmpty)return n.length?wi.of(n):this;let a=new kbe(this,null,-1).goto(0),l=0,c=[],u=new X0;for(;a.value||l<n.length;)if(l<n.length&&(a.from-n[l].from||a.startSide-n[l].value.startSide)>=0){let h=n[l++];u.addInner(h.from,h.to,h.value)||c.push(h)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(a.chunkIndex)<n[l].from)&&(!o||i>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||i>a.to||s<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||c.push(LF.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!c.length?wi.empty:this.nextLayer.update({add:c,filter:o,filterFrom:i,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],c=e.touchesRange(a,a+l.length);if(c===!1)i=Math.max(i,l.maxPoint),n.push(l),r.push(e.mapPos(a));else if(c===!0){let{mapped:u,pos:h}=l.map(a,e);u&&(i=Math.max(i,u.maxPoint),n.push(u),r.push(h))}}let s=this.nextLayer.map(e);return n.length==0?s:new wi(r,n,s||wi.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i];if(n>=s&&e<=s+o.length&&o.between(s,e-s,n-s,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return Yk.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Yk.from(e).goto(n)}static compare(e,n,r,i,s=-1){let o=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),a=n.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=nne(o,a,r),c=new KS(o,l,s),u=new KS(a,l,s);r.iterGaps((h,d,p)=>rne(c,h,u,d,p,i)),r.empty&&r.length==0&&rne(c,0,u,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let s=e.filter(u=>!u.isEmpty&&n.indexOf(u)<0),o=n.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let a=nne(s,o),l=new KS(s,a,0).goto(r),c=new KS(o,a,0).goto(r);for(;;){if(l.to!=c.to||!FF(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>i)return!0;l.next(),c.next()}}static spans(e,n,r,i,s=-1){let o=new KS(e,null,s).goto(n),a=n,l=o.openStart;for(;;){let c=Math.min(o.to,r);if(o.point){let u=o.activeForPoint(o.to),h=o.pointFrom<n?u.length+1:o.point.startSide<0?u.length:Math.min(u.length,l);i.point(a,c,o.point,u,h,o.pointRank),l=Math.min(o.openEnd(c),u.length)}else c>a&&(i.span(a,c,o.active,l),l=o.openEnd(c));if(o.to>r)return l+(o.point&&o.to>r?1:0);a=o.to,o.next()}}static of(e,n=!1){let r=new X0;for(let i of e instanceof LF?[e]:n?Sft(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return wi.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=wi.empty;i=i.nextLayer)n=new wi(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}wi.empty=new wi([],[],null,-1);function Sft(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(BF(e,r)>0)return t.slice().sort(BF);e=r}return t}wi.empty.nextLayer=wi.empty;class X0{finishChunk(e){this.chunks.push(new rW(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new X0)).add(e,n,r)}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(wi.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=wi.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function nne(t,e,n){let r=new Map;for(let s of t)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&r.set(s.chunk[o],s.chunkPos[o]);let i=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let a=r.get(s.chunk[o]);a!=null&&(n?n.mapPos(a):a)==s.chunkPos[o]&&!n?.touchesRange(a,a+s.chunk[o].length)&&i.add(s.chunk[o])}return i}class kbe{constructor(e,n,r,i=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Yk{constructor(e){this.heap=e}static from(e,n=null,r=-1){let i=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&i.push(new kbe(o,n,r,s));return i.length==1?i[0]:new Yk(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)kN(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)kN(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),kN(this.heap,0)}}}function kN(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class KS{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Yk.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){q5(this.active,e),q5(this.activeTo,e),q5(this.activeRank,e),this.minActive=ine(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:s}=this.cursor;for(;n<this.activeRank.length&&(s-this.activeRank[n]||i-this.activeTo[n])>0;)n++;G5(this.active,n,r),G5(this.activeTo,n,i),G5(this.activeRank,n,s),e&&G5(e,n,this.cursor.from),this.minActive=ine(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&q5(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function rne(t,e,n,r,i,s){t.goto(e),n.goto(r);let o=r+i,a=r,l=r-e;for(;;){let c=t.to+l-n.to,u=c||t.endSide-n.endSide,h=u<0?t.to+l:n.to,d=Math.min(h,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&FF(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(a,d,t.point,n.point):d>a&&!FF(t.active,n.active)&&s.compareRange(a,d,t.active,n.active),h>o)break;(c||t.openEnd!=n.openEnd)&&s.boundChange&&s.boundChange(h),a=h,u<=0&&t.next(),u>=0&&n.next()}}function FF(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function q5(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function G5(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function ine(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function Bw(t,e,n=t.length){let r=0;for(let i=0;i<n&&i<t.length;)t.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=qa(t,i));return r}function $F(t,e,n,r){for(let i=0,s=0;;){if(s>=e)return i;if(i==t.length)break;s+=t.charCodeAt(i)==9?n-s%n:1,i=qa(t,i)}return r===!0?-1:t.length}const jF="ͼ",sne=typeof Symbol>"u"?"__"+jF:Symbol.for(jF),zF=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),one=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Gg{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,a,l,c){let u=[],h=/^@(\w+)\b/.exec(o[0]),d=h&&h[1]=="keyframes";if(h&&a==null)return l.push(o[0]+";");for(let p in a){let g=a[p];if(/&/.test(p))s(p.split(/,\s*/).map(y=>o.map(b=>y.replace(/&/,b))).reduce((y,b)=>y.concat(b)),g,l);else if(g&&typeof g=="object"){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");s(i(p),g,u,d)}else g!=null&&u.push(p.replace(/_.*/,"").replace(/[A-Z]/g,y=>"-"+y.toLowerCase())+": "+g+";")}(u.length||d)&&l.push((r&&!h&&!c?o.map(r):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in e)s(i(o),e[o],this.rules)}getRules(){return this.rules.join(` 660`)}static newName(){let e=one[sne]||1;return one[sne]=e+1,jF+e.toString(36)}static mount(e,n,r){let i=e[zF],s=r&&r.nonce;i?s&&i.setNonce(s):i=new kft(e,s),i.mount(Array.isArray(n)?n:[n],e)}}let ane=new Map;class kft{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let s=ane.get(r);if(s)return e[zF]=s;this.sheet=new i.CSSStyleSheet,ane.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[zF]=this}mount(e,n){let r=this.sheet,i=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),r)for(let c=0;c<a.rules.length;c++)r.insertRule(a.rules[c],i++)}else{for(;s<l;)i+=this.modules[s++].rules.length;i+=a.rules.length,s++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+` 661`;this.styleTag.textContent=o;let a=n.head||n;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Kg={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Qk={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Cft=typeof navigator<"u"&&/Mac/.test(navigator.platform),_ft=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ua=0;Ua<10;Ua++)Kg[48+Ua]=Kg[96+Ua]=String(Ua);for(var Ua=1;Ua<=24;Ua++)Kg[Ua+111]="F"+Ua;for(var Ua=65;Ua<=90;Ua++)Kg[Ua]=String.fromCharCode(Ua+32),Qk[Ua]=String.fromCharCode(Ua);for(var CN in Kg)Qk.hasOwnProperty(CN)||(Qk[CN]=Kg[CN]);function Tft(t){var e=Cft&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||_ft&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Qk:Kg)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Xk(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function HF(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function sA(t,e){if(!e.anchorNode)return!1;try{return HF(t,e.anchorNode)}catch{return!1}}function qx(t){return t.nodeType==3?vb(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function z4(t,e,n,r){return n?lne(t,e,n,r,-1)||lne(t,e,n,r,1):!1}function bb(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function o7(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function lne(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:dp(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=bb(t)+(i<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?dp(t):0}else return!1}}function dp(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function w_(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Eft(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function Cbe(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Aft(t,e,n,r,i,s,o,a){let l=t.ownerDocument,c=l.defaultView||window;for(let u=t,h=!1;u&&!h;)if(u.nodeType==1){let d,p=u==l.body,g=1,y=1;if(p)d=Eft(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let S=u.getBoundingClientRect();({scaleX:g,scaleY:y}=Cbe(u,S)),d={left:S.left,right:S.left+u.clientWidth*g,top:S.top,bottom:S.top+u.clientHeight*y}}let b=0,w=0;if(i=="nearest")e.top<d.top?(w=e.top-(d.top+o),n>0&&e.bottom>d.bottom+w&&(w=e.bottom-d.bottom+o)):e.bottom>d.bottom&&(w=e.bottom-d.bottom+o,n<0&&e.top-w<d.top&&(w=e.top-(d.top+o)));else{let S=e.bottom-e.top,T=d.bottom-d.top;w=(i=="center"&&S<=T?e.top+S/2-T/2:i=="start"||i=="center"&&n<0?e.top-o:e.bottom-T+o)-d.top}if(r=="nearest"?e.left<d.left?(b=e.left-(d.left+s),n>0&&e.right>d.right+b&&(b=e.right-d.right+s)):e.right>d.right&&(b=e.right-d.right+s,n<0&&e.left<d.left+b&&(b=e.left-(d.left+s))):b=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==a?e.left-s:e.right-(d.right-d.left)+s)-d.left,b||w)if(p)c.scrollBy(b,w);else{let S=0,T=0;if(w){let D=u.scrollTop;u.scrollTop+=w/y,T=(u.scrollTop-D)*y}if(b){let D=u.scrollLeft;u.scrollLeft+=b/g,S=(u.scrollLeft-D)*g}e={left:e.left-S,top:e.top-T,right:e.right-S,bottom:e.bottom-T},S&&Math.abs(S-b)<1&&(r="nearest"),T&&Math.abs(T-w)<1&&(i="nearest")}if(p)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function Pft(t){let e=t.ownerDocument,n,r;for(let i=t.parentNode;i&&!(i==e.body||n&&r);)if(i.nodeType==1)!r&&i.scrollHeight>i.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}class Oft{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?dp(n):0),r,Math.min(e.focusOffset,r?dp(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Nv=null;function _be(t){if(t.setActive)return t.setActive();if(Nv)return t.focus(Nv);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Nv==null?{get preventScroll(){return Nv={preventScroll:!0},!0}}:void 0),!Nv){Nv=!1;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],s=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=s&&(r.scrollLeft=s)}}}let cne;function vb(t,e,n=e){let r=cne||(cne=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function ox(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let s=new KeyboardEvent("keydown",i);s.synthetic=!0,t.dispatchEvent(s);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function Ift(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function Tbe(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function Dft(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,dp(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=dp(n))}else{if(n==t)return!0;r=bb(n),n=n.parentNode}}function Ebe(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function Abe(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=dp(n)}else if(n.parentNode&&!o7(n))r=bb(n),n=n.parentNode;else return null}}function Pbe(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r<n.nodeValue.length)return{node:n,offset:r};if(n.nodeType==1&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!o7(n))r=bb(n)+1,n=n.parentNode;else return null}}class ll{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new ll(e.parentNode,bb(e),n)}static after(e,n){return new ll(e.parentNode,bb(e)+1,n)}}const iW=[];class cs{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let r=this.dom,i=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=i?i.nextSibling:r.firstChild)){let a=cs.get(s);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,n),o.flags&=-8}if(s=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&s!=o.dom&&(n.written=!0),o.dom.parentNode==r)for(;s&&s!=o.dom;)s=une(s);else r.insertBefore(o.dom,s);i=o.dom}for(s=i?i.nextSibling:r.firstChild,s&&n&&n.node==r&&(n.written=!0);s;)s=une(s)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(e,n),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let r;if(e==this.dom)r=this.dom.childNodes[n];else{let i=dp(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?i=-1:i=1),e=s}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!cs.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,s=0;;i++){let o=this.children[i];if(o.dom==r)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,n,r=0){let i=-1,s=-1,o=-1,a=-1;for(let l=0,c=r,u=r;l<this.children.length;l++){let h=this.children[l],d=c+h.length;if(c<e&&d>n)return h.domBoundsAround(e,n,c);if(d>=e&&i==-1&&(i=l,s=c),c>n&&h.dom.parentNode==this.dom){o=l,a=u;break}u=d,c=d+h.breakAfter}return{from:s,to:a<0?r+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,r=iW){this.markDirty();for(let i=e;i<n;i++){let s=this.children[i];s.parent==this&&r.indexOf(s)<0&&s.destroy()}r.length<250?this.children.splice(e,n-e,...r):this.children=[].concat(this.children.slice(0,e),r,this.children.slice(n));for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Obe(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,r,i,s,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}cs.prototype.breakAfter=0;function une(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class Obe{constructor(e,n,r){this.children=e,this.pos=n,this.i=r,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function Ibe(t,e,n,r,i,s,o,a,l){let{children:c}=t,u=c.length?c[e]:null,h=s.length?s[s.length-1]:null,d=h?h.breakAfter:o;if(!(e==r&&u&&!o&&!d&&s.length<2&&u.merge(n,i,s.length?h:null,n==0,a,l))){if(r<c.length){let p=c[r];p&&(i<p.length||p.breakAfter&&h?.breakAfter)?(e==r&&(p=p.split(i),i=0),!d&&h&&p.merge(0,i,h,!0,0,l)?s[s.length-1]=p:((i||p.children.length&&!p.children[0].length)&&p.merge(0,i,null,!1,0,l),s.push(p))):p?.breakAfter&&(h?h.breakAfter=1:o=1),r++}for(u&&(u.breakAfter=o,n>0&&(!o&&s.length&&u.merge(n,u.length,s[0],!1,a,0)?u.breakAfter=s.shift().breakAfter:(n<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(n,u.length,null,!1,a,0),e++));e<r&&s.length;)if(c[r-1].become(s[s.length-1]))r--,s.pop(),l=s.length?0:a;else if(c[e].become(s[0]))e++,s.shift(),a=s.length?0:l;else break;!s.length&&e&&r<c.length&&!c[e-1].breakAfter&&c[r].merge(0,0,c[e-1],!1,a,l)&&e--,(e<r||s.length)&&t.replaceChildren(e,r,s)}}function Dbe(t,e,n,r,i,s){let o=t.childCursor(),{i:a,off:l}=o.findPos(n,1),{i:c,off:u}=o.findPos(e,-1),h=e-n;for(let d of r)h+=d.length;t.length+=h,Ibe(t,c,u,a,l,r,0,i,s)}let vc=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},UF=typeof document<"u"?document:{documentElement:{style:{}}};const VF=/Edge\/(\d+)/.exec(vc.userAgent),Mbe=/MSIE \d/.test(vc.userAgent),WF=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vc.userAgent),nI=!!(Mbe||WF||VF),hne=!nI&&/gecko\/(\d+)/i.test(vc.userAgent),_N=!nI&&/Chrome\/(\d+)/.exec(vc.userAgent),Mft="webkitFontSmoothing"in UF.documentElement.style,Nbe=!nI&&/Apple Computer/.test(vc.vendor),dne=Nbe&&(/Mobile\/\w+/.test(vc.userAgent)||vc.maxTouchPoints>2);var dn={mac:dne||/Mac/.test(vc.platform),windows:/Win/.test(vc.platform),linux:/Linux|X11/.test(vc.platform),ie:nI,ie_version:Mbe?UF.documentMode||6:WF?+WF[1]:VF?+VF[1]:0,gecko:hne,gecko_version:hne?+(/Firefox\/(\d+)/.exec(vc.userAgent)||[0,0])[1]:0,chrome:!!_N,chrome_version:_N?+_N[1]:0,ios:dne,android:/Android\b/.test(vc.userAgent),safari:Nbe,webkit_version:Mft?+(/\bAppleWebKit\/(\d+)/.exec(vc.userAgent)||[0,0])[1]:0,tabSize:UF.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Nft=256;class Rd extends cs{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,r){return this.flags&8||r&&(!(r instanceof Rd)||this.length-(n-e)+r.length>Nft||r.flags&8)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new Rd(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new ll(this.dom,e)}domBoundsAround(e,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return Rft(this.dom,e,n)}}class J0 extends cs{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(e){if(Tbe(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,r,i,s,o){return r&&(!(r instanceof J0&&r.mark.eq(this.mark))||e&&s<=0||n<this.length&&o<=0)?!1:(Dbe(this,e,n,r?r.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(e){let n=[],r=0,i=-1,s=0;for(let a of this.children){let l=r+a.length;l>e&&n.push(r<e?a.split(e-r):a),i<0&&r>=e&&(i=s),r=l,s++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new J0(this.mark,n,o)}domAtPos(e){return Rbe(this,e)}coordsAt(e,n){return Bbe(this,e,n)}}function Rft(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,s=e,o=0;e==0&&n<0||e==r&&n>=0?dn.chrome||dn.gecko||(e?(i--,o=1):s<r&&(s++,o=-1)):n<0?i--:s<r&&s++;let a=vb(t,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:n>=0)?0:a.length-1];return dn.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),o?w_(l,o<0):l||null}class Sg extends cs{static create(e,n,r){return new Sg(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=Sg.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,r,i,s,o){return r&&(!(r instanceof Sg)||!this.widget.compare(r.widget)||e>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}become(e){return e instanceof Sg&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return mi.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):mi.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ll.before(this.dom):ll.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?i.length-1:0;s=i[a],!(e>0?a==0:a==i.length-1||s.top<s.bottom);a+=o?-1:1);return w_(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Gx extends cs{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Gx&&e.side==this.side}split(){return new Gx(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ll.before(this.dom):ll.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return mi.empty}get isHidden(){return!0}}Rd.prototype.children=Sg.prototype.children=Gx.prototype.children=iW;function Rbe(t,e){let n=t.dom,{children:r}=t,i=0;for(let s=0;i<r.length;i++){let o=r[i],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(e>s&&e<a&&o.dom.parentNode==n)return o.domAtPos(e-s);if(e<=s)break;s=a}}for(let s=i;s>0;s--){let o=r[s-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let s=i;s<r.length;s++){let o=r[s];if(o.dom.parentNode==n)return o.domAtPos(0)}return new ll(n,0)}function Lbe(t,e,n){let r,{children:i}=t;n>0&&e instanceof J0&&i.length&&(r=i[i.length-1])instanceof J0&&r.mark.eq(e.mark)?Lbe(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function Bbe(t,e,n){let r=null,i=-1,s=null,o=-1;function a(c,u){for(let h=0,d=0;h<c.children.length&&d<=u;h++){let p=c.children[h],g=d+p.length;g>=u&&(p.children.length?a(p,u-d):(!s||s.isHidden&&(n>0||Bft(s,p)))&&(g>u||d==g&&p.getSide()>0)?(s=p,o=u-d):(d<u||d==g&&p.getSide()<0&&!p.isHidden)&&(r=p,i=u-d)),d=g}}a(t,e);let l=(n<0?r:s)||r||s;return l?l.coordsAt(Math.max(0,l==r?i:o),n):Lft(t)}function Lft(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=qx(e);return n[n.length-1]||null}function Bft(t,e){let n=t.coordsAt(0,1),r=e.coordsAt(0,1);return n&&r&&r.top<n.bottom}function qF(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const fne=Object.create(null);function a7(t,e,n){if(t==e)return!0;t||(t=fne),e||(e=fne);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let s of r)if(s!=n&&(i.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function GF(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function Fft(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class vp{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Ul=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Ul||(Ul={}));class Mn extends yb{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new S_(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Yg(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:s,end:o}=Fbe(e,n);r=(s?n?-3e8:-1:5e8)-1,i=(o?n?2e8:1:-6e8)+1}return new Yg(e,r,i,n,e.widget||null,!0)}static line(e){return new k_(e)}static set(e,n=!1){return wi.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Mn.none=wi.empty;class S_ extends Mn{constructor(e){let{start:n,end:r}=Fbe(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,r;return this==e||e instanceof S_&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&a7(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}S_.prototype.point=!1;class k_ extends Mn{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof k_&&this.spec.class==e.spec.class&&a7(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}k_.prototype.mapMode=Va.TrackBefore;k_.prototype.point=!0;class Yg extends Mn{constructor(e,n,r,i,s,o){super(n,r,s,e),this.block=i,this.isReplace=o,this.mapMode=i?n<=0?Va.TrackBefore:Va.TrackAfter:Va.TrackDel}get type(){return this.startSide!=this.endSide?Ul.WidgetRange:this.startSide<=0?Ul.WidgetBefore:Ul.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Yg&&$ft(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Yg.prototype.point=!0;function Fbe(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function $ft(t,e){return t==e||!!(t&&e&&t.compare(e))}function oA(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}class $o extends cs{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,r,i,s,o){if(r){if(!(r instanceof $o))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),Dbe(this,e,n,r?r.children.slice():[],s,o),!0}split(e){let n=new $o;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(e);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let s=r;s<this.children.length;s++)n.append(this.children[s],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){a7(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){Lbe(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=qF(n,this.attrs||{})),r&&(this.attrs=qF({class:r},this.attrs||{}))}domAtPos(e){return Rbe(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(Tbe(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(GF(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&cs.get(i)instanceof J0;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=cs.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!dn.ios||!this.children.some(s=>s instanceof Rd))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof Rd)||/[^ -~]/.test(r.text))return null;let i=qx(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=Bbe(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=r.bottom-r.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let o=(s-i.textHeight)/2;return{top:r.top+o,bottom:r.bottom-o,left:r.left,right:r.left}}}return r}become(e){return e instanceof $o&&this.children.length==0&&e.children.length==0&&a7(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let r=0,i=0;r<e.children.length;r++){let s=e.children[r],o=i+s.length;if(o>=n){if(s instanceof $o)return s;if(o>n)break}i=o+s.breakAfter}return null}}class F0 extends cs{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,n,r,i,s,o){return r&&(!(r instanceof F0)||!this.widget.compare(r.widget)||e>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?ll.before(this.dom):ll.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new F0(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return iW}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):mi.empty}domBoundsAround(){return null}become(e){return e instanceof F0&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);return r||(this.widget instanceof KF?null:w_(this.dom.getBoundingClientRect(),this.length?e==0:n<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:r}=this.deco;return n==r?!1:e<0?n<0:r>0}}class KF extends vp{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class H4{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof F0&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new $o),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(K5(new Gx(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof F0)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(K5(new Rd(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(e,n,r,i,s,o){if(this.disallowBlockEffectsFor[o]&&r instanceof Yg){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=n-e;if(r instanceof Yg)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new F0(r.widget||Kx.block,a,r));else{let l=Sg.create(r.widget||Kx.inline,a,a?0:r.startSide),c=this.atCursorPos&&!l.isEditable&&s<=i.length&&(e<n||r.startSide>0),u=!l.isEditable&&(e<n||s>i.length||r.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(h.append(K5(new Gx(1),i),s),s=i.length+Math.max(0,s-i.length)),h.append(K5(l,i),s),this.atCursorPos=u,this.pendingBuffer=u?e<n||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,r,i,s){let o=new H4(e,n,r,s);return o.openEnd=wi.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function K5(t,e){for(let n of e)t=new J0(n,[t],t.length);return t}class Kx extends vp{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Kx.inline=new Kx("span");Kx.block=new Kx("div");var Ms=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Ms||(Ms={}));const xb=Ms.LTR,sW=Ms.RTL;function $be(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const jft=$be("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),zft=$be("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),YF=Object.create(null),af=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);YF[e]=n,YF[n]=-e}function jbe(t){return t<=247?jft[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?zft[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const Hft=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class kg{get dir(){return this.level%2?sW:xb}constructor(e,n,r){this.from=e,this.to=n,this.level=r}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,i){let s=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=n&&a.to>=n){if(a.level==r)return o;(s<0||(i!=0?i<0?a.from<n:a.to>n:e[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function zbe(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!zbe(r.inner,i.inner))return!1}return!0}const ls=[];function Uft(t,e,n,r,i){for(let s=0;s<=r.length;s++){let o=s?r[s-1].to:e,a=s<r.length?r[s].from:n,l=s?256:i;for(let c=o,u=l,h=l;c<a;c++){let d=jbe(t.charCodeAt(c));d==512?d=u:d==8&&h==4&&(d=16),ls[c]=d==4?2:d,d&7&&(h=d),u=d}for(let c=o,u=l,h=l;c<a;c++){let d=ls[c];if(d==128)c<a-1&&u==ls[c+1]&&u&24?d=ls[c]=u:ls[c]=256;else if(d==64){let p=c+1;for(;p<a&&ls[p]==64;)p++;let g=c&&u==8||p<n&&ls[p]==8?h==1?1:8:256;for(let y=c;y<p;y++)ls[y]=g;c=p-1}else d==8&&h==1&&(ls[c]=1);u=d,d&7&&(h=d)}}}function Vft(t,e,n,r,i){let s=i==1?2:1;for(let o=0,a=0,l=0;o<=r.length;o++){let c=o?r[o-1].to:e,u=o<r.length?r[o].from:n;for(let h=c,d,p,g;h<u;h++)if(p=YF[d=t.charCodeAt(h)])if(p<0){for(let y=a-3;y>=0;y-=3)if(af[y+1]==-p){let b=af[y+2],w=b&2?i:b&4?b&1?s:i:0;w&&(ls[h]=ls[af[y]]=w),a=y;break}}else{if(af.length==189)break;af[a++]=h,af[a++]=d,af[a++]=l}else if((g=ls[h])==2||g==1){let y=g==i;l=y?0:1;for(let b=a-3;b>=0;b-=3){let w=af[b+2];if(w&2)break;if(y)af[b+2]|=2;else{if(w&4)break;af[b+2]|=4}}}}}function Wft(t,e,n,r){for(let i=0,s=r;i<=n.length;i++){let o=i?n[i-1].to:t,a=i<n.length?n[i].from:e;for(let l=o;l<a;){let c=ls[l];if(c==256){let u=l+1;for(;;)if(u==a){if(i==n.length)break;u=n[i++].to,a=i<n.length?n[i].from:e}else if(ls[u]==256)u++;else break;let h=s==1,d=(u<e?ls[u]:r)==1,p=h==d?h?1:2:r;for(let g=u,y=i,b=y?n[y-1].to:t;g>l;)g==b&&(g=n[--y].from,b=y?n[y-1].to:t),ls[--g]=p;l=u}else s=c,l++}}}function QF(t,e,n,r,i,s,o){let a=r%2?2:1;if(r%2==i%2)for(let l=e,c=0;l<n;){let u=!0,h=!1;if(c==s.length||l<s[c].from){let y=ls[l];y!=a&&(u=!1,h=y==16)}let d=!u&&a==1?[]:null,p=u?r:r+1,g=l;e:for(;;)if(c<s.length&&g==s[c].from){if(h)break e;let y=s[c];if(!u)for(let b=y.to,w=c+1;;){if(b==n)break e;if(w<s.length&&s[w].from==b)b=s[w++].to;else{if(ls[b]==a)break e;break}}if(c++,d)d.push(y);else{y.from>l&&o.push(new kg(l,y.from,p));let b=y.direction==xb!=!(p%2);XF(t,b?r+1:r,i,y.inner,y.from,y.to,o),l=y.to}g=y.to}else{if(g==n||(u?ls[g]!=a:ls[g]==a))break;g++}d?QF(t,l,g,r+1,i,d,o):l<g&&o.push(new kg(l,g,p)),l=g}else for(let l=n,c=s.length;l>e;){let u=!0,h=!1;if(!c||l>s[c-1].to){let y=ls[l-1];y!=a&&(u=!1,h=y==16)}let d=!u&&a==1?[]:null,p=u?r:r+1,g=l;e:for(;;)if(c&&g==s[c-1].to){if(h)break e;let y=s[--c];if(!u)for(let b=y.from,w=c;;){if(b==e)break e;if(w&&s[w-1].to==b)b=s[--w].from;else{if(ls[b-1]==a)break e;break}}if(d)d.push(y);else{y.to<l&&o.push(new kg(y.to,l,p));let b=y.direction==xb!=!(p%2);XF(t,b?r+1:r,i,y.inner,y.from,y.to,o),l=y.from}g=y.from}else{if(g==e||(u?ls[g-1]!=a:ls[g-1]==a))break;g--}d?QF(t,g,l,r+1,i,d,o):g<l&&o.push(new kg(g,l,p)),l=g}}function XF(t,e,n,r,i,s,o){let a=e%2?2:1;Uft(t,i,s,r,a),Vft(t,i,s,r,a),Wft(i,s,r,a),QF(t,i,s,e,n,r,o)}function qft(t,e,n){if(!t)return[new kg(0,0,e==sW?1:0)];if(e==xb&&!n.length&&!Hft.test(t))return Hbe(t.length);if(n.length)for(;t.length>ls.length;)ls[ls.length]=256;let r=[],i=e==xb?0:1;return XF(t,i,i,n,0,t.length,r),r}function Hbe(t){return[new kg(0,t,0)]}let Ube="";function Gft(t,e,n,r,i){var s;let o=r.head-t.from,a=kg.find(e,o,(s=r.bidiLevel)!==null&&s!==void 0?s:-1,r.assoc),l=e[a],c=l.side(i,n);if(o==c){let d=a+=i?1:-1;if(d<0||d>=e.length)return null;l=e[a=d],o=l.side(!i,n),c=l.side(i,n)}let u=qa(t.text,o,l.forward(i,n));(u<l.from||u>l.to)&&(u=c),Ube=t.text.slice(Math.min(o,u),Math.max(o,u));let h=a==(i?e.length-1:0)?null:e[a+(i?1:-1)];return h&&u==c&&h.level+(i?0:1)<l.level?dt.cursor(h.side(!i,n)+t.from,h.forward(i,n)?1:-1,h.level):dt.cursor(u+t.from,l.forward(i,n)?-1:1,l.level)}function Kft(t,e,n){for(let r=e;r<n;r++){let i=jbe(t.charCodeAt(r));if(i==1)return xb;if(i==2||i==4)return sW}return xb}const Vbe=ln.define(),Wbe=ln.define(),qbe=ln.define(),Gbe=ln.define(),JF=ln.define(),Kbe=ln.define(),Ybe=ln.define(),oW=ln.define(),aW=ln.define(),Qbe=ln.define({combine:t=>t.some(e=>e)}),Xbe=ln.define({combine:t=>t.some(e=>e)}),Jbe=ln.define();class ax{constructor(e,n="nearest",r="nearest",i=5,s=5,o=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new ax(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ax(dt.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Y5=Er.define({map:(t,e)=>t.map(e)}),Zbe=Er.define();function Tc(t,e,n){let r=t.facet(Gbe);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const T0=ln.define({combine:t=>t.length?t[0]:!0});let Yft=0;const X3=ln.define();class To{constructor(e,n,r,i,s){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=s(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:s,decorations:o}=n||{};return new To(Yft++,e,r,i,a=>{let l=[X3.of(a)];return o&&l.push(Jk.of(c=>{let u=c.plugin(a);return u?o(u):Mn.none})),s&&l.push(s(a)),l})}static fromClass(e,n){return To.define(r=>new e(r),n)}}class TN{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Tc(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){Tc(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Tc(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const eve=ln.define(),lW=ln.define(),Jk=ln.define(),tve=ln.define(),cW=ln.define(),nve=ln.define();function pne(t,e){let n=t.state.facet(nve);if(!n.length)return n;let r=n.map(s=>s instanceof Function?s(t):s),i=[];return wi.spans(r,e.from,e.to,{point(){},span(s,o,a,l){let c=s-e.from,u=o-e.from,h=i;for(let d=a.length-1;d>=0;d--,l--){let p=a[d].spec.bidiIsolate,g;if(p==null&&(p=Kft(e.text,c,u)),l>0&&h.length&&(g=h[h.length-1]).to==c&&g.direction==p)g.to=u,h=g.inner;else{let y={from:c,to:u,direction:p,inner:[]};h.push(y),h=y.inner}}}}),i}const rve=ln.define();function uW(t){let e=0,n=0,r=0,i=0;for(let s of t.state.facet(rve)){let o=s(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:e,right:n,top:r,bottom:i}}const J3=ln.define();class kh{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new kh(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(n-1,1)}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let i=0,s=0,o=0,a=0;;i++){let l=i==e.length?null:e[i],c=o-a,u=l?l.fromB:1e9;for(;s<n.length&&n[s]<u;){let h=n[s],d=n[s+1],p=Math.max(a,h),g=Math.min(u,d);if(p<=g&&new kh(p+c,g+c,p,g).addToSet(r),d>u)break;s+=2}if(!l)return r;new kh(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),o=l.toA,a=l.toB}}}class l7{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=oa.empty(this.startState.doc.length);for(let s of r)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,o,a,l)=>i.push(new kh(s,o,a,l))),this.changedRanges=i}static create(e,n,r){return new l7(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class mne extends cs{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=Mn.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new $o],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new kh(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:c,toA:u})=>u<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!npt(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let s=i>-1?Xft(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;r=new kh(c,u,e.changes.mapPos(c,-1),e.changes.mapPos(u,1)).addToSet(r.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(dn.ie||dn.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=ept(o,a,e.changes);return r=kh.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=dn.chrome||dn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof F0&&o.widget instanceof KF&&s.push(o.dom);i.updateGaps(s)}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,s=this.childCursor(n);for(let o=i.length-1;;o--){let a=o>=0?i[o]:null;if(!a)break;let{fromA:l,toA:c,fromB:u,toB:h}=a,d,p,g,y;if(r&&r.range.fromB<h&&r.range.toB>u){let D=H4.build(this.view.state.doc,u,r.range.fromB,this.decorations,this.dynamicDecorationMap),E=H4.build(this.view.state.doc,r.range.toB,h,this.decorations,this.dynamicDecorationMap);p=D.breakAtStart,g=D.openStart,y=E.openEnd;let O=this.compositionView(r);E.breakAtStart?O.breakAfter=1:E.content.length&&O.merge(O.length,O.length,E.content[0],!1,E.openStart,0)&&(O.breakAfter=E.content[0].breakAfter,E.content.shift()),D.content.length&&O.merge(0,0,D.content[D.content.length-1],!0,0,D.openEnd)&&D.content.pop(),d=D.content.concat(O).concat(E.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:y}=H4.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:b,off:w}=s.findPos(c,1),{i:S,off:T}=s.findPos(l,-1);Ibe(this,S,T,b,w,d,p,g,y)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(Zbe)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new Rd(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new J0(i,[n],n.length);let r=new $o;return r.append(n,0),r}fixCompositionDOM(e){let n=(s,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=cs.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let s=e.marks.length-1;s>=-1;s--)r=i.childPos(r.off,1),i=i.children[r.i],n(s>=0?e.marks[s].node:e.text,i)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,s=!i&&!(this.view.state.facet(T0)||this.dom.tabIndex>-1)&&sA(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||s))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(dn.gecko&&a.empty&&!this.hasComposition&&Qft(l)){let h=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(h,l.node.childNodes[l.offset]||null)),l=c=new ll(h,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!z4(l.node,l.offset,u.anchorNode,u.anchorOffset)||!z4(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{dn.android&&dn.chrome&&this.dom.contains(u.focusNode)&&tpt(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=Xk(this.view.root);if(h)if(a.empty){if(dn.gecko){let d=Jft(l.node,l.offset);if(d&&d!=3){let p=(d==1?Abe:Pbe)(l.node,l.offset);p&&(l=new ll(p.node,p.offset))}}h.collapse(l.node,l.offset),a.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=a.bidiLevel)}else if(h.extend){h.collapse(l.node,l.offset);try{h.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),d.setEnd(c.node,c.offset),d.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(d)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new ll(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new ll(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&z4(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}
vendor: 4,723 bytes, line 661
661=this,n=e.state.selection.main,r=Xk(e.root),{anchorNode:i,anchorOffset:s}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=$o.find(this,n.head);if(!o)return;let a=o.posAtStart;if(n.head==a||n.head==a+o.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(n.head+n.assoc);r.collapse(u.node,u.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=n.from&&r.collapse(i,s)}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i<n.childNodes.length;i++){let s=cs.get(n.childNodes[i]);s instanceof $o&&(r=s.domAtPos(0))}for(let i=e.offset-1;!r&&i>=0;i--){let s=cs.get(n.childNodes[i]);s instanceof $o&&(r=s.domAtPos(s.length))}return r?new ll(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=cs.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof $o)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,c=l-a.length;if(l<e)break;if(c<=e&&(c<e||a.covers(-1))&&(l>e||a.covers(1))&&(!r||a instanceof $o&&!(r instanceof $o&&n>=0)))r=a,i=c;else if(r&&c==e&&l==e&&a instanceof F0&&Math.abs(n)<2){if(a.deco.startSide<0)break;o&&(r=null)}s=c}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof $o))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(r,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}r=l}if(!(i instanceof Rd))return null;let s=qa(i.text,r);if(s==r)return null;let o=vb(i.dom,r,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==Ms.LTR;for(let c=0,u=0;u<this.children.length;u++){let h=this.children[u],d=c+h.length;if(d>i)break;if(c>=r){let p=h.dom.getBoundingClientRect();if(n.push(p.height),o){let g=h.dom.lastChild,y=g?qx(g):[];if(y.length){let b=y[y.length-1],w=l?b.right-p.left:p.right-b.left;w>a&&(a=w,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+h.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Ms.RTL:Ms.LTR}measureTextSize(){for(let s of this.children)if(s instanceof $o){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=qx(e.firstChild)[0];n=e.getBoundingClientRect().height,r=s?s.width/27:7,i=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new Obe(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let s=i==n.viewports.length?null:n.viewports[i],o=s?s.from-1:this.length;if(o>r){let a=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(Mn.replace({widget:new KF(a),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!s)break;r=s.to+1}return Mn.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Jk).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),r=!1,i=this.view.state.facet(tve).map((s,o)=>{let a=typeof s=="function";return a&&(r=!0),a?s(this.view):s});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(wi.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(Jbe))try{if(c(this.view,e.range,e))return!0}catch(u){Tc(this.view.state,u,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>
vendor: 79,125 bytes, lines 661-664
661n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=uW(this.view),o={left:r.left-s.left,top:r.top-s.top,right:r.right+s.right,bottom:r.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;Aft(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==Ms.LTR)}}function Qft(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function ive(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=Abe(n.focusNode,n.focusOffset),i=Pbe(n.focusNode,n.focusOffset),s=r||i;if(i&&r&&i.node!=r.node){let a=cs.get(i.node);if(!a||a instanceof Rd&&a.text!=i.node.nodeValue)s=i;else if(t.docView.lastCompositionAfterCursor){let l=cs.get(r.node);!l||l instanceof Rd&&l.text!=r.node.nodeValue||(s=i)}}if(t.docView.lastCompositionAfterCursor=s!=r,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function Xft(t,e,n){let r=ive(t,n);if(!r)return null;let{node:i,from:s,to:o}=r,a=i.nodeValue;if(/[\n\r]/.test(a)||t.state.doc.sliceString(r.from,r.to)!=a)return null;let l=e.invertedDesc,c=new kh(l.mapPos(s),l.mapPos(o),s,o),u=[];for(let h=i.parentNode;;h=h.parentNode){let d=cs.get(h);if(d instanceof J0)u.push({node:h,deco:d.mark});else{if(d instanceof $o||h.nodeName=="DIV"&&h.parentNode==t.contentDOM)return{range:c,text:i,marks:u,line:h};if(h!=t.contentDOM)u.push({node:h,deco:new S_({inclusive:!0,attributes:Fft(h),tagName:h.tagName.toLowerCase()})});else return null}}}function Jft(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let Zft=class{constructor(){this.changes=[]}compareRange(e,n){oA(e,n,this.changes)}comparePoint(e,n){oA(e,n,this.changes)}boundChange(e){oA(e,e,this.changes)}};function ept(t,e,n){let r=new Zft;return wi.compare(t,e,n,r),r.changes}function tpt(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function npt(t,e){let n=!1;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=!0)}),n}function rpt(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),s=e-i.from;if(i.length==0)return dt.cursor(e);s==0?n=1:s==i.length&&(n=-1);let o=s,a=s;n<0?o=qa(i.text,s,!1):a=qa(i.text,s);let l=r(i.text.slice(o,a));for(;o>0;){let c=qa(i.text,o,!1);if(r(i.text.slice(c,o))!=l)break;o=c}for(;a<i.length;){let c=qa(i.text,a);if(r(i.text.slice(a,c))!=l)break;a=c}return dt.range(o+i.from,a+i.from)}function ipt(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function spt(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function EN(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function gne(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function yne(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function ZF(t,e,n){let r,i,s,o,a=!1,l,c,u,h;for(let g=t.firstChild;g;g=g.nextSibling){let y=qx(g);for(let b=0;b<y.length;b++){let w=y[b];i&&EN(i,w)&&(w=gne(yne(w,i.bottom),i.top));let S=ipt(e,w),T=spt(n,w);if(S==0&&T==0)return g.nodeType==3?bne(g,e,n):ZF(g,e,n);if(!r||o>T||o==T&&s>S){r=g,i=w,s=S,o=T;let D=T?n<w.top?-1:1:S?e<w.left?-1:1:0;a=!D||(D>0?b<y.length-1:b>0)}S==0?n>w.bottom&&(!u||u.bottom<w.bottom)?(l=g,u=w):n<w.top&&(!h||h.top>w.top)&&(c=g,h=w):u&&EN(u,w)?u=yne(u,w.bottom):h&&EN(h,w)&&(h=gne(h,w.top))}}if(u&&u.bottom>=n?(r=l,i=u):h&&h.top<=n&&(r=c,i=h),!r)return{node:t,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return bne(r,d,n);if(a&&r.contentEditable!="false")return ZF(r,d,n);let p=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:p}}function bne(t,e,n){let r=t.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<r;a++){let l=vb(t,a,a+1).getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(u.top==u.bottom)continue;o||(o=e-u.left);let h=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&h<s){let d=e>=(u.left+u.right)/2,p=d;if((dn.chrome||dn.gecko)&&vb(t,a).getBoundingClientRect().left==u.right&&(p=!d),h<=0)return{node:t,offset:a+(p?1:0)};i=a+(p?1:0),s=h}}}return{node:t,offset:i>-1?i:o>0?t.nodeValue.length:0}}function sve(t,e,n,r=-1){var i,s;let o=t.contentDOM.getBoundingClientRect(),a=o.top+t.viewState.paddingTop,l,{docHeight:c}=t.viewState,{x:u,y:h}=e,d=h-a;if(d<0)return 0;if(d>c)return t.state.doc.length;for(let D=t.viewState.heightOracle.textHeight/2,E=!1;l=t.elementAtHeight(d),l.type!=Ul.Text;)for(;d=r>0?l.bottom+D:l.top-D,!(d>=0&&d<=c);){if(E)return n?null:0;E=!0,r=-r}h=a+d;let p=l.from;if(p<t.viewport.from)return t.viewport.from==0?0:n?null:vne(t,o,l,u,h);if(p>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:vne(t,o,l,u,h);let g=t.dom.ownerDocument,y=t.root.elementFromPoint?t.root:g,b=y.elementFromPoint(u,h);b&&!t.contentDOM.contains(b)&&(b=null),b||(u=Math.max(o.left+1,Math.min(o.right-1,u)),b=y.elementFromPoint(u,h),b&&!t.contentDOM.contains(b)&&(b=null));let w,S=-1;if(b&&((i=t.docView.nearest(b))===null||i===void 0?void 0:i.isEditable)!=!1){if(g.caretPositionFromPoint){let D=g.caretPositionFromPoint(u,h);D&&({offsetNode:w,offset:S}=D)}else if(g.caretRangeFromPoint){let D=g.caretRangeFromPoint(u,h);D&&({startContainer:w,startOffset:S}=D,(!t.contentDOM.contains(w)||dn.safari&&opt(w,S,u)||dn.chrome&&apt(w,S,u))&&(w=void 0))}w&&(S=Math.min(dp(w),S))}if(!w||!t.docView.dom.contains(w)){let D=$o.find(t.docView,p);if(!D)return d>l.top+l.height/2?l.to:l.from;({node:w,offset:S}=ZF(D.dom,u,h))}let T=t.docView.nearest(w);if(!T)return null;if(T.isWidget&&((s=T.dom)===null||s===void 0?void 0:s.nodeType)==1){let D=T.dom.getBoundingClientRect();return e.y<D.top||e.y<=D.bottom&&e.x<=(D.left+D.right)/2?T.posAtStart:T.posAtEnd}else return T.localPosFromDOM(w,S)+T.posAtStart}function vne(t,e,n,r,i){let s=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let a=t.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(t.defaultLineHeight-a)*.5)/a);s+=l*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(n.from,n.to);return n.from+$F(o,s,t.state.tabSize)}function opt(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return vb(t,r-1,r).getBoundingClientRect().left>n}function apt(t,e,n){if(e!=0)return!1;for(let i=t;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return!1;if(s.classList.contains("cm-line"))break;i=s}let r=t.nodeType==1?t.getBoundingClientRect():vb(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function e$(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>e||r.to==e&&(r.to==n.to||r.type==Ul.Text))return r}return n}function lpt(t,e,n,r){let i=e$(t,e.head),s=!r||i.type!=Ul.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(s){let o=t.dom.getBoundingClientRect(),a=t.textDirectionAt(i.from),l=t.posAtCoords({x:n==(a==Ms.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return dt.cursor(l,n?-1:1)}return dt.cursor(n?i.to:i.from,n?-1:1)}function xne(t,e,n,r){let i=t.state.doc.lineAt(e.head),s=t.bidiSpans(i),o=t.textDirectionAt(i.from);for(let a=e,l=null;;){let c=Gft(i,s,o,a,n),u=Ube;if(!c){if(i.number==(n?t.state.doc.lines:1))return a;u=` 662`,i=t.state.doc.line(i.number+(n?1:-1)),s=t.bidiSpans(i),c=t.visualLineSide(i,!n)}if(l){if(!l(u))return a}else{if(!r)return c;l=r(u)}a=c}}function cpt(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return s=>{let o=r(s);return i==Ws.Space&&(i=o),i==o}}function upt(t,e,n,r){let i=e.head,s=n?1:-1;if(i==(n?t.state.doc.length:0))return dt.cursor(i,e.assoc);let o=e.goalColumn,a,l=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(i,e.assoc||-1),u=t.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let p=t.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-p.from))),a=(s<0?p.top:p.bottom)+u}let h=l.left+o,d=r??t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let g=a+(d+p)*s,y=sve(t,{x:h,y:g},!1,s);if(g<l.top||g>l.bottom||(s<0?y<i:y>i)){let b=t.docView.coordsForChar(y),w=!b||g<b.top?-1:1;return dt.cursor(y,w,void 0,o)}}}function aA(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=r||n||(e-s<o-e?-1:1);e=l<0?s:o,r=l}});if(!r)return e}}function AN(t,e,n){let r=aA(t.state.facet(cW).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:dt.cursor(r,r<n.from?1:-1)}const Z3="ï¿¿";class hpt{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(ui.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Z3}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let s=this.text.length;this.readNode(i);let o=i.nextSibling;if(o==n)break;let a=cs.get(i),l=cs.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:o7(i))||o7(o)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>s)&&this.lineBreak(),i=o}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(a=i.exec(n))&&(s=a.index,o=a[0].length),this.append(n.slice(r,s<0?n.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);r=s+o}}readNode(e){if(e.cmIgnore)return;let n=cs.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(dpt(e,r.node,r.offset)?n:0))}}function dpt(t,e,n){for(;;){if(!e||n<dp(e))return!1;if(e==t)return!0;n=bb(e)+1,e=e.parentNode}}class wne{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class fpt{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let a=s||o?[]:gpt(e),l=new hpt(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=ypt(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!HF(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!HF(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=e.viewport;if((dn.ios||dn.chrome)&&e.state.selection.main.empty&&l!=c&&(u.from>0||u.to<e.state.doc.length)){let h=Math.min(l,c),d=Math.max(l,c),p=u.from-h,g=u.to-d;(p==0||p==1||h==0)&&(g==0||g==-1||d==e.state.doc.length)&&(l=0,c=e.state.doc.length)}this.newSel=dt.single(c,l)}}}function ove(t,e){let n,{newSel:r}=e,i=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=i.from,c=null;(s===8||dn.android&&e.text.length<a-o)&&(l=i.to,c="end");let u=mpt(t.state.doc.sliceString(o,a,Z3),e.text,l-o,c);u&&(dn.chrome&&s==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==Z3+Z3&&u.toB--,n={from:o+u.from,to:o+u.toA,insert:mi.of(e.text.slice(u.from,u.toB).split(Z3))})}else r&&(!t.hasFocus&&t.state.facet(T0)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:(dn.mac||dn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=dt.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:mi.of([n.insert.toString().replace("."," ")])}):n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:dn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` 663 `&&t.lineWrapping&&(r&&(r=dt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:mi.of([" "])}),n)return hW(t,n,r,s);if(r&&!r.main.eq(i)){let o=!1,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=!0),a=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:o,userEvent:a}),!0}else return!1}function hW(t,e,n,r=-1){if(dn.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(dn.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&ox(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&ox(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&ox(t.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,a=()=>o||(o=ppt(t,e,n));return t.state.facet(Kbe).some(l=>l(t,e.from,e.to,s,a))||t.dispatch(a()),!0}function ppt(t,e,n){let r,i=t.state,s=i.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=s.from<e.from?i.sliceDoc(s.from,e.from):"",l=s.to>e.to?i.sliceDoc(e.to,s.to):"";r=i.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let a=i.changes(e),l=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=t.state.sliceDoc(e.from,e.to),u,h=n&&ive(t,n.main.head);if(h){let g=e.insert.length-(e.to-e.from);u={from:h.from,to:h.to-g}}else u=t.state.doc.lineAt(s.head);let d=s.to-e.to,p=s.to-s.from;r=i.changeByRange(g=>{if(g.from==s.from&&g.to==s.to)return{changes:a,range:l||g.map(a)};let y=g.to-d,b=y-c.length;if(g.to-g.from!=p||t.state.sliceDoc(b,y)!=c||g.to>=u.from&&g.from<=u.to)return{range:g};let w=i.changes({from:b,to:y,insert:e.insert}),S=g.to-s.to;return{changes:w,range:l?dt.range(Math.max(0,l.anchor+S),Math.max(0,l.head+S)):g.map(w)}})}else r={changes:a,selection:l&&i.selection.replaceRange(l)}}let o="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,o+=".compose",t.inputState.compositionFirstChange&&(o+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:o,scrollIntoView:!0})}function mpt(t,e,n,r){let i=Math.min(t.length,e.length),s=0;for(;s<i&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==i&&t.length==e.length)return null;let o=t.length,a=e.length;for(;o>0&&a>0&&t.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(r=="end"){let l=Math.max(0,s-Math.min(o,a));n-=o+l-s}if(o<s&&t.length<e.length){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function gpt(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new wne(n,r)),(i!=n||s!=r)&&e.push(new wne(i,s))),e}function ypt(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?dt.single(n+e,r+e):null}class bpt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,dn.safari&&e.contentDOM.addEventListener("input",()=>null),dn.gecko&&Npt(e.contentDOM.ownerDocument)}handleEvent(e){!Tpt(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=vpt(e),r=this.handlers,i=this.view.contentDOM;for(let s in n)if(s!="scroll"){let o=!n[s].handlers.length,a=r[s];a&&o!=!a.handlers.length&&(i.removeEventListener(s,this.handleEvent),a=null),a||i.addEventListener(s,this.handleEvent,{passive:o})}for(let s in r)s!="scroll"&&!n[s]&&i.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&lve.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),dn.android&&dn.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return dn.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=ave.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||xpt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,ox(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:dn.safari&&!dn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Sne(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){Tc(n.state,i)}}}function vpt(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let o=i.domEventHandlers[s];o&&n(s).handlers.push(Sne(r.value,o))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let o=i.domEventObservers[s];o&&n(s).observers.push(Sne(r.value,o))}}for(let r in Ld)n(r).handlers.push(Ld[r]);for(let r in Oh)n(r).observers.push(Oh[r]);return e}const ave=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],xpt="dthko",lve=[16,17,18,20,91,92,224,225],Q5=6;function X5(t){return Math.max(0,t)*.7+8}function wpt(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Spt{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=Pft(e.contentDOM),this.atoms=e.state.facet(cW).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(ui.allowMultipleSelections)&&kpt(e,n),this.dragging=_pt(e,n)&&hve(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&wpt(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,i=0,s=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=uW(this.view);e.clientX-l.left<=i+Q5?n=-X5(i-e.clientX):e.clientX+l.right>=o-Q5&&(n=X5(e.clientX-o)),e.clientY-l.top<=s+Q5?r=-X5(s-e.clientY):e.clientY+l.bottom>=a-Q5&&(r=X5(e.clientY-a)),this.setScrollSpeed(n,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],s=null;if(i.empty){let o=aA(this.atoms,i.from,0);o!=i.from&&(s=dt.cursor(o,-1))}else{let o=aA(this.atoms,i.from,-1),a=aA(this.atoms,i.to,1);(o!=i.from||a!=i.to)&&(s=dt.range(i.from==i.anchor?o:a,i.from==i.head?o:a))}s&&(n||(n=e.ranges.slice()),n[r]=s)}return n?dt.create(n,e.mainIndex):e}select(e){let{view:n}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function kpt(t,e){let n=t.state.facet(Vbe);return n.length?n[0](e):dn.mac?e.metaKey:e.ctrlKey}function Cpt(t,e){let n=t.state.facet(Wbe);return n.length?n[0](e):dn.mac?!e.altKey:!e.ctrlKey}function _pt(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=Xk(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let o=i[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Tpt(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=cs.get(n))&&r.ignoreEvent(e))return!1;return!0}const Ld=Object.create(null),Oh=Object.create(null),cve=dn.ie&&dn.ie_version<15||dn.ios&&dn.webkit_version<604;function Ept(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),uve(t,n.value)},50)}function rI(t,e,n){for(let r of t.facet(e))n=r(n,t);return n}function uve(t,e){e=rI(t.state,oW,e);let{state:n}=t,r,i=1,s=n.toText(e),o=s.lines==n.selection.ranges.length;if(t$!=null&&n.selection.ranges.every(l=>l.empty)&&t$==s.toString()){let l=-1;r=n.changeByRange(c=>{let u=n.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let h=n.toText((o?s.line(i++).text:e)+n.lineBreak);return{changes:{from:u.from,insert:h},range:dt.cursor(c.from+h.length)}})}else o?r=n.changeByRange(l=>{let c=s.line(i++);return{changes:{from:l.from,to:l.to,insert:c.text},range:dt.cursor(l.from+c.length)}}):r=n.replaceSelection(s);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Oh.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Ld.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Oh.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Oh.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Ld.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(qbe))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=Opt(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new Spt(t,e,n,r)),r&&t.observer.ignore(()=>{_be(t.contentDOM);let s=t.root.activeElement;s&&!s.contains(t.contentDOM)&&s.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function kne(t,e,n,r){if(r==1)return dt.cursor(e,n);if(r==2)return rpt(t.state,e,n);{let i=$o.find(t.docView,e),s=t.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:s.from,a=i?i.posAtEnd:s.to;return a<t.state.doc.length&&a==s.to&&a++,dt.range(o,a)}}let Cne=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function Apt(t,e,n,r){let i=$o.find(t.docView,e);if(!i)return 1;let s=e-i.posAtStart;if(s==0)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&Cne(n,r,o))return-1;let a=i.coordsAt(s,1);return a&&Cne(n,r,a)?1:o&&o.bottom>=r?-1:1}function _ne(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Apt(t,n,e.clientX,e.clientY)}}const Ppt=dn.ie&&dn.ie_version<=11;let Tne=null,Ene=0,Ane=0;function hve(t){if(!Ppt)return t.detail;let e=Tne,n=Ane;return Tne=t,Ane=Date.now(),Ene=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Ene+1)%3:1}function Opt(t,e){let n=_ne(t,e),r=hve(e),i=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),i=i.map(s.changes))},get(s,o,a){let l=_ne(t,s),c,u=kne(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let h=kne(t,n.pos,n.bias,r),d=Math.min(h.from,u.from),p=Math.max(h.to,u.to);u=d<u.from?dt.range(d,p):dt.range(p,d)}return o?i.replaceRange(i.main.extend(u.from,u.to)):a&&r==1&&i.ranges.length>1&&(c=Ipt(i,l.pos))?c:a?i.addRange(u):dt.create([u])}}}function Ipt(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return dt.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}Ld.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let s=i.posAtStart,o=s+i.length;(s>=n.to||o<=n.from)&&(n=dt.range(s,o))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",rI(t.state,aW,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Ld.dragend=t=>(t.inputState.draggedContent=null,!1);function Pne(t,e,n,r){if(n=rI(t.state,oW,n),!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,o=r&&s&&Cpt(t,e)?{from:s.from,to:s.to}:null,a={from:i,insert:n},l=t.state.changes(o?[o,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Ld.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,s=()=>{++i==n.length&&Pne(t,e,r.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(r[o]=a.result),s()},a.readAsText(n[o])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return Pne(t,e,r,!0),!0}return!1};Ld.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=cve?null:e.clipboardData;return n?(uve(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Ept(t),!1)};function Dpt(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function Mpt(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:s}of t.selection.ranges){let o=t.doc.lineAt(s);o.number>i&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),i=o.number}r=!0}return{text:rI(t,aW,e.join(t.lineBreak)),ranges:n,linewise:r}}let t$=null;Ld.copy=Ld.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=Mpt(t.state);if(!n&&!i)return!1;t$=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let s=cve?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(Dpt(t,n),!1)};const dve=yp.define();function fve(t,e){let n=[];for(let r of t.facet(Ybe)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:dve.of(!0)}):null}function pve(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=fve(t.state,e);n?t.dispatch(n):t.update([])}},10)}Oh.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),pve(t)};Oh.blur=t=>{t.observer.clearSelectionRange(),pve(t)};Oh.compositionstart=Oh.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};Oh.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,dn.chrome&&dn.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Oh.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Ld.beforeinput=(t,e)=>{var n,r;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let a=o[0],l=t.posAtDOM(a.startContainer,a.startOffset),c=t.posAtDOM(a.endContainer,a.endOffset);return hW(t,{from:l,to:c,insert:t.state.toText(s)},null),!0}}let i;if(dn.chrome&&dn.android&&(i=ave.find(s=>s.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let s=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return dn.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),dn.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Oh.compositionend(t,e),20),!1};const One=new Set;function Npt(t){One.has(t)||(One.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Ine=["pre-wrap","normal","pre-line","break-spaces"];let Yx=!1;function Dne(){Yx=!1}class Rpt{constructor(e){this.lineWrapping=e,this.doc=mi.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Ine.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(e,n,r,i,s,o){let a=Ine.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<o.length;c++){let u=o[c];u<0?c++:this.heightSamples[Math.floor(u*10)]=!0}}return l}}class Lpt{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Mf{constructor(e,n,r,i,s){this.from=e,this.length=n,this.top=r,this.height=i,this._content=s}get type(){return typeof this._content=="number"?Ul.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Yg?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Mf(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var Is=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(Is||(Is={}));const lA=.001;class Vl{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>lA&&(Yx=!0),this.height=e)}replace(e,n,r){return Vl.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let s=this,o=r.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:h}=i[a],d=s.lineAt(l,Is.ByPosNoHeight,r.setDoc(n),0,0),p=d.to>=c?d:s.lineAt(c,Is.ByPosNoHeight,r,0,0);for(h+=p.to-c,c=p.to;a>0&&d.from<=i[a-1].toA;)l=i[a-1].fromA,u=i[a-1].fromB,a--,l<d.from&&(d=s.lineAt(l,Is.ByPosNoHeight,r,0,0));u+=d.from-l,l=d.from;let g=dW.build(r.setDoc(o),e,u,h);s=c7(s,s.replace(l,c,g))}return s.updateHeight(r,0)}static empty(){return new yu(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,s=0;for(;;)if(n==r)if(i>s*2){let a=e[n-1];a.break?e.splice(--n,1,a.left,null,a.right):e.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size}else if(s>i*2){let a=e[r];a.break?e.splice(r,1,a.left,null,a.right):e.splice(r,1,a.left,a.right),r+=2+a.break,s-=a.size}else break;else if(i<s){let a=e[n++];a&&(i+=a.size)}else{let a=e[--r];a&&(s+=a.size)}let o=0;return e[n-1]==null?(o=1,n--):e[n]==null&&(o=1,r++),new Bpt(Vl.of(e.slice(0,n)),o,Vl.of(e.slice(r)))}}function c7(t,e){return t==e?t:(t.constructor!=e.constructor&&(Yx=!0),e)}Vl.prototype.size=1;class mve extends Vl{constructor(e,n,r){super(e,n),this.deco=r}blockAt(e,n,r,i){return new Mf(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,s){return this.blockAt(0,r,i,s)}forEachLine(e,n,r,i,s,o){e<=s+this.length&&n>=s&&o(this.blockAt(0,r,i,s))}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class yu extends mve{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new Mf(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof yu||i instanceof ja&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof ja?i=new yu(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Vl.of(r)}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(i.heights[i.index++]):(r||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ja extends Vl{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,s=i-r+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1))}else o=this.height/s;return{firstLine:r,lastLine:i,perLine:o,perChar:a}}blockAt(e,n,r,i){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let c=i+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),u=n.doc.lineAt(c),h=a+u.length*l,d=Math.max(r,e-h/2);return new Mf(u.from,u.length,d,h,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-r)/a))),{from:u,length:h}=n.doc.line(s+c);return new Mf(u,h,r+a*c,a,0)}}lineAt(e,n,r,i,s){if(n==Is.ByHeight)return this.blockAt(e,r,i,s);if(n==Is.ByPosNoHeight){let{from:p,to:g}=r.doc.lineAt(e);return new Mf(p,g-p,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(r,s),c=r.doc.lineAt(e),u=a+c.length*l,h=c.number-o,d=i+a*h+l*(c.from-s-h);return new Mf(c.from,c.length,Math.max(i,Math.min(d,i+this.height-u)),u,0)}forEachLine(e,n,r,i,s,o){e=Math.max(e,s),n=Math.min(n,s+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(r,s);for(let u=e,h=i;u<=n;){let d=r.doc.lineAt(u);if(u==e){let g=d.number-a;h+=l*g+c*(e-s-g)}let p=l+c*d.length;o(new Mf(d.from,d.length,h,p,0)),h+=p,u=d.to+1}}replace(e,n,r){let i=this.length-n;if(i>0){let s=r[r.length-1];s instanceof ja?r[r.length-1]=new ja(s.length+i):r.push(null,new ja(i-1))}if(e>0){let s=r[0];s instanceof ja?r[0]=new ja(e+s.length):r.unshift(new ja(e-1),null)}return Vl.of(r)}decomposeLeft(e,n){n.push(new ja(e-1),null)}decomposeRight(e,n){n.push(null,new ja(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let s=n+this.length;if(i&&i.from<=n+this.length&&i.more){let o=[],a=Math.max(n,i.from),l=-1;for(i.from>n&&o.push(new ja(i.from-n-1).updateHeight(e,n));a<=s&&i.more;){let u=e.doc.lineAt(a).length;o.length&&o.push(null);let h=i.heights[i.index++];l==-1?l=h:Math.abs(h-l)>=lA&&(l=-2);let d=new yu(u,h);d.outdated=!1,o.push(d),a+=u+1}a<=s&&o.push(null,new ja(s-a).updateHeight(e,a));let c=Vl.of(o);return(l<0||Math.abs(c.height-this.height)>=lA||Math.abs(l-this.heightMetrics(e,n).perLine)>=lA)&&(Yx=!0),c7(this,c)}else(r||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Bpt extends Vl{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,i){let s=r+this.left.height;return e<s?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,s,i+this.left.length+this.break)}lineAt(e,n,r,i,s){let o=i+this.left.height,a=s+this.left.length+this.break,l=n==Is.ByHeight?e<o:e<a,c=l?this.left.lineAt(e,n,r,i,s):this.right.lineAt(e,n,r,o,a);if(this.break||(l?c.to<a:c.from>a))return c;let u=n==Is.ByPosNoHeight?Is.ByPosNoHeight:Is.ByPos;return l?c.join(this.right.lineAt(a,u,r,o,a)):this.left.lineAt(a,u,r,i,s).join(c)}forEachLine(e,n,r,i,s,o){let a=i+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,r,i,s,o),n>=l&&this.right.forEachLine(e,n,r,a,l,o);else{let c=this.lineAt(l,Is.ByPos,r,i,s);e<c.from&&this.left.forEachLine(e,c.from-1,r,i,s,o),c.to>=e&&c.from<=n&&o(c),n>c.to&&this.right.forEachLine(c.to+1,n,r,a,l,o)}}replace(e,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let a of r)s.push(a);if(e>0&&Mne(s,o-1),n<this.length){let a=s.length;this.decomposeRight(n,s),Mne(s,a)}return Vl.of(s)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<i&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?Vl.of(this.break?[e,null,n]:[e,n]):(this.left=c7(this.left,e),this.right=c7(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,i){let{left:s,right:o}=this,a=n+s.length+this.break,l=null;return i&&i.from<=n+s.length&&i.more?l=s=s.updateHeight(e,n,r,i):s.updateHeight(e,n,r),i&&i.from<=a+o.length&&i.more?l=o=o.updateHeight(e,a,r,i):o.updateHeight(e,a,r),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Mne(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof ja&&(r=t[e+1])instanceof ja&&t.splice(e-1,3,new ja(n.length+1+r.length))}const Fpt=5;class dW{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof yu?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new yu(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,s=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=n-e;r.block?this.addBlock(new mve(o,i,r)):(o||s||i>=Fpt)&&this.addLineDeco(i,s,o)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new yu(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new ja(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof yu)return e;let n=new yu(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof yu)&&!this.isCovered?this.nodes.push(new yu(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof yu&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let s=new dW(r,e);return wi.spans(n,r,i,s,0),s.finish(r)}}function $pt(t,e,n){let r=new jpt;return wi.compare(t,e,n,r,0),r.changes}class jpt{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&oA(e,n,this.changes,5)}}function zpt(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,s=Math.max(0,n.left),o=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let c=t.parentNode;c&&c!=r.body;)if(c.nodeType==1){let u=c,h=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&h.overflow!="visible"){let d=u.getBoundingClientRect();s=Math.max(s,d.left),o=Math.min(o,d.right),a=Math.max(a,d.top),l=Math.min(c==t.parentNode?i.innerHeight:l,d.bottom)}c=h.position=="absolute"||h.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-n.left,right:Math.max(s,o)-n.left,top:a-(n.top+e),bottom:Math.max(a,l)-(n.top+e)}}function Hpt(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function Upt(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class PN{constructor(e,n,r,i){this.from=e,this.to=n,this.size=r,this.displaySize=i}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=n[r];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return!1}return!0}draw(e,n){return Mn.replace({widget:new Vpt(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class Vpt extends vp{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Nne{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Rne,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ms.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(lW).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new Rpt(n),this.stateDeco=e.facet(Jk).filter(r=>typeof r!="function"),this.heightMap=Vl.empty().applyChanges(this.stateDeco,mi.empty,this.heightOracle.setDoc(e.doc),[new kh(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Mn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:s,to:o})=>i>=s&&i<=o)){let{from:s,to:o}=this.lineBlockAt(i);e.push(new J5(s,o))}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Rne:new fW(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(e4(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Jk).filter(u=>typeof u!="function");let i=e.changedRanges,s=kh.extendWithRanges(i,$pt(r,this.stateDeco,e?e.changes:oa.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Dne(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||Yx)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Xbe)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,s=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Ms.RTL:Ms.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:D,scaleY:E}=Cbe(n,a);(D>.005&&Math.abs(this.scaleX-D)>.005||E>.005&&Math.abs(this.scaleY-E)>.005)&&(this.scaleX=D,this.scaleY=E,c|=16,o=l=!0)}let h=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=d)&&(this.paddingTop=h,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Ebe(e.scrollDOM);let g=(this.printing?Upt:zpt)(n,this.paddingTop),y=g.top-this.pixelViewport.top,b=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget&&!Hpt(e.dom))return 0;let S=a.width;if((this.contentDOMWidth!=S||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),l){let D=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(D)&&(o=!0),o||i.lineWrapping&&Math.abs(S-this.contentDOMWidth)>i.charWidth){let{lineHeight:E,charWidth:O,textHeight:P}=e.docView.measureTextSize();o=E>0&&i.refresh(s,E,O,P,S/O,D),o&&(e.docView.minWidth=0,c|=16)}y>0&&b>0?u=Math.max(y,b):y<0&&b<0&&(u=Math.min(y,b)),Dne();for(let E of this.viewports){let O=E.from==this.viewport.from?D:e.docView.measureVisibleLineHeights(E);this.heightMap=(o?Vl.empty().applyChanges(this.stateDeco,mi.empty,this.heightOracle,[new kh(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new Lpt(E.from,O))}Yx&&(c|=2)}let T=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return T&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),c|=this.updateForViewport()),(c&2||T)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new J5(i.lineAt(o-r*1e3,Is.ByHeight,s,0,0).from,i.lineAt(a+(1-r)*1e3,Is.ByHeight,s,0,0).to);if(n){let{head:c}=n.range;if(c<l.from||c>l.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=i.lineAt(c,Is.ByPos,s,0,0),d;n.y=="center"?d=(h.top+h.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&c<l.from?d=h.top:d=h.bottom-u,l=new J5(i.lineAt(d-1e3/2,Is.ByHeight,s,0,0).from,i.lineAt(d+u+1e3/2,Is.ByHeight,s,0,0).to)}}return l}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new J5(this.heightMap.lineAt(r,Is.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,Is.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,Is.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,Is.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(e==0||i<=o-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=a+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&s<a+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let i of e)n.touchesRange(i.from,i.to)||r.push(new PN(n.mapPos(i.from),n.mapPos(i.to),i.size,i.displaySize));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=Ms.LTR&&!r)return[];let a=[],l=(u,h,d,p)=>{if(h-u<s)return;let g=this.state.selection.main,y=[g.from];g.empty||y.push(g.to);for(let w of y)if(w>u&&w<h){l(u,w-10,d,p),l(w+10,h,d,p);return}let b=qpt(e,w=>w.from>=d.from&&w.to<=d.to&&Math.abs(w.from-u)<s&&Math.abs(w.to-h)<s&&!y.some(S=>w.from<S&&w.to>S));if(!b){if(h<d.to&&n&&r&&n.visibleRanges.some(T=>T.from<=h&&T.to>=h)){let T=n.moveToLineBoundary(dt.cursor(h),!1,!0).head;T>u&&(h=T)}let w=this.gapSize(d,u,h,p),S=r||w<2e6?w:2e6;b=new PN(u,h,w,S)}a.push(b)},c=u=>{if(u.length<o||u.type!=Ul.Text)return;let h=Wpt(u.from,u.to,this.stateDeco);if(h.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,g;if(r){let y=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,b,w;if(d!=null){let S=eE(h,d),T=((this.visibleBottom-this.visibleTop)/2+y)/u.height;b=S-T,w=S+T}else b=(this.visibleTop-u.top-y)/u.height,w=(this.visibleBottom-u.top+y)/u.height;p=Z5(h,b),g=Z5(h,w)}else{let y=h.total*this.heightOracle.charWidth,b=i*this.heightOracle.charWidth,w=0;if(y>2e6)for(let O of e)O.from>=u.from&&O.from<u.to&&O.size!=O.displaySize&&O.from*this.heightOracle.charWidth+w<this.pixelViewport.left&&(w=O.size-O.displaySize);let S=this.pixelViewport.left+w,T=this.pixelViewport.right+w,D,E;if(d!=null){let O=eE(h,d),P=((T-S)/2+b)/y;D=O-P,E=O+P}else D=(S-b)/y,E=(T+b)/y;p=Z5(h,D),g=Z5(h,E)}p>u.from&&l(u.from,p,u,h),g<u.to&&l(g,u.to,u,h)};for(let u of this.viewportLines)Array.isArray(u.type)?u.type.forEach(c):c(u);return a}gapSize(e,n,r,i){let s=eE(i,r)-eE(i,n);return this.heightOracle.lineWrapping?e.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(e){PN.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Mn.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];wi.spans(n,this.viewport.from,this.viewport.to,{span(s,o){r.push({from:s,to:o})},point(){}},20);let i=0;if(r.length!=this.visibleRanges.length)i=12;else for(let s=0;s<r.length&&!(i&8);s++){let o=this.visibleRanges[s],a=r[s];(o.from!=a.from||o.to!=a.to)&&(i|=4,e&&e.mapPos(o.from,-1)==a.from&&e.mapPos(o.to,1)==a.to||(i|=8))}return this.visibleRanges=r,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||e4(this.heightMap.lineAt(e,Is.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||e4(this.heightMap.lineAt(this.scaler.fromDOM(e),Is.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return e4(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class J5{constructor(e,n){this.from=e,this.to=n}}function Wpt(t,e,n){let r=[],i=t,s=0;return wi.spans(n,t,e,{span(){},point(o,a){o>i&&(r.push({from:i,to:o}),s+=o-i),i=a}},20),i<e&&(r.push({from:i,to:e}),s+=e-i),{total:s,ranges:r}}function Z5({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:s,to:o}=e[i],a=o-s;if(r<=a)return s+r;r-=a}}function eE(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function qpt(t,e){for(let n of t)if(e(n))return n}const Rne={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class fW{constructor(e,n,r){let i=0,s=0,o=0;this.viewports=r.map(({from:a,to:l})=>{let c=n.lineAt(a,Is.ByPos,e,0,0).top,u=n.lineAt(l,Is.ByPos,e,0,0).bottom;return i+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.top)return i+(e-r)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);r=s.bottom,i=s.domBottom}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.domTop)return r+(e-i)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);r=s.bottom,i=s.domBottom}}eq(e){return e instanceof fW?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function e4(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new Mf(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>e4(i,e)):t._content)}const tE=ln.define({combine:t=>t.join(" ")}),n$=ln.define({combine:t=>t.indexOf(!0)>-1}),r$=Gg.newName(),gve=Gg.newName(),yve=Gg.newName(),bve={"&light":"."+gve,"&dark":"."+yve};function i$(t,e,n){return new Gg(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const Gpt=i$("."+r$,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},bve),Kpt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ON=dn.ie&&dn.ie_version<=11;class Ypt{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Oft,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(dn.ie&&dn.ie_version<=11||dn.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(dn.chrome&&dn.chrome_version<126)&&(this.editContext=new Xpt(e),e.state.facet(T0)&&(e.contentDOM.editContext=this.editContext.editContext)),ON&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(T0)?r.root.activeElement!=this.dom:!sA(this.dom,i))return;let s=i.anchorNode&&r.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(dn.ie&&dn.ie_version<=11||dn.android&&dn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&z4(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=Xk(e.root);if(!n)return!1;let r=dn.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Qpt(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=sA(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Dft(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Kpt),ON&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),ON&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&ox(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(i=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&sA(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new fpt(this.view,e,n,r);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=ove(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=Lne(n,e.previousSibling||e.target.previousSibling,-1),i=Lne(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(T0)!=e.state.facet(T0)&&(e.view.contentDOM.editContext=e.state.facet(T0)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Lne(t,e,n){for(;e;){let r=cs.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function Bne(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,s=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor);return z4(o.node,o.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}function Qpt(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Bne(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?Bne(t,n):null}class Xpt{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let i=e.state.selection.main,{anchor:s,head:o}=i,a=this.toEditorPos(r.updateRangeStart),l=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:a,drifted:!1});let c={from:a,to:l,insert:mi.of(r.text.split(` 664`))};if(c.from==this.from&&s<this.from?c.from=s:c.to==this.to&&s>this.to&&(c.to=s),c.from==c.to&&!c.insert.length){let u=dt.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));u.main.eq(i)||e.dispatch({selection:u,userEvent:"select"});return}if((dn.mac||dn.android)&&c.from==o-1&&/^\. ?$/.test(r.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:a,to:l,insert:mi.of([r.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let u=this.to-this.from+(c.to-c.from+c.insert.length);hW(e,c,dt.single(this.toEditorPos(r.selectionStart,u),this.toEditorPos(r.selectionEnd,u)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=r=>{let i=[],s=null;for(let o=this.toEditorPos(r.rangeStart),a=this.toEditorPos(r.rangeEnd);o<a;o++){let l=e.coordsForChar(o);s=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||s||new DOMRect,i.push(s)}n.updateCharacterBounds(r.rangeStart,i)},this.handlers.textformatupdate=r=>{let i=[];for(let s of r.getTextFormats()){let o=s.underlineStyle,a=s.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(s.rangeStart),c=this.toEditorPos(s.rangeEnd);if(l<c){let u=`text-decoration: underline ${o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${a=="Thin"?1:2}px`;i.push(Mn.mark({attributes:{style:u}}).range(l,c))}}}e.dispatch({effects:Zbe.of(Mn.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(e.state)}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=Xk(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,i=this.pendingContextChange;return e.changes.iterChanges((s,o,a,l,c)=>{if(r)return;let u=c.length-(o-s);if(i&&o>=i.to)if(i.from==s&&i.to==o&&i.insert.eq(c)){i=this.pendingContextChange=null,n+=u,this.to+=u;return}else i=null,this.revertPending(e.state);if(s+=n,o+=n,o<=this.from)this.from+=u,this.to+=u;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+c.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),c.toString()),this.to+=u}n+=u}),i&&!r&&this.revertPending(e.state),!r}update(e){let n=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class Jt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="
664cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(i=>i.forEach(s=>r(s,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Ift(e.parent)||document,this.viewState=new Nne(e.state||ui.create(e)),e.scrollTo&&e.scrollTo.is(Y5)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(X3).map(i=>new TN(i));for(let i of this.plugins)i.update(this);this.observer=new Ypt(this),this.inputState=new bpt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new mne(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof Uo?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,s=this.state;for(let d of e){if(d.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=d.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;e.some(d=>d.annotation(dve))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=fve(s,o),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||
vendor: 21,018 bytes, line 664
664!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(ui.phrases)!=this.state.facet(ui.phrases))return this.setState(s);i=l7.create(this,s,e),i.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(h&&(h=h.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;h=new ax(p.empty?p:dt.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(Y5)&&(h=p.value.clip(this.state))}this.viewState.update(i,h),this.bidiCache=u7.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(J3)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(tE)!=i.state.facet(tE)&&(this.viewState.mustMeasureContent=!0),(n||r||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let d of this.state.facet(JF))try{d(i)}catch(p){Tc(this.state,p,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!ove(this,u)&&c.force&&ox(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new Nne(e),this.plugins=e.facet(X3).map(r=>new TN(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new mne(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(X3),r=e.state.facet(X3);if(n!=r){let i=[];for(let s of r){let o=n.indexOf(s);if(o<0)i.push(new TN(s));else{let a=this.plugins[o];a.mustUpdate=e,i.push(a)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(r){Tc(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(Ebe(r))s=-1,o=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(i);s=p.from,o=p.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(p=>{try{return p.read(this)}catch(g){return Tc(this.state,g),Fne}}),h=l7.create(this,this.state,[]),d=!1;h.flags|=l,n?n.flags|=l:n=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),d=this.docView.update(h),d&&this.docViewUpdate());for(let p=0;p<c.length;p++)if(u[p]!=Fne)try{let g=c[p];g.write&&g.write(u[p],this)}catch(g){Tc(this.state,g)}if(d&&this.docView.updateSelection(!0),!h.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let g=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(g>1||g<-1){i=i+g,r.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(JF))a(n)}get themeClasses(){return r$+" "+(this.state.facet(n$)?yve:gve)+" "+this.state.facet(tE)}updateAttrs(){let e=$ne(this,eve,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(T0)?"true":"false",class:"cm-content",style:`${dn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),$ne(this,lW,n);let r=this.observer.ignore(()=>{let i=GF(this.contentDOM,this.contentAttrs,n),s=GF(this.dom,this.editorAttrs,e);return i||s});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let i of r.effects)if(i.is(Jt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(J3);let e=this.state.facet(Jt.cspNonce);Gg.mount(this.root,this.styleModules.concat(Gpt).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return AN(this,e,xne(this,e,n,r))}moveByGroup(e,n){return AN(this,e,xne(this,e,n,r=>cpt(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),s=r[n?r.length-1:0];return dt.cursor(s.side(n,i)+e.from,s.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return lpt(this,e,n,r)}moveVertically(e,n,r){return AN(this,e,upt(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),sve(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),s=this.bidiSpans(i),o=s[kg.find(s,e-i.from,-1,n)];return w_(r,o.dir==Ms.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Qbe)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Jpt)return Hbe(e.length);let n=this.textDirectionAt(e.from),r;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||zbe(s.isolates,r=pne(this,e))))return s.order;r||(r=pne(this,e));let i=qft(e.text,n,r);return this.bidiCache.push(new u7(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||dn.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{_be(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return Y5.of(new ax(typeof e=="number"?dt.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return Y5.of(new ax(dt.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return To.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return To.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Gg.newName(),i=[tE.of(r),J3.of(i$(`.${r}`,e))];return n&&n.dark&&i.push(n$.of(!0)),i}static baseTheme(e){return v1.lowest(J3.of(i$("."+r$,e,bve)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&cs.get(r)||cs.get(e);return((n=i?.rootView)===null||n===void 0?void 0:n.view)||null}}Jt.styleModule=J3;Jt.inputHandler=Kbe;Jt.clipboardInputFilter=oW;Jt.clipboardOutputFilter=aW;Jt.scrollHandler=Jbe;Jt.focusChangeEffect=Ybe;Jt.perLineTextDirection=Qbe;Jt.exceptionSink=Gbe;Jt.updateListener=JF;Jt.editable=T0;Jt.mouseSelectionStyle=qbe;Jt.dragMovesSelection=Wbe;Jt.clickAddsSelectionRange=Vbe;Jt.decorations=Jk;Jt.outerDecorations=tve;Jt.atomicRanges=cW;Jt.bidiIsolatedRanges=nve;Jt.scrollMargins=rve;Jt.darkTheme=n$;Jt.cspNonce=ln.define({combine:t=>t.length?t[0]:""});Jt.contentAttributes=lW;Jt.editorAttributes=eve;Jt.lineWrapping=Jt.contentAttributes.of({class:"cm-lineWrapping"});Jt.announce=Er.define();const Jpt=4096,Fne={};class u7{constructor(e,n,r,i,s,o){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=s,this.order=o}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:Ms.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==i&&!n.touchesRange(o.from,o.to)&&r.push(new u7(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}}function $ne(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let s=r[i],o=typeof s=="function"?s(t):s;o&&qF(o,n)}return n}const Zpt=dn.mac?"mac":dn.windows?"win":dn.linux?"linux":"key";function e0t(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,s,o,a;for(let l=0;l<n.length-1;++l){const c=n[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))e=="mac"?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(r="Alt-"+r),s&&(r="Ctrl-"+r),a&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function nE(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const t0t=v1.default(Jt.domEventHandlers({keydown(t,e){return xve(vve(e.state),t,e,"editor")}})),C_=ln.define({enables:t0t}),jne=new WeakMap;function vve(t){let e=t.facet(C_),n=jne.get(e);return n||jne.set(e,n=i0t(e.reduce((r,i)=>r.concat(i),[]))),n}function n0t(t,e,n){return xve(vve(t.state),e,t,n)}let yg=null;const r0t=4e3;function i0t(t,e=Zpt){let n=Object.create(null),r=Object.create(null),i=(o,a)=>{let l=r[o];if(l==null)r[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,c,u)=>{var h,d;let p=n[o]||(n[o]=Object.create(null)),g=a.split(/ (?!$)/).map(w=>e0t(w,e));for(let w=1;w<g.length;w++){let S=g.slice(0,w).join(" ");i(S,!0),p[S]||(p[S]={preventDefault:!0,stopPropagation:!1,run:[T=>{let D=yg={view:T,prefix:S,scope:o};return setTimeout(()=>{yg==D&&(yg=null)},r0t),!0}]})}let y=g.join(" ");i(y,!1);let b=p[y]||(p[y]={preventDefault:!1,stopPropagation:!1,run:((d=(h=p._any)===null||h===void 0?void 0:h.run)===null||d===void 0?void 0:d.slice())||[]});l&&b.run.push(l),c&&(b.preventDefault=!0),u&&(b.stopPropagation=!0)};for(let o of t){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of a){let u=n[c]||(n[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:h}=o;for(let d in u)u[d].run.push(p=>h(p,s$))}let l=o[e]||o.key;if(l)for(let c of a)s(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}let s$=null;function xve(t,e,n,r){s$=e;let i=Tft(e),s=bc(i,0),o=Df(s)==i.length&&i!=" ",a="",l=!1,c=!1,u=!1;yg&&yg.view==n&&yg.scope==r&&(a=yg.prefix+" ",lve.indexOf(e.keyCode)<0&&(c=!0,yg=null));let h=new Set,d=b=>{if(b){for(let w of b.run)if(!h.has(w)&&(h.add(w),w(n)))return b.stopPropagation&&(u=!0),!0;b.preventDefault&&(b.stopPropagation&&(u=!0),c=!0)}return!1},p=t[r],g,y;return p&&(d(p[a+nE(i,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(dn.windows&&e.ctrlKey&&e.altKey)&&(g=Kg[e.keyCode])&&g!=i?(d(p[a+nE(g,e,!0)])||e.shiftKey&&(y=Qk[e.keyCode])!=i&&y!=g&&d(p[a+nE(y,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(p[a+nE(i,e,!0)])&&(l=!0),!l&&d(p._any)&&(l=!0)),c&&(l=!0),l&&u&&e.stopPropagation(),s$=null,l}class __{constructor(e,n,r,i,s){this.className=e,this.left=n,this.top=r,this.width=i,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let s=wve(e);return[new __(n,i.left-s.left,i.top-s.top,null,i.bottom-i.top)]}else return s0t(e,n,r)}}function wve(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ms.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function zne(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let s=t.dom.getBoundingClientRect(),o=(i.top+i.bottom)/2,a=t.posAtCoords({x:s.left+1,y:o}),l=t.posAtCoords({x:s.right-1,y:o});return a==null||l==null?r:{from:Math.max(r.from,Math.min(a,l)),to:Math.min(r.to,Math.max(a,l))}}function s0t(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),s=t.textDirection==Ms.LTR,o=t.contentDOM,a=o.getBoundingClientRect(),l=wve(t),c=o.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=a.right-(u?parseInt(u.paddingRight):0),p=e$(t,r),g=e$(t,i),y=p.type==Ul.Text?p:null,b=g.type==Ul.Text?g:null;if(y&&(t.lineWrapping||p.widgetLineBreaks)&&(y=zne(t,r,1,y)),b&&(t.lineWrapping||g.widgetLineBreaks)&&(b=zne(t,i,-1,b)),y&&b&&y.from==b.from&&y.to==b.to)return S(T(n.from,n.to,y));{let E=y?T(n.from,null,y):D(p,!1),O=b?T(null,n.to,b):D(g,!0),P=[];return(y||p).to<(b||g).from-(y&&b?1:0)||p.widgetLineBreaks>1&&E.bottom+t.defaultLineHeight/2<O.top?P.push(w(h,E.bottom,d,O.top)):E.bottom<O.top&&t.elementAtHeight((E.bottom+O.top)/2).type==Ul.Text&&(E.bottom=O.top=(E.bottom+O.top)/2),S(E).concat(P).concat(S(O))}function w(E,O,P,$){return new __(e,E-l.left,O-l.top,P-E,$-O)}function S({top:E,bottom:O,horizontal:P}){let $=[];for(let W=0;W<P.length;W+=2)$.push(w(P[W],E,P[W+1],O));return $}function T(E,O,P){let $=1e9,W=-1e9,H=[];function K(te,re,Y,z,U){let G=t.coordsAtPos(te,te==P.to?-2:2),B=t.coordsAtPos(Y,Y==P.from?2:-2);!G||!B||($=Math.min(G.top,B.top,$),W=Math.max(G.bottom,B.bottom,W),U==Ms.LTR?H.push(s&&re?h:G.left,s&&z?d:B.right):H.push(!s&&z?h:B.left,!s&&re?d:G.right))}let Z=E??P.from,oe=O??P.to;for(let te of t.visibleRanges)if(te.to>Z&&te.from<oe)for(let re=Math.max(te.from,Z),Y=Math.min(te.to,oe);;){let z=t.state.doc.lineAt(re);for(let U of t.bidiSpans(z)){let G=U.from+z.from,B=U.to+z.from;if(G>=Y)break;B>re&&K(Math.max(G,re),E==null&&G<=Z,Math.min(B,Y),O==null&&B>=oe,U.dir)}if(re=z.to+1,re>=Y)break}return H.length==0&&K(Z,E==null,oe,O==null,t.textDirection),{top:$,bottom:W,horizontal:H}}function D(E,O){let P=a.top+(O?E.top:E.bottom);return{top:P,bottom:P,horizontal:[]}}}function o0t(t,e){return t.constructor==e.constructor&&t.eq(e)}class a0t{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(cA)!=e.state.facet(cA)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(cA);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!o0t(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const cA=ln.define();function Sve(t){return[To.define(e=>new a0t(e,t)),cA.of(t)]}const Zk=ln.define({combine(t){return bp(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function l0t(t={}){return[Zk.of(t),c0t,u0t,h0t,Xbe.of(!0)]}function kve(t){return t.startState.facet(Zk)!=t.state.facet(Zk)}const c0t=Sve({above:!0,markers(t){let{state:e}=t,n=e.facet(Zk),r=[];for(let i of e.selection.ranges){let s=i==e.selection.main;if(i.empty||n.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=i.empty?i:dt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of __.forRange(t,o,a))r.push(l)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=kve(t);return n&&Hne(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){Hne(e.state,t)},class:"cm-cursorLayer"});function Hne(t,e){e.style.animationDuration=t.facet(Zk).cursorBlinkRate+"ms"}const u0t=Sve({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:__.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||kve(t)},class:"cm-selectionLayer"}),h0t=v1.highest(Jt.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),Cve=Er.define({map(t,e){return t==null?null:e.mapPos(t)}}),t4=Ia.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(Cve)?r.value:n,t)}}),d0t=To.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(t4);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="
664cm-dropCursor"),(t.startState.field(t4)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(t4),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(t4)!=t&&this.view.dispatch({effects:Cve.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function f0t(){return[t4,d0t]}function Une(t,e,n,r,i){e.lastIndex=0;for(let s=t.iterRange(n,r),o=n,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=e.exec(s.value);)i(o+a.index,a)}function p0t(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:s}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=s:r.push({from:i,to:s});return r}class m0t{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:s,maxLength:o=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(a,l,c,u)=>i(u,c,c+a[0].length,a,l);else if(typeof r=="function")this.addMatch=(a,l,c,u)=>{let h=r(a,l,c);h&&u(c,c+a[0].length,h)};else if(r)this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let n=new X0,r=n.add.bind(n);for(let{from:i,to:s}of p0t(e,this.maxLength))Une(e.state.doc,this.regexp,i,s,(o,a)=>this.addMatch(a,e,o,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((s,o,a,l)=>{l>=e.view.viewport.from&&a<=e.view.viewport.to&&(r=Math.min(a,r),i=Math.max(l,i))}),e.viewportMoved||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let s of e.visibleRanges){let o=Math.max(s.from,r),a=Math.min(s.to,i);if(a>o){let l=e.state.doc.lineAt(o),c=l.to<a?e.state.doc.lineAt(a):l,u=Math.max(s.from,l.from),h=Math.min(s.to,c.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;a<c.to;a++)if(this.boundary.test(c.text[a-c.from])){h=a;break}}let d=[],p,g=(y,b,w)=>d.push(w.range(y,b));if(l==c)for(this.regexp.lastIndex=u-l.from;(p=this.regexp.exec(l.text))&&p.index<h-l.from;)this.addMatch(p,e,p.index+l.from,g);else Une(e.state.doc,this.regexp,u,h,(y,b)=>this.addMatch(b,e,y,g));n=n.update({filterFrom:u,filterTo:h,filter:(y,b)=>y<u||b>h,add:d})}}return n}}const o$=/x/.unicode!=null?"gu":"g",g0t=new RegExp(`[\0-\b 665-��-ÂÂØâââ\u2028\u2029ââ®â¦â§â©\uFEFF-]`,o$),y0t={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let IN=null;function b0t(){var t;if(IN==null&&typeof document<"u"&&document.body){let e=document.body.style;IN=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return IN||!1}const uA=ln.define({combine(t){let e=bp(t,{render:null,specialChars:g0t,addSpecialChars:null});return(e.replaceTabs=!b0t())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,o$)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,o$)),e}});function v0t(t={}){return[uA.of(t),x0t()]}let Vne=null;function x0t(){return Vne||(Vne=To.fromClass(class{constructor(t){this.view=t,this.decorations=Mn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(uA)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new m0t({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,s=bc(e[0],0);if(s==9){let o=i.lineAt(r),a=n.state.tabSize,l=Bw(o.text,a,r-o.from);return Mn.replace({widget:new C0t((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Mn.replace({widget:new k0t(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(uA);t.startState.facet(uA)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const w0t="â¢";function S0t(t){return t>=32?w0t:t==10?"â¤":String.fromCharCode(9216+t)}class k0t extends vp{constructor(e,n){super(),this.options=e,this.co
vendor: 21,862 bytes, line 665
665de=n}eq(e){return e.code==this.code}toDOM(e){let n=S0t(this.code),r=e.state.phrase("Control character")+" "+(y0t[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class C0t extends vp{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function _0t(){return E0t}const T0t=Mn.line({class:"cm-activeLine"}),E0t=To.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(T0t.range(i.from)),e=i.from)}return Mn.set(n)}},{decorations:t=>t.decorations});class A0t extends vp{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?qx(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=w_(n[0],r.direction!="rtl"),s=parseInt(r.lineHeight);return i.bottom-i.top>s*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+s}:i}ignoreEvent(){return!1}}function P0t(t){return To.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Mn.set([Mn.widget({widget:new A0t(t),side:1}).range(0)]):Mn.none}get decorations(){return this.view.state.doc.length?Mn.none:this.placeholder}},{decorations:e=>e.decorations})}const a$=2e3;function O0t(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),s=[];if(e.off>a$||n.off>a$||e.col<0||n.col<0){let o=Math.min(e.off,n.off),a=Math.max(e.off,n.off);for(let l=r;l<=i;l++){let c=t.doc.line(l);c.length<=a&&s.push(dt.range(c.from+o,c.to+a))}}else{let o=Math.min(e.col,n.col),a=Math.max(e.col,n.col);for(let l=r;l<=i;l++){let c=t.doc.line(l),u=$F(c.text,o,t.tabSize,!0);if(u<0)s.push(dt.cursor(c.to));else{let h=$F(c.text,a,t.tabSize);s.push(dt.range(c.from+u,c.from+h))}}}return s}function I0t(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function Wne(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,s=i>a$?-1:i==r.length?I0t(t,e.clientX):Bw(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:s,off:i}}function D0t(t,e){let n=Wne(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let s=i.changes.mapPos(i.startState.doc.line(n.line).from),o=i.state.doc.lineAt(s);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(i.changes)}},get(i,s,o){let a=Wne(t,i);if(!a)return r;let l=O0t(t.state,n,a);return l.length?o?dt.create(l.concat(r.ranges)):dt.create(l):r}}:null}function M0t(t){let e=n=>n.altKey&&n.button==0;return Jt.mouseSelectionStyle.of((n,r)=>e(r)?D0t(n,r):null)}const N0t={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},R0t={style:"cursor: crosshair"};function L0t(t={}){let[e,n]=N0t[t.key||"Alt"],r=To.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i))},keyup(i){(i.keyCode==e||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,Jt.contentAttributes.of(i=>{var s;return!((s=i.plugin(r))===null||s===void 0)&&s.isDown?R0t:null})]}const YS="-10000px";class _ve{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=r(o,s))}update(e,n){var r;let i=e.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let o=[],a=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],u=-1;if(c){for(let h=0;h<this.tooltips.length;h++){let d=this.tooltips[h];d&&d.create==c.create&&(u=h)}if(u<0)o[l]=this.createTooltipView(c,l?o[l-1]:null),a&&(a[l]=!!c.above);else{let h=o[l]=this.tooltipViews[u];a&&(a[l]=n[u]),h.update&&h.update(e)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(a.forEach((l,c)=>n[c]=l),n.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,!0}}function B0t(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const DN=ln.define({combine:t=>{var e,n,r;return{position:dn.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||B0t}}}),qne=new WeakMap,pW=To.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(DN);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new _ve(t,mW,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(DN);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=YS,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(dn.gecko)n=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==YS&&s.style.left=="0px"){let o=s.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(n||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=uW(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(DN).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:s}=t,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,h=t.pos[a],d=t.size[a];if(!h||l.clip!==!1&&(h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1)){u.style.top=YS;continue}let p=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,y=d.right-d.left,b=(e=qne.get(c))!==null&&e!==void 0?e:d.bottom-d.top,w=c.offset||$0t,S=this.view.textDirection==Ms.LTR,T=d.width>r.right-r.left?S?r.left:r.right-d.width:S?Math.max(r.left,Math.min(h.left-(p?14:0)+w.x,r.right-y)):Math.min(Math.max(r.left,h.left-y+(p?14:0)-w.x),r.right-y),D=this.above[a];!l.strictSide&&(D?h.top-b-g-w.y<r.top:h.bottom+b+g+w.y>r.bottom)&&D==r.bottom-h.bottom>h.top-r.top&&(D=this.above[a]=!D);let E=(D?h.top-r.top:r.bottom-h.bottom)-g;if(E<b&&c.resize!==!1){if(E<this.view.defaultLineHeight){u.style.top=YS;continue}qne.set(c,b),u.style.height=(b=E)/s+"px"}else u.style.height&&(u.style.height="");let O=D?h.top-b-g-w.y:h.bottom+g+w.y,P=T+y;if(c.overlap!==!0)for(let $ of o)$.left<P&&$.right>T&&$.top<O+b&&$.bottom>O&&(O=D?$.top-b-2-g:$.bottom+g+2);if(this.position=="absolute"?(u.style.top=(O-t.parent.top)/s+"px",Gne(u,(T-t.parent.left)/i)):(u.style.top=O/s+"px",Gne(u,T/i)),p){let $=h.left+(S?w.x:-w.x)-(T+14-7);p.style.left=$/i+"px"}c.overlap!==!0&&o.push({left:T,top:O,right:P,bottom:O+b}),u.classList.toggle("cm-tooltip-above",D),u.classList.toggle("cm-tooltip-below",!D),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=YS}},{eventObservers:{scroll(){this.maybeMeasure()}}});function Gne(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}const F0t=Jt.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),$0t={x:0,y:0},mW=ln.define({enables:[pW,F0t]}),h7=ln.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class iI{static create(e){return new iI(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new _ve(e,h7,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const j0t=mW.compute([h7],t=>{let e=t.facet(h7);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:iI.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class z0t{constructor(e,n,r,i,s){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.nearest(n.target);if(!r)return;let i,s=1;if(r instanceof Sg)i=r.posAtStart;else{if(i=e.posAtCoords(n),i==null)return;let a=e.coordsAtPos(i);if(!a||n.y<a.top||n.y>a.bottom||n.x<a.left-e.defaultCharacterWidth||n.x>a.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(i)).find(u=>u.from<=i&&u.to>=i),c=l&&l.dir==Ms.RTL?-1:1;s=n.x<a.left?-c:c}let o=this.source(e,i,s);if(o?.then){let a=this.pending={pos:i};o.then(l=>{this.pending==a&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>Tc(e.state,l,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(pW),n=e?e.manager.tooltips.findIndex(r=>r.create==iI.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:s}=this;if(i.length&&s&&!H0t(s.dom,e)||this.pending){let{pos:o}=i[0]||this.pending,a=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!U0t(this.view,o,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const rE=4;function H0t(t,e){let{left:n,right:r,top:i,bottom:s}=t.getBoundingClientRect(),o;if(o=t.querySelector(".cm-tooltip-arrow")){let a=o.getBoundingClientRect();i=Math.min(a.top,i),s=Math.max(a.bottom,s)}return e.clientX>=n-rE&&e.clientX<=r+rE&&e.clientY>=i-rE&&e.clientY<=s+rE}function U0t(t,e,n,r,i,s){let o=t.scrollDOM.getBoundingClientRect(),a=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>r||o.right<r||o.top>i||Math.min(o.bottom,a)<i)return!1;let l=t.posAtCoords({x:r,y:i},!1);return l>=e&&l<=n}function V0t(t,e={}){let n=Er.define(),r=Ia.define({create(){return[]},update(i,s){if(i.length&&(e.hideOnChange&&(s.docChanged||s.selection)?i=[]:e.hideOn&&(i=i.filter(o=>!e.hideOn(s,o))),s.docChanged)){let o=[];for(let a of i){let l=s.changes.mapPos(a.pos,-1,Va.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),a);c.pos=l,c.end!=null&&(c.end=s.changes.mapPos(c.end)),o.push(c)}}i=o}for(let o of s.effects)o.is(n)&&(i=o.value),o.is(W0t)&&(i=[]);return i},provide:i=>h7.from(i)});return{active:r,extension:[r,To.define(i=>new z0t(i,t,r,n,e.hoverTime||300)),j0t]}}function Tve(t,e){let n=t.plugin(pW);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const W0t=Er.define(),Kne=ln.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function eC(t,e){let n=t.plugin(Eve),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const Eve=To.fromClass(class{constructor(t){this.input=t.state.facet(tC),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(Kne);this.top=new iE(t,!0,e.topContainer),this.bottom=new iE(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(Kne);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new iE(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new iE(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(tC);if(n!=this.input){let r=n.filter(l=>l),i=[],s=[],o=[],a=[];for(let l of r){let c=this.specs.indexOf(l),u;c<0?(u=l(t.view),a.push(u)):(u=this.panels[c],u.update&&u.update(t)),i.push(u),(u.top?s:o).push(u)}this.specs=r,this.panels=i,this.top.sync(s),this.bottom.sync(o);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Jt.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class iE{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=Yne(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=Yne(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Yne(t){let e=t.nextSibling;return t.remove(),e}const tC=ln.define({enables:Eve});class Z0 extends yb{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Z0.prototype.elementClass="";Z0.prototype.toDOM=void 0;Z0.prototype.mapMode=Va.TrackBefore;Z0.prototype.startSide=Z0.prototype.endSide=-1;Z0.prototype.point=!0;const hA=ln.define(),q0t=ln.define(),G0t={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>wi.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},U4=ln.define();function K0t(t){return[Ave(),U4.of(Object.assign(Object.assign({},G0t),t))]}const Qne=ln.define({combine:t=>t.some(e=>e)});function Ave(t){return[Y0t]}const Y0t=To.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="
665cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(U4).map(e=>new Jne(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Qne),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Qne)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=wi.iter(this.view.state.facet(hA),this.view.viewport.from),r=[],i=this.gutters.map(s=>new Q0t(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==Ul.Text&&o){l$(n,r,a.from);for(let l of i)l.line(this.view,a,r);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(s.type==Ul.Text){l$(n,r,s.from);for(let o of i)o.line(this.view,s,r)}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(U4),n=t.state.facet(U4),r=t.docChanged||t.heightChanged||t.viewportChanged||!wi.eq(t.startState.facet(hA),t.state.facet(hA),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let s of n){let o=e.indexOf(s);o<0?i.push(new Jne(this.view,s)):(this.gutters[o].update(t),i.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Jt.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==Ms.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function Xne(t){return Array.isArray(t)?t:[t]}function l$(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class Q0t{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=wi.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,s=(n.top-this.height)/e.scaleY,o=n.height/e.scaleY;if(this.i==i.elements.length){let a=new Pve(e,o,s,r);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(e,o,s,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];l$(this.cursor,i,n.from),r.length&&(i=i.concat(r));let s=this.gutter.config.lineMarker(e,n,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(e,n,i)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n),i=r?[r]:null;for(let s of e.state.facet(q0t)){let o=s(e,n.widget,n);o&&(i||(i=[])).push(o)}i&&this.addElement(e,n,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class Jne{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);n.domEventHandlers[r](e,a,i)&&i.preventDefault()});this.markers=Xne(n.markers(e)),n.initialSpacer&&(this.spacer=new Pve(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=Xne(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let r=e.view.viewport;return!wi.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}
vendor: 74,979 bytes, line 665
665class Pve{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i)}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),X0t(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(r+=" "+u);for(let h=o;h<this.markers.length;h++)if(this.markers[h].compare(l)){a=h,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(i);let h=i.nextSibling;i.remove(),i=h}}if(!l)break;l.toDOM&&(c?i=i.nextSibling:this.dom.insertBefore(l.toDOM(e),i)),c&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function X0t(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const J0t=ln.define(),Z0t=ln.define(),M2=ln.define({combine(t){return bp(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let s=r[i],o=n[i];r[i]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return r}})}});class MN extends Z0{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function NN(t,e){return t.state.facet(M2).formatNumber(e,t.state)}const emt=U4.compute([M2],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(J0t)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new MN(NN(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,r)=>{for(let i of e.state.facet(Z0t)){let s=i(e,n,r);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(M2)!=e.state.facet(M2),initialSpacer(e){return new MN(NN(e,Zne(e.state.doc.lines)))},updateSpacer(e,n){let r=NN(n.view,Zne(n.view.state.doc.lines));return r==e.number?e:new MN(r)},domEventHandlers:t.facet(M2).domEventHandlers}));function tmt(t={}){return[M2.of(t),Ave(),emt]}function Zne(t){let e=9;for(;e<t;)e=e*10+9;return e}const nmt=new class extends Z0{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},rmt=hA.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(nmt.range(i)))}return wi.of(e)});function imt(){return rmt}const Ove=1024;let smt=0;class RN{constructor(e,n){this.from=e,this.to=n}}class ti{constructor(e={}){this.id=smt++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=$c.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}ti.closedBy=new ti({deserialize:t=>t.split(" ")});ti.openedBy=new ti({deserialize:t=>t.split(" ")});ti.group=new ti({deserialize:t=>t.split(" ")});ti.isolate=new ti({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});ti.contextHash=new ti({perNode:!0});ti.lookAhead=new ti({perNode:!0});ti.mounted=new ti({perNode:!0});class d7{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[ti.mounted.id]}}const omt=Object.create(null);class $c{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i}static define(e){let n=e.props&&e.props.length?Object.create(null):omt,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new $c(e.name||"",n,e.id,r);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(ti.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(ti.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}}$c.none=new $c("",Object.create(null),0,8);class gW{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let i=null;for(let s of e){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new $c(r.name,i,r.id,r.flags):r)}return new gW(n)}}const sE=new WeakMap,ere=new WeakMap;var _a;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(_a||(_a={}));class Vo{constructor(e,n,r,i,s){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let e=d7.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new u$(this.topNode,e)}cursorAt(e,n=0,r=0){let i=sE.get(this)||this.topNode,s=new u$(i);return s.moveTo(e,n),sE.set(this,s._tree),s}get topNode(){return new Ic(this,0,0,null)}resolve(e,n=0){let r=nC(sE.get(this)||this.topNode,e,n,!1);return sE.set(this,r),r}resolveInner(e,n=0){let r=nC(ere.get(this)||this.topNode,e,n,!0);return ere.set(this,r),r}resolveStack(e,n=0){return cmt(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:s=this.length}=e,o=e.mode||0,a=(o&_a.IncludeAnonymous)>0;for(let l=this.cursor(o|_a.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:vW($c.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new Vo(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new Vo($c.none,n,r,i)))}static build(e){return umt(e)}}Vo.empty=new Vo($c.none,[],[],0);class yW{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new yW(this.buffer,this.index)}}class Qg{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return $c.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),e+=4,r==e)return s;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=e;l!=n&&!(Ive(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(e,n,r){let i=this.buffer,s=new Uint16Array(n-e),o=0;for(let a=e,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let c=s[l++]=i[a++]-r;s[l++]=i[a++]-e,o=Math.max(o,c)}return new Qg(s,o,this.set)}}function Ive(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function nC(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let o=!r&&t instanceof Ic&&t.index<0?null:t.parent;if(!o)return t;t=o}let s=r?0:_a.IgnoreOverlays;if(r)for(let o=t,a=o.parent;a;o=a,a=o.parent)o instanceof Ic&&o.index<0&&((i=a.enter(e,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(t=a);for(;;){let o=t.enter(e,n,s);if(!o)return t;t=o}}class Dve{cursor(e=0){return new u$(this,e)}getChild(e,n=null,r=null){let i=tre(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return tre(this,e,n,r)}resolve(e,n=0){return nC(this,e,n,!1)}resolveInner(e,n=0){return nC(this,e,n,!0)}matchContext(e){return c$(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class Ic extends Dve{constructor(e,n,r,i){super(),this._tree=e,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;e!=c;e+=n){let u=a[e],h=l[e]+o.from;if(Ive(i,r,h,h+u.length)){if(u instanceof Qg){if(s&_a.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,n,r-h,i);if(d>-1)return new Ff(new amt(o,u,e,h),null,d)}else if(s&_a.IncludeAnonymous||!u.type.isAnonymous||bW(u)){let d;if(!(s&_a.IgnoreMounts)&&(d=d7.get(u))&&!d.overlay)return new Ic(d.tree,h,e,o);let p=new Ic(u,h,e,o);return s&_a.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?u.children.length-1:0,n,r,i)}}}if(s&_a.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+n:e=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&_a.IgnoreOverlays)&&(i=d7.get(this._tree))&&i.overlay){let s=e-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new Ic(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function tre(t,e,n,r){let i=t.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function c$(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class amt{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class Ff extends Dve{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return s<0?null:new Ff(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&_a.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new Ff(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Ff(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Ff(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];e.push(r.slice(i,s,o)),n.push(0)}return new Vo(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Mve(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;s<t.length;s++){let o=t[s];(o.from>n.from||o.to<n.to)&&(n=o,e=s)}let r=n instanceof Ic&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new lmt(i,n)}class lmt{constructor(e,n){this.heads=e,this.node=n}get next(){return Mve(this.heads)}}function cmt(t,e,n){let r=t.resolveInner(e,n),i=null;for(let s=r instanceof Ic?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(e,n)),s=o}else{let o=d7.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let a=new Ic(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(nC(a,e,n,!1))}}return i?Mve(i):r}class u${get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Ic)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof Ic?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&_a.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_a.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&_a.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+e,o=e<0?-1:r._tree.children.length;s!=o;s+=e){let a=r._tree.children[s];if(this.mode&_a.IncludeAnonymous||a instanceof Qg||!a.type.isAnonymous||bW(a))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)n=new Ff(this.buffer,n,this.stack[i]);return this.bufferNode=new Ff(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return c$(this.node.parent,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return c$(this._tree,e,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function bW(t){return t.children.some(e=>e instanceof Qg||!e.type.isAnonymous||bW(e))}function umt(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=Ove,reused:s=[],minRepeatType:o=r.types.length}=t,a=Array.isArray(n)?new yW(n,n.length):n,l=r.types,c=0,u=0;function h(E,O,P,$,W,H){let{id:K,start:Z,end:oe,size:te}=a,re=u,Y=c;for(;te<0;)if(a.next(),te==-1){let Q=s[K];P.push(Q),$.push(Z-E);return}else if(te==-3){c=K;return}else if(te==-4){u=K;return}else throw new RangeError(`Unrecognized record size: ${te}`);let z=l[K],U,G,B=Z-E;if(oe-Z<=i&&(G=b(a.pos-O,W))){let Q=new Uint16Array(G.size-G.skip),ie=a.pos-G.size,q=Q.length;for(;a.pos>ie;)q=w(G.start,Q,q);U=new Qg(Q,oe-G.start,r),B=G.start-E}else{let Q=a.pos-te;a.next();let ie=[],q=[],fe=K>=o?K:-1,ke=0,Be=oe;for(;a.pos>Q;)fe>=0&&a.id==fe&&a.size>=0?(a.end<=Be-i&&(g(ie,q,Z,ke,a.end,Be,fe,re,Y),ke=ie.length,Be=a.end),a.next()):H>2500?d(Z,Q,ie,q):h(Z,Q,ie,q,fe,H+1);if(fe>=0&&ke>0&&ke<ie.length&&g(ie,q,Z,ke,Z,Be,fe,re,Y),ie.reverse(),q.reverse(),fe>-1&&ke>0){let Qe=p(z,Y);U=vW(z,ie,q,0,ie.length,0,oe-Z,Qe,Qe)}else U=y(z,ie,q,oe-Z,re-oe,Y)}P.push(U),$.push(B)}function d(E,O,P,$){let W=[],H=0,K=-1;for(;a.pos>O;){let{id:Z,start:oe,end:te,size:re}=a;if(re>4)a.next();else{if(K>-1&&oe<K)break;K<0&&(K=te-i),W.push(Z,oe,te),H++,a.next()}}if(H){let Z=new Uint16Array(H*4),oe=W[W.length-2];for(let te=W.length-3,re=0;te>=0;te-=3)Z[re++]=W[te],Z[re++]=W[te+1]-oe,Z[re++]=W[te+2]-oe,Z[re++]=re;P.push(new Qg(Z,W[2]-oe,r)),$.push(oe-E)}}function p(E,O){return(P,$,W)=>{let H=0,K=P.length-1,Z,oe;if(K>=0&&(Z=P[K])instanceof Vo){if(!K&&Z.type==E&&Z.length==W)return Z;(oe=Z.prop(ti.lookAhead))&&(H=$[K]+Z.length+oe)}return y(E,P,$,W,H,O)}}function g(E,O,P,$,W,H,K,Z,oe){let te=[],re=[];for(;E.length>$;)te.push(E.pop()),re.push(O.pop()+P-W);E.push(y(r.types[K],te,re,H-W,Z-H,oe)),O.push(W-P)}function y(E,O,P,$,W,H,K){if(H){let Z=[ti.contextHash,H];K=K?[Z].concat(K):[Z]}if(W>25){let Z=[ti.lookAhead,W];K=K?[Z].concat(K):[Z]}return new Vo(E,O,P,$,K)}function b(E,O){let P=a.fork(),$=0,W=0,H=0,K=P.end-i,Z={size:0,start:0,skip:0};e:for(let oe=P.pos-E;P.pos>oe;){let te=P.size;if(P.id==O&&te>=0){Z.size=$,Z.start=W,Z.skip=H,H+=4,$+=4,P.next();continue}let re=P.pos-te;if(te<0||re<oe||P.start<K)break;let Y=P.id>=o?4:0,z=P.start;for(P.next();P.pos>re;){if(P.size<0)if(P.size==-3)Y+=4;else break e;else P.id>=o&&(Y+=4);P.next()}W=z,$+=te,H+=Y}return(O<0||$==E)&&(Z.size=$,Z.start=W,Z.skip=H),Z.size>4?Z:void 0}function w(E,O,P){let{id:$,start:W,end:H,size:K}=a;if(a.next(),K>=0&&$<o){let Z=P;if(K>4){let oe=a.pos-(K-4);for(;a.pos>oe;)P=w(E,O,P)}O[--P]=Z,O[--P]=H-E,O[--P]=W-E,O[--P]=$}else K==-3?c=$:K==-4&&(u=$);return P}let S=[],T=[];for(;a.pos>0;)h(t.start||0,t.bufferStart||0,S,T,-1,0);let D=(e=t.length)!==null&&e!==void 0?e:S.length?T[0]+S[0].length:0;return new Vo(l[t.topID],S.reverse(),T.reverse(),D)}const nre=new WeakMap;function dA(t,e){if(!t.isAnonymous||e instanceof Qg||e.type!=t)return 1;let n=nre.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof Vo)){n=1;break}n+=dA(t,r)}nre.set(e,n)}return n}function vW(t,e,n,r,i,s,o,a,l){let c=0;for(let g=r;g<i;g++)c+=dA(t,e[g]);let u=Math.ceil(c*1.5/8),h=[],d=[];function p(g,y,b,w,S){for(let T=b;T<w;){let D=T,E=y[T],O=dA(t,g[T]);for(T++;T<w;T++){let P=dA(t,g[T]);if(O+P>=u)break;O+=P}if(T==D+1){if(O>u){let P=g[D];p(P.children,P.positions,0,P.children.length,y[D]+S);continue}h.push(g[D])}else{let P=y[T-1]+g[T-1].length-E;h.push(vW(t,g,y,D,T,E,P,null,l))}d.push(E+S-s)}}return p(e,n,r,i,0),(a||l)(h,d,o)}class xGt{constructor(){this.map=new WeakMap}setBuffer(e,n,r){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(n,r)}getBuffer(e,n){let r=this.map.get(e);return r&&r.get(n)}set(e,n){e instanceof Ff?this.setBuffer(e.context.buffer,e.index,n):e instanceof Ic&&this.map.set(e.tree,n)}get(e){return e instanceof Ff?this.getBuffer(e.context.buffer,e.index):e instanceof Ic?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Zy{constructor(e,n,r,i,s=!1,o=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let i=[new Zy(0,e.length,e,0,!1,r)];for(let s of n)s.to>e.length&&i.push(s);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,h=u?u.fromA:1e9;if(h-l>=r)for(;o&&o.from<h;){let d=o;if(l>=d.from||h<=d.to||c){let p=Math.max(d.from,l)-c,g=Math.min(d.to,h)-c;d=p>=g?null:new Zy(p,g,d.tree,d.offset+c,a>0,!!u)}if(d&&i.push(d),o.to>h)break;o=s<e.length?e[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}let Nve=class{startParse(e,n,r){return typeof e=="string"&&(e=new hmt(e)),r=r?r.length?r.map(i=>new RN(i.from,i.to)):[new RN(0,0)]:[new RN(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let s=i.advance();if(s)return s}}};class hmt{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new ti({perNode:!0});let dmt=0,f0=class h${constructor(e,n,r,i){this.name=e,this.set=n,this.base=r,this.modified=i,this.id=dmt++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let r=typeof e=="string"?e:"?";if(e instanceof h$&&(n=e),n?.base)throw new Error("Can not derive from a modified tag");let i=new h$(r,[],null,[]);if(i.set.push(i),n)for(let s of n.set)i.set.push(s);return i}static defineModifier(e){let n=new f7(e);return r=>r.modified.indexOf(n)>-1?r:f7.get(r.base||r,r.modified.concat(n).sort((i,s)=>i.id-s.id))}},fmt=0;class f7{constructor(e){this.name=e,this.instances=[],this.id=fmt++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(a=>a.base==e&&pmt(n,a.modified));if(r)return r;let i=[],s=new f0(e.name,i,e,n);for(let a of n)a.instances.push(s);let o=mmt(n);for(let a of e.set)if(!a.modified.length)for(let l of o)i.push(f7.get(a,l));return s}}function pmt(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function mmt(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function Rve(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let h=0;;){if(a=="..."&&h>0&&h+3==i.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!d)throw new RangeError("Invalid path: "+i);if(s.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),h+=d[0].length,h==i.length)break;let p=i[h++];if(h==i.length&&p=="!"){o=0;break}if(p!="/")throw new RangeError("Invalid path: "+i);a=i.slice(h)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new p7(r,o,l>0?s.slice(0,l):null);e[c]=u.sort(e[c])}}return Lve.add(e)}const Lve=new ti;class p7{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}p7.empty=new p7([],2,null);function Bve(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=e||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function gmt(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function ymt(t,e,n,r=0,i=t.length){let s=new bmt(r,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),r,i,"",s.highlighters),s.flush(i)}class bmt{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,i,s){let{type:o,from:a,to:l}=e;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(p=>!p.scope||p.scope(o)));let c=i,u=vmt(e)||p7.empty,h=gmt(s,u.tags);if(h&&(c&&(c+=" "),c+=h,u.mode==1&&(i+=(i?" ":"")+h)),this.startSpan(Math.max(n,a),c),u.opaque)return;let d=e.tree&&e.tree.prop(ti.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+a,1),g=this.highlighters.filter(b=>!b.scope||b.scope(d.tree.type)),y=e.firstChild();for(let b=0,w=a;;b++){let S=b<d.overlay.length?d.overlay[b]:null,T=S?S.from+a:l,D=Math.max(n,w),E=Math.min(r,T);if(D<E&&y)for(;e.from<E&&(this.highlightRange(e,D,E,i,s),this.startSpan(Math.min(E,e.to),c),!(e.to>=T||!e.nextSibling())););if(!S||T>r)break;w=S.to+a,w>n&&(this.highlightRange(p.cursor(),Math.max(n,S.from+a),Math.min(r,w),"",g),this.startSpan(Math.min(r,w),c))}y&&e.parent()}else if(e.firstChild()){d&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,s),this.startSpan(Math.min(r,e.to),c)}while(e.nextSibling());e.parent()}}}function vmt(t){let e=t.type.prop(Lve);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Qt=f0.define,oE=Qt(),ug=Qt(),rre=Qt(ug),ire=Qt(ug),hg=Qt(),aE=Qt(hg),LN=Qt(hg),df=Qt(),X1=Qt(df),lf=Qt(),cf=Qt(),d$=Qt(),QS=Qt(d$),lE=Qt(),Ze={comment:oE,lineComment:Qt(oE),blockComment:Qt(oE),docComment:Qt(oE),name:ug,variableName:Qt(ug),typeName:rre,tagName:Qt(rre),propertyName:ire,attributeName:Qt(ire),className:Qt(ug),labelName:Qt(ug),namespace:Qt(ug),macroName:Qt(ug),literal:hg,string:aE,docString:Qt(aE),character:Qt(aE),attributeValue:Qt(aE),number:LN,integer:Qt(LN),float:Qt(LN),bool:Qt(hg),regexp:Qt(hg),escape:Qt(hg),color:Qt(hg),url:Qt(hg),keyword:lf,self:Qt(lf),null:Qt(lf),atom:Qt(lf),unit:Qt(lf),modifier:Qt(lf),operatorKeyword:Qt(lf),controlKeyword:Qt(lf),definitionKeyword:Qt(lf),moduleKeyword:Qt(lf),operator:cf,derefOperator:Qt(cf),arithmeticOperator:Qt(cf),logicOperator:Qt(cf),bitwiseOperator:Qt(cf),compareOperator:Qt(cf),updateOperator:Qt(cf),definitionOperator:Qt(cf),typeOperator:Qt(cf),controlOperator:Qt(cf),punctuation:d$,separator:Qt(d$),bracket:QS,angleBracket:Qt(QS),squareBracket:Qt(QS),paren:Qt(QS),brace:Qt(QS),content:df,heading:X1,heading1:Qt(X1),heading2:Qt(X1),heading3:Qt(X1),heading4:Qt(X1),heading5:Qt(X1),heading6:Qt(X1),contentSeparator:Qt(df),list:Qt(df),quote:Qt(df),emphasis:Qt(df),strong:Qt(df),link:Qt(df),monospace:Qt(df),strikethrough:Qt(df),inserted:Qt(),deleted:Qt(),changed:Qt(),invalid:Qt(),meta:lE,documentMeta:Qt(lE),annotation:Qt(lE),processingInstruction:Qt(lE),definition:f0.defineModifier("definition"),constant:f0.defineModifier("constant"),function:f0.defineModifier("function"),standard:f0.defineModifier("standard"),local:f0.defineModifier("local"),special:f0.defineModifier("special")};for(let t in Ze){let e=Ze[t];e instanceof f0&&(e.name=t)}Bve([{tag:Ze.link,class:"tok-link"},{tag:Ze.heading,class:"tok-heading"},{tag:Ze.emphasis,class:"tok-emphasis"},{tag:Ze.strong,class:"tok-strong"},{tag:Ze.keyword,class:"tok-keyword"},{tag:Ze.atom,class:"tok-atom"},{tag:Ze.bool,class:"tok-bool"},{tag:Ze.url,class:"tok-url"},{tag:Ze.labelName,class:"tok-labelName"},{tag:Ze.inserted,class:"tok-inserted"},{tag:Ze.deleted,class:"tok-deleted"},{tag:Ze.literal,class:"tok-literal"},{tag:Ze.string,class:"tok-string"},{tag:Ze.number,class:"tok-number"},{tag:[Ze.regexp,Ze.escape,Ze.special(Ze.string)],class:"tok-string2"},{tag:Ze.variableName,class:"tok-variableName"},{tag:Ze.local(Ze.variableName),class:"tok-variableName tok-local"},{tag:Ze.definition(Ze.variableName),class:"tok-variableName tok-definition"},{tag:Ze.special(Ze.variableName),class:"tok-variableName2"},{tag:Ze.definition(Ze.propertyName),class:"tok-propertyName tok-definition"},{tag:Ze.typeName,class:"tok-typeName"},{tag:Ze.namespace,class:"tok-namespace"},{tag:Ze.className,class:"tok-className"},{tag:Ze.macroName,class:"tok-macroName"},{tag:Ze.propertyName,class:"tok-propertyName"},{tag:Ze.operator,class:"tok-operator"},{tag:Ze.comment,class:"tok-comment"},{tag:Ze.meta,class:"tok-meta"},{tag:Ze.invalid,class:"tok-invalid"},{tag:Ze.punctuation,class:"tok-punctuation"}]);var BN;const N2=new ti;function xmt(t){return ln.define({combine:t?e=>e.concat(t):void 0})}const wmt=new ti;class wd{constructor(e,n,r=[],i=""){this.data=e,this.name=i,ui.prototype.hasOwnProperty("tree")||Object.defineProperty(ui.prototype,"tree",{get(){return Ka(this)}}),this.parser=n,this.extension=[Xg.of(this),ui.languageData.of((s,o,a)=>{let l=sre(s,o,a),c=l.type.prop(N2);if(!c)return[];let u=s.facet(c),h=l.type.prop(wmt);if(h){let d=l.resolve(o-l.from,a);for(let p of h)if(p.test(d,s)){let g=s.facet(p.facet);return p.type=="replace"?g:g.concat(u)}}return u})].concat(r)}isActiveAt(e,n,r=-1){return sre(e,n,r).type.prop(N2)==this.data}findRegions(e){let n=e.facet(Xg);if(n?.data==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(s,o)=>{if(s.prop(N2)==this.data){r.push({from:o,to:o+s.length});return}let a=s.prop(ti.mounted);if(a){if(a.tree.prop(N2)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+s.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+o),r.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof Vo&&i(c,s.positions[l]+o)}};return i(Ka(e),0),r}get allowsNesting(){return!0}}wd.setState=Er.define();function sre(t,e,n){let r=t.facet(Xg),i=Ka(t).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(e,n,_a.ExcludeBuffers))s.type.isTop&&(i=s);return i}class m7 extends wd{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=xmt(e.languageData);return new m7(n,e.parser.configure({props:[N2.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new m7(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ka(t){let e=t.field(wd.state,!1);return e?e.tree:Vo.empty}class Smt{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let XS=null;class g7{constructor(e,n,r=[],i,s,o,a,l){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new g7(e,n,[],Vo.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Smt(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Vo.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(Zy.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Zy.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=XS;XS=this;try{return e()}finally{XS=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=ore(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,u,h,d)=>l.push({fromA:c,toA:u,fromB:h,toB:d})),r=Zy.applyChanges(r,l),i=Vo.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=e.mapPos(c.from,1),h=e.mapPos(c.to,-1);u<h&&a.push({from:u,to:h})}}}return new g7(this.parser,n,r,i,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<e.to&&s>e.from&&(this.fragments=ore(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends Nve{createParse(n,r,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let l=XS;if(l){for(let c of i)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Vo($c.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return XS}}function ore(t,e,n){return Zy.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Qx{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Qx(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=g7.create(e.facet(Xg).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Qx(r)}}wd.state=Ia.define({create:Qx.init,update(t,e){for(let n of e.effects)if(n.is(wd.setState))return n.value;return e.startState.facet(Xg)!=e.state.facet(Xg)?Qx.init(e.state):t.apply(e)}});let Fve=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Fve=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const FN=typeof navigator<"u"&&(!((BN=navigator.scheduling)===null||BN===void 0)&&BN.isInputPending)?()=>navigator.scheduling.isInputPending():null,kmt=To.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(wd.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(wd.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=Fve(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,s=r.field(wd.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!FN?Math.max(25,e.timeRemaining()-5):1e9),a=s.context.treeLen<i&&r.doc.length>i+1e3,l=s.context.work(()=>FN&&FN()||Date.now()>o,i+(a?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:wd.setState.of(new Qx(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Tc(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Xg=ln.define({combine(t){return t.length?t[0]:null},enables:t=>[wd.state,kmt,Jt.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class Cmt{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const _mt=ln.define(),T_=ln.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function y7(t){let e=t.facet(T_);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function rC(t,e){let n="",r=t.tabSize,i=t.facet(T_)[0];if(i==" "){for(;e>=r;)n+=" ",e-=r;i=" "}for(let s=0;s<e;s++)n+=i;return n}function xW(t,e){t instanceof ui&&(t=new sI(t));for(let r of t.state.facet(_mt)){let i=r(t,e);if(i!==void 0)return i}let n=Ka(t.state);return n.length>=e?Tmt(t,n,e):null}class sI{constructor(e,n={}){this.state=e,this.options=n,this.unit=y7(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==e?{text:"",from:e}:(n<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,n);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,n=1){let{text:r,from:i}=this.lineAt(e,n),s=this.countColumn(r,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(e,n=e.length){return Bw(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const $ve=new ti;function Tmt(t,e,n){let r=e.resolveStack(n),i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let s=[];for(let o=i;o&&!(o.from==r.node.from&&o.type==r.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)r={node:s[o],next:r}}return jve(r,t,n)}function jve(t,e,n){for(let r=t;r;r=r.next){let i=Amt(r.node);if(i)return i(wW.create(e,n,r))}return 0}function Emt(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Amt(t){let e=t.type.prop($ve);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(ti.closedBy))){let i=t.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>zve(o,!0,1,void 0,s&&!Emt(o)?i.from:void 0)}return t.parent==null?Pmt:null}function Pmt(){return 0}class wW extends sI{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new wW(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Omt(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return jve(this.context.next,this.base,this.pos)}}function Omt(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function Imt(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let l=e.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let c=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+c}}a=l.to}}function are({closing:t,align:e=!0,units:n=1}){return r=>zve(r,e,n,t)}function zve(t,e,n,r,i){let s=t.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==t.pos+o,l=e?Imt(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*n)}const kGt=t=>t.baseIndent;function CGt({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const Dmt=200;function Mmt(){return ui.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+Dmt)return t;let s=n.sliceString(i.from,r);if(!e.some(c=>c.test(s)))return t;let{state:o}=t,a=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==a)continue;a=u.from;let h=xW(o,u.from);if(h==null)continue;let d=/^\s*/.exec(u.text)[0],p=rC(o,h);d!=p&&l.push({from:u.from,to:u.from+d.length,insert:p})}return l.length?[t,{changes:l,sequential:!0}]:t})}const Nmt=ln.define(),Hve=new ti;function Rmt(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function Lmt(t,e,n){let r=Ka(t);if(r.length<n)return null;let i=r.resolveStack(n,1),s=null;for(let o=i;o;o=o.next){let a=o.node;if(a.to<=n||a.from>n)continue;if(s&&a.from<e)break;let l=a.type.prop(Hve);if(l&&(a.to<r.length-50||r.length==t.doc.length||!Bmt(a))){let c=l(a,t);c&&c.from<=n&&c.from>=e&&c.to>n&&(s=c)}}return s}function Bmt(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function b7(t,e,n){for(let r of t.facet(Nmt)){let i=r(t,e,n);if(i)return i}return Lmt(t,e,n)}function Uve(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const oI=Er.define({map:Uve}),E_=Er.define({map:Uve});function Vve(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const wb=Ia.define({create(){return Mn.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(oI)&&!Fmt(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Gve),i=r?Mn.replace({widget:new Wmt(r(e.state,n.value))}):lre;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(E_)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(i,s)=>{i<r&&s>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,s)=>s<=r||i>=r}))}return t},provide:t=>Jt.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(lre.range(r,i))}return Mn.set(e,!0)}});function v7(t,e,n){var r;let i=null;return(r=t.field(wb,!1))===null||r===void 0||r.between(e,n,(s,o)=>{(!i||i.from>s)&&(i={from:s,to:o})}),i}function Fmt(t,e,n){let r=!1;return t.between(e,e,(i,s)=>{i==e&&s==n&&(r=!0)}),r}function Wve(t,e){return t.field(wb,!1)?e:e.concat(Er.appendConfig.of(Kve()))}const $mt=t=>{for(let e of Vve(t)){let n=b7(t.state,e.from,e.to);if(n)return t.dispatch({effects:Wve(t.state,[oI.of(n),qve(t,n)])}),!0}return!1},jmt=t=>{if(!t.state.field(wb,!1))return!1;let e=[];for(let n of Vve(t)){let r=v7(t.state,n.from,n.to);r&&e.push(E_.of(r),qve(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function qve(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return Jt.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const zmt=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),s=b7(e,i.from,i.to);s&&n.push(oI.of(s)),r=(s?t.lineBlockAt(s.to):i).to+1}return n.length&&t.dispatch({effects:Wve(t.state,n)}),!!n.length},Hmt=t=>{let e=t.state.field(wb,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(E_.of({from:r,to:i}))}),t.dispatch({effects:n}),!0},Umt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:$mt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:jmt},{key:"Ctrl-Alt-[",run:zmt},{key:"Ctrl-Alt-]",run:Hmt}],Vmt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"â¦"},Gve=ln.define({combine(t){return bp(t,Vmt)}});function Kve(t){return[wb,Kmt]}function Yve(t,e){let{state:n}=t,r=n.facet(Gve),i=o=>{let a=t.lineBlockAt(t.posAtDOM(o.target)),l=v7(t.state,a.from,a.to);l&&t.dispatch({effects:E_.of(l)}),o.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}const lre=Mn.replace({widget:new class extends vp{toDOM(t){return Yve(t,null)}}});class Wmt extends vp{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Yve(e,this.value)}}const qmt={openText:"â",closedText:"âº",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class $N extends Z0{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Gmt(t={}){let e=Object.assign(Object.assign({},qmt),t),n=new $N(e,!0),r=new $N(e,!1),i=To.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Xg)!=o.state.facet(Xg)||o.startState.field(wb,!1)!=o.state.field(wb,!1)||Ka(o.startState)!=Ka(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let a=new X0;for(let l of o.viewportLineBlocks){let c=v7(o.state,l.from,l.to)?r:b7(o.state,l.from,l.to)?n:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:s}=e;return[i,K0t({class:"cm-foldGutter",markers(o){var a;return((a=o.plugin(i))===null||a===void 0?void 0:a.markers)||wi.empty},initialSpacer(){return new $N(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(o,a,l)=>{if(s.click&&s.click(o,a,l))return!0;let c=v7(o.state,a.from,a.to);if(c)return o.dispatch({effects:E_.of(c)}),!0;let u=b7(o.state,a.from,a.to);return u?(o.dispatch({effects:oI.of(u)}),!0):!1}})}),Kve()]}const Kmt=Jt.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class A_{constructor(e,n){this.specs=e;let r;function i(a){let l=Gg.newName();return(r||(r=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof wd?a=>a.prop(N2)==o.data:o?a=>a==o:void 0,this.style=Bve(e.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Gg(r):null,this.themeType=n.themeType}static define(e,n){return new A_(e,n||{})}}const f$=ln.define(),Qve=ln.define({combine(t){return t.length?[t[0]]:null}});function jN(t){let e=t.facet(f$);return e.length?e:t.facet(Qve)}function Xve(t,e){let n=[Qmt],r;return t instanceof A_&&(t.module&&n.push(Jt.styleModule.of(t.module)),r=t.themeType),e?.fallback?n.push(Qve.of(t)):r?n.push(f$.computeN([Jt.darkTheme],i=>i.facet(Jt.darkTheme)==(r=="dark")?[t]:[])):n.push(f$.of(t)),n}class Ymt{constructor(e){this.markCache=Object.create(null),this.tree=Ka(e.state),this.decorations=this.buildDeco(e,jN(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Ka(e.state),r=jN(e.state),i=r!=jN(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!i&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=s.to)}buildDeco(e,n){if(!n||!this.tree.length)return Mn.none;let r=new X0;for(let{from:i,to:s}of e.visibleRanges)ymt(this.tree,n,(o,a,l)=>{r.add(o,a,this.markCache[l]||(this.markCache[l]=Mn.mark({class:l})))},i,s);return r.finish()}}const Qmt=v1.high(To.fromClass(Ymt,{decorations:t=>t.decorations})),Xmt=A_.define([{tag:Ze.meta,color:"#404740"},{tag:Ze.link,textDecoration:"underline"},{tag:Ze.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ze.emphasis,fontStyle:"italic"},{tag:Ze.strong,fontWeight:"bold"},{tag:Ze.strikethrough,textDecoration:"line-through"},{tag:Ze.keyword,color:"#708"},{tag:[Ze.atom,Ze.bool,Ze.url,Ze.contentSeparator,Ze.labelName],color:"#219"},{tag:[Ze.literal,Ze.inserted],color:"#164"},{tag:[Ze.string,Ze.deleted],color:"#a11"},{tag:[Ze.regexp,Ze.escape,Ze.special(Ze.string)],color:"#e40"},{tag:Ze.definition(Ze.variableName),color:"#00f"},{tag:Ze.local(Ze.variableName),color:"#30a"},{tag:[Ze.typeName,Ze.namespace],color:"#085"},{tag:Ze.className,color:"#167"},{tag:[Ze.special(Ze.variableName),Ze.macroName],color:"#256"},{tag:Ze.definition(Ze.propertyName),color:"#00c"},{tag:Ze.comment,color:"#940"},{tag:Ze.invalid,color:"#f00"}]),Jmt=Jt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Jve=1e4,Zve="()[]{}",e2e=ln.define({combine(t){return bp(t,{afterCursor:!0,brackets:Zve,maxScanDistance:Jve,renderMatch:tgt})}}),Zmt=Mn.mark({class:"cm-matchingBracket"}),egt=Mn.mark({class:"cm-nonmatchingBracket"});function tgt(t){let e=[],n=t.matched?Zmt:egt;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const ngt=Ia.define({create(){return Mn.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(e2e);for(let i of e.state.selection.ranges){if(!i.empty)continue;let s=$f(e.state,i.head,-1,r)||i.head>0&&$f(e.state,i.head-1,1,r)||r.afterCursor&&($f(e.state,i.head,1,r)||i.head<e.state.doc.length&&$f(e.state,i.head+1,-1,r));s&&(n=n.concat(r.renderMatch(s,e.state)))}return Mn.set(n,!0)},provide:t=>Jt.decorations.from(t)}),rgt=[ngt,Jmt];function igt(t={}){return[e2e.of(t),rgt]}const sgt=new ti;function p$(t,e,n){let r=t.prop(e<0?ti.openedBy:ti.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function m$(t){let e=t.type.prop(sgt);return e?e(t.node):t}function $f(t,e,n,r={}){let i=r.maxScanDistance||Jve,s=r.brackets||Zve,o=Ka(t),a=o.resolveInner(e,n);for(let l=a;l;l=l.parent){let c=p$(l.type,n,s);if(c&&l.from<l.to){let u=m$(l);if(u&&(n>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return ogt(t,e,n,l,u,c,s)}}return agt(t,e,n,o,a.type,i,s)}function ogt(t,e,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},c=0,u=a?.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let h=m$(u);return{start:l,end:h?{from:h.from,to:h.to}:void 0,matched:!0}}else if(p$(u.type,n,o))c++;else if(p$(u.type,-n,o)){if(c==0){let h=m$(u);return{start:l,end:h&&h.from<h.to?{from:h.from,to:h.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function agt(t,e,n,r,i,s,o){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),h=0;for(let d=0;!u.next().done&&d<=s;){let p=u.value;n<0&&(d+=p.length);let g=e+d*n;for(let y=n>0?0:p.length-1,b=n>0?p.length:-1;y!=b;y+=n){let w=o.indexOf(p[y]);if(!(w<0||r.resolveInner(g+y,1).type!=i))if(w%2==0==n>0)h++;else{if(h==1)return{start:c,end:{from:g+y,to:g+y+1},matched:w>>1==l>>1};h--}}n>0&&(d+=p.length)}return u.done?{start:c,matched:!1}:null}const lgt=Object.create(null),cre=[$c.none],ure=[],hre=Object.create(null),cgt=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])cgt[t]=ugt(lgt,e);function zN(t,e){ure.indexOf(t)>-1||(ure.push(t),console.warn(e))}function ugt(t,e){let n=[];for(let a of e.split(" ")){let l=[];for(let c of a.split(".")){let u=t[c]||Ze[c];u?typeof u=="function"?l.length?l=l.map(u):zN(c,`Modifier ${c} used at start of tag`):l.length?zN(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:zN(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(a=>a.id),s=hre[i];if(s)return s.id;let o=hre[i]=$c.define({id:cre.length,name:r,props:[Rve({[r]:n})]});return cre.push(o),o.id}Ms.RTL,Ms.LTR;const hgt=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=kW(t.state,n.from);return r.line?dgt(t):r.block?pgt(t):!1};function SW(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return i?(r(n.update(i)),!0):!1}}const dgt=SW(ygt,0),fgt=SW(t2e,0),pgt=SW((t,e)=>t2e(t,e,ggt(e)),0);function kW(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const JS=50;function mgt(t,{open:e,close:n},r,i){let s=t.sliceDoc(r-JS,r),o=t.sliceDoc(i,i+JS),a=/\s*$/.exec(s)[0].length,l=/^\s*/.exec(o)[0].length,c=s.length-a;if(s.slice(c-e.length,c)==e&&o.slice(l,l+n.length)==n)return{open:{pos:r-a,margin:a&&1},close:{pos:i+l,margin:l&&1}};let u,h;i-r<=2*JS?u=h=t.sliceDoc(r,i):(u=t.sliceDoc(r,r+JS),h=t.sliceDoc(i-JS,i));let d=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(h)[0].length,g=h.length-p-n.length;return u.slice(d,d+e.length)==e&&h.slice(g,g+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(u.charAt(d+e.length))?1:0},close:{pos:i-p-n.length,margin:/\s/.test(h.charAt(g-1))?1:0}}:null}function ggt(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:t.doc.lineAt(n.to-1));let s=e.length-1;s>=0&&e[s].to>r.from?e[s].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function t2e(t,e,n=e.selection.ranges){let r=n.map(s=>kW(e,s.from).block);if(!r.every(s=>s))return null;let i=n.map((s,o)=>mgt(e,r[o],s.from,s.to));if(t!=2&&!i.every(s=>s))return{changes:e.changes(n.map((s,o)=>i[o]?[]:[{from:s.from,insert:r[o].open+" "},{from:s.to,insert:" "+r[o].close}]))};if(t!=1&&i.some(s=>s)){let s=[];for(let o=0,a;o<i.length;o++)if(a=i[o]){let l=r[o],{open:c,close:u}=a;s.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:u.pos-u.margin,to:u.pos+l.close.length})}return{changes:s}}return null}function ygt(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:s,to:o}of n){let a=r.length,l=1e9,c=kW(e,s).line;if(c){for(let u=s;u<=o;){let h=e.doc.lineAt(u);if(h.from>i&&(s==o||o>h.from)){i=h.from;let d=/^\s*/.exec(h.text)[0].length,p=d==h.length,g=h.text.slice(d,d+c.length)==c?d:-1;d<h.text.length&&d<l&&(l=d),r.push({line:h,comment:g,token:c,indent:d,empty:p,single:!1})}u=h.to+1}if(l<1e9)for(let u=a;u<r.length;u++)r[u].indent<r[u].line.text.length&&(r[u].indent=l);r.length==a+1&&(r[a].single=!0)}}if(t!=2&&r.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:a,token:l,indent:c,empty:u,single:h}of r)(h||!u)&&s.push({from:a.from+c,insert:l+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&r.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:a,token:l}of r)if(a>=0){let c=o.from+a,u=c+l.length;o.text[u-o.from]==" "&&u++,s.push({from:c,to:u})}return{changes:s}}return null}const g$=yp.define(),bgt=yp.define(),vgt=ln.define(),n2e=ln.define({combine(t){return bp(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),r2e=Ia.define({create(){return jf.empty},update(t,e){let n=e.state.facet(n2e),r=e.annotation(g$);if(r){let l=Ec.fromTransaction(e,r.selection),c=r.side,u=c==0?t.undone:t.done;return l?u=x7(u,u.length,n.minDepth,l):u=o2e(u,e.startState.selection),new jf(c==0?r.rest:u,c==0?u:r.rest)}let i=e.annotation(bgt);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(Uo.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=Ec.fromTransaction(e),o=e.annotation(Uo.time),a=e.annotation(Uo.userEvent);return s?t=t.addChanges(s,o,a,n,e):e.selection&&(t=t.addSelection(e.startState.selection,o,a,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new jf(t.done.map(Ec.fromJSON),t.undone.map(Ec.fromJSON))}});function xgt(t={}){return[r2e,n2e.of(t),Jt.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?i2e:e.inputType=="historyRedo"?y$:null;return r?(e.preventDefault(),r(n)):!1}})]}function aI(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(r2e,!1);if(!i)return!1;let s=i.pop(t,n,e);return s?(r(s),!0):!1}}const i2e=aI(0,!1),y$=aI(1,!1),wgt=aI(0,!0),Sgt=aI(1,!0);class Ec{constructor(e,n,r,i,s){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new Ec(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Ec(e.changes&&oa.fromJSON(e.changes),[],e.mapped&&Zf.fromJSON(e.mapped),e.startSelection&&dt.fromJSON(e.startSelection),e.selectionsAfter.map(dt.fromJSON))}static fromTransaction(e,n){let r=dh;for(let i of e.startState.facet(vgt)){let s=i(e);s.length&&(r=r.concat(s))}return!r.length&&e.changes.empty?null:new Ec(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,dh)}static selection(e){return new Ec(void 0,dh,void 0,void 0,e)}}function x7(t,e,n,r){let i=e+1>n+20?e-n-1:0,s=t.slice(i,e);return s.push(r),s}function kgt(t,e){let n=[],r=!1;return t.iterChangedRanges((i,s)=>n.push(i,s)),e.iterChangedRanges((i,s,o,a)=>{for(let l=0;l<n.length;){let c=n[l++],u=n[l++];a>=c&&o<=u&&(r=!0)}}),r}function Cgt(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function s2e(t,e){return t.length?e.length?t.concat(e):t:e}const dh=[],_gt=200;function o2e(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-_gt));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),x7(t,t.length-1,1e9,n.setSelAfter(r)))}else return[Ec.selection([e])]}function Tgt(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function HN(t,e){if(!t.length)return t;let n=t.length,r=dh;for(;n;){let i=Egt(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let s=t.slice(0,n);return s[n-1]=i,s}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[Ec.selection(r)]:dh}function Egt(t,e,n){let r=s2e(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):dh,n);if(!t.changes)return Ec.selection(r);let i=t.changes.map(e),s=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(s):s;return new Ec(i,Er.mapEffects(t.effects,e),o,t.startSelection.map(s),r)}const Agt=/^(input\.type|delete)($|\.)/;class jf{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new jf(this.done,this.undone):this}addChanges(e,n,r,i,s){let o=this.done,a=o[o.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!r||Agt.test(r))&&(!a.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,kgt(a.changes,e.changes))||r=="input.type.compose")?o=x7(o,o.length-1,i.minDepth,new Ec(e.changes.compose(a.changes),s2e(Er.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,dh)):o=x7(o,o.length,i.minDepth,e),new jf(o,dh,n,r)}addSelection(e,n,r,i){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:dh;return s.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&Cgt(s[s.length-1],e)?this:new jf(o2e(this.done,e),this.undone,n,r)}addMapping(e){return new jf(HN(this.done,e),HN(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let s=i[i.length-1],o=s.selectionsAfter[0]||n.selection;if(r&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:g$.of({side:e,rest:Tgt(i),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=i.length==1?dh:i.slice(0,i.length-1);return s.mapped&&(a=HN(a,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:g$.of({side:e,rest:a,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}jf.empty=new jf(dh,dh);const Pgt=[{key:"Mod-z",run:i2e,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:y$,preventDefault:!0},{linux:"Ctrl-Shift-z",run:y$,preventDefault:!0},{key:"Mod-u",run:wgt,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Sgt,preventDefault:!0}];function Fw(t,e){return dt.create(t.ranges.map(e),t.mainIndex)}function xp(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Hd({state:t,dispatch:e},n){let r=Fw(t.selection,n);return r.eq(t.selection,!0)?!1:(e(xp(t,r)),!0)}function lI(t,e){return dt.cursor(e?t.to:t.from)}function a2e(t,e){return Hd(t,n=>n.empty?t.moveByChar(n,e):lI(n,e))}function bl(t){return t.textDirectionAt(t.state.selection.main.head)==Ms.LTR}const l2e=t=>a2e(t,!bl(t)),c2e=t=>a2e(t,bl(t));function u2e(t,e){return Hd(t,n=>n.empty?t.moveByGroup(n,e):lI(n,e))}const Ogt=t=>u2e(t,!bl(t)),Igt=t=>u2e(t,bl(t));function Dgt(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function cI(t,e,n){let r=Ka(t).resolveInner(e.head),i=n?ti.closedBy:ti.openedBy;for(let l=e.head;;){let c=n?r.childAfter(l):r.childBefore(l);if(!c)break;Dgt(t,c,i)?r=c:l=n?c.to:c.from}let s=r.type.prop(i),o,a;return s&&(o=n?$f(t,r.from,1):$f(t,r.to,-1))&&o.matched?a=n?o.end.to:o.end.from:a=n?r.to:r.from,dt.cursor(a,n?-1:1)}const Mgt=t=>Hd(t,e=>cI(t.state,e,!bl(t))),Ngt=t=>Hd(t,e=>cI(t.state,e,bl(t)));function h2e(t,e){return Hd(t,n=>{if(!n.empty)return lI(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const d2e=t=>h2e(t,!1),f2e=t=>h2e(t,!0);function p2e(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let s of t.state.facet(Jt.scrollMargins)){let o=s(t);o?.top&&(n=Math.max(o?.top,n)),o?.bottom&&(r=Math.max(o?.bottom,r))}i=t.scrollDOM.clientHeight-n-r}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function m2e(t,e){let n=p2e(t),{state:r}=t,i=Fw(r.selection,o=>o.empty?t.moveVertically(o,e,n.height):lI(o,e));if(i.eq(r.selection))return!1;let s;if(n.selfScroll){let o=t.coordsAtPos(r.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,c=a.bottom-n.marginBottom;o&&o.top>l&&o.bottom<c&&(s=Jt.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(xp(r,i),{effects:s}),!0}const dre=t=>m2e(t,!1),b$=t=>m2e(t,!0);function x1(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let s=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;s&&e.head!=r.from+s&&(i=dt.cursor(r.from+s))}return i}const Rgt=t=>Hd(t,e=>x1(t,e,!0)),Lgt=t=>Hd(t,e=>x1(t,e,!1)),Bgt=t=>Hd(t,e=>x1(t,e,!bl(t))),Fgt=t=>Hd(t,e=>x1(t,e,bl(t))),$gt=t=>Hd(t,e=>dt.cursor(t.lineBlockAt(e.head).from,1)),jgt=t=>Hd(t,e=>dt.cursor(t.lineBlockAt(e.head).to,-1));function zgt(t,e,n){let r=!1,i=Fw(t.selection,s=>{let o=$f(t,s.head,-1)||$f(t,s.head,1)||s.head>0&&$f(t,s.head-1,1)||s.head<t.doc.length&&$f(t,s.head+1,-1);if(!o||!o.end)return s;r=!0;let a=o.start.from==s.head?o.end.to:o.end.from;return dt.cursor(a)});return r?(e(xp(t,i)),!0):!1}const Hgt=({state:t,dispatch:e})=>zgt(t,e);function Bh(t,e){let n=Fw(t.state.selection,r=>{let i=e(r);return dt.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(xp(t.state,n)),!0)}function g2e(t,e){return Bh(t,n=>t.moveByChar(n,e))}const y2e=t=>g2e(t,!bl(t)),b2e=t=>g2e(t,bl(t));function v2e(t,e){return Bh(t,n=>t.moveByGroup(n,e))}const Ugt=t=>v2e(t,!bl(t)),Vgt=t=>v2e(t,bl(t)),Wgt=t=>Bh(t,e=>cI(t.state,e,!bl(t))),qgt=t=>Bh(t,e=>cI(t.state,e,bl(t)));function x2e(t,e){return Bh(t,n=>t.moveVertically(n,e))}const w2e=t=>x2e(t,!1),S2e=t=>x2e(t,!0);function k2e(t,e){return Bh(t,n=>t.moveVertically(n,e,p2e(t).height))}const fre=t=>k2e(t,!1),pre=t=>k2e(t,!0),Ggt=t=>Bh(t,e=>x1(t,e,!0)),Kgt=t=>Bh(t,e=>x1(t,e,!1)),Ygt=t=>Bh(t,e=>x1(t,e,!bl(t))),Qgt=t=>Bh(t,e=>x1(t,e,bl(t))),Xgt=t=>Bh(t,e=>dt.cursor(t.lineBlockAt(e.head).from)),Jgt=t=>Bh(t,e=>dt.cursor(t.lineBlockAt(e.head).to)),mre=({state:t,dispatch:e})=>(e(xp(t,{anchor:0})),!0),gre=({state:t,dispatch:e})=>(e(xp(t,{anchor:t.doc.length})),!0),yre=({state:t,dispatch:e})=>(e(xp(t,{anchor:t.selection.main.anchor,head:0})),!0),bre=({state:t,dispatch:e})=>(e(xp(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),Zgt=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),e1t=({state:t,dispatch:e})=>{let n=uI(t).map(({from:r,to:i})=>dt.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:dt.create(n),userEvent:"select"})),!0},t1t=({state:t,dispatch:e})=>{let n=Fw(t.selection,r=>{let i=Ka(t),s=i.resolveStack(r.from,1);if(r.empty){let o=i.resolveStack(r.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:a}=o;if((a.from<r.from&&a.to>=r.to||a.to>r.to&&a.from<=r.from)&&o.next)return dt.range(a.to,a.from)}return r});return n.eq(t.selection)?!1:(e(xp(t,n)),!0)},n1t=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=dt.create([n.main]):n.main.empty||(r=dt.create([dt.cursor(n.main.head)])),r?(e(xp(t,r)),!0):!1};function P_(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(s=>{let{from:o,to:a}=s;if(o==a){let l=e(s);l<o?(n="delete.backward",l=cE(t,l,!1)):l>o&&(n="delete.forward",l=cE(t,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=cE(t,o,!1),a=cE(t,a,!0);return o==a?{range:s}:{changes:{from:o,to:a},range:dt.cursor(o,o<s.head?-1:1)}});return i.changes.empty?!1:(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?Jt.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function cE(t,e,n){if(t instanceof Jt)for(let r of t.state.facet(Jt.atomicRanges).map(i=>i(t)))r.between(e,e,(i,s)=>{i<e&&s>e&&(e=n?s:i)});return e}const C2e=(t,e,n)=>P_(t,r=>{let i=r.from,{state:s}=t,o=s.doc.lineAt(i),a,l;if(n&&!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(a=o.text.slice(0,i-o.from))){if(a[a.length-1]==" ")return i-1;let c=Bw(a,s.tabSize),u=c%y7(s)||y7(s);for(let h=0;h<u&&a[a.length-1-h]==" ";h++)i--;l=i}else l=qa(o.text,i-o.from,e,e)+o.from,l==i&&o.number!=(e?s.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,i-o.from))&&(l=qa(o.text,l-o.from,!1,!1)+o.from);return l}),v$=t=>C2e(t,!1,!0),_2e=t=>C2e(t,!0,!1),T2e=(t,e)=>P_(t,n=>{let r=n.head,{state:i}=t,s=i.doc.lineAt(r),o=i.charCategorizer(r);for(let a=null;;){if(r==(e?s.to:s.from)){r==n.head&&s.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=qa(s.text,r-s.from,e)+s.from,c=s.text.slice(Math.min(r,l)-s.from,Math.max(r,l)-s.from),u=o(c);if(a!=null&&u!=a)break;(c!=" "||r!=n.head)&&(a=u),r=l}return r}),E2e=t=>T2e(t,!1),r1t=t=>T2e(t,!0),i1t=t=>P_(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),s1t=t=>P_(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),o1t=t=>P_(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),a1t=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:mi.of(["",""])},range:dt.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},l1t=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let i=r.from,s=t.doc.lineAt(i),o=i==s.from?i-1:qa(s.text,i-s.from,!1)+s.from,a=i==s.to?i+1:qa(s.text,i-s.from,!0)+s.from;return{changes:{from:o,to:a,insert:t.doc.slice(i,a).append(t.doc.slice(o,i))},range:dt.cursor(a)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function uI(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),s=t.doc.lineAt(r.to);if(!r.empty&&r.to==s.from&&(s=t.doc.lineAt(r.to-1)),n>=i.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(r)}else e.push({from:i.from,to:s.to,ranges:[r]});n=s.number+1}return e}function A2e(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let s of uI(t)){if(n?s.to==t.doc.length:s.from==0)continue;let o=t.doc.lineAt(n?s.to+1:s.from-1),a=o.length+1;if(n){r.push({from:s.to,to:o.to},{from:s.from,insert:o.text+t.lineBreak});for(let l of s.ranges)i.push(dt.range(Math.min(t.doc.length,l.anchor+a),Math.min(t.doc.length,l.head+a)))}else{r.push({from:o.from,to:s.from},{from:s.to,insert:t.lineBreak+o.text});for(let l of s.ranges)i.push(dt.range(l.anchor-a,l.head-a))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:dt.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const c1t=({state:t,dispatch:e})=>A2e(t,e,!1),u1t=({state:t,dispatch:e})=>A2e(t,e,!0);function P2e(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of uI(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const h1t=({state:t,dispatch:e})=>P2e(t,e,!1),d1t=({state:t,dispatch:e})=>P2e(t,e,!0),f1t=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(uI(e).map(({from:i,to:s})=>(i>0?i--:s<e.doc.length&&s++,{from:i,to:s}))),r=Fw(e.selection,i=>{let s;if(t.lineWrapping){let o=t.lineBlockAt(i.head),a=t.coordsAtPos(i.head,i.assoc||1);a&&(s=o.bottom+t.documentTop-a.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,s)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function p1t(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Ka(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),s;return r&&i&&r.to<=e&&i.from>=e&&(s=r.type.prop(ti.closedBy))&&s.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const vre=O2e(!1),m1t=O2e(!0);function O2e(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:s,to:o}=i,a=e.doc.lineAt(s),l=!t&&s==o&&p1t(e,s);t&&(s=o=(o<=a.to?a:e.doc.lineAt(o)).to);let c=new sI(e,{simulateBreak:s,simulateDoubleBreak:!!l}),u=xW(c,s);for(u==null&&(u=Bw(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;l?{from:s,to:o}=l:s>a.from&&s<a.from+100&&!/\S/.test(a.text.slice(0,s))&&(s=a.from);let h=["",rC(e,u)];return l&&h.push(rC(e,c.lineIndent(a.from,-1))),{changes:{from:s,to:o,insert:mi.of(h)},range:dt.cursor(s+1+h[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function CW(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let a=t.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(e(a,i,r),n=a.number),o=a.to+1}let s=t.changes(i);return{changes:i,range:dt.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}const g1t=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new sI(t,{overrideIndentation:s=>{let o=n[s];return o??-1}}),i=CW(t,(s,o,a)=>{let l=xW(r,s.from);if(l==null)return;/\S/.test(s.text)||(l=0);let c=/^\s*/.exec(s.text)[0],u=rC(t,l);(c!=u||a.from<s.from+c.length)&&(n[s.from]=l,o.push({from:s.from,to:s.from+c.length,insert:u}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},I2e=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(CW(t,(n,r)=>{r.push({from:n.from,insert:t.facet(T_)})}),{userEvent:"input.indent"})),!0),D2e=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(CW(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let s=Bw(i,t.tabSize),o=0,a=rC(t,Math.max(0,s-y7(t)));for(;
665o<i.length&&o<a.length&&i.charCodeAt(o)==a.charCodeAt(o);)o++;r.push({from:n.from+o,to:n.from+i.length,insert:a.slice(o)})}),{userEvent:"delete.dedent"})),!0),y1t=t=>(t.setTabFocusMode(),!0),b1t=[{key:"Ctrl-b",run:l2e,shift:y2e,preventDefault:!0},{key:"Ctrl-f",run:c2e,shift:b2e},{key:"Ctrl-p",run:d2e,shift:w2e},{key:"Ctrl-n",run:f2e,shift:S2e},{key:"Ctrl-a",run:$gt,shift:Xgt},{key:"Ctrl-e",run:jgt,shift:Jgt},{key:"Ctrl-d",run:_2e},{key:"Ctrl-h",run:v$},{key:"Ctrl-k",run:i1t},{key:"Ctrl-Alt-h",run:E2e},{key:"Ctrl-o",run:a1t},{key:"Ctrl-t",run:l1t},{key:"Ctrl-v",run:b$}],v1t=[{key:"ArrowLeft",run:l2e,shift:y2e,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Ogt,shift:Ugt,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Bgt,shift:Ygt,preventDefault:!0},{key:"ArrowRight",run:c2e,shift:b2e,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Igt,shift:Vgt,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Fgt,shift:Qgt,preventDefault:!0},{key:"ArrowUp",run:d2e,shift:w2e,preventDefault:!0},{mac:"Cmd-ArrowUp",run:mre,shift:yre},{mac:"Ctrl-ArrowUp",run:dre,shift:fre},{key:"ArrowDown",run:f2e,shift:S2e,preventDefault:!0},{mac:"Cmd-ArrowDown",run:gre,shift:bre},{mac:"Ctrl-ArrowDown",run:b$,shift:pre},{key:"PageUp",run:dre,shift:fre},{key:"PageDown",run:b$,shift:pre},{key:"Home",run:Lgt,shift:Kgt,preventDefault:!0},{key:"Mod-Home",run:mre,shift:yre},{key:"End",run:Rgt,shift:Ggt,preventDefault:!0},{key:"Mod-End",run:gre,shift:bre},{key:"Enter",run:vre,shift:vre},{key:"Mod-a",run:Zgt},{key:"Backspace",run:v$,shift:v$},{key:"Delete",run:_2e},{key:"Mod-Backspace",mac:"Alt-Backspace",run:E2e},{key:"Mod-Delete",mac:"Alt-Delete",run:r1t},{mac:"Mod-Backspace",run:s1t},{mac:"Mod-Delete",run:o1t}].concat(b1t.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),x1t=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Mgt,shift:Wgt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Ngt,shift:qgt},{key:"Alt-ArrowUp",run:c1t},{key:"Shift-Alt-ArrowUp",run:h1t},{key:"Alt-ArrowDown",run:u1t},{key:"Shift-Alt-ArrowDown",run:d1t},{key:"Escape",run:n1t},{key:"Mod-Enter",run:m1t},{key:"Alt-l",mac:"Ctrl-l",run:e1t},{key:"Mod-i",run:t1t,preventDefault:!0},{key:"Mod-[",run:D2e},{key:"Mod-]",run:I2e},{key:"Mod-Alt-\\",run:g1t},{key:"Shift-Mod-k",run:f1t},{key:"Shift-Mod-\\",run:Hgt},{key:"Mod-/",run:hgt},{key:"Alt-A",run:fgt},{key:"Ctrl-m",mac:"Shift-Alt-m",run:y1t}].concat(v1t),w1t={key:"Tab",run:I2e,shift:D2e};function vs(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;e<arguments.length;e++)M2e(t,arguments[e]);return t}function M2e(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)M2e(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const xre=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class Xx{constructor(e,n,r=0,i=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=s?a=>s(xre(a)):xre,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return bc(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=eW(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=Df(e);let i=this.normalize(n);for(let s=0,o=r;;s++){let a=i.charCodeAt(s),l=this.match(a,o,this.bufferPos+this.bufferStart);if(s==i.length-1){if(l)return this.value=l,this;break}o==r&&s<n.length&&n.charCodeAt(s)==a&&o++}}}match(e,n,r){let i=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],a=!1;
665this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[s+1],to:r}:(this.matches[s]++,a=!0)),a||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:r}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(Xx.prototype[Symbol.iterator]=function(){return this});const N2e={from:-1,to:-1,match:/.*/.exec("")},_W="gm"+(/x/.unicode==null?"":"u");class R2e{constructor(e,n,r,i=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=N2e,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new L2e(e,n,r,i,s);this.re=new RegExp(n,_W+(r?.ignoreCase?"i":"")),this.test=r?.test,this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=w7(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=w7(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<i||r>this.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const UN=new WeakMap;class lx{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let i=UN.get(e);if(!i||i.from>=r||i.to<=n){let a=new lx(n,e.sliceString(n,r));return UN.set(e,a),a}if(i.from==n&&i.to==r)return i;let{text:s,from:o}=i;return o>n&&(s=e.sliceString(n,o)+s,o=n),i.to<r&&(s+=e.sliceString(i.to,r)),UN.set(e,new lx(o,s)),new lx(n,s.slice(n-o,r-o))}}class L2e{constructor(e,n,r,i,s){this.text=e,this.to=s,this.done=!1,this.value=N2e,this.matchPos=w7(e,i),this.re=new RegExp(n,_W+(r?.ignoreCase?"i":"")),this.test=r?.test,this.flat=lx.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=w7(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=lx.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(R2e.prototype[Symbol.iterator]=L2e.prototype[Symbol.iterator]=function(){return this});function S1t(t){try{return new RegExp(t,_W),!0}catch{return!1}}function w7(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}function x$(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=vs("input",{class:"cm-textfield",name:"line",value:e}),r=vs("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:S7.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),i())},onsubmit:s=>{s.preventDefault(),i()}},vs("label",t.state.phrase("Go to line"),": ",n)," ",vs("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:o}=t,a=o.doc.lineAt(o.selection.main.head),[,l,c,u,h]=s,d=u?+u.slice(1):0,p=c?+c:a.number;if(c&&h){let b=p/100;l&&(b=b*(l=="-"?-1:1)+a.number/o.doc.lines),p=Math.round(o.doc.lines*b)}else c&&l&&(p=p*(l=="-"?-1:1)+a.number);let g=o.doc.line(Math.max(1,Math.min(o.doc.lines,p))),y=dt.cursor(g.from+Math.max(0,Math.min(d,g.length)));t.dispatch({effects:[S7.of(!1),Jt.scrollIntoView(y.from,{y:"center"})],selection:y}),t.focus()}return{dom:r}}const S7=Er.define(),wre=Ia.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(S7)&&(t=n.value);return t},provide:t=>tC.from(t,e=>e?x$:null)}),k1t=t=>{let e=eC(t,x$);if(!e){let n=[S7.of(!0)];t.state.field(wre,!1)==null&&n.push(Er.appendConfig.of([wre,C1t])),t.dis
vendor: 4,553 bytes, lines 665-666
665patch({effects:n}),e=eC(t,x$)}return e&&e.dom.querySelector("input").select(),!0},C1t=Jt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),_1t={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},T1t=ln.define({combine(t){return bp(t,_1t,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function E1t(t){return[D1t,I1t]}const A1t=Mn.mark({class:"cm-selectionMatch"}),P1t=Mn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Sre(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Ws.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Ws.Word)}function O1t(t,e,n,r){return t(e.sliceDoc(n,n+1))==Ws.Word&&t(e.sliceDoc(r-1,r))==Ws.Word}const I1t=To.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(T1t),{state:n}=t,r=n.selection;if(r.ranges.length>1)return Mn.none;let i=r.main,s,o=null;if(i.empty){if(!e.highlightWordAroundCursor)return Mn.none;let l=n.wordAt(i.head);if(!l)return Mn.none;o=n.charCategorizer(i.head),s=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l<e.minSelectionLength||l>200)return Mn.none;if(e.wholeWords){if(s=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(Sre(o,n,i.from,i.to)&&O1t(o,n,i.from,i.to)))return Mn.none}else if(s=n.sliceDoc(i.from,i.to),!s)return Mn.none}let a=[];for(let l of t.visibleRanges){let c=new Xx(n.doc,s,l.from,l.to);for(;!c.next().done;){let{from:u,to:h}=c.value;if((!o||Sre(o,n,u,h))&&(i.empty&&u<=i.from&&h>=i.to?a.push(P1t.range(u,h)):(u>=i.to||h<=i.from)&&a.push(A1t.range(u,h)),a.length>e.maxMatches))return Mn.none}}return Mn.set(a)}},{decorations:t=>t.decorations}),D1t=Jt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),M1t=({state:t,dispatch:e})=>{let{selection:n}=t,r=dt.create(n.ranges.map(i=>t.wordAt(i.head)||dt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function N1t(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),s=i&&i.from==n.from&&i.to==n.to;for(let o=!1,a=new Xx(t.doc,e,r[r.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new Xx(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),o=!0}else{if(o&&r.some(l=>l.from==a.value.from))continue;if(s){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const R1t=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return M1t({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=r))return!1;let i=N1t(t,r);return i?(e(t.update({selection:t.selection.addRange(dt.range(i.from,i.to),!1),effects:Jt.scrollIntoView(i.to)})),!0):!1},$w=ln.define({combine(t){return bp(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new G1t(e),scrollToMatch:e=>Jt.scrollIntoView(e)})}});class B2e{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||S1t(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` 666`:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new $1t(this):new B1t(this)}getCursor(e,n=0,r){let i=e.doc?e:ui.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?c2(this,i,n,r):l2(this,i,n,r)}}class F2e{constructor(e){this.spec=e}}function l2(t,e,n,r){return new Xx(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?L1t(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function L1t(t,e){return(n,r,i,s)=>((s>n||s+i.length<r)&&(s=Math.max(0,n-2),i=t.sliceString(s,Math.min(t.length,r+2))),(e(k7(i,n-s))!=Ws.Word||e(C7(i,n-s))!=Ws.Word)&&(e(C7(i,r-s))!=Ws.Word||e(k7(i,r-s))!=Ws.Word))}class B1t extends F2e{constructor(e){super(e)}nextMatch(e,n,r){let i=l2(this.spec,e,r,e.doc.length).nextOverlapping();return i.done&&(i=l2(this.spec,e,0,n).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let s=Math.max(n,i-1e4-this.spec.unquoted.length),o=l2(this.spec,e,s,i),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;
vendor: 10,342 bytes, line 666
666if(s==n)return null;i-=1e4}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=l2(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let s=l2(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}}function c2(t,e,n,r){return new R2e(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?F1t(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function k7(t,e){return t.slice(qa(t,e,!1),e)}function C7(t,e){return t.slice(e,qa(t,e))}function F1t(t){return(e,n,r)=>!r[0].length||(t(k7(r.input,r.index))!=Ws.Word||t(C7(r.input,r.index))!=Ws.Word)&&(t(C7(r.input,r.index+r[0].length))!=Ws.Word||t(k7(r.input,r.index+r[0].length))!=Ws.Word)}class $1t extends F2e{nextMatch(e,n,r){let i=c2(this.spec,e,r,e.doc.length).next();return i.done&&(i=c2(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let s=Math.max(n,r-i*1e4),o=c2(this.spec,e,s,r),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==n||a.from>s+10))return a;if(s==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r<e.match.length?e.match[r]:n)}matchAll(e,n){let r=c2(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let s=c2(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}}const iC=Er.define(),TW=Er.define(),Dg=Ia.define({create(t){return new VN(w$(t).create(),null)},update(t,e){for(let n of e.effects)n.is(iC)?t=new VN(n.value.create(),t.panel):n.is(TW)&&(t=new VN(t.query,n.value?EW:null));return t},provide:t=>tC.from(t,e=>e.panel)});class VN{constructor(e,n){this.query=e,this.panel=n}}const j1t=Mn.mark({class:"cm-searchMatch"}),z1t=Mn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),H1t=To.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Dg))}update(t){let e=t.state.field(Dg);(e!=t.startState.field(Dg)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Mn.none;let{view:n}=this,r=new X0;for(let i=0,s=n.visibleRanges,o=s.length;i<o;i++){let{from:a,to:l}=s[i];for(;i<o-1&&l>s[i+1].from-2*250;)l=s[++i].to;t.highlight(n.state,a,l,(c,u)=>{let h=n.state.selection.ranges.some(d=>d.from==c&&d.to==u);r.add(c,u,h?z1t:j1t)})}return r.finish()}},{decorations:t=>t.decorations});function O_(t){return e=>{let n=e.state.field(Dg,!1);return n&&n.query.spec.valid?t(e,n):z2e(e)}}const _7=O_((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=dt.single(r.from,r.to),s=t.state.facet($w);return t.dispatch({selection:i,effects:[AW(t,r),s.scrollToMatch(i.main,t)],userEvent:"select.search"}),j2e(t),!0}),T7=O_((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let s=dt.single(i.from,i.to),o=t.state.facet($w);return t.dispatch({selection:s,effects:[AW(t,i),o.scrollToMatch(s.main,t)],userEvent:"select.search"}),j2e(t),!0}),U1t=O_((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:dt.create(n.map(r=>dt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),V1t=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,s=[],o=0;for(let a=new Xx(t.doc,t.sliceDoc(r,i));!a.next().done;){if(s.length>1e3)return!1;a.value.from==r&&(o=s.length),s.push(dt.range(a.value.from,a.value.to))}return e(t.update({selection:dt.create(s,o),userEvent:"select.search.matches"})),!0},kre=O_((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,r,r);if(!s)return!1;let o=[],a,l,c=[];if(s.from==r&&s.to==i&&(l=n.toText(e.getReplacement(s)),o.push({from:s.from,to:s.to,insert:l}),s=e.nextMatch(n,s.from,s.to),c.push(Jt.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),s){let u=o.length==0||o[0].from>=s.to?0:s.to-s.from-l.length;a=dt.single(s.from-u,s.to-u),c.push(AW(t,s)),c.push(n.facet($w).scrollToMatch(a.main,t))}return t.dispatch({changes:o,selection:a,effects:c,userEvent:"input.replace"}),!0}),W1t=O_((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:s,to:o}=i;return{from:s,to:o,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:Jt.announce.of(r),userEvent:"input.replace.all"}),!0});function EW(t){return t.state.facet($w).createPanel(t)}function w$(t,e){var n,r,i,s,o;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=t.facet($w);return new B2e({search:((n=e?.literal)!==null&&n!==void 0?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=e?.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(i=e?.literal)!==null&&i!==void 0?i:c.literal,regexp:(s=e?.regexp)!==null&&s!==void 0?s:c.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function $2e(t){let e=eC(t,EW);return e&&e.dom.querySelector("[main-field]")}function j2e(t){let e=$2e(t);e&&e==t.root.activeElement&&e.select()}const z2e=t=>{let e=t.state.field(Dg,!1);if(e&&e.panel){let n=$2e(t);if(n&&n!=t.root.activeElement){let r=w$(t.state,e.query.spec);r.valid&&t.dispatch({effects:iC.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[TW.of(!0),e?iC.of(w$(t.state,e.query.spec)):Er.appendConfig.of(Y1t)]});return!0},H2e=t=>{let e=t.state.field(Dg,!1);if(!e||!e.panel)return!1;let n=eC(t,EW);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:TW.of(!1)}),!0},q1t=[{key:"Mod-f",run:z2e,scope:"editor search-panel"},{key:"F3",run:_7,shift:T7,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:_7,shift:T7,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:H2e,scope:"editor search-panel"},{key:"Mod-Shift-l",run:V1t},{key:"Mod-Alt-g",run:k1t},{key:"Mod-d",run:R1t,preventDefault:!0}];class G1t{constructor(e){this.view=e;let n=this.query=e.state.field(Dg).query.spec;this.commit=this.commit.bind(this),this.searchField=vs("input",{value:n.search,placeholder:au(e,"Find"),"aria-label":au(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=vs("input",{value:n.replace,placeholder:au(e,"Replace"),"aria-label":au(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=vs("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=vs("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=vs("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,s,o){return vs("button",{class:"cm-button",name:i,onclick:s,type:"button"},o)}this.dom=vs("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>_7(e),[au(e,"next")]),r("prev",()=>T7(e),[au(e,"previous")]),r("select",()=>U1t(e),[au(e,"all")]),vs("label",null,[this.caseField,au(e,"match case")]),vs("label",null,[this.reField,au(e,"regexp")]),vs("label",null,[this.wordField,au(e,"by word")]),...e.state.readOnly?[]:[vs("br"),this.replaceField,r("replace",()=>kre(e),[au(e,"replace")]),r("replaceAll",()=>W1t(e),[au(e,"replace all")])],vs("button",{name:"close",onclick:()=>H2e(e),"aria-label":au(e,"close"),type:"button"},["Ã"])])}commit(){let e=new B2e({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:iC.of(e)}))}keydown(e){n0t(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?T7:_7)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),kre(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(iC)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet($w).top}}function au(t,e){return t.state.phrase(e)}const uE=30,hE=/[\s\.,:;?!]/;function AW(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,s=Math.max(r.from,e-uE),o=Math.min(i,n+uE),a=t.state.sliceDoc(s,o);if(s!=r.from){for(let l=0;l<uE;l++)if(!hE.test(a[l+1])&&hE.test(a[l])){a=a.slice(l);break}}if(o!=i){for(let l=a.length-1;l>a.length-uE;l--)if(!hE.test(a[l-1])&&hE.test(a[l])){a=a.slice(0,l);break}}return Jt.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${r.number}.`)}const K1t=Jt.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Y1t=[Dg,v1.low(H1t),K1t];class U2e{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=Ka(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}
vendor: 44,371 bytes, line 666
666matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),s=i.search(V2e(e,!1));return s<0?null:{from:r+s,to:this.pos,text:i.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,r){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function Cre(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Q1t(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let s=1;s<i.length;s++)n[i[s]]=!0}let r=Cre(e)+Cre(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function X1t(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:Q1t(e);return i=>{let s=i.matchBefore(r);return s||i.explicit?{from:s?s.from:i.pos,options:e,validFor:n}:null}}function _Gt(t,e){return n=>{for(let r=Ka(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(n)}}class _re{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function eb(t){return t.selection.main.from}function V2e(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",s=r[r.length-1]!="$";return!i&&!s?t:new RegExp(`${i?"^":""}(?:${r})${s?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const PW=yp.define();function J1t(t,e,n,r){let{main:i}=t.selection,s=n-i.from,o=r-i.from;return Object.assign(Object.assign({},t.changeByRange(a=>{if(a!=i&&n!=r&&t.sliceDoc(a.from+s,a.from+o)!=t.sliceDoc(n,r))return{range:a};let l=t.toText(e);return{changes:{from:a.from+s,to:r==i.from?a.to:a.from+o,insert:l},range:dt.cursor(a.from+s+l.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const Tre=new WeakMap;function Z1t(t){if(!Array.isArray(t))return t;let e=Tre.get(t);return e||Tre.set(t,e=X1t(t)),e}const E7=Er.define(),sC=Er.define();class eyt{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=bc(e,n),i=Df(r);this.chars.push(r);let s=e.slice(n,n+i),o=s.toUpperCase();this.folded.push(bc(o==s?s.toLowerCase():o,0)),n+=i}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:i,precise:s,byWord:o}=this;if(n.length==1){let S=bc(e,0),T=Df(S),D=T==e.length?0:-100;if(S!=n[0])if(S==r[0])D+=-200;else return null;return this.ret(D,[0,T])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,c=0;if(a<0){for(let S=0,T=Math.min(e.length,200);S<T&&c<l;){let D=bc(e,S);(D==n[c]||D==r[c])&&(i[c++]=S),S+=Df(D)}if(c<l)return null}let u=0,h=0,d=!1,p=0,g=-1,y=-1,b=/[a-z]/.test(e),w=!0;for(let S=0,T=Math.min(e.length,200),D=0;S<T&&h<l;){let E=bc(e,S);a<0&&(u<l&&E==n[u]&&(s[u++]=S),p<l&&(E==n[p]||E==r[p]?(p==0&&(g=S),y=S+1,p++):p=0));let O,P=E<255?E>=48&&E<=57||E>=97&&E<=122?2:E>=65&&E<=90?1:0:(O=eW(E))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!S||P==1&&b||D==0&&P!=0)&&(n[h]==E||r[h]==E&&(d=!0)?o[h++]=S:o.length&&(w=!1)),D=P,S+=Df(E)}return h==l&&o[0]==0&&w?this.result(-100+(d?-200:0),o,e):p==l&&g==0?this.ret(-200-e.length+(y==e.length?0:-100),[0,y]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==l?this.ret(-900-e.length,[g,y]):h==l?this.result(-100+(d?-200:0)+-700+(w?0:-1100),o,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],s=0;for(let o of n){let a=o+(this.astral?Df(bc(r,o)):1);s&&i[s-1]==o?i[s-1]=a:(i[s++]=o,i[s++]=a)}return this.ret(e-r.length,i)}}class tyt{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const Ta=ln.define({combine(t){return bp(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:nyt,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>Ere(e(r),n(r)),optionClass:(e,n)=>r=>Ere(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function Ere(t,e){return t?e?t+" "+e:t:e}function nyt(t,e,n,r,i,s){let o=t.textDirection==Ms.RTL,a=o,l=!1,c="top",u,h,d=e.left-i.left,p=i.right-e.right,g=r.right-r.left,y=r.bottom-r.top;if(a&&d<Math.min(g,p)?a=!1:!a&&p<Math.min(g,d)&&(a=!0),g<=(a?d:p))u=Math.max(i.top,Math.min(n.top,i.bottom-y))-e.top,h=Math.min(400,a?d:p);else{l=!0,h=Math.min(400,(o?e.right:i.right-e.left)-30);let S=i.bottom-e.bottom;S>=y||S>e.top?u=n.bottom-e.top:(c="bottom",u=e.bottom-n.top)}let b=(e.bottom-e.top)/s.offsetHeight,w=(e.right-e.left)/s.offsetWidth;return{style:`${c}: ${u/b}px; max-width: ${h/w}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":a?"left":"right")}}function ryt(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,s){let o=document.createElement("span");o.className="cm-completionLabel";let a=n.displayLabel||n.label,l=0;for(let c=0;c<s.length;){let u=s[c++],h=s[c++];u>l&&o.appendChild(document.createTextNode(a.slice(l,u)));let d=o.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(a.slice(u,h))),d.className="cm-completionMatchedText",l=h}return l<a.length&&o.appendChild(document.createTextNode(a.slice(l))),o},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function WN(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class iyt{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:s,selected:o}=i.open,a=e.state.facet(Ta);this.optionContent=ryt(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=WN(s.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=e.state.field(n).open;for(let u=l.target,h;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(h=/-(\d+)$/.exec(u.id))&&+h[1]<c.length){this.applyCompletion(e,c[+h[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(Ta).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:sC.of(null)})}),this.showOptions(s,i.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:s,selected:o,disabled:a}=r.open;(!i.open||i.open.options!=s)&&(this.range=WN(s.length,o,e.state.facet(Ta).maxRenderedOptions),this.showOptions(s,r.id)),this.updateSel(),a!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=WN(n.options.length,n.selected,this.view.state.facet(Ta).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let s=typeof i=="string"?document.createTextNode(i):i(r);if(!s)return;"then"in s?s.then(o=>{o&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(o,r)}).catch(o=>Tc(this.view.state,o,"completion info")):this.addInfoPane(s,r)}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:s}=e;r.appendChild(i),this.infoDestroy=s||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&oyt(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.documentElement;s={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return i.top>Math.min(s.bottom,n.bottom)-10||i.bottom<Math.max(s.top,n.top)+10?null:this.view.state.facet(Ta).positionInfo(this.view,n,i,r,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",o=>{o.target==i&&o.preventDefault()});let s=null;for(let o=r.from;o<r.to;o++){let{completion:a,match:l}=e[o],{section:c}=a;if(c){let d=typeof c=="string"?c:c.name;if(d!=s&&(o>r.from||r.from==0))if(s=d,typeof c!="string"&&c.header)i.appendChild(c.header(c));else{let p=i.appendChild(document.createElement("completion-section"));p.textContent=d}}const u=i.appendChild(document.createElement("li"));u.id=n+"-"+o,u.setAttribute("role","option");let h=this.optionClass(a);h&&(u.className=h);for(let d of this.optionContent){let p=d(a,this.view.state,this.view,l);p&&u.appendChild(p)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function syt(t,e){return n=>new iyt(n,t,e)}function oyt(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function Are(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function ayt(t,e){let n=[],r=null,i=c=>{n.push(c);let{section:u}=c.completion;if(u){r||(r=[]);let h=typeof u=="string"?u:u.name;r.some(d=>d.name==h)||r.push(typeof u=="string"?{name:h}:u)}},s=e.facet(Ta);for(let c of t)if(c.hasResult()){let u=c.result.getMatch;if(c.result.filter===!1)for(let h of c.result.options)i(new _re(h,c.source,u?u(h):[],1e9-n.length));else{let h=e.sliceDoc(c.from,c.to),d,p=s.filterStrict?new tyt(h):new eyt(h);for(let g of c.result.options)if(d=p.match(g.label)){let y=g.displayLabel?u?u(g,d.matched):[]:d.matched;i(new _re(g,c.source,y,d.score+(g.boost||0)))}}}if(r){let c=Object.create(null),u=0,h=(d,p)=>{var g,y;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((y=p.rank)!==null&&y!==void 0?y:1e9)||(d.name<p.name?-1:1)};for(let d of r.sort(h))u-=1e5,c[d.name]=u;for(let d of n){let{section:p}=d.completion;p&&(d.score+=c[typeof p=="string"?p:p.name])}}let o=[],a=null,l=s.compareCompletions;for(let c of n.sort((u,h)=>h.score-u.score||l(u.completion,h.completion))){let u=c.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(c):Are(c.completion)>Are(a)&&(o[o.length-1]=c),a=c.completion}return o}class R2{constructor(e,n,r,i,s,o){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=s,this.disabled=o}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new R2(this.options,Pre(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,s,o){if(i&&!o&&e.some(c=>c.isPending))return i.setDisabled();let a=ayt(e,n);if(!a.length)return i&&e.some(c=>c.isPending)?i.setDisabled():null;let l=n.facet(Ta).selectOnOpen?0:-1;if(i&&i.selected!=l&&i.selected!=-1){let c=i.options[i.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==c){l=u;break}}return new R2(a,Pre(r,l),{pos:e.reduce((c,u)=>u.hasResult()?Math.min(c,u.from):c,1e8),create:fyt,above:s.aboveCursor},i?i.timestamp:Date.now(),l,!1)}map(e){return new R2(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new R2(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class A7{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new A7(hyt,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(Ta),s=(r.override||n.languageDataAt("autocomplete",eb(n)).map(Z1t)).map(l=>(this.active.find(u=>u.source==l)||new fh(l,this.active.some(u=>u.state!=0)?1:0)).update(e,r));s.length==this.active.length&&s.every((l,c)=>l==this.active[c])&&(s=this.active);let o=this.open,a=e.effects.some(l=>l.is(OW));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!lyt(s,this.active)||a?o=R2.build(s,n,this.id,o,r,a):o&&o.disabled&&!s.some(l=>l.isPending)&&(o=null),!o&&s.every(l=>!l.isPending)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new fh(l.source,0):l));for(let l of e.effects)l.is(q2e)&&(o=o&&o.setSelected(l.value,this.id));return s==this.active&&o==this.open?this:new A7(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?cyt:uyt}}function lyt(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let i=n==t.length,s=r==e.length;if(i||s)return i==s;if(t[n++].result!=e[r++].result)return!1}}const cyt={"aria-autocomplete":"list"},uyt={};function Pre(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const hyt=[];function W2e(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(PW);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class fh{constructor(e,n,r=!1){this.source=e,this.state=n,this.explicit=r}hasResult(){return!1}get isPending(){return this.state==1}update(e,n){let r=W2e(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new fh(i.source,0)),r&4&&i.state==0&&(i=new fh(this.source,1)),i=i.updateFor(e,r);for(let s of e.effects)if(s.is(E7))i=new fh(i.source,1,s.value);else if(s.is(sC))i=new fh(i.source,0);else if(s.is(OW))for(let o of s.value)o.source==i.source&&(i=o);return i}updateFor(e,n){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(eb(e.state))}}class cx extends fh{constructor(e,n,r,i,s,o){super(e,3,n),this.limit=r,this.result=i,this.from=s,this.to=o}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=eb(e.state);if(a>o||!i||n&2&&(eb(e.startState)==this.from||a<this.limit))return new fh(this.source,n&4?1:0);let l=e.changes.mapPos(this.limit);return dyt(i.validFor,e.state,s,o)?new cx(this.source,this.explicit,l,i,s,o):i.update&&(i=i.update(i,s,o,new U2e(e.state,a,!1)))?new cx(this.source,this.explicit,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:eb(e.state)):new fh(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new cx(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new fh(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function dyt(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):V2e(t,!0).test(i)}const OW=Er.define({map(t,e){return t.map(n=>n.map(e))}}),q2e=Er.define(),xc=Ia.define({create(){return A7.start()},update(t,e){return t.update(e)},provide:t=>[mW.from(t,e=>e.tooltip),Jt.contentAttributes.from(t,e=>e.attrs)]});function IW(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(xc).active.find(i=>i.source==e.source);return r instanceof cx?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},J1t(t.state,n,r.from,r.to)),{annotations:PW.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const fyt=syt(xc,IW);function dE(t,e="option"){return n=>{let r=n.state.field(xc,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(Ta).interactionDelay)return!1;let i=1,s;e=="page"&&(s=Tve(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=r.open.options,a=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:o-1;return a<0?a=e=="page"?0:o-1:a>=o&&(a=e=="page"?o-1:0),n.dispatch({effects:q2e.of(a)}),!0}}const pyt=t=>{let e=t.state.field(xc,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(Ta).interactionDelay?!1:IW(t,e.open.options[e.open.selected])},Ore=t=>t.state.field(xc,!1)?(t.dispatch({effects:E7.of(!0)}),!0):!1,myt=t=>{let e=t.state.field(xc,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:sC.of(null)}),!0)};class gyt{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const yyt=50,byt=1e3,vyt=To.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(xc).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(xc),n=t.state.facet(Ta);if(!t.selectionSet&&!t.docChanged&&t.startState.field(xc)==e)return;let r=t.transactions.some(s=>{let o=W2e(s,n);return o&8||(s.selection||s.docChanged)&&!(o&3)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(r||o.context.abortOnDocChange&&t.docChanged||o.updates.length+t.transactions.length>yyt&&Date.now()-o.time>byt){for(let a of o.context.abortListeners)try{a()}catch(l){Tc(this.view.state,l)}o.context.abortListeners=null,this.running.splice(s--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(o=>o.is(E7)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.isPending&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let s of t.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(xc);for(let n of e.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ta).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=eb(e),r=new U2e(e,n,t.explicit,this.view),i=new gyt(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(s=>{i.context.aborted||(i.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:sC.of(null)}),Tc(this.view.state,s)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ta).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Ta),r=this.view.state.field(xc);for(let i=0;i<this.running.length;i++){let s=this.running[i];if(s.done===void 0)continue;if(this.running.splice(i--,1),s.done){let a=eb(s.updates.length?s.updates[0].startState:this.view.state),l=Math.min(a,s.done.from+(s.active.explicit?0:1)),c=new cx(s.active.source,s.active.explicit,l,s.done,s.done.from,(t=s.done.to)!==null&&t!==void 0?t:a);for(let u of s.updates)c=c.update(u,n);if(c.hasResult()){e.push(c);continue}}let o=r.active.find(a=>a.source==s.active.source);if(o&&o.isPending)if(s.done==null){let a=new fh(s.active.source,0);for(let l of s.updates)a=a.update(l,n);a.isPending||e.push(a)}else this.startQuery(o)}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:OW.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(xc,!1);if(e&&e.tooltip&&this.view.state.facet(Ta).closeOnBlur){let n=e.open&&Tve(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:sC.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:E7.of(!1)}),20),this.composing=0}}}),xyt=typeof navigator=="object"&&/Win/.test(navigator.platform),wyt=v1.highest(Jt.domEventHandlers({keydown(t,e){let n=e.state.field(xc,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(xyt&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(o=>o.source==r.source),s=r.completion.commitCharacters||i.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&IW(e,r),!1}})),G2e=Jt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'Æ'"}},".cm-completionIcon-class":{"&:after":{content:"'â'"}},".cm-completionIcon-interface":{"&:after":{content:"'â'"}},".cm-completionIcon-variable":{"&:after":{content:"'ð¥'"}},".cm-completionIcon-constant":{"&:after":{content:"'ð¶'"}},".cm-completionIcon-type":{"&:after":{content:"'ð¡'"}},".cm-completionIcon-enum":{"&:after":{content:"'âª'"}},".cm-completionIcon-property":{"&:after":{content:"'â¡'"}},".cm-completionIcon-keyword":{"&:after":{content:"'ðï¸'"}},".cm-completionIcon-namespace":{"&:after":{content:"'â¢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Syt{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class DW{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Va.TrackDel),r=e.mapPos(this.to,1,Va.TrackDel);return n==null||r==null?null:new DW(this.field,n,r)}}class MW{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],s=e.doc.lineAt(n),o=/^\s*/.exec(s.text)[0];for(let l of this.lines){if(r.length){let c=o,u=/^\t*/.exec(l)[0].length;for(let h=0;h<u;h++)c+=e.facet(T_);i.push(n+c.length-u),l=c+l.slice(u)}r.push(l),n+=l.length+1}let a=this.fieldPositions.map(l=>new DW(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:a}}static parse(e){let n=[],r=[],i=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=s[1]?+s[1]:null,l=s[2]||s[3]||"",c=-1,u=l.replace(/\\[{}]/g,h=>h[1]);for(let h=0;h<n.length;h++)(a!=null?n[h].seq==a:u&&n[h].name==u)&&(c=h);if(c<0){let h=0;for(;h<n.length&&(a==null||n[h].seq!=null&&n[h].seq<a);)h++;n.splice(h,0,{seq:a,name:u}),c=h;for(let d of i)d.field>=c&&d.field++}i.push(new Syt(c,r.length,s.index,s.index+u.length)),o=o.slice(0,s.index)+l+o.slice(s.index+s[0].length)}o=o.replace(/\\([{}])/g,(a,l,c)=>{for(let u of i)u.line==r.length&&u.from>c&&(u.from--,u.to--);return l}),r.push(o)}return new MW(r,i)}}let kyt=Mn.widget({widget:new class extends vp{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Cyt=Mn.mark({class:"cm-snippetField"});class jw{constructor(e,n){this.ranges=e,this.active=n,this.deco=Mn.set(e.map(r=>(r.from==r.to?kyt:Cyt).range(r.from,r.to)))}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i)}return new jw(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const I_=Er.define({map(t,e){return t&&t.map(e)}}),_yt=Er.define(),oC=Ia.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(I_))return n.value;if(n.is(_yt)&&t)return new jw(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Jt.decorations.from(t,e=>e?e.deco:Mn.none)});function NW(t,e){return dt.create(t.filter(n=>n.field==e).map(n=>dt.range(n.from,n.to)))}function Tyt(t){let e=MW.parse(t);return(n,r,i,s)=>{let{text:o,ranges:a}=e.instantiate(n.state,i),{main:l}=n.state.selection,c={changes:{from:i,to:s==l.from?l.to:s,insert:mi.of(o)},scrollIntoView:!0,annotations:r?[PW.of(r),Uo.userEvent.of("input.complete")]:void 0};if(a.length&&(c.selection=NW(a,0)),a.some(u=>u.field>0)){let u=new jw(a,0),h=c.effects=[I_.of(u)];n.state.field(oC,!1)===void 0&&h.push(Er.appendConfig.of([oC,Iyt,Dyt,G2e]))}n.dispatch(n.state.update(c))}}function K2e(t){return({state:e,dispatch:n})=>{let r=e.field(oC,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,s=t>0&&!r.ranges.some(o=>o.field==i+t);return n(e.update({selection:NW(r.ranges,i),effects:I_.of(s?null:new jw(r.ranges,i)),scrollIntoView:!0})),!0}}const Eyt=({state:t,dispatch:e})=>t.field(oC,!1)?(e(t.update({effects:I_.of(null)})),!0):!1,Ayt=K2e(1),Pyt=K2e(-1),Oyt=[{key:"Tab",run:Ayt,shift:Pyt},{key:"Escape",run:Eyt}],Ire=ln.define({combine(t){return t.length?t[0]:Oyt}}),Iyt=v1.highest(C_.compute([Ire],t=>t.facet(Ire)));function TGt(t,e){return Object.assign(Object.assign({},e),{apply:Tyt(t)})}const Dyt=Jt.domEventHandlers({mousedown(t,e){let n=e.state.field(oC,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(s=>s.from<=r&&s.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:NW(n.ranges,i.field),effects:I_.of(n.ranges.some(s=>s.field>i.field)?new jw(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),aC={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Ry=Er.define({map(t,e){let n=e.mapPos(t,-1,Va.TrackAfter);return n??void 0}}),RW=new class extends yb{};RW.startSide=1;RW.endSide=-1;const Y2e=Ia.define({create(){return wi.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(Ry)&&(t=t.update({add:[RW.range(n.value,n.value+1)]}));return t}});function Myt(){return[Ryt,Y2e]}const qN="()[]{}<>«»»«[]ï½ï½";function Q2e(t){for(let e=0;e<qN.length;e+=2)if(qN.charCodeAt(e)==t)return qN.charAt(e+1);return eW(t<128?t:t+1)}function X2e(t,e){return t.languageDataAt("closeBrackets",e)[0]||aC}const Nyt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Ryt=Jt.inputHandler.of((t,e,n,r)=>{if((Nyt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&Df(bc(r,0))==1||e!=i.from||n!=i.to)return!1;let s=Fyt(t.state,r);return s?(t.dispatch(s),!0):!1}),Lyt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=X2e(t,t.selection.main.head).brackets||aC.brackets,i=null,s=t.changeByRange(o=>{if(o.empty){let a=$yt(t.doc,o.head);for(let l of r)if(l==a&&hI(t.doc,o.head)==Q2e(bc(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:dt.cursor(o.head-l.length)}}return{range:i=o}});return i||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Byt=[{key:"Backspace",run:Lyt}];function Fyt(t,e){let n=X2e(t,t.selection.main.head),r=n.brackets||aC.brackets;for(let i of r){let s=Q2e(bc(i,0));if(e==i)return s==i?Hyt(t,i,r.indexOf(i+i+i)>-1,n):jyt(t,i,s,n.before||aC.before);if(e==s&&J2e(t,t.selection.main.from))return zyt(t,i,s)}return null}function J2e(t,e){let n=!1;return t.field(Y2e).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function hI(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Df(bc(n,0)))}function $yt(t,e){let n=t.sliceString(e-2,e);return Df(bc(n,0))==n.length?n:n.slice(1)}function jyt(t,e,n,r){let i=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:Ry.of(o.to+e.length),range:dt.range(o.anchor+e.length,o.head+e.length)};let a=hI(t.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:e+n,from:o.head},effects:Ry.of(o.head+e.length),range:dt.cursor(o.head+e.length)}:{range:i=o}});return i?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function zyt(t,e,n){let r=null,i=t.changeByRange(s=>s.empty&&hI(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:dt.cursor(s.head+n.length)}:r={range:s});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Hyt(t,e,n,r){let i=r.stringPrefixes||aC.stringPrefixes,s=null,o=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:Ry.of(a.to+e.length),range:dt.range(a.anchor+e.length,a.head+e.length)};let l=a.head,c=hI(t.doc,l),u;if(c==e){if(Dre(t,l))return{changes:{insert:e+e,from:l},effects:Ry.of(l+e.length),range:dt.cursor(l+e.length)};if(J2e(t,l)){let d=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+d.length,insert:d},range:dt.cursor(l+d.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(u=Mre(t,l-2*e.length,i))>-1&&Dre(t,u))return{changes:{insert:e+e+e+e,from:l},effects:Ry.of(l+e.length),range:dt.cursor(l+e.length)};if(t.charCategorizer(l)(c)!=Ws.Word&&Mre(t,l,i)>-1&&!Uyt(t,l,e,i))return{changes:{insert:e+e,from:l},effects:Ry.of(l+e.length),range:dt.cursor(l+e.length)}}return{range:s=a}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Dre(t,e){let n=Ka(t).resolveInner(e+1);return n.parent&&n.from==e}function Uyt(t,e,n,r){let i=Ka(t).resolveInner(e,-1),s=r.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<5;o++){let a=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+s)),l=a.indexOf(n);if(!l||l>-1&&r.indexOf(a.slice(0,l))>-1){let u=i.firstChild;for(;u&&u.from==i.from&&u.to-u.from>n.length+l;){if(t.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}let c=i.to==e&&i.parent;if(!c)break;i=c}return!1}function Mre(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Ws.Word)return e;for(let i of n){let s=e-i.length;if(t.sliceDoc(s,e)==i&&r(t.sliceDoc(s-1,s))!=Ws.Word)return s}return-1}function Vyt(t={}){return[wyt,xc,Ta.of(t),vyt,Wyt,G2e]}const Z2e=[{key:"Ctrl-Space",run:Ore},{mac:"Alt-`",run:Ore},{key:"Escape",run:myt},{key:"ArrowDown",run:dE(!0)},{key:"ArrowUp",run:dE(!1)},{key:"PageDown",run:dE(!0,"page")},{key:"PageUp",run:dE(!1,"page")},{key:"Enter",run:pyt}],Wyt=v1.highest(C_.computeN([Ta],t=>t.facet(Ta).defaultKeymap?[Z2e]:[]));class Nre{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class xy{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=r.facet(lC).markerFilter;i&&(e=i(e,r));let s=e.slice().sort((u,h)=>u.from-h.from||u.to-h.to),o=new X0,a=[],l=0;for(let u=0;;){let h=u==s.length?null:s[u];if(!h&&!a.length)break;let d,p;for(a.length?(d=l,p=a.reduce((y,b)=>Math.min(y,b.to),h&&h.from>d?h.from:1e8)):(d=h.from,p=h.to,a.push(h),u++);u<s.length;){let y=s[u];if(y.from==d&&(y.to>y.from||y.to==d))a.push(y),u++,p=Math.min(y.to,p);else{p=Math.min(y.from,p);break}}let g=ibt(a);if(a.some(y=>y.from==y.to||y.from==y.to-1&&r.doc.lineAt(y.from).to==y.from))o.add(d,d,Mn.widget({widget:new ebt(g),diagnostics:a.slice()}));else{let y=a.reduce((b,w)=>w.markClass?b+" "+w.markClass:b,"");o.add(d,p,Mn.mark({class:"cm-lintRange cm-lintRange-"+g+y,diagnostics:a.slice(),inclusiveEnd:a.some(b=>b.to>p)}))}l=p;for(let y=0;y<a.length;y++)a[y].to<=l&&a.splice(y--,1)}let c=o.finish();return new xy(c,n,Jx(c))}}function Jx(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!r)r=new Nre(i,s,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Nre(r.from,s,r.diagnostic)}}),r}function qyt(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(lC).hideOn(t,n,r);if(i!=null)return i;let s=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(o=>o.is(exe))||t.changes.touchesRange(s.from,Math.max(s.to,r)))}function Gyt(t,e){return t.field(Cu,!1)?e:e.concat(Er.appendConfig.of(sbt))}const exe=Er.define(),LW=Er.define(),txe=Er.define(),Cu=Ia.define({create(){return new xy(Mn.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);r=Jx(n,t.selected.diagnostic,s)||Jx(n,null,s)}!n.size&&i&&e.state.facet(lC).autoPanel&&(i=null),t=new xy(n,i,r)}for(let n of e.effects)if(n.is(exe)){let r=e.state.facet(lC).autoPanel?n.value.length?cC.open:null:t.panel;t=xy.init(n.value,r,e.state)}else n.is(LW)?t=new xy(t.diagnostics,n.value?cC.open:null,t.selected):n.is(txe)&&(t=new xy(t.diagnostics,t.panel,n.value));return t},provide:t=>[tC.from(t,e=>e.panel),Jt.decorations.from(t,e=>e.diagnostics)]}),Kyt=Mn.mark({class:"cm-lintRange cm-lintRange-active"});function Yyt(t,e,n){let{diagnostics:r}=t.state.field(Cu),i,s=-1,o=-1;r.between(e-(n<0?1:0),e+(n>0?1:0),(l,c,{spec:u})=>{if(e>=l&&e<=c&&(l==c||(e>l||n>0)&&(e<c||n<0)))return i=u.diagnostics,s=l,o=c,!1});let a=t.state.facet(lC).tooltipFilter;return i&&a&&(i=a(i,t.state)),i?{pos:s,end:o,above:t.state.doc.lineAt(s).to<o,create(){return{dom:Qyt(t,i)}}}:null}function Qyt(t,e){return vs("ul",{class:"cm-tooltip-lint"},e.map(n=>rxe(t,n,!1)))}const Xyt=t=>{let e=t.state.field(Cu,!1);(!e||!e.panel)&&t.dispatch({effects:Gyt(t.state,[LW.of(!0)])});let n=eC(t,cC.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Rre=t=>{let e=t.state.field(Cu,!1);return!e||!e.panel?!1:(t.dispatch({effects:LW.of(!1)}),!0)},Jyt=t=>{let e=t.state.field(Cu,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},Zyt=[{key:"Mod-Shift-m",run:Xyt,preventDefault:!0},{key:"F8",run:Jyt}],lC=ln.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},bp(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function nxe(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let i=n[r];if(/[a-zA-Z]/.test(i)&&!e.some(s=>s.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function rxe(t,e,n){var r;let i=n?nxe(e.actions):[];return vs("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},vs("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((s,o)=>{let a=!1,l=d=>{if(d.preventDefault(),a)return;a=!0;let p=Jx(t.state.field(Cu).diagnostics,e);p&&s.apply(t,p.from,p.to)},{name:c}=s,u=i[o]?c.indexOf(i[o]):-1,h=u<0?c:[c.slice(0,u),vs("u",c.slice(u,u+1)),c.slice(u+1)];return vs("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${i[o]})"`}.`},h)}),e.source&&vs("div",{class:"cm-diagnosticSource"},e.source))}class ebt extends vp{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return vs("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Lre{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=rxe(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class cC{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)Rre(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=nxe(s.actions);for(let a=0;a<o.length;a++)if(o[a].toUpperCase().charCodeAt(0)==i.keyCode){let l=Jx(this.view.state.field(Cu).diagnostics,s);l&&s.actions[a].apply(e,l.from,l.to)}}else return;i.preventDefault()},r=i=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(i.target)&&this.moveSelection(s)};this.list=vs("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=vs("div",{class:"cm-panel-lint"},this.list,vs("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Rre(this.view)},"Ã")),this.update()}get selectedIndex(){let e=this.view.state.field(Cu).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Cu),r=0,i=!1,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(a,l,{spec:c})=>{for(let u of c.diagnostics){if(o.has(u))continue;o.add(u);let h=-1,d;for(let p=r;p<this.items.length;p++)if(this.items[p].diagnostic==u){h=p;break}h<0?(d=new Lre(this.view,u),this.items.splice(r,0,d),i=!0):(d=this.items[h],h>r&&(this.items.splice(r,h-r),i=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),s=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new Lre(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let c=l.height/this.list.offsetHeight;a.top<l.top?this.list.scrollTop-=(l.top-a.top)/c:a.bottom>l.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Cu),r=Jx(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:txe.of(r)})}static open(e){return new cC(e)}}function tbt(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function fE(t){return tbt(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const nbt=Jt.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:fE("#d11")},".cm-lintRange-warning":{backgroundImage:fE("orange")},".cm-lintRange-info":{backgroundImage:fE("#999")},".cm-lintRange-hint":{backgroundImage:fE("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});
666function rbt(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function ibt(t){let e="hint",n=1;for(let r of t){let i=rbt(r.severity);i>n&&(n=i,e=r.severity)}return e}const sbt=[Cu,Jt.decorations.compute([Cu],t=>{let{selected:e,panel:n}=t.field(Cu);return!e||!n||e.from==e.to?Mn.none:Mn.set([Kyt.range(e.from,e.to)])}),V0t(Yyt,{hideOn:qyt}),nbt];var Bre=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,r=[];e.closeBracketsKeymap!==!1&&(r=r.concat(Byt)),e.defaultKeymap!==!1&&(r=r.concat(x1t)),e.searchKeymap!==!1&&(r=r.concat(q1t)),e.historyKeymap!==!1&&(r=r.concat(Pgt)),e.foldKeymap!==!1&&(r=r.concat(Umt)),e.completionKeymap!==!1&&(r=r.concat(Z2e)),e.lintKeymap!==!1&&(r=r.concat(Zyt));var i=[];return e.lineNumbers!==!1&&i.push(tmt()),e.highlightActiveLineGutter!==!1&&i.push(imt()),e.highlightSpecialChars!==!1&&i.push(v0t()),e.history!==!1&&i.push(xgt()),e.foldGutter!==!1&&i.push(Gmt()),e.drawSelection!==!1&&i.push(l0t()),e.dropCursor!==!1&&i.push(f0t()),e.allowMultipleSelections!==!1&&i.push(ui.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&i.push(Mmt()),e.syntaxHighlighting!==!1&&i.push(Xve(Xmt,{fallback:!0})),e.bracketMatching!==!1&&i.push(igt()),e.closeBrackets!==!1&&i.push(Myt()),e.autocompletion!==!1&&i.push(Vyt()),e.rectangularSelection!==!1&&i.push(M0t()),n!==!1&&i.push(L0t()),e.highlightActiveLine!==!1&&i.push(_0t()),e.highlightSelectionMatches!==!1&&i.push(E1t()),e.tabSize&&typeof e.tabSize=="number"&&i.push(T_.of(" ".repeat(e.tabSize))),i.concat([C_.of(r.flat())]).filter(Boolean)};const obt="#e5c07b",Fre="#e06c75",abt="#56b6c2",lbt="#ffffff",fA="#abb2bf",S$="#7d8799",cbt="#61afef",ubt="#98c379",$re="#d19a66",hbt="#c678dd",dbt="#21252b",jre="#2c313a",zre="#282c34",GN="#353a42",fbt="#3E4451",Hre="#528bff",pbt=Jt.theme({"&":{color:fA,backgroundColor:zre},".cm-content":{caretColor:Hre},".cm-cursor, .cm-dropCursor":{borderLeftColor:Hre},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:fbt},".cm-panels":{backgroundColor:dbt,color:fA},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:zre,color:S$,border:"none"},".cm-activeLineGutter":{backgroundColor:jre},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:GN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:GN,borderBottomColor:GN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:jre,color:fA}}},{dark:!0}),mbt=A_.define([{tag:Ze.keyword,color:hbt},{tag:[Ze.name,Ze.deleted,Ze.character,Ze.propertyName,Ze.macroName],color:Fre},{tag:[Ze.function(Ze.variableName),Ze.labelName],color:cbt},{tag:[Ze.color,Ze.constant(Ze.name),Ze.standard(Ze.name)],color:$re},{tag:[Ze.definition(Ze.name),Ze.separator],color:fA},{tag:[Ze.typeName,Ze.className,Ze.number,Ze.changed,Ze.annotation,Ze.modifier,Ze.self,Ze.namespace],color:obt},{tag:[Ze.operator,Ze.operatorKeyword,Ze.url,Ze.escape,Ze.regexp,Ze.link,Ze.special(Ze.string)],color:abt},{tag:[Ze.meta,Ze.comment],color:S$},{tag:Ze.strong,fontWeight:"bold"},{tag:Ze.emphasis,fontStyle:"italic"},{tag:Ze.strikethrough,textDecoration:"line-through"},{tag:Ze.link,color:S$,textDecoration:"underline"},{tag:Ze.heading,fontWeight:"bold",color:Fre},{tag:[Ze.atom,Ze.bool,Ze.special(Ze.variableName)],color:$re},{tag:[Ze.processingInstruction,Ze.string,Ze.inserted],color:ubt},{tag:Ze.invalid,color:lbt}]),gbt=[pbt,Xve(mbt)];var ybt=Jt.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),bbt=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:r=!0,readOnly:i=!1,theme:s="light",placeholder:o="",basicSetup:a=!0}=e,l=[];switch(n&&l.unshift(C_.of([w1t])),a&&(typeof a=="boolean"?l.unshift(Bre()):l.unshift(Bre(a))),o&&l.unshift(P0t(o)),s){case"light":l.push(ybt);break;case"dark":l.push(gbt);break;case"none":break;default:l.push(s);break}return r===!1&&l.push(Jt.editable.of(!1)),i&&l.push(ui.readOnly.of(!0)),[...l]}
666,vbt=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),Ure=yp.define(),xbt=[];function wbt(t){var{value:e,selection:n,onChange:r,onStatistics:i,onCreateEditor:s,onUpdate:o,extensions:a=xbt,autoFocus:l,theme:c="light",height:u=null,minHeight:h=null,maxHeight:d=null,width:p=null,minWidth:g=null,maxWidth:y=null,placeholder:b="",editable:w=!0,readOnly:S=!1,indentWithTab:T=!0,basicSetup:D=!0,root:E,initialState:O}=t,[P,$]=_.useState(),[W,H]=_.useState(),[K,Z]=_.useState(),oe=Jt.theme({"&":{height:u,minHeight:h,maxHeight:d,width:p,minWidth:g,maxWidth:y},"& .cm-scroller":{height:"100% !important"}}),te=Jt.updateListener.of(z=>{if(z.docChanged&&typeof r=="function"&&!z.transactions.some(B=>B.annotation(Ure))){var U=z.state.doc,G=U.toString();r(G,z)}i&&i(vbt(z))}),re=bbt({theme:c,editable:w,readOnly:S,placeholder:b,indentWithTab:T,basicSetup:D}),Y=[te,oe,...re];return o&&typeof o=="function"&&Y.push(Jt.updateListener.of(o)),Y=Y.concat(a),_.useLayoutEffect(()=>{if(P&&!K){var z={doc:e,selection:n,extensions:Y},U=O?ui.fromJSON(O.json,z,O.fields):ui.create(z);if(Z(U),!W){var G=new Jt({state:U,parent:P,root:E});H(G),s&&s(G,U)}}return()=>{W&&(Z(void 0),H(void 0))}},[P,K]),_.useEffect(()=>{t.container&&$(t.container)},[t.container]),_.useEffect(()=>()=>{W&&(W.destroy(),H(void 0))},[W]),_.useEffect(()=>{l&&W&&W.focus()},[l,W]),_.useEffect(()=>{W&&W.dispatch({effects:Er.reconfigure.of(Y)})},[c,a,u,h,d,p,g,y,b,w,S,T,D,r,o]),_.useEffect(()=>{if(e!==void 0){var z=W?W.state.doc.toString():"";W&&e!==z&&W.dispatch({changes:{from:0,to:z.length,insert:e||""},annotations:[Ure.of(!0)]})}},[e,W]),{state:K,setState:Z,view:W,setView:H,container:P,setContainer:$}}var Sbt=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ixe=_.forwardRef((t,e)=>{var{className:n,value:r="",selection:i,extensions:s=[],onChange:o,onStatistics:a,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:h="light",height:d,minHeight:p,maxHeight:g,width:y,minWidth:b,maxWidth:w,basicSetup:S,placeholder:T,indentWithTab:D,editable:E,readOnly:O,root:P,initialState:$}=t,W=rO(t,Sbt),H=_.useRef(null),{state:K,view:Z,container:oe,setContainer:te}=wbt({root:P,value:r,autoFocus:u,theme:h,height:d,minHeight:p,maxHeight:g,width:y,minWidth:b,maxWidth:w,basicSetup:S,placeholder:T,indentWithTab:D,editable:E,readOnly:O,selection:i,onChange:o,onStatistics:a,onCreateEditor:l,onUpdate:c,extensions:s,initialState:$});_.useImperativeHandle(e,()=>({editor:H.current,state:K,view:Z}),[H,oe,K,Z]);var re=_.useCallback(z=>{H.current=z,te(z)},[te]);if(typeof r!="string")throw new Error("value must be typeof string but got "+typeof r);var Y=typeof h=="string"?"cm-theme-"+h:"cm-theme";return x.jsx("div",Dd({ref:re,className:""+Y+(n?" "+n:"")},W))});ixe.displayName="CodeMirror";class zw{handlerUrl;method;matchPattern;constructor({handlerUrl:e,method:n,matchPattern:r}){this.handlerUrl=e,this.method=n,this.matchPattern=r instanceof RegExp?r:new RegExp(r)}isMatchingHandler(e){return this.matchPattern.test(e)}async executeHandler(e){const n=new URL(this.handlerUrl),r=new URLSearchParams;r.append("url",e),n.search=r.toString();const s=(await(await fetch(n,{method:this.method})).text()).trim();return`${`**Web Handler**: [${this.handlerUrl}](${this.handlerUrl})?url=[${e}](${e})`} 667 668`+s}static getMatchingHandler(e){return this.getRegisteredHandlers().find(n=>n.isMatchingHandler(e))??null}static getRegisteredHandlers(){return JSON.parse(localStorage.getItem(sxe)??"").map(n=>new zw(n))}isValidHandler(){return!!this.handlerUrl&&!!this.method&&!!this.matchPattern}}const pA=[new zw({handlerUrl:"https://taras-scrape2md.web.val.run/",method:"GET",matchPattern:/^https:\/\/\S+$/})],sxe="webHandlers",oxe=_.createContext({webHandlers:pA,registerHandlers:()=>{}}),kbt=()=>_.useContext(oxe),Cbt=t=>{const e=t.map(n=>({...n,matchPattern:n.matchPattern.source}));return JSON.stringify(e)},_bt=t=>JSON.parse(t).map(n=>new zw(n)),Tbt=({children:t})=>{const[e,n]=ZV(sxe,pA,{raw:!1,serializer:Cbt,deserializer:_bt}),[r,i]=_.useState(e||pA);_.useEffect(()=>{i(e||pA)},[]);const s=_.useCallback(a=>{i(a),n(a)},[n]),o={webHandlers:r,registerHandlers:s};return x.jsx(oxe.Provider,{value:o,children:t})},axe=_.createContext(void 0);function Ebt({children:t}){const{id:e}=PGe(),n=vg("find-chat",()=>e?Vs.find(e):void 0,[e]);return x.jsx(axe.Provider,{value:{chat:n},children:t})}function lxe(){const t=_.useContext(axe);if(t===void 0)throw new Error("useChat must be used within a ChatProvider");return t}function Abt({language:t,children:e,isLoading:n,onPrompt:r,code:i,codeDownloadFilename:s}){const{onCopy:o}=BP(i),{info:a}=Eo(),[l,c]=_.useState(!1),u=ott(t)&&r,{chat:h}=lxe(),d=_.useCallback(()=>{o(),a({title:"Copied to Clipboard",message:"Code was copied to your clipboard."})},[o,a]),p=_.useCallback(()=>{xd(i,s??"code.txt"),a({title:"Downloaded",message:"Code was downloaded as a file"})},[a,i,s]),g=_.useCallback(async()=>
668{if(r){c(!0);try{let{logs:S,ret:T}=await utt(i,t,h);if(typeof T=="string")!T.length||T[0]==="/"?T=cd(JSON.stringify(T),"js"):T.startsWith("<")&&(T=cd(T,"html"));else{const D=JSON.stringify(T);!D&&T&&typeof T.toString=="function"?T=cd(T.toString(),"js"):T===void 0?S?(T=cd(S,"logs"),S=void 0):T=cd(T,"js"):T=cd(D,"json")}S&&(S=cd(S,"logs"),T=S+` 669 670`+T),(T!==void 0||S)&&r(T)}catch(S){r(cd(S instanceof Error?`${S.name}: ${S.message} 671${S.stack}`:`${S}`))}finally{c(!1)}}},[r,i,t,h]),y=S=>URL.createObjectURL(new Blob([S],{type:"text/plain;charset=utf-8"})),b=_.useMemo(()=>n?"about:blank":y(i),[n,i]),w=_.useCallback(()=>{window.open(b,"_blank","noopener,noreferrer")},[b]);return x.jsxs(x.Fragment,{children:[x.jsxs(qt,{bg:ws("gray.200","gray.600"),alignItems:"center",justify:"space-between",align:"center",mb:2,children:[x.jsx(Sn,{pl:2,children:x.jsx(zr,{as:"code",fontSize:"xs",children:t})}),x.jsxs(qt,{pr:2,children:[u&&x.jsx(YC,{strategy:"fixed",children:x.jsx(QC,{as:Br,size:"sm","aria-label":"Run code",title:"Run code",icon:l?x.jsx(Pb,{size:"xs"}):x.jsx(klt,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost",isDisabled:n,onClick:g})}),x.jsx(Br,{size:"sm","aria-label":"Open Code in New Window",title:"Open Code in New Window",icon:x.jsx(Cye,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost",isDisabled:n,onClick:w}),x.jsx(Br,{size:"sm","aria-label":"Download code",title:"Download code",icon:x.jsx(VV,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost",onClick:p}),x.jsx(Br,{size:"sm","aria-label":"Copy to Clipboard",title:"Copy to Clipboard",icon:x.jsx(y_,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost",onClick:d})]})]}),e]})}const cxe=_.memo(Abt);var Vre={};class P7{constructor(e,n,r,i,s,o,a,l,c,u=0,h){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=h}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let i=e.parser.context;return new P7(e,[],n,r,r,0,[],0,i?new Wre(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,i=e&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(r-1)*3-(e&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let h=l?this.stack[l-1]:0,d=this.bufferBase+this.buffer.length-h;if(i<s.minRepeatTerm||e&131072){let p=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,p,d+4,!0)}if(e&262144)this.state=this.stack[l];else{let p=this.stack[l-3];this.state=s.getGoto(p,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(e,n,r,i=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(n==r)return;if(o.buffer[a-2]>=n){o.buffer[a-2]=r;return}}}if(!s||this.pos==r)this.buffer.push(e,n,r,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=e,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=i}}shift(e,n,r,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let s=e,{parser:o}=this.p;(i>this.pos||n<=o.maxNode)&&(this.pos=i,o.stateFlag(s,1)||(this.reducePos=i)),this.pushState(s,r),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(e,n,r,i){e&65536?this.reduce(e):this.shift(e,n,r,i)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),i=e.bufferBase+n;for(;e&&i==e.bufferBase;)e=e.parent;return new P7(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new Pbt(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let s=0,o;s<n.length;
vendor: 20,303 bytes, line 671
671s+=2)(o=n[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&i.push(n[s],o);if(this.stack.length<120)for(let s=0;i.length<8&&s<n.length;s+=2){let o=n[s+1];i.some((a,l)=>l&1&&a==o)||i.push(n[s],o)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let s=n[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[i],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!e.validAction(this.state,n)){let r=n>>19,i=n&65535,s=this.stack.length-r*3;if(s<0||e.getGoto(this.stack[s],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(i,s)=>{if(!n.includes(i))return n.push(i),e.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=r(o,s+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new Wre(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Wre{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class Pbt{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class O7{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new O7(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new O7(this.stack,this.pos,this.index)}}function n4(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r<t.length;){let s=0;for(;;){let o=t.charCodeAt(r++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}n?n[i++]=s:n=new e(s)}return n}class mA{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const qre=new mA;class Obt{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qre,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,i=this.rangeIndex,s=this.pos+e;for(;s<r.from;){if(!i)return null;let o=this.ranges[--i];s-=r.from-o.to,r=o}for(;n<0?s>r.to:s>=r.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-r.to,r=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(r=s,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=qre,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,n)))}return r}}class ux{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;uxe(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}ux.prototype.contextual=ux.prototype.fallback=ux.prototype.extend=!1;class Ibt{constructor(e,n,r){this.precTable=n,this.elseToken=r,this.data=typeof e=="string"?n4(e):e}token(e,n){let r=e.pos,i=0;for(;;){let s=e.next<0,o=e.resolveOffset(1,1);if(uxe(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||i++,o==null)break;e.reset(o,e.token)}i&&(e.reset(r,e.token),e.acceptToken(this.elseToken,i))}}Ibt.prototype.contextual=ux.prototype.fallback=ux.prototype.extend=!1;class dI{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function uxe(t,e,n,r,i,s){let o=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&t[o])!=0;){let c=t[o+1];for(let p=o+3;p<c;p+=2)if((t[p+1]&a)>0){let g=t[p];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||Dbt(g,e.token.value,i,s))){e.acceptToken(g);break}}let u=e.next,h=0,d=t[o+2];if(e.next<0&&d>h&&t[c+d*3-3]==65535){o=t[c+d*3-1];continue e}for(;h<d;){let p=h+d>>1,g=c+p+(p<<1),y=t[g],b=t[g+1]||65536;if(u<y)d=p;else if(u>=b)h=p+1;else{o=t[g+2],e.advance();continue e}}break}}function Gre(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function Dbt(t,e,n,r){let i=Gre(n,r,e);return i<0||Gre(n,r,t)<i}const lu=typeof process<"u"&&Vre&&/\bparse\b/.test(Vre.LOG);let KN=null;function Kre(t,e,n){let r=t.cursor(_a.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class Mbt{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Kre(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Kre(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=r.children[i],o=this.start[n]+r.positions[i];if(o>e)return this.nextStart=o,null;if(s instanceof Vo){if(o==e){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(ti.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[n]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+s.length}}}class Nbt{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new mA)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:s}=i,o=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<s.length;c++){if((1<<c&o)==0)continue;let u=s[c],h=this.tokens[c];if(!(r&&!u.fallback)&&((u.contextual||h.start!=e.pos||h.mask!=o||h.context!=a)&&(this.updateCachedToken(h,u,e),h.mask=o,h.context=a),h.lookAhead>h.end+25&&(l=Math.max(h.lookAhead,l)),h.value!=0)){let d=n;if(h.extended>-1&&(n=this.addActions(e,h.extended,h.end,n)),n=this.addActions(e,h.value,h.end,n),!u.extend&&(r=h,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!r&&e.pos==this.stream.end&&(r=new mA,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new mA,{pos:r,p:i}=e;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(e,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,e),r),e.value>-1){let{parser:s}=r.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let a=s.specializers[o](this.stream.read(e.start,e.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?e.value=a>>1:e.extended=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,n,r,i){for(let s=0;s<i;s+=3)if(this.actions[s]==e)return i;return this.actions[i++]=e,this.actions[i++]=n,this.actions[i++]=r,i}addActions(e,n,r,i){let{state:s}=e,{parser:o}=e.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(s,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=p0(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(p0(a,c+2),n,r,i));break}a[c]==n&&(i=this.putAction(p0(a,c+1),n,r,i))}return i}}class Rbt{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Obt(n,i),this.tokens=new Nbt(e,this.stream),this.topTerm=e.top[1];let{from:s}=i[0];this.stacks=[P7.start(this,e.top[0],s)],this.fragments=r.length&&this.stream.end-s>e.bufferLength*4?new Mbt(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,s;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let a=e[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,e))continue;{i||(i=[],s=[]),i.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!r.length){let o=i&&Fbt(i);if(o)return lu&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw lu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,r);if(o)return lu&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((a,l)=>l.score-a.score);r.length>o;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let a=r[o];for(let l=o+1;l<r.length;l++){let c=r[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,r){let i=e.pos,{parser:s}=this,o=lu?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,u=c?e.curContext.hash:0;for(let h=this.fragments.nodeAt(i);h;){let d=this.parser.nodeSet.types[h.type.id]==h.type?s.getGoto(e.state,h.type.id):-1;if(d>-1&&h.length&&(!c||(h.prop(ti.contextHash)||0)==u))return e.useNode(h,d),lu&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(h.type.id)})`),!0;if(!(h instanceof Vo)||h.children.length==0||h.positions[0]>0)break;let p=h.children[0];if(p instanceof Vo&&h.positions[0]==0)h=p;else break}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),lu&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let u=l[c++],h=l[c++],d=l[c++],p=c==l.length||!r,g=p?e:e.split(),y=this.tokens.mainToken;if(g.apply(u,h,y?y.start:g.pos,d),lu&&console.log(o+this.stackID(g)+` (via ${(u&65536)==0?"shift":`reduce of ${s.getName(u&65535)}`} for ${s.getName(h)} @ ${i}${g==e?"":", split"})`),p)return!0;g.pos>i?n.push(g):r.push(g)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return Yre(e,n),!0}}runRecovery(e,n,r){let i=null,s=!1;for(let o=0;o<e.length;o++){let a=e[o],l=n[o<<1],c=n[(o<<1)+1],u=lu?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),lu&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let h=a.split(),d=u;for(let p=0;h.forceReduce()&&p<10&&(lu&&console.log(d+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,r));p++)lu&&(d=this.stackID(h)+" -> ");for(let p of a.recoverByInsert(l))lu&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,r);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),lu&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Yre(a,r)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),Vo.build({buffer:O7.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(KN||(KN=new WeakMap)).get(e);return n||KN.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function Yre(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class Lbt{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}const YN=t=>t;class Bbt{constructor(e){this.start=e.start,this.shift=e.shift||YN,this.reduce=e.reduce||YN,this.reuse=e.reuse||YN,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class I7 extends Nve{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<e.repeatNodeCount;a++)n.push("");let r=Object.keys(e.topRules).map(a=>e.topRules[a][1]),i=[];for(let a=0;a<n.length;a++)i.push([]);function s(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=ti[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)s(u,l,a[c++]);else{let h=a[c+-u];for(let d=-u;d>0;d--)s(a[c++],l,h);c++}}}this.nodeSet=new gW(n.map((a,l)=>$c.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Ove;let o=n4(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(Qre),this.states=n4(e.states,Uint32Array),this.data=n4(e.stateData),this.goto=n4(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new ux(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let i=new Rbt(this,e,n,r);for(let s of this.wrappers)i=s(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let s=i[n+1];;){let o=i[s++],a=o&1,l=i[s++];if(a&&r)return l;for(let c=s+(o>>1);s<c;s++)if(i[s]==e)return l;if(a)return-1}}hasAction(e,n){let r=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(e,i?2:1),o;;s+=3){if((o=r[s])==65535)if(r[s+1]==1)o=r[s=p0(r,s+2)];else{if(r[s+1]==2)return p0(r,s+2);break}if(o==n||o==0)return p0(r,s+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),i=r?n(r):void 0;for(let s=this.stateSlot(e,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=p0(this.data,s+2);else break;i=n(p0(this.data,s+1))}return i}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;
vendor: 5,153 bytes, line 671
671r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=p0(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((s,o)=>o&1&&s==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(I7.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(s=>s.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let s=e.specializers.find(a=>a.from==r.external);if(!s)return r;let o=Object.assign(Object.assign({},r),{external:s.to});return n.specializers[i]=Qre(o),o})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let s of e.split(" ")){let o=n.indexOf(s);o>=0&&(r[o]=!0)}let i=null;for(let s=0;s<n.length;s++)if(!r[s])for(let o=this.dialects[n[s]],a;(a=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new Lbt(e,r,i)}static deserialize(e){return new I7(e)}}function p0(t,e){return t[e]|t[e+1]<<16}function Fbt(t){let e=null;for(let n of t){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function Qre(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}const u2=63,Xre=64,$bt=1,jbt=2,hxe=3,zbt=4,dxe=5,Hbt=6,Ubt=7,fxe=65,Vbt=66,Wbt=8,qbt=9,Gbt=10,Kbt=11,Ybt=12,pxe=13,Qbt=19,Xbt=20,Jbt=29,Zbt=33,evt=34,tvt=47,nvt=0,BW=1,k$=2,uC=3,C$=4;class wy{constructor(e,n,r){this.parent=e,this.depth=n,this.type=r,this.hash=(e?e.hash+e.hash<<8:0)+n+(n<<4)+r}}wy.top=new wy(null,-1,nvt);function V4(t,e){for(let n=0,r=e-t.pos-1;;r--,n++){let i=t.peek(r);if(em(i)||i==-1)return n}}function _$(t){return t==32||t==9}function em(t){return t==10||t==13}function mxe(t){return _$(t)||em(t)}function Ly(t){return t<0||mxe(t)}const rvt=new Bbt({start:wy.top,reduce(t,e){return t.type==uC&&(e==Xbt||e==evt)?t.parent:t},shift(t,e,n,r){if(e==hxe)return new wy(t,V4(r,r.pos),BW);if(e==fxe||e==dxe)return new wy(t,V4(r,r.pos),k$);if(e==u2)return t.parent;if(e==Qbt||e==Zbt)return new wy(t,0,uC);if(e==pxe&&t.type==C$)return t.parent;if(e==tvt){let i=/[1-9]/.exec(r.read(r.pos,n.pos));if(i)return new wy(t,t.depth+ +i[0],C$)}return t},hash(t){return t.hash}});function Zx(t,e,n=0){return t.peek(n)==e&&t.peek(n+1)==e&&t.peek(n+2)==e&&Ly(t.peek(n+3))}const ivt=new dI((t,e)=>{if(t.next==-1&&e.canShift(Xre))return t.acceptToken(Xre);let n=t.peek(-1);if((em(n)||n<0)&&e.context.type!=uC){if(Zx(t,45))if(e.canShift(u2))t.acceptToken(u2);else return t.acceptToken($bt,3);if(Zx(t,46))if(e.canShift(u2))t.acceptToken(u2);else return t.acceptToken(jbt,3);let r=0;for(;t.next==32;)r++,t.advance();(r<e.context.depth||r==e.context.depth&&e.context.type==BW&&(t.next!=45||!Ly(t.peek(1))))&&t.next!=-1&&!em(t.next)&&t.next!=35&&t.acceptToken(u2,-r)}},{contextual:!0}),svt=new dI((t,e)=>{if(e.context.type==uC){t.next==63&&(t.advance(),Ly(t.next)&&t.acceptToken(Ubt));return}if(t.next==45)t.advance(),Ly(t.next)&&t.acceptToken(e.context.type==BW&&e.context.depth==V4(t,t.pos-1)?zbt:hxe);else if(t.next==63)t.advance(),Ly(t.next)&&t.acceptToken(e.context.type==k$&&e.context.depth==V4(t,t.pos-1)?Hbt:dxe);else{let n=t.pos;for(;;)if(_$(t.next)){if(t.pos==n)return;t.advance()}else if(t.next==33)gxe(t);else if(t.next==38)T$(t);else if(t.next==42){T$(t);break}else if(t.next==39||t.next==34){if(FW(t,!0))break;return}else if(t.next==91||t.next==123){if(!avt(t))return;break}else{yxe(t,!0,!1,0);break}for(;_$(t.next);)t.advance();if(t.next==58){if(t.pos==n&&e.canShift(Jbt))return;let r=t.peek(1);Ly(r)&&t.acceptTokenTo(e.context.type==k$&&e.context.depth==V4(t,n)?Vbt:fxe,n)}}},{contextual:!0});function ovt(t){return t>32&&t<127&&t!=34&&t!=37&&t!=44&&t!=60&&t!=62&&t!=92&&t!=94&&t!=96&&t!=123&&t!=124&&t!=125}function Jre(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function Zre(t,e){return t.next==37?(t.advance(),Jre(t.next)&&t.advance(),Jre(t.next)&&t.advance(),!0):ovt(t.next)||e&&t.next==44?(t.advance(),!0):!1}function gxe(t){if(t.advance(),t.next==60){for(t.advance();;)if(!Zre(t,!0)){t.next==62&&t.advance();break}}else for(;Zre(t,!1););}function T$(t){for(t.advance();!Ly(t.next)&&D7(t.tag)!="f";)t.advance()}function FW(t,e){let n=t.next,r=!1,i=t.pos;for(t.advance();;){let s=t.next;if(s<0)break;if(t.advance(),s==n)if(s==39)if(t.next==39)t.advance();else break;else break;else if(s==92&&n==34)t.next>=0&&t.advance();
vendor: 5,073 bytes, line 671
671else if(em(s)){if(e)return!1;r=!0}else if(e&&t.pos>=i+1024)return!1}return!r}function avt(t){for(let e=[],n=t.pos+1024;;)if(t.next==91||t.next==123)e.push(t.next),t.advance();else if(t.next==39||t.next==34){if(!FW(t,!0))return!1}else if(t.next==93||t.next==125){if(e[e.length-1]!=t.next-2)return!1;if(e.pop(),t.advance(),!e.length)return!0}else{if(t.next<0||t.pos>n||em(t.next))return!1;t.advance()}}const lvt="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function D7(t){return t<33?"u":t>125?"s":lvt[t-33]}function QN(t,e){let n=D7(t);return n!="u"&&!(e&&n=="f")}function yxe(t,e,n,r){if(D7(t.next)=="s"||(t.next==63||t.next==58||t.next==45)&&QN(t.peek(1),n))t.advance();else return!1;let i=t.pos;for(;;){let s=t.next,o=0,a=r+1;for(;mxe(s);){if(em(s)){if(e)return!1;a=0}else a++;s=t.peek(++o)}if(!(s>=0&&(s==58?QN(t.peek(o+1),n):s==35?t.peek(o-1)!=32:QN(s,n)))||!n&&a<=r||a==0&&!n&&(Zx(t,45,o)||Zx(t,46,o)))break;if(e&&D7(s)=="f")return!1;for(let c=o;c>=0;c--)t.advance();if(e&&t.pos>i+1024)return!1}return!0}const cvt=new dI((t,e)=>{if(t.next==33)gxe(t),t.acceptToken(Ybt);else if(t.next==38||t.next==42){let n=t.next==38?Gbt:Kbt;T$(t),t.acceptToken(n)}else t.next==39||t.next==34?(FW(t,!1),t.acceptToken(qbt)):yxe(t,!1,e.context.type==uC,e.context.depth)&&t.acceptToken(Wbt)}),uvt=new dI((t,e)=>{let n=e.context.type==C$?e.context.depth:-1,r=t.pos;e:for(;;){let i=0,s=t.next;for(;s==32;)s=t.peek(++i);if(!i&&(Zx(t,45,i)||Zx(t,46,i))||!em(s)&&(n<0&&(n=Math.max(e.context.depth+1,i)),i<n))break;for(;;){if(t.next<0)break e;let o=em(t.next);if(t.advance(),o)continue e;r=t.pos}}t.acceptTokenTo(pxe,r)}),hvt=Rve({DirectiveName:Ze.keyword,DirectiveContent:Ze.attributeValue,"DirectiveEnd DocEnd":Ze.meta,QuotedLiteral:Ze.string,BlockLiteralHeader:Ze.special(Ze.string),BlockLiteralContent:Ze.content,Literal:Ze.content,"Key/Literal Key/QuotedLiteral":Ze.definition(Ze.propertyName),"Anchor Alias":Ze.labelName,Tag:Ze.typeName,Comment:Ze.lineComment,": , -":Ze.separator,"?":Ze.punctuation,"[ ]":Ze.squareBracket,"{ }":Ze.brace}),dvt=I7.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}
671P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"â DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:rvt,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[hvt],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[ivt,svt,cvt,uvt,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),fvt=m7.define({name:"yaml",parser:dvt.configure({props:[$ve.add({Stream:t=>{for(let e=t.node.resolve(t.pos,-1);e&&e.to>=t.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return t.baseIndentFor(e);if(e.name=="BlockLiteral")return t.baseIndentFor(e)+t.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return t.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let n=t.column(e.from,1);if(n==t.lineIndent(e.from,1))return n;if(e.to>t.pos)return null}}return null},FlowMapping:are({closing:"}"}),FlowSequence:are({closing:"]"})}),Hve.add({"FlowMapping FlowSequence":Rmt,"Item Pair BlockLiteral":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function pvt(){return new Cmt(fvt)}function mvt(){const{webHandlers:t,registerHandlers:e}=kbt(),{success:n,error:r}=Eo(),i=_.useCallback(p=>`##################################################################### 672## You can configure "match patterns" for certain types 673## of URLs, that send an HTTP request to your 674## configured "handler url". 675## Various options can be set to customize the 676## the type of request that is sent. 677## 678## Supported Options 679## 680## - handlerUrl: The web url of the service, 681## you want to send a request to. 682## e.g. 'https://taras-scrape2md.web.val.run/' 683## method: The HTTP method type of the request 684## to be sent. 685## matchPattern: A regular expression to execute the web handler, 686## if your prompt text is a match. 687## The match patterns are evaluated in the order 688## of your Web Handler definitions. 689##################################################################### 690 691${xZ.stringify(p.map(b=>({...b,matchPattern:b.matchPattern.source})))} 692## Example: 693# - handlerUrl: https://taras-scrape2md.web.val.run/ 694# method: GET 695# matchPattern: ^https:\\/\\/\\S*$ 696`,[]),[s,o]=_.useState(i(t));_.useEffect(()=>{o(i(t))},[i,t]);const a=_.useCallback(p=>{o(p)},[o]),l=_.useCallback(()=>{try{const p=xZ.parse(s).map(g=>new zw(g));if(p.some(g=>!g.isValidHandler()))throw new Error("Invalid Handler Configuration");e(p),n({title:"Saved",message:"Successfully updated Web Handlers configuration"})}catch{r({title:"Failed to save Handler Config",message:"Please enter valid YAML configuration"})}},[r,e,n,s]),c="WebHandlersConfig.yaml",{colorMode:u}=lm(),h="350px",d=gp();return x.jsxs(Nu,{gap:4,my:3,children:[x.jsx(zr,{textAlign:d?"justify":"start",children:"If you want to extend ChatCraft's default URL handling by adding your own external services, you are at the right place ð"}),x.jsx(Qf,{size:"md",width:"100%",fontWeight:"normal",children:"Register Handlers"}),x.jsx(Sn,{w:"100%",border:"1px",borderRadius:"5px",borderColor:"gray.200",bg
696:"gray.50",_dark:{bg:"gray.800",borderColor:"gray.600"},pb:1,minHeight:h,children:x.jsx(cxe,{language:"yaml",code:s,codeDownloadFilename:c,isLoading:!1,children:x.jsx(ixe,{value:s,extensions:[pvt()],theme:u,height:h,onChange:a,style:{fontSize:"16px"}})})}),x.jsx(Yr,{size:"sm",alignSelf:"flex-end",rightIcon:x.jsx(ldt,{}),onClick:l,children:"Save"})]})}function gvt(){const[t,e]=_.useState(J8()),{settings:n,setSettings:r}=Ks(),i=Yht(a=>{r({...n,customSystemPrompt:a})},250),s=a=>{e(a),i(a)},o=()=>{r({...n,customSystemPrompt:void 0}),e(J8())};return x.jsxs(Nu,{gap:4,my:3,children:[x.jsx(zr,{children:"The default system prompt is used as the first message in every chat. It provides the LLM important context, behavioral cues, and expectations about responses and desired response formats."}),x.jsx(zr,{as:"em",fontSize:"sm",children:"NOTE: changes to the default system prompt will take effect in new chats, but won't affect existing ones."}),x.jsx(Qf,{size:"md",width:"100%",fontWeight:"normal",children:"Default System Prompt"}),x.jsx(as,{children:x.jsx(JC,{autoFocus:!0,variant:"filled",rows:16,value:t,onChange:a=>s(a.target.value)})}),x.jsx(qt,{w:"100%",justifyContent:"flex-end",children:x.jsx(Cd,{hasArrow:!0,placement:"left",label:"Reset to the default ChatCraft system prompt",children:x.jsx(Yr,{size:"sm",colorScheme:"red",onClick:()=>o(),children:"Reset"})})})]})}function yvt(){const{settings:t,setSettings:e}=Ks();return x.jsxs(Nu,{gap:6,my:3,children:[x.jsxs(as,{children:[x.jsxs(Ho,{children:["When writing a prompt, press ",x.jsx(bd,{children:"Enter"})," to..."]}),x.jsx(Mfe,{value:t.enterBehaviour,onChange:n=>e({...t,enterBehaviour:n}),children:x.jsxs(Ak,{children:[x.jsx(dB,{value:"send",children:"Send the message"}),x.jsxs(dB,{value:"newline",children:["Start a new line (use ",zO()?x.jsx(bd,{children:"Command â"}):x.jsx(bd,{children:"Ctrl"})," +",x.jsx(bd,{children:"Enter"})," to send)"]})]})})]}),x.jsx(as,{children:x.jsx(tO,{isChecked:t.countTokens,onChange:n=>e({...t,countTokens:n.target.checked}),children:"Track and Display Token Count and Cost"})}),x.jsxs(as,{as:"fieldset",children:[x.jsx(Ho,{as:"legend",children:"Image Compression"}),x.jsxs(Ak,{children:[x.jsx(Sn,{px:"6",children:x.jsxs(as,{children:[x.jsxs(Ho,{children:["Maximum file size after compression: ",t.maxCompressedFileSizeMB," (MB)"]}),x.jsxs(A4,{id:"max-compressed-file-size",value:t.maxCompressedFileSizeMB,onChange:n=>e({...t,maxCompressedFileSizeMB:n}),min:1,max:20,step:1,children:[x.jsx(O4,{children:x.jsx(I4,{})}),x.jsx(P4,{})]}),x.jsx(md,{children:"Maximum file size must be between 1 and 20 MB."}),x.jsx(pc,{children:"After compression, each attached image will be under your chosen maximum file size (1-20 MB)."})]})}),x.jsx(Sn,{px:"6",children:x.jsxs(as,{children:[x.jsxs(Ho,{children:["Maximum image dimension: ",t.maxImageDimension," (px)"]}),x.jsxs(A4,{id:"max-image-dimension",value:t.maxImageDimension,onChange:n=>e({...t,maxImageDimension:n}),min:16,max:2048,step:16,children:[x.jsx(O4,{children:x.jsx(I4,{})}),x.jsx(P4,{})]}),x.jsx(md,{children:"Maximum Image dimension must be between 16 and 2048"}),x.jsx(pc,{children:"Your compressed image's maximum width or height will be within the dimension you choose (16-2048 pixels)."})]})}),x.jsx(Sn,{px:"6",children:x.jsxs(as,{children:[x.jsxs(Ho,{children:["Compression factor: ",t.compressionFactor]}),x.jsxs(A4,{id:"compression-factor",value:t.compressionFactor,onChange:n=>e({...t,compressionFactor:n}),min:.1,max:1,step:.1,children:[x.jsx(O4,{children:x.jsx(I4,{})}),x.jsx(P4,{})]}),x.jsx(md,{children:"Compression factor must be between 0.1 and 1.0"}),x.jsx(pc,{children:"Set the maximum file size based on the original size multiplied by the factor you choose (0.1-1.0)."})]})})]})]})]})}async function eie(){return navigator.storage?.persisted?await navigator.storage.persisted():!1}function bvt(){const[t,e]=_.useState(!1),{info:n,error:r}=Eo(),i=_.useRef(null);_.useEffect(()=>{eie().then(c=>e(c)).catch(console.error)},[]);async function s(){if(navigator.storage?.persist){await navigator.storage.persist();const c=await eie();e(c)}}const o=_.useCallback(async function(){const{exportDB:c}=await ge(async()=>{const{exportDB:h}=await import("./dexie-export-import-DI4rcUzA.js");return{exportDB:h}},[]),u=await c(vr);xd(u,"chatcraft-db.json","application/json"),n({title:"Downloaded",message:"Message was downloaded as a file"})},[n]),a=_.useCallback(c=>{const u=c.target.files?.[0];if(u){const h=new FileReader;h.onloadend=()=>{const d=new Blob([new Uint8Array(h.result)]);ge(async()=>{const{importDB:p}=await import("./dexie-export-import-DI4rcUzA.js");return{importDB:p}},[]).then(({importDB:p})=>p(d)).then(()=>{n({title:"Database Import",message:"Database imported successfully. You may need to refresh."})}).catch(p=>{console.warn("Error importing db",p),r({title:"Database Import",message:"Unable to import database. See Console for more details."})})},h.readAsArrayBuffer(u)}},[r,n]),l=_.useCallback(function(){i.current&&i.current.click()},[i]);return x.jsx(Sn,{my:3,children:x.jsxs(Nu,{gap:4,children:[x.jsx(as,{children:x.jsxs(qt,{width:"100%",flexDirection:"column",mb:2,children:[x.jsxs(qt,{justify:"space-between",align:"center",children:[x.jsxs(Ho,{children:["Offline database is ",t?"persisted":"not persisted"]}),x.jsx(Yr,{size:"sm",onClick:()=>s(),isDisabled:t,variant:"outline",children:"Persist"})]}),x.jsxs(pc,{children:["Persisted databases use the"," ",x.jsx(bh,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Storage_API",textDecoration:"underline",target:"_blank",rel:"noopener noreferrer",children:"Storage API"})," ","and are retained by the browser as long as possible. See"," ",x.jsx(bh,{href:"https://dexie.org/docs/ExportImport/dexie-export-import",textDecoration:"underline",target:"_blank",rel:"noopener noreferrer",children:"docs"})," ","for database export details."]})]})}),x.jsx(wk,{}),x.jsx(as,{children:x.jsxs(qt,{justify:"space-between",align:"center",children:[x.jsx(Ho,{children:"Export database to JSON file"}),x.jsx(Yr,{size:"sm",onClick:()=>o(),children:"Export"})]})}),x.jsx(wk,{}),x.jsx(as,{children:x.jsxs(qt,{justify:"space-between",align:"center",children:[x.jsx(Ho,{children:"Import database from JSON file"}),x.jsx(Yr,{size:"sm",onClick:()=>l(),children:"Import"}),x.jsx(fl,{type:"file",ref:i,onChange:a,style:{display:"none"}})]})})]})})}function bxe({isOpen:t,onClose:e,finalFocusRef:n}){const r=lm().colorMode==="dark",[i,s]=_.useState({name:"Models",icon:qte}),o=[{name:"Models",icon:qte},{name:"System Prompt",icon:Slt},{name:"Web Handlers",icon:cdt},{name:"Customization",icon:hdt},{name:"Database",icon:sdt}],a=g=>{s(g)},l=g=>i.name!==g.name?{bg:r?"gray.600":"gray.200"}:{bg:r?"blue.200":"blue.500"},c=g=>i.name===g.name?r?"black":"white":"inherit",u=g=>i.name===g.name?r?"blue.200":"blue.500":"inherit",[h]=Zde("(max-width: 600px)"),d=()=>x.jsx(PH,{allowToggle:!0,children:x.jsxs(C4,{px:"0.25rem",py:"0.75rem",children:[x.jsxs(W2,{pl:"1.25rem",justifyContent:"space-between",_hover:{bg:r?"grey.500":"white"},children:[x.jsxs(qt,{alignItems:"center",children:[x.jsx(Sn,{mr:4,children:x.jsx(i.icon,{})}),i.name]}),x.jsx(k4,{boxSize:"1.5rem"})]}),x.jsx(_4,{pb:"0.25rem",children:x.jsx(_k,{spacing:1,children:o.map((g,y)=>x.jsx(sB,{cursor:"pointer",p:.75,children:x.jsx(W2,{borderRadius:"md",_hover:l(g),color:c(g),bg:u(g),onClick:()=>a(g),children:x.jsxs(qt,{alignItems:"center",children:[x.jsx(Sn,{mr:4,children:x.jsx(g.icon,{})}),g.name]})})},y))})})]})}),p=()=>x.jsx(Sn,{p:4,pr:"0",fontSize:"m",minWidth:"14rem",children:x.jsx(_k,{spacing:1,children:o.map((g,y)=>x.jsx(sB,{cursor:"pointer",p:.75,children:x.jsx(Yr,{borderRadius:"md",fontWeight:"400",width:"100%",justifyContent:"left",_hover:l(g),color:c(g),bg:u(g),onClick:()=>a(g),_active:{bg:r?"grey.500":"grey.200"},children:x.jsxs(qt,{alignItems:"center",children:[x.jsx(Sn,{mr:4,children:x.jsx(g.icon,{})}),g.name]})})},y))})});return x.jsxs(lb,{isOpen:t,onClose:e,size:h?"full":"xl",finalFocusRef:n,scrollBehavior:"inside",allowPinchZoom:!0,blockScrollOnMount:!1,children:[x.jsx(hb,{}),x.jsxs(Ix,{top:h?"0":"-2rem",maxWidth:"54rem",maxHeight:"90vh",children:[x.jsxs(qt,{alignItems:"center",justifyContent:"space-between",width:"100%",children:[x.jsx(Dx,{whiteSpace:"nowrap",children:"User Settings"}),x.jsx(ub,{position:"relative",top:0,right:0,mx:"1rem"})]}),!h&&x.jsx(wk,{}),x.jsx(cb,{p:0,display:"flex",h:"95vh",children:x.jsxs(qt,{flexDirection:h?"column":"row",w:"100%",children:[h?x.jsx(d,{}):x.jsx(p,{}),x.jsxs(Sn,{overflowY:"auto",px:8,py:3,children:[i.name==="Models"&&x.jsx(rft,{isOpen:t}),i.name==="System Prompt"&&x.jsx(gvt,{}),i.name==="Web Handlers"&&x.jsx(mvt,{}),i.name==="Customization"&&x.jsx(yvt,{}),i.name==="Database"&&x.jsx(bvt,{})]})]})})]})]})}function $W({chatId:t,inputPromptRef:e,searchText:n,onToggleSidebar:r}){const{toggleColorMode:i}=lm(),{isOpen:s,onOpen:o,onClose:a}=Id(),{user:l,login:c,logout:u}=Lw(),h=_.useCallback(p=>{l?u(t):c(p,t)},[t,l,c,u]),d=gp();return x.jsxs(qt,{w:"100%",h:"3rem",gap:3,bg:ws("white","gray.700"),justify:"space-between",align:"center",borderBottom:"2px",borderColor:ws("gray.50","gray.600"),children:[x.jsxs(qt,{pl:1,align:"center",gap:2,children:[x.jsx(Br,{fontSize:"1.5rem",icon:x.jsx(ilt,{}),variant:"ghost","aria-label":"Toggle Sidebar Menu",title:"Toggle Sidebar Menu",onClick:r}),x.jsx(zr,{fontWeight:"bold",fontSize:"1.125rem",color:ws("blue.600","blue.200"),children:x.jsx(bh,{href:"/",_hover:{textDecoration:"none",color:ws("blue.400","blue.100")},children:"<ChatCraft />"})})]}),x.jsx(Sn,{flex:1,maxW:"500px",children:!d&&x.jsx(cU,{action:"/s",method:"get",children:x.jsxs(Kf,{size:"sm",variant:"outline",children:[x.jsx(fl,{fontSize:"1rem",type:"search",name:"q",defaultValue:n,borderRadius:4,isRequired:!0,placeholder:"Search chat history"}),x.jsx(WC,{children:x.jsx(Br,{size:"sm",height:"2rem","aria-label":"Search",variant:"ghost",icon:x.jsx(YO,{}),type:"submit"})})]})})}),x.jsxs(qt,{pr:2,alignItems:"center",children:[x.jsx(Br,{fontSize:"1.25rem","aria-label":ws("Switch to Dark Mode","Switch to Light Mode"),title:ws("Switch to Dark Mode","Switch to Light Mode"),icon:ws(x.jsx(slt,{}),x.jsx(olt,{})),variant:"ghost",onClick:i}),x.jsx(Sn,{zIndex:2,children:x.jsxs(YC,{children:[x.jsx(QC,{as:Br,"aria-label":"User Settings",title:"User Settings",icon:l?x.jsx(kd,{size:"xs",src:l.avatarUrl,title:l.username}
vendor: 5,507 bytes, line 696
696):x.jsx(kd,{size:"xs",bg:"gray.500",borderColor:"gray.400",_dark:{bg:"gray.600",borderColor:"gray.500"},showBorder:!0}),variant:"ghost"}),x.jsxs(aO,{children:[x.jsxs(mg,{onClick:o,children:[x.jsx(gF,{}),x.jsx(zr,{ml:2,children:"Settings..."})]}),l?x.jsxs(mg,{onClick:()=>{h("")},children:[x.jsx(Alt,{}),x.jsx(zr,{ml:2,children:" Logout "})]}):x.jsxs(x.Fragment,{children:[x.jsxs(mg,{onClick:()=>{h("github")},children:[x.jsx(wye,{})," ",x.jsx(zr,{ml:2,children:"Sign in with GitHub"})]}),x.jsxs(mg,{onClick:()=>{h("google")},children:[x.jsx(mlt,{})," ",x.jsx(zr,{ml:2,children:"Sign in with Google"})]})]}),x.jsx(dfe,{}),x.jsx(mg,{as:"a",href:"https://github.com/tarasglek/chatcraft.org",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub Repository",title:"GitHub Repository",children:"GitHub Repository"})]})]})})]}),x.jsx(bxe,{isOpen:s,onClose:a,finalFocusRef:e})]})}var gA={exports:{}},vvt=gA.exports,tie;function xvt(){return tie||(tie=1,function(t,e){(function(n,r){t.exports=r()})(vvt,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",u="week",h="month",d="quarter",p="year",g="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(te){var re=["th","st","nd","rd"],Y=te%100;return"["+te+(re[(Y-20)%10]||re[Y]||re[0])+"]"}},T=function(te,re,Y){var z=String(te);return!z||z.length>=re?te:""+Array(re+1-z.length).join(Y)+te},D={s:T,z:function(te){var re=-te.utcOffset(),Y=Math.abs(re),z=Math.floor(Y/60),U=Y%60;return(re<=0?"+":"-")+T(z,2,"0")+":"+T(U,2,"0")},m:function te(re,Y){if(re.date()<Y.date())return-te(Y,re);var z=12*(Y.year()-re.year())+(Y.month()-re.month()),U=re.clone().add(z,h),G=Y-U<0,B=re.clone().add(z+(G?-1:1),h);return+(-(z+(Y-U)/(G?U-B:B-U))||0)},a:function(te){return te<0?Math.ceil(te)||0:Math.floor(te)},p:function(te){return{M:h,y:p,w:u,d:c,D:g,h:l,m:a,s:o,ms:s,Q:d}[te]||String(te||"").toLowerCase().replace(/s$/,"")},u:function(te){return te===void 0}},E="en",O={};O[E]=S;var P="$isDayjsObject",$=function(te){return te instanceof Z||!(!te||!te[P])},W=function te(re,Y,z){var U;if(!re)return E;if(typeof re=="string"){var G=re.toLowerCase();O[G]&&(U=G),Y&&(O[G]=Y,U=G);var B=re.split("-");if(!U&&B.length>1)return te(B[0])}else{var Q=re.name;O[Q]=re,U=Q}return!z&&U&&(E=U),U||!z&&E},H=function(te,re){if($(te))return te.clone();var Y=typeof re=="object"?re:{};return Y.date=te,Y.args=arguments,new Z(Y)},K=D;K.l=W,K.i=$,K.w=function(te,re){return H(te,{locale:re.$L,utc:re.$u,x:re.$x,$offset:re.$offset})};var Z=function(){function te(Y){this.$L=W(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[P]=!0}var re=te.prototype;return re.parse=function(Y){this.$d=function(z){var U=z.date,G=z.utc;if(U===null)return new Date(NaN);if(K.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var B=U.match(b);if(B){var Q=B[2]-1||0,ie=(B[7]||"0").substring(0,3);return G?new Date(Date.UTC(B[1],Q,B[3]||1,B[4]||0,B[5]||0,B[6]||0,ie)):new Date(B[1],Q,B[3]||1,B[4]||0,B[5]||0,B[6]||0,ie)}}return new Date(U)}(Y),this.init()},re.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},re.$utils=function(){return K},re.isValid=function(){return this.$d.toString()!==y},re.isSame=function(Y,z){var U=H(Y);return this.startOf(z)<=U&&U<=this.endOf(z)},re.isAfter=function(Y,z){return H(Y)<this.startOf(z)},re.isBefore=function(Y,z){return this.endOf(z)<H(Y)},re.$g=function(Y,z,U){return K.u(Y)?this[z]:this.set(U,Y)},re.unix=function(){return Math.floor(this.valueOf()/1e3)},re.valueOf=function(){return this.$d.getTime()},re.startOf=function(Y,z){var U=this,G=!!K.u(z)||z,B=K.p(Y),Q=function(Ne,rt){var Mt=K.w(U.$u?Date.UTC(U.$y,rt,Ne):new Date(U.$y,rt,Ne),U);return G?Mt:Mt.endOf(c)},ie=function(Ne,rt){return K.w(U.toDate()[Ne].apply(U.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(rt)),U)},q=this.$W,fe=this.$M,ke=this.$D,Be="set"+(this.$u?"UTC":"");switch(B){case p:return G?Q(1,0):Q(31,11);case h:return G?Q(1,fe):Q(0,fe+1);case u:var Qe=this.$locale().weekStart||0,ft=(q<Qe?q+7:q)-Qe;return Q(G?ke-ft:ke+(6-ft),fe);case c:case g:return ie(Be+"Hours",0);case l:return ie(Be+"Minutes",1);case a:return ie(Be+"Seconds",2);case o:return ie(Be+"Milliseconds",3);default:return this.clone()}},re.endOf=function(Y){return this.startOf(Y,!1)},re.$set=function(Y,z){var U,G=K.p(Y),B="set"+(this.$u?"UTC":""),Q=(U={},U[c]=B+"Date",U[g]=B+"Date",U[h]=B+"Month",U[p]=B+"FullYear",U[l]=B+"Hours",U[a]=B+"Minutes",U[o]=B+"Seconds",U[s]=B+"Milliseconds",U)[G],ie=G===c?this.$D+(z-this.$W):z;if(G===h||G===p){var q=this.clone().set(g,1);q.$d[Q](ie),q.init(),this.$d=q.set(g,Math.min(this.$D,q.daysInMonth())).$d}else Q&&this.$d[Q](ie);return this.init(),this},re.set=function(Y,z){return this.clone().$set(Y,z)},re.get=function(Y){return this[K.p(Y)]()},re.add=function(Y,z){var U,G=this;Y=Number(Y);var B=K.p(z),Q=function(fe){var ke=H(G);return K.w(ke.date(ke.date()+Math.round(fe*Y)),G)};if(B===h)return this.set(h,this.$M+Y);if(B===p)return this.set(p,this.$y+Y);
vendor: 4,236 bytes, line 696
696if(B===c)return Q(1);if(B===u)return Q(7);var ie=(U={},U[a]=r,U[l]=i,U[o]=n,U)[B]||1,q=this.$d.getTime()+Y*ie;return K.w(q,this)},re.subtract=function(Y,z){return this.add(-1*Y,z)},re.format=function(Y){var z=this,U=this.$locale();if(!this.isValid())return U.invalidDate||y;var G=Y||"YYYY-MM-DDTHH:mm:ssZ",B=K.z(this),Q=this.$H,ie=this.$m,q=this.$M,fe=U.weekdays,ke=U.months,Be=U.meridiem,Qe=function(rt,Mt,it,Rt){return rt&&(rt[Mt]||rt(z,G))||it[Mt].slice(0,Rt)},ft=function(rt){return K.s(Q%12||12,rt,"0")},Ne=Be||function(rt,Mt,it){var Rt=rt<12?"AM":"PM";return it?Rt.toLowerCase():Rt};return G.replace(w,function(rt,Mt){return Mt||function(it){switch(it){case"YY":return String(z.$y).slice(-2);case"YYYY":return K.s(z.$y,4,"0");case"M":return q+1;case"MM":return K.s(q+1,2,"0");case"MMM":return Qe(U.monthsShort,q,ke,3);case"MMMM":return Qe(ke,q);case"D":return z.$D;case"DD":return K.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return Qe(U.weekdaysMin,z.$W,fe,2);case"ddd":return Qe(U.weekdaysShort,z.$W,fe,3);case"dddd":return fe[z.$W];case"H":return String(Q);case"HH":return K.s(Q,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Ne(Q,ie,!0);case"A":return Ne(Q,ie,!1);case"m":return String(ie);case"mm":return K.s(ie,2,"0");case"s":return String(z.$s);case"ss":return K.s(z.$s,2,"0");case"SSS":return K.s(z.$ms,3,"0");case"Z":return B}return null}(rt)||B.replace(":","")})},re.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},re.diff=function(Y,z,U){var G,B=this,Q=K.p(z),ie=H(Y),q=(ie.utcOffset()-this.utcOffset())*r,fe=this-ie,ke=function(){return K.m(B,ie)};switch(Q){case p:G=ke()/12;break;case h:G=ke();break;case d:G=ke()/3;break;case u:G=(fe-q)/6048e5;break;case c:G=(fe-q)/864e5;break;case l:G=fe/i;break;case a:G=fe/r;break;case o:G=fe/n;break;default:G=fe}return U?G:K.a(G)},re.daysInMonth=function(){return this.endOf(h).$D},re.$locale=function(){return O[this.$L]},re.locale=function(Y,z){if(!Y)return this.$L;var U=this.clone(),G=W(Y,z,!0);return G&&(U.$L=G),U},re.clone=function(){return K.w(this.$d,this)},re.toDate=function(){return new Date(this.valueOf())},re.toJSON=function(){return this.isValid()?this.toISOString():null},re.toISOString=function(){return this.$d.toISOString()},re.toString=function(){return this.$d.toUTCString()},te}(),oe=Z.prototype;return H.prototype=oe,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",c],["$M",h],["$y",p],["$D",g]].forEach(function(te){oe[te[1]]=function(re){return this.$g(re,te[0],te[1])}}),H.extend=function(te,re){return te.$i||(te(re,Z,H),te.$i=!0),H},H.locale=W,H.isDayjs=$,H.unix=function(te){return H(1e3*te)},H.en=O[E],H.Ls=O,H.p={},H})}(gA)),gA.exports}var wvt=xvt();const Svt=zc(wvt),yA={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const i=n<.5?n*(1+e):n+e-n*e,s=2*n-i;switch(r){case"r":return yA.hue2rgb(s,i,t+1/3)*255;case"g":return yA.hue2rgb(s,i,t)*255;case"b":return yA.hue2rgb(s,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),s=Math.min(t,e,n),o=(i+s)/2;if(r==="l")return o*100;if(i===s)return 0;const a=i-s,l=o>.5?a/(2-i-s):a/(i+s);if(r==="s")return l*100;switch(i){case t:return((e-n)/a+(e<n?6:0))*60;case e:return((n-t)/a+2)*60;case n:return((t-e)/a+4)*60;default:return-1}}},kvt={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Cvt={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},xr={channel:yA,lang:kvt,unit:Cvt},rg={};for(let t=0;t<=255;t++)rg[t]=xr.unit.dec2hex(t);const il={ALL:0,RGB:1,HSL:2};class _vt{constructor(){this.type=il.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=il.ALL}is(e){return this.type===e}}
vendor: 5,868 bytes, line 696
696class Tvt{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new _vt}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=il.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:r,l:i}=e;n===void 0&&(e.h=xr.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=xr.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=xr.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:r,b:i}=e;n===void 0&&(e.r=xr.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=xr.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=xr.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(il.HSL)&&n!==void 0?n:(this._ensureHSL(),xr.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(il.HSL)&&n!==void 0?n:(this._ensureHSL(),xr.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(il.HSL)&&n!==void 0?n:(this._ensureHSL(),xr.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(il.RGB)&&n!==void 0?n:(this._ensureRGB(),xr.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(il.RGB)&&n!==void 0?n:(this._ensureRGB(),xr.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(il.RGB)&&n!==void 0?n:(this._ensureRGB(),xr.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(il.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(il.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(il.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(il.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(il.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(il.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const fI=new Tvt({r:0,g:0,b:0,a:0},"transparent"),hx={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(hx.re);if(!e)return;const n=e[1],r=parseInt(n,16),i=n.length,s=i%4===0,o=i>4,a=o?1:17,l=o?8:4,c=s?0:-1,u=o?255:15;return fI.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:s?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`#${rg[Math.round(e)]}${rg[Math.round(n)]}${rg[Math.round(r)]}${rg[Math.round(i*255)]}`:`#${rg[Math.round(e)]}${rg[Math.round(n)]}${rg[Math.round(r)]}`}},By={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(By.hueRe);if(e){const[,n,r]=e;switch(r){case"grad":return xr.channel.clamp.h(parseFloat(n)*.9);case"rad":return xr.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return xr.channel.clamp.h(parseFloat(n)*360)}}return xr.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(By.re);if(!n)return;const[,r,i,s,o,a]=n;return fI.set({h:By._hue2deg(r),s:xr.channel.clamp.s(parseFloat(i)),l:xr.channel.clamp.l(parseFloat(s)),a:o?xr.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${xr.lang.round(e)}, ${xr.lang.round(n)}%, ${xr.lang.round(r)}%, ${i})`:`hsl(${xr.lang.round(e)}, ${xr.lang.round(n)}%, ${xr.lang.round(r)}%)`}},W4={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
vendor: 4,464 bytes, line 696
696almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=W4.colors[t];if(e)return hx.parse(e)},stringify:t=>{const e=hx.stringify(t);for(const n in W4.colors)if(W4.colors[n]===e)return n}},r4={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const n=t.match(r4.re);if(!n)return;const[,r,i,s,o,a,l,c,u]=n;return fI.set({r:xr.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:xr.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:xr.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?xr.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${xr.lang.round(e)}, ${xr.lang.round(n)}, ${xr.lang.round(r)}, ${xr.lang.round(i)})`:`rgb(${xr.lang.round(e)}, ${xr.lang.round(n)}, ${xr.lang.round(r)})`}},fp={format:{keyword:W4,hex:hx,rgb:r4,rgba:r4,hsl:By,hsla:By},parse:t=>{if(typeof t!="string")return t;const e=hx.parse(t)||r4.parse(t)||By.parse(t)||W4.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(il.HSL)||t.data.r===void 0?By.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?r4.stringify(t):hx.stringify(t)},vxe=(t,e)=>{const n=fp.parse(t);for(const r in e)n[r]=xr.channel.clamp[r](e[r]);return fp.stringify(n)},q4=(t,e,n=0,r=1)=>{if(typeof t!="number")return vxe(t,{a:e});const i=fI.set({r:xr.channel.clamp.r(t),g:xr.channel.clamp.g(e),b:xr.channel.clamp.b(n),a:xr.channel.clamp.a(r)});return fp.stringify(i)},Evt=t=>{const{r:e,g:n,b:r}=fp.parse(t),i=.2126*xr.channel.toLinear(e)+.7152*xr.channel.toLinear(n)+.0722*xr.channel.toLinear(r);return xr.lang.round(i)},Avt=t=>Evt(t)>=.5,D_=t=>!Avt(t),xxe=(t,e,n)=>{const r=fp.parse(t),i=r[e],s=xr.channel.clamp[e](i+n);return i!==s&&(r[e]=s),fp.stringify(r)},gn=(t,e)=>xxe(t,"l",e),Bn=(t,e)=>xxe(t,"l",-e),He=(t,e)=>{const n=fp.parse(t),r={};for(const i in e)e[i]&&(r[i]=n[i]+e[i]);return vxe(t,r)},Pvt=(t,e,n=50)=>{const{r,g:i,b:s,a:o}=fp.parse(t),{r:a,g:l,b:c,a:u}=fp.parse(e),h=n/100,d=h*2-1,p=o-u,y=((d*p===-1?d:(d+p)/(1+d*p))+1)/2,b=1-y,w=r*y+a*b,S=i*y+l*b,T=s*y+c*b,D=o*h+u*(1-h);return q4(w,S,T,D)},Xt=(t,e=100)=>{const n=fp.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Pvt(n,t,e)};/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:wxe,setPrototypeOf:nie,isFrozen:Ovt,getPrototypeOf:Ivt,getOwnPropertyDescriptor:Dvt}=Object;let{freeze:ql,seal:Ih,create:Sxe}=Object,{apply:E$,construct:A$}=typeof Reflect<"u"&&Reflect;ql||(ql=function(e){return e});Ih||(Ih=function(e){return e});E$||(E$=function(e,n,r){return e.apply(n,r)});A$||(A$=function(e,n){return new e(...n)});const pE=Gl(Array.prototype.forEach),Mvt=Gl(Array.prototype.lastIndexOf),rie=Gl(Array.prototype.pop),ZS=Gl(Array.prototype.push),Nvt=Gl(Array.prototype.splice),bA=Gl(String.prototype.toLowerCase),XN=Gl(String.prototype.toString),iie=Gl(String.prototype.match),e3=Gl(String.prototype.replace),Rvt=Gl(String.prototype.indexOf),Lvt=Gl(String.prototype.trim),ad=Gl(Object.prototype.hasOwnProperty),El=Gl(RegExp.prototype.test),t3=Bvt(TypeError);function Gl(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return E$(t,e,r)}}function Bvt(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return A$(t,n)}}function ri(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bA;nie&&nie(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const s=n(i);s!==i&&(Ovt(e)||(e[r]=s),i=s)}t[i]=!0}return t}function Fvt(t){for(let e=0;e<t.length;e++)ad(t,e)||(t[e]=null);return t}function dy(t){const e=Sxe(null);
vendor: 6,576 bytes, line 696
696for(const[n,r]of wxe(t))ad(t,n)&&(Array.isArray(r)?e[n]=Fvt(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=dy(r):e[n]=r);return e}function n3(t,e){for(;t!==null;){const r=Dvt(t,e);if(r){if(r.get)return Gl(r.get);if(typeof r.value=="function")return Gl(r.value)}t=Ivt(t)}function n(){return null}return n}const sie=ql(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),JN=ql(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ZN=ql(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$vt=ql(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),eR=ql(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jvt=ql(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oie=ql(["#text"]),aie=ql(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),tR=ql(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lie=ql(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
696subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mE=ql(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zvt=Ih(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hvt=Ih(/<%[\w\W]*|[\w\W]*%>/gm),Uvt=Ih(/\$\{[\w\W]*/gm),Vvt=Ih(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wvt=Ih(/^aria-[\-\w]+$/),kxe=Ih(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qvt=Ih(/^(?:\w+script|data):/i),Gvt=Ih(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cxe=Ih(/^html$/i),Kvt=Ih(/^[a-z][.\w]*(-[.\w]+)+$/i);var cie=Object.freeze({__proto__:null,ARIA_ATTR:Wvt,ATTR_WHITESPACE:Gvt,CUSTOM_ELEMENT:Kvt,DATA_ATTR:Vvt,DOCTYPE_NAME:Cxe,ERB_EXPR:Hvt,IS_ALLOWED_URI:kxe,IS_SCRIPT_OR_DATA:qvt,MUSTACHE_EXPR:zvt,TMPLIT_EXPR:Uvt});const r3={element:1,text:3,progressingInstruction:7,comment:8,document:9},Yvt=function(){return typeof window>"u"?null:window},Qvt=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},uie=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _xe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yvt();const e=Nt=>_xe(Nt);if(e.version="3.2.4",e.removed=[],!t||!t.document||t.document.nodeType!==r3.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:p}=t,g=l.prototype,y=n3(g,"cloneNode"),b=n3(g,"remove"),w=n3(g,"nextSibling"),S=n3(g,"childNodes"),T=n3(g,"parentNode");if(typeof o=="function"){const Nt=n.createElement("template");Nt.content&&Nt.content.ownerDocument&&(n=Nt.content.ownerDocument)}let D,E="";const{implementation:O,createNodeIterator:P,createDocumentFragment:$,getElementsByTagName:W}=n,{importNode:H}=r;let K=uie();e.isSupported=typeof wxe=="function"&&typeof T=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:oe,TMPLIT_EXPR:te,DATA_ATTR:re,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:G}=cie;let{IS_ALLOWED_URI:B}=cie,Q=null;const ie=ri({},[...sie,...JN,...ZN,...eR,...oie]);let q=null;const fe=ri({},[...aie,...tR,...lie,...mE]);let ke=Object.seal(Sxe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,Qe=null,ft=!0,Ne=!0,rt=!1,Mt=!0,it=!1,Rt=!0,xt=!1,Nn=!1,Hn=!1,$n=!1,Wn=!1,nr=!1,Cn=!0,Nr=!1;const ki="user-content-";let yr=!0,mt=!1,zt={},ze=null;const tt=ri({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wt=null;const tn=ri({},["audio","video","img","source","image","track"]);let ot=null;const jt=ri({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_r="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",Rr="http://www.w3.org/1999/xhtml";let Zt=Rr,lt=!1,Hr=null;const Un=ri({},[_r,fr,Rr],XN);let xn=ri({},["mi","mo","mn","ms","mtext"]),ut=ri({},["annotation-xml"]);const kr=ri({},["title","style","font","a","script"]);let di=null;const Kr=["application/xhtml+xml","text/html"],Ao="text/html";let oi=null,Po=null;const Yo=n.createElement("form"),is=function(ye){return ye instanceof RegExp||ye instanceof Function},Ii=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Po&&Po===ye)){if((!ye||typeof ye!="object")&&(ye={}
vendor: 6,109 bytes, line 696
696),ye=dy(ye),di=Kr.indexOf(ye.PARSER_MEDIA_TYPE)===-1?Ao:ye.PARSER_MEDIA_TYPE,oi=di==="application/xhtml+xml"?XN:bA,Q=ad(ye,"ALLOWED_TAGS")?ri({},ye.ALLOWED_TAGS,oi):ie,q=ad(ye,"ALLOWED_ATTR")?ri({},ye.ALLOWED_ATTR,oi):fe,Hr=ad(ye,"ALLOWED_NAMESPACES")?ri({},ye.ALLOWED_NAMESPACES,XN):Un,ot=ad(ye,"ADD_URI_SAFE_ATTR")?ri(dy(jt),ye.ADD_URI_SAFE_ATTR,oi):jt,wt=ad(ye,"ADD_DATA_URI_TAGS")?ri(dy(tn),ye.ADD_DATA_URI_TAGS,oi):tn,ze=ad(ye,"FORBID_CONTENTS")?ri({},ye.FORBID_CONTENTS,oi):tt,Be=ad(ye,"FORBID_TAGS")?ri({},ye.FORBID_TAGS,oi):{},Qe=ad(ye,"FORBID_ATTR")?ri({},ye.FORBID_ATTR,oi):{},zt=ad(ye,"USE_PROFILES")?ye.USE_PROFILES:!1,ft=ye.ALLOW_ARIA_ATTR!==!1,Ne=ye.ALLOW_DATA_ATTR!==!1,rt=ye.ALLOW_UNKNOWN_PROTOCOLS||!1,Mt=ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=ye.SAFE_FOR_TEMPLATES||!1,Rt=ye.SAFE_FOR_XML!==!1,xt=ye.WHOLE_DOCUMENT||!1,$n=ye.RETURN_DOM||!1,Wn=ye.RETURN_DOM_FRAGMENT||!1,nr=ye.RETURN_TRUSTED_TYPE||!1,Hn=ye.FORCE_BODY||!1,Cn=ye.SANITIZE_DOM!==!1,Nr=ye.SANITIZE_NAMED_PROPS||!1,yr=ye.KEEP_CONTENT!==!1,mt=ye.IN_PLACE||!1,B=ye.ALLOWED_URI_REGEXP||kxe,Zt=ye.NAMESPACE||Rr,xn=ye.MATHML_TEXT_INTEGRATION_POINTS||xn,ut=ye.HTML_INTEGRATION_POINTS||ut,ke=ye.CUSTOM_ELEMENT_HANDLING||{},ye.CUSTOM_ELEMENT_HANDLING&&is(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&is(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ke.allowCustomizedBuiltInElements=ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),it&&(Ne=!1),Wn&&($n=!0),zt&&(Q=ri({},oie),q=[],zt.html===!0&&(ri(Q,sie),ri(q,aie)),zt.svg===!0&&(ri(Q,JN),ri(q,tR),ri(q,mE)),zt.svgFilters===!0&&(ri(Q,ZN),ri(q,tR),ri(q,mE)),zt.mathMl===!0&&(ri(Q,eR),ri(q,lie),ri(q,mE))),ye.ADD_TAGS&&(Q===ie&&(Q=dy(Q)),ri(Q,ye.ADD_TAGS,oi)),ye.ADD_ATTR&&(q===fe&&(q=dy(q)),ri(q,ye.ADD_ATTR,oi)),ye.ADD_URI_SAFE_ATTR&&ri(ot,ye.ADD_URI_SAFE_ATTR,oi),ye.FORBID_CONTENTS&&(ze===tt&&(ze=dy(ze)),ri(ze,ye.FORBID_CONTENTS,oi)),yr&&(Q["#text"]=!0),xt&&ri(Q,["html","head","body"]),Q.table&&(ri(Q,["tbody"]),delete Be.tbody),ye.TRUSTED_TYPES_POLICY){if(typeof ye.TRUSTED_TYPES_POLICY.createHTML!="function")throw t3('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ye.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw t3('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=ye.TRUSTED_TYPES_POLICY,E=D.createHTML("")}else D===void 0&&(D=Qvt(p,i)),D!==null&&typeof E=="string"&&(E=D.createHTML(""));ql&&ql(ye),Po=ye}},Oo=ri({},[...JN,...ZN,...$vt]),xe=ri({},[...eR,...jvt]),Se=function(ye){let st=T(ye);(!st||!st.tagName)&&(st={namespaceURI:Zt,tagName:"template"});const Yt=bA(ye.tagName),Rn=bA(st.tagName);return Hr[ye.namespaceURI]?ye.namespaceURI===fr?st.namespaceURI===Rr?Yt==="svg":st.namespaceURI===_r?Yt==="svg"&&(Rn==="annotation-xml"||xn[Rn]):!!Oo[Yt]:ye.namespaceURI===_r?st.namespaceURI===Rr?Yt==="math":st.namespaceURI===fr?Yt==="math"&&ut[Rn]:!!xe[Yt]:ye.namespaceURI===Rr?st.namespaceURI===fr&&!ut[Rn]||st.namespaceURI===_r&&!xn[Rn]?!1:!xe[Yt]&&(kr[Yt]||!Oo[Yt]):!!(di==="application/xhtml+xml"&&Hr[ye.namespaceURI]):!1},Fe=function(ye){ZS(e.removed,{element:ye});try{T(ye).removeChild(ye)}catch{b(ye)}},at=function(ye,st){try{ZS(e.removed,{attribute:st.getAttributeNode(ye),from:st})}catch{ZS(e.removed,{attribute:null,from:st})}if(st.removeAttribute(ye),ye==="is")if($n||Wn)try{Fe(st)}catch{}else try{st.setAttribute(ye,"")}catch{}},_t=function(ye){let st=null,Yt=null;if(Hn)ye="<remove></remove>"+ye;else{const pn=iie(ye,/^[\r\n\t ]+/);Yt=pn&&pn[0]}di==="application/xhtml+xml"&&Zt===Rr&&(ye='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ye+"</body></html>");const Rn=D?D.createHTML(ye):ye;if(Zt===Rr)try{st=new d().parseFromString(Rn,di)}catch{}if(!st||!st.documentElement){st=O.createDocument(Zt,"template",null);try{st.documentElement.innerHTML=lt?E:Rn}catch{}}const Ur=st.body||st.documentElement;return ye&&Yt&&Ur.insertBefore(n.createTextNode(Yt),Ur.childNodes[0]||null),Zt===Rr?W.call(st,xt?"html":"body")[0]:xt?st.documentElement:Ur},cn=function(ye){return P.call(ye.ownerDocument||ye,ye,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},wn=function(ye){return ye instanceof h&&(typeof ye.nodeName!="string"||typeof ye.textContent!="string"||typeof ye.removeChild!="function"||!(ye.attributes instanceof u)||typeof ye.removeAttribute!="function"||typeof ye.setAttribute!="function"||typeof ye.namespaceURI!="string"||typeof ye.insertBefore!="function"||typeof ye.hasChildNodes!="function")},nn=function(ye){return typeof a=="function"&&ye instanceof a};function Ut(Nt,ye,st){pE(Nt,Yt=>{Yt.call(e,ye,st,Po)})}const Kt=function(ye){let st=null;if(Ut(K.beforeSanitizeElements,ye,null),wn(ye))return Fe(ye),!0;const Yt=oi(ye.nodeName);if(Ut(K.uponSanitizeElement,ye,{tagName:Yt,allowedTags:Q}),ye.hasChildNodes()&&!nn(ye.firstElementChild)&&El(/<[/\w]/g,ye.innerHTML)&&El(/<[/\w]/g,ye.textContent)||ye.nodeType===r3.progressingInstruction||Rt&&ye.nodeType===r3.comment&&El(/<[/\w]/g,ye.data))return Fe(ye),!0;if(!Q[Yt]||Be[Yt]){if(!Be[Yt]&&jn(Yt)&&(ke.tagNameCheck instanceof RegExp&&El(ke.tagNameCheck,Yt)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(Yt)))return!1;if(yr&&!ze[Yt]){const Rn=T(ye)||ye.parentNode,Ur=S(ye)||ye.childNodes;if(Ur&&Rn){const pn=Ur.length;for(let _s=pn-1;_s>=0;--_s){const _i=y(Ur[_s],!0);_i.__removalCount=(ye.__removalCount||0)+1,Rn.insertBefore(_i,w(ye))}}}return Fe(ye),!0}return ye instanceof l&&!Se(ye)||(Yt==="noscript"||Yt==="noembed"||Yt==="noframes")&&El(/<\/no(script|embed|frames)/i,ye.innerHTML)?(Fe(ye),!0):(it&&ye.nodeType===r3.text&&(st=ye.textContent,pE([Z,oe,te],Rn=>{st=e3(st,Rn," ")}),ye.textContent!==st&&(ZS(e.removed,{element:ye.cloneNode()}),ye.textContent=st)),Ut(K.afterSanitizeElements,ye,null),!1)},Ht=function(ye,st,Yt){if(Cn&&(st==="id"||st==="name")&&(Yt in n||Yt in Yo))return!1;
vendor: 3,507 bytes, lines 696-697
696if(!(Ne&&!Qe[st]&&El(re,st))){if(!(ft&&El(Y,st))){if(!q[st]||Qe[st]){if(!(jn(ye)&&(ke.tagNameCheck instanceof RegExp&&El(ke.tagNameCheck,ye)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(ye))&&(ke.attributeNameCheck instanceof RegExp&&El(ke.attributeNameCheck,st)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(st))||st==="is"&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&El(ke.tagNameCheck,Yt)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(Yt))))return!1}else if(!ot[st]){if(!El(B,e3(Yt,U,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&ye!=="script"&&Rvt(Yt,"data:")===0&&wt[ye])){if(!(rt&&!El(z,e3(Yt,U,"")))){if(Yt)return!1}}}}}}return!0},jn=function(ye){return ye!=="annotation-xml"&&iie(ye,G)},Ar=function(ye){Ut(K.beforeSanitizeAttributes,ye,null);const{attributes:st}=ye;if(!st||wn(ye))return;const Yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let Rn=st.length;for(;Rn--;){const Ur=st[Rn],{name:pn,namespaceURI:_s,value:_i}=Ur,Ls=oi(pn);let Di=pn==="value"?_i:Lvt(_i);if(Yt.attrName=Ls,Yt.attrValue=Di,Yt.keepAttr=!0,Yt.forceKeepAttr=void 0,Ut(K.uponSanitizeAttribute,ye,Yt),Di=Yt.attrValue,Nr&&(Ls==="id"||Ls==="name")&&(at(pn,ye),Di=ki+Di),Rt&&El(/((--!?|])>)|<\/(style|title)/i,Di)){at(pn,ye);continue}if(Yt.forceKeepAttr||(at(pn,ye),!Yt.keepAttr))continue;if(!Mt&&El(/\/>/i,Di)){at(pn,ye);continue}it&&pE([Z,oe,te],pr=>{Di=e3(Di,pr," ")});const Sl=oi(ye.nodeName);if(Ht(Sl,Ls,Di)){if(D&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!_s)switch(p.getAttributeType(Sl,Ls)){case"TrustedHTML":{Di=D.createHTML(Di);break}case"TrustedScriptURL":{Di=D.createScriptURL(Di);break}}try{_s?ye.setAttributeNS(_s,pn,Di):ye.setAttribute(pn,Di),wn(ye)?Fe(ye):rie(e.removed)}catch{}}}Ut(K.afterSanitizeAttributes,ye,null)},Ci=function Nt(ye){let st=null;const Yt=cn(ye);for(Ut(K.beforeSanitizeShadowDOM,ye,null);st=Yt.nextNode();)Ut(K.uponSanitizeShadowNode,st,null),Kt(st),Ar(st),st.content instanceof s&&Nt(st.content);Ut(K.afterSanitizeShadowDOM,ye,null)};return e.sanitize=function(Nt){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=null,Yt=null,Rn=null,Ur=null;if(lt=!Nt,lt&&(Nt="<!-->"),typeof Nt!="string"&&!nn(Nt))if(typeof Nt.toString=="function"){if(Nt=Nt.toString(),typeof Nt!="string")throw t3("dirty is not a string, aborting")}else throw t3("toString is not a function");if(!e.isSupported)return Nt;if(Nn||Ii(ye),e.removed=[],typeof Nt=="string"&&(mt=!1),mt){if(Nt.nodeName){const _i=oi(Nt.nodeName);if(!Q[_i]||Be[_i])throw t3("root node is forbidden and cannot be sanitized in-place")}}else if(Nt instanceof a)st=_t("<!---->"),Yt=st.ownerDocument.importNode(Nt,!0),Yt.nodeType===r3.element&&Yt.nodeName==="BODY"||Yt.nodeName==="HTML"?st=Yt:st.appendChild(Yt);else{if(!$n&&!it&&!xt&&Nt.indexOf("<")===-1)return D&&nr?D.createHTML(Nt):Nt;if(st=_t(Nt),!st)return $n?null:nr?E:""}st&&Hn&&Fe(st.firstChild);const pn=cn(mt?Nt:st);for(;Rn=pn.nextNode();)Kt(Rn),Ar(Rn),Rn.content instanceof s&&Ci(Rn.content);if(mt)return Nt;if($n){if(Wn)for(Ur=$.call(st.ownerDocument);st.firstChild;)Ur.appendChild(st.firstChild);else Ur=st;return(q.shadowroot||q.shadowrootmode)&&(Ur=H.call(r,Ur,!0)),Ur}let _s=xt?st.outerHTML:st.innerHTML;return xt&&Q["!doctype"]&&st.ownerDocument&&st.ownerDocument.doctype&&st.ownerDocument.doctype.name&&El(Cxe,st.ownerDocument.doctype.name)&&(_s="<!DOCTYPE "+st.ownerDocument.doctype.name+`> 697`+_s),it&&pE([Z,oe,te],_i=>{_s=e3(_s,_i," ")}
vendor: 18,818 bytes, lines 697-698
697),D&&nr?D.createHTML(_s):_s},e.setConfig=function(){let Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ii(Nt),Nn=!0},e.clearConfig=function(){Po=null,Nn=!1},e.isValidAttribute=function(Nt,ye,st){Po||Ii({});const Yt=oi(Nt),Rn=oi(ye);return Ht(Yt,Rn,st)},e.addHook=function(Nt,ye){typeof ye=="function"&&ZS(K[Nt],ye)},e.removeHook=function(Nt,ye){if(ye!==void 0){const st=Mvt(K[Nt],ye);return st===-1?void 0:Nvt(K[Nt],st,1)[0]}return rie(K[Nt])},e.removeHooks=function(Nt){K[Nt]=[]},e.removeAllHooks=function(){K=uie()},e}var ew=_xe(),Txe=Object.defineProperty,F=(t,e)=>Txe(t,"name",{value:e,configurable:!0}),Xvt=(t,e)=>{for(var n in e)Txe(t,n,{get:e[n],enumerable:!0})},Yp={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},pt={trace:F((...t)=>{},"trace"),debug:F((...t)=>{},"debug"),info:F((...t)=>{},"info"),warn:F((...t)=>{},"warn"),error:F((...t)=>{},"error"),fatal:F((...t)=>{},"fatal")},jW=F(function(t="fatal"){let e=Yp.fatal;typeof t=="string"?t.toLowerCase()in Yp&&(e=Yp[t]):typeof t=="number"&&(e=t),pt.trace=()=>{},pt.debug=()=>{},pt.info=()=>{},pt.warn=()=>{},pt.error=()=>{},pt.fatal=()=>{},e<=Yp.fatal&&(pt.fatal=console.error?console.error.bind(console,Xu("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Xu("FATAL"))),e<=Yp.error&&(pt.error=console.error?console.error.bind(console,Xu("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Xu("ERROR"))),e<=Yp.warn&&(pt.warn=console.warn?console.warn.bind(console,Xu("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Xu("WARN"))),e<=Yp.info&&(pt.info=console.info?console.info.bind(console,Xu("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Xu("INFO"))),e<=Yp.debug&&(pt.debug=console.debug?console.debug.bind(console,Xu("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Xu("DEBUG"))),e<=Yp.trace&&(pt.trace=console.debug?console.debug.bind(console,Xu("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Xu("TRACE")))},"setLogLevel"),Xu=F(t=>`%c${Svt().format("ss.SSS")} : ${t} : `,"format"),Exe=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,G4=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Jvt=/\s*%%.*\n/gm,Axe=class extends Error{static{F(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},tw={},zW=F(function(t,e){t=t.replace(Exe,"").replace(G4,"").replace(Jvt,` 698`);for(const[n,{detector:r}]of Object.entries(tw))if(r(t,e))return n;throw new Axe(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Pxe=F((...t)=>{for(const{id:e,detector:n,loader:r}of t)Oxe(e,n,r)},"registerLazyLoadedDiagrams"),Oxe=F((t,e,n)=>{tw[t]&&pt.warn(`Detector with key ${t} already exists. Overwriting.`),tw[t]={detector:e,loader:n},pt.debug(`Detector with key ${t} added${n?" with loader":""}`)},"addDetector"),Zvt=F(t=>tw[t].loader,"getDiagramLoader"),P$=F((t,e,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>P$(t,s,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||n<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=P$(t[s],e[s],{depth:n-1,clobber:r})):(r||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),Wa=P$,pI="#ffffff",mI="#f2f2f2",Bl=F((t,e)=>e?He(t,{s:-40,l:10}):He(t,{s:-40,l:-10}),"mkBorder"),e2t=class{static{F(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||He(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||He(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bl(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bl(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bl(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bl(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Xt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Xt(this.tertiaryColor),this.lineColor=this.lineColor||Xt(this.background),this.arrowheadColor=this.arrowheadColor||Xt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Bn(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Bn(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Xt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||gn(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Bn(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Bn(this.mainBkg,10)):(this.rowOdd=this.rowOdd||gn(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||gn(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||He(this.primaryColor,{h:30}),this.cScale4=this.cScale4||He(this.primaryColor,{h:60}),this.cScale5=this.cScale5||He(this.primaryColor,{h:90}),this.cScale6=this.cScale6||He(this.primaryColor,{h:120}),this.cScale7=this.cScale7||He(this.primaryColor,{h:150}),this.cScale8=this.cScale8||He(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||He(this.primaryColor,{h:270}),this.cScale10=this.cScale10||He(this.primaryColor,{h:300}),this.cScale11=this.cScale11||He(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Bn(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=Bn(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||Xt(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||gn(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||Bn(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||He(this.mainBkg,{h:180,s:-15,l:t*(5+e*3)}),this["surfacePeer"+e]=this["surfacePeer"+e]||He(this.mainBkg,{h:180,s:-15,l:t*(8+e*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||He(this.primaryColor,{h:64}),this.fillType3=this.fillType3||He(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||He(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||He(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||He(this.primaryColor,{h:128}),this.fillType7=this.fillType7||He(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||He(this.primaryColor,{l:-10}),this.pie5=this.pie5||He(this.secondaryColor,{l:-10}),this.pie6=this.pie6||He(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||He(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||He(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||He(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||He(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||He(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||He(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||He(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||He(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||He(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||He(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||He(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||He(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||D_(this.quadrant1Fill)?gn(this.quadrant1Fill):Bn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Bn(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||He(this.primaryColor,{h:-30}),this.git4=this.git4||He(this.primaryColor,{h:-60}),this.git5=this.git5||He(this.primaryColor,{h:-90}),this.git6=this.git6||He(this.primaryColor,{h:60}),this.git7=this.git7||He(this.primaryColor,{h:120}),this.darkMode?(this.git0=gn(this.git0,25),this.git1=gn(this.git1,25),this.git2=gn(this.git2,25),this.git3=gn(this.git3,25),this.git4=gn(this.git4,25),this.git5=gn(this.git5,25),this.git6=gn(this.git6,25),this.git7=gn(this.git7,25)):(this.git0=Bn(this.git0,25),this.git1=Bn(this.git1,25),this.git2=Bn(this.git2,25),this.git3=Bn(this.git3,25),this.git4=Bn(this.git4,25),this.git5=Bn(this.git5,25),this.git6=Bn(this.git6,25),this.git7=Bn(this.git7,25)),this.gitInv0=this.gitInv0||Xt(this.git0),this.gitInv1=this.gitInv1||Xt(this.git1),this.gitInv2=this.gitInv2||Xt(this.git2),this.gitInv3=this.gitInv3||Xt(this.git3),this.gitInv4=this.gitInv4||Xt(this.git4),this.gitInv5=this.gitInv5||Xt(this.git5),this.gitInv6=this.gitInv6||Xt(this.git6),this.gitInv7=this.gitInv7||Xt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||pI,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mI}calculate(t){if(typeof t!="object"){this.updateColors();return}const e=Object.keys(t);e.forEach(n=>{this[n]=t[n]}),this.updateColors(),e.forEach(n=>{this[n]=t[n]})}},t2t=F(t=>{const e=new e2t;return e.calculate(t),e},"getThemeVariables"),n2t=class{static{F(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=gn(this.primaryColor,16),this.tertiaryColor=He(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.background),this.secondaryBorderColor=Bl(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bl(this.tertiaryColor,this.darkMode),this.primaryTextColor=Xt(this.primaryColor),this.secondaryTextColor=Xt(this.secondaryColor),this.tertiaryTextColor=Xt(this.tertiaryColor),this.lineColor=Xt(this.background),this.textColor=Xt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=gn(Xt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=q4(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackgroun
vendor: 11,963 bytes, line 698
698d="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Bn("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Bn(this.sectionBkgColor,10),this.taskBorderColor=q4(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=q4(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||gn(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Bn(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=gn(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=gn(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=gn(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=He(this.primaryColor,{h:64}),this.fillType3=He(this.secondaryColor,{h:64}),this.fillType4=He(this.primaryColor,{h:-64}),this.fillType5=He(this.secondaryColor,{h:-64}),this.fillType6=He(this.primaryColor,{h:128}),this.fillType7=He(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||He(this.primaryColor,{h:30}),this.cScale4=this.cScale4||He(this.primaryColor,{h:60}),this.cScale5=this.cScale5||He(this.primaryColor,{h:90}),this.cScale6=this.cScale6||He(this.primaryColor,{h:120}),this.cScale7=this.cScale7||He(this.primaryColor,{h:150}),this.cScale8=this.cScale8||He(this.primaryColor,{h:210}),this.cScale9=this.cScale9||He(this.primaryColor,{h:270}),this.cScale10=this.cScale10||He(this.primaryColor,{h:300}),this.cScale11=this.cScale11||He(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Xt(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||gn(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||He(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||He(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||He(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||He(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||He(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||He(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||He(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||He(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||D_(this.quadrant1Fill)?gn(this.quadrant1Fill):Bn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Bn(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=gn(this.secondaryColor,20),this.git1=gn(this.pie2||this.secondaryColor,20),this.git2=gn(this.pie3||this.tertiaryColor,20),this.git3=gn(this.pie4||He(this.primaryColor,{h:-30}),20),this.git4=gn(this.pie5||He(this.primaryColor,{h:-60}),20),this.git5=gn(this.pie6||He(this.primaryColor,{h:-90}),10),this.git6=gn(this.pie7||He(this.primaryColor,{h:60}),10),this.git7=gn(this.pie8||He(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Xt(this.git0),this.gitInv1=this.gitInv1||Xt(this.git1),this.gitInv2=this.gitInv2||Xt(this.git2),this.gitInv3=this.gitInv3||Xt(this.git3),this.gitInv4=this.gitInv4||Xt(this.git4),this.gitInv5=this.gitInv5||Xt(this.git5),this.gitInv6=this.gitInv6||Xt(this.git6),this.gitInv7=this.gitInv7||Xt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Xt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Xt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gn(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroun
vendor: 5,500 bytes, line 698
698dColorEven||gn(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const e=Object.keys(t);e.forEach(n=>{this[n]=t[n]}),this.updateColors(),e.forEach(n=>{this[n]=t[n]})}},r2t=F(t=>{const e=new n2t;return e.calculate(t),e},"getThemeVariables"),i2t=class{static{F(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=He(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=He(this.primaryColor,{h:-160}),this.primaryBorderColor=Bl(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bl(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bl(this.tertiaryColor,this.darkMode),this.primaryTextColor=Xt(this.primaryColor),this.secondaryTextColor=Xt(this.secondaryColor),this.tertiaryTextColor=Xt(this.tertiaryColor),this.lineColor=Xt(this.background),this.textColor=Xt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=q4(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||He(this.primaryColor,{h:30}),this.cScale4=this.cScale4||He(this.primaryColor,{h:60}),this.cScale5=this.cScale5||He(this.primaryColor,{h:90}),this.cScale6=this.cScale6||He(this.primaryColor,{h:120}),this.cScale7=this.cScale7||He(this.primaryColor,{h:150}),this.cScale8=this.cScale8||He(this.primaryColor,{h:210}),this.cScale9=this.cScale9||He(this.primaryColor,{h:270}),this.cScale10=this.cScale10||He(this.primaryColor,{h:300}),this.cScale11=this.cScale11||He(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Bn(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Bn(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Bn(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Bn(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||He(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||He(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||He(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Xt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Xt(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
vendor: 8,399 bytes, line 698
698d=this.labelBackground,this.actorBorder=gn(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||gn(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||gn(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=He(this.primaryColor,{h:64}),this.fillType3=He(this.secondaryColor,{h:64}),this.fillType4=He(this.primaryColor,{h:-64}),this.fillType5=He(this.secondaryColor,{h:-64}),this.fillType6=He(this.primaryColor,{h:128}),this.fillType7=He(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||He(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||He(this.primaryColor,{l:-10}),this.pie5=this.pie5||He(this.secondaryColor,{l:-30}),this.pie6=this.pie6||He(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||He(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||He(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||He(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||He(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||He(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||He(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||He(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||He(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||He(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||He(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||He(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||He(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||D_(this.quadrant1Fill)?gn(this.quadrant1Fill):Bn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||He(this.primaryColor,{h:-30}),this.git4=this.git4||He(this.primaryColor,{h:-60}),this.git5=this.git5||He(this.primaryColor,{h:-90}),this.git6=this.git6||He(this.primaryColor,{h:60}),this.git7=this.git7||He(this.primaryColor,{h:120}),this.darkMode?(this.git0=gn(this.git0,25),this.git1=gn(this.git1,25),this.git2=gn(this.git2,25),this.git3=gn(this.git3,25),this.git4=gn(this.git4,25),this.git5=gn(this.git5,25),this.git6=gn(this.git6,25),this.git7=gn(this.git7,25)):(this.git0=Bn(this.git0,25),this.git1=Bn(this.git1,25),this.git2=Bn(this.git2,25),this.git3=Bn(this.git3,25),this.git4=Bn(this.git4,25),this.git5=Bn(this.git5,25),this.git6=Bn(this.git6,25),this.git7=Bn(this.git7,25)),this.gitInv0=this.gitInv0||Bn(Xt(this.git0),25),this.gitInv1=this.gitInv1||Xt(this.git1),this.gitInv2=this.gitInv2||Xt(this.git2),this.gitInv3=this.gitInv3||Xt(this.git3),this.gitInv4=this.gitInv4||Xt(this.git4),this.gitInv5=this.gitInv5||Xt(this.git5),this.gitInv6=this.gitInv6||Xt(this.git6),this.gitInv7=this.gitInv7||Xt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Xt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Xt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroun
vendor: 5,440 bytes, line 698
698dColorOdd||pI,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mI}calculate(t){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}const e=Object.keys(t);e.forEach(n=>{this[n]=t[n]}),this.updateColors(),e.forEach(n=>{this[n]=t[n]})}},s2t=F(t=>{const e=new i2t;return e.calculate(t),e},"getThemeVariables"),o2t=class{static{F(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=gn("#cde498",10),this.primaryBorderColor=Bl(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bl(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bl(this.tertiaryColor,this.darkMode),this.primaryTextColor=Xt(this.primaryColor),this.secondaryTextColor=Xt(this.secondaryColor),this.tertiaryTextColor=Xt(this.primaryColor),this.lineColor=Xt(this.background),this.textColor=Xt(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=Bn(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||He(this.primaryColor,{h:30}),this.cScale4=this.cScale4||He(this.primaryColor,{h:60}),this.cScale5=this.cScale5||He(this.primaryColor,{h:90}),this.cScale6=this.cScale6||He(this.primaryColor,{h:120}),this.cScale7=this.cScale7||He(this.primaryColor,{h:150}),this.cScale8=this.cScale8||He(this.primaryColor,{h:210}),this.cScale9=this.cScale9||He(this.primaryColor,{h:270}),this.cScale10=this.cScale10||He(this.primaryColor,{h:300}),this.cScale11=this.cScale11||He(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Bn(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Bn(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Bn(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Bn(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||He(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||He(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||He(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||gn(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||gn(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,990 bytes, line 698
698dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=He(this.primaryColor,{h:64}),this.fillType3=He(this.secondaryColor,{h:64}),this.fillType4=He(this.primaryColor,{h:-64}),this.fillType5=He(this.secondaryColor,{h:-64}),this.fillType6=He(this.primaryColor,{h:128}),this.fillType7=He(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||He(this.primaryColor,{l:-30}),this.pie5=this.pie5||He(this.secondaryColor,{l:-30}),this.pie6=this.pie6||He(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||He(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||He(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||He(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||He(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||He(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||He(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||He(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||He(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||He(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||He(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||He(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||He(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||D_(this.quadrant1Fill)?gn(this.quadrant1Fill):Bn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"}
vendor: 4,118 bytes, line 698
698,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||He(this.primaryColor,{h:-30}),this.git4=this.git4||He(this.primaryColor,{h:-60}),this.git5=this.git5||He(this.primaryColor,{h:-90}),this.git6=this.git6||He(this.primaryColor,{h:60}),this.git7=this.git7||He(this.primaryColor,{h:120}),this.darkMode?(this.git0=gn(this.git0,25),this.git1=gn(this.git1,25),this.git2=gn(this.git2,25),this.git3=gn(this.git3,25),this.git4=gn(this.git4,25),this.git5=gn(this.git5,25),this.git6=gn(this.git6,25),this.git7=gn(this.git7,25)):(this.git0=Bn(this.git0,25),this.git1=Bn(this.git1,25),this.git2=Bn(this.git2,25),this.git3=Bn(this.git3,25),this.git4=Bn(this.git4,25),this.git5=Bn(this.git5,25),this.git6=Bn(this.git6,25),this.git7=Bn(this.git7,25)),this.gitInv0=this.gitInv0||Xt(this.git0),this.gitInv1=this.gitInv1||Xt(this.git1),this.gitInv2=this.gitInv2||Xt(this.git2),this.gitInv3=this.gitInv3||Xt(this.git3),this.gitInv4=this.gitInv4||Xt(this.git4),this.gitInv5=this.gitInv5||Xt(this.git5),this.gitInv6=this.gitInv6||Xt(this.git6),this.gitInv7=this.gitInv7||Xt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Xt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Xt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||pI,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mI}calculate(t){if(typeof t!="object"){this.updateColors();return}const e=Object.keys(t);e.forEach(n=>{this[n]=t[n]}),this.updateColors(),e.forEach(n=>{this[n]=t[n]})}},a2t=F(t=>{const e=new o2t;return e.calculate(t),e},"getThemeVariables"),l2t=class{static{F(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=gn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=He(this.primaryColor,{h:-160}),this.primaryBorderColor=Bl(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bl(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bl(this.tertiaryColor,this.darkMode),this.primaryTextColor=Xt(this.primaryColor),this.secondaryTextColor=Xt(this.secondaryColor),this.tertiaryTextColor=Xt(this.tertiaryColor),this.lineColor=Xt(this.background),this.textColor=Xt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackgroun
vendor: 8,511 bytes, line 698
698d="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||gn(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=gn(this.contrast,55),this.border2=this.contrast,this.actorBorder=gn(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Xt(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||gn(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||Bn(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||He(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||He(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=gn(this.contrast,30),this.sectionBkgColor2=gn(this.contrast,30),this.taskBorderColor=Bn(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=gn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Bn(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=He(this.primaryColor,{h:64}),this.fillType3=He(this.secondaryColor,{h:64}),this.fillType4=He(this.primaryColor,{h:-64}),this.fillType5=He(this.secondaryColor,{h:-64}),this.fillType6=He(this.primaryColor,{h:128}),this.fillType7=He(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||He(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||He(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||He(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||He(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||He(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||He(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||D_(this.quadrant1Fill)?gn(this.quadrant1Fill):Bn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12}
vendor: 4,916 bytes, line 698
698,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Bn(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||He(this.primaryColor,{h:-30}),this.git4=this.pie5||He(this.primaryColor,{h:-60}),this.git5=this.pie6||He(this.primaryColor,{h:-90}),this.git6=this.pie7||He(this.primaryColor,{h:60}),this.git7=this.pie8||He(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Xt(this.git0),this.gitInv1=this.gitInv1||Xt(this.git1),this.gitInv2=this.gitInv2||Xt(this.git2),this.gitInv3=this.gitInv3||Xt(this.git3),this.gitInv4=this.gitInv4||Xt(this.git4),this.gitInv5=this.gitInv5||Xt(this.git5),this.gitInv6=this.gitInv6||Xt(this.git6),this.gitInv7=this.gitInv7||Xt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||pI,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||mI}calculate(t){if(typeof t!="object"){this.updateColors();return}const e=Object.keys(t);e.forEach(n=>{this[n]=t[n]}),this.updateColors(),e.forEach(n=>{this[n]=t[n]})}},c2t=F(t=>{const e=new l2t;return e.calculate(t),e},"getThemeVariables"),$0={base:{getThemeVariables:t2t},dark:{getThemeVariables:r2t},default:{getThemeVariables:s2t},forest:{getThemeVariables:a2t},neutral:{getThemeVariables:c2t}},Qp={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75}
698,quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
vendor: 5,234 bytes, line 698
69817},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Ixe={...Qp,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:$0.default.getThemeVariables(),sequence:{...Qp.sequence,messageFont:F(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:F(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:F(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Qp.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Qp.c4,useWidth:void 0,personFont:F(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:F(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:F(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:F(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:F(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:F(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:F(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:F(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:F(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:F(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:F(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:F(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:F(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:F(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:F(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:F(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:F(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:F(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:F(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:F(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:F(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:F(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Qp.pie,useWidth:984}
vendor: 14,509 bytes, lines 698-781
698,xyChart:{...Qp.xyChart,useWidth:void 0},requirement:{...Qp.requirement,useWidth:void 0},packet:{...Qp.packet},radar:{...Qp.radar}},Dxe=F((t,e="")=>Object.keys(t).reduce((n,r)=>Array.isArray(t[r])?n:typeof t[r]=="object"&&t[r]!==null?[...n,e+r,...Dxe(t[r],"")]:[...n,e+r],[]),"keyify"),u2t=new Set(Dxe(Ixe,"")),Mxe=Ixe,M7=F(t=>{if(pt.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>M7(e));return}for(const e of Object.keys(t)){if(pt.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!u2t.has(e)||t[e]==null){pt.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){pt.debug("sanitizing object",e),M7(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)e.includes(r)&&(pt.debug("sanitizing css option",e),t[e]=h2t(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}pt.debug("After sanitization",t)}},"sanitizeDirective"),h2t=F(t=>{let e=0,n=0;for(const r of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),nw=Object.freeze(Mxe),wc=Wa({},nw),Nxe,rw=[],K4=Wa({},nw),gI=F((t,e)=>{let n=Wa({},t),r={};for(const i of e)Bxe(i),r=Wa(r,i);if(n=Wa(n,r),r.theme&&r.theme in $0){const i=Wa({},Nxe),s=Wa(i.themeVariables||{},r.themeVariables);n.theme&&n.theme in $0&&(n.themeVariables=$0[n.theme].getThemeVariables(s))}return K4=n,Fxe(K4),K4},"updateCurrentConfig"),d2t=F(t=>(wc=Wa({},nw),wc=Wa(wc,t),t.theme&&$0[t.theme]&&(wc.themeVariables=$0[t.theme].getThemeVariables(t.themeVariables)),gI(wc,rw),wc),"setSiteConfig"),f2t=F(t=>{Nxe=Wa({},t)},"saveConfigFromInitialize"),p2t=F(t=>(wc=Wa(wc,t),gI(wc,rw),wc),"updateSiteConfig"),Rxe=F(()=>Wa({},wc),"getSiteConfig"),Lxe=F(t=>(Fxe(t),Wa(K4,t),Dc()),"setConfig"),Dc=F(()=>Wa({},K4),"getConfig"),Bxe=F(t=>{t&&(["secure",...wc.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(pt.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Bxe(t[e])}))},"sanitize"),m2t=F(t=>{M7(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),rw.push(t),gI(wc,rw)},"addDirective"),N7=F((t=wc)=>{rw=[],gI(t,rw)},"reset"),g2t={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},hie={},y2t=F(t=>{hie[t]||(pt.warn(g2t[t]),hie[t]=!0)},"issueWarning"),Fxe=F(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&y2t("LAZY_LOAD_DEPRECATED")},"checkConfig"),M_=/<br\s*\/?>/gi,b2t=F(t=>t?zxe(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),v2t=(()=>{let t=!1;return()=>{t||($xe(),t=!0)}})();function $xe(){const t="data-temp-href-target";ew.addHook("beforeSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),ew.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}F($xe,"setupDompurifyHooks");var jxe=F(t=>(v2t(),ew.sanitize(t)),"removeScript"),die=F((t,e)=>{if(e.flowchart?.htmlLabels!==!1){const n=e.securityLevel;n==="antiscript"||n==="strict"?t=jxe(t):n!=="loose"&&(t=zxe(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=k2t(t))}return t},"sanitizeMore"),Sb=F((t,e)=>t&&(e.dompurifyConfig?t=ew.sanitize(die(t,e),e.dompurifyConfig).toString():t=ew.sanitize(die(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),x2t=F((t,e)=>typeof t=="string"?Sb(t,e):t.flat().map(n=>Sb(n,e)),"sanitizeTextOrArray"),w2t=F(t=>M_.test(t),"hasBreaks"),S2t=F(t=>t.split(M_),"splitBreaks"),k2t=F(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),zxe=F(t=>t.replace(M_,"#br#"),"breakToPlaceholder"),C2t=F(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),ca=F(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),_2t=F(function(...t){const e=t.filter(n=>!isNaN(n));return Math.max(...e)},"getMax"),T2t=F(function(...t){const e=t.filter(n=>!isNaN(n));return Math.min(...e)},"getMin"),fie=F(function(t){const e=t.split(/(,)/),n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i===","&&r>0&&r+1<e.length){const s=e[r-1],o=e[r+1];E2t(s,o)&&(i=s+","+o,r++,n.pop())}n.push(A2t(i))}return n.join("")},"parseGenericTypes"),O$=F((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),E2t=F((t,e)=>{const n=O$(t,"~"),r=O$(e,"~");return n===1&&r===1},"shouldCombineSets"),A2t=F(t=>{const e=O$(t,"~");let n=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const r=[...t];let i=r.indexOf("~"),s=r.lastIndexOf("~");for(;i!==-1&&s!==-1&&i!==s;)r[i]="<",r[s]=">",i=r.indexOf("~"),s=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},"processSet"),pie=F(()=>window.MathMLElement!==void 0,"isMathMLSupported"),I$=/\$\$(.*)\$\$/g,iw=F(t=>(t.match(I$)?.length??0)>0,"hasKatex"),EGt=F(async(t,e)=>{t=await HW(t,e);const n=document.createElement("div");n.innerHTML=t,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i},"calculateMathMLDimensions"),HW=F(async(t,e)=>{if(!iw(t))return t;if(!(pie()||e.legacyMathML||e.forceLegacyMathML))return t.replace(I$,"MathML is unsupported in this environment.");const{default:n}=await ge(async()=>{const{default:i}=await Promise.resolve().then(()=>MDt);return{default:i}},void 0),r=e.forceLegacyMathML||!pie()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(M_).map(i=>iw(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(I$,(i,s)=>n.renderToString(s,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},"renderKatex"),Hw={getRows:b2t,sanitizeText:Sb,sanitizeTextOrArray:x2t,hasBreaks:w2t,splitBreaks:S2t,lineBreakRegex:M_,removeScript:jxe,getUrl:C2t,evaluate:ca,getMax:_2t,getMin:T2t},P2t=F(function(t,e){for(let n of e)t.attr(n[0],n[1])},"d3Attrs"),O2t=F(function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},"calculateSvgSizeAttrs"),Hxe=F(function(t,e,n,r){const i=O2t(e,n,r);P2t(t,i)},"configureSvgSize"),I2t=F(function(t,e,n,r){const i=e.node().getBBox(),s=i.width,o=i.height;pt.info(`SVG bounds: ${s}x${o}`,i);let a=0,l=0;pt.info(`Graph bounds: ${a}x${l}`,t),a=s+n*2,l=o+n*2,pt.info(`Calculated bounds: ${a}x${l}`),Hxe(e,l,a,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;e.attr("viewBox",c)},"setupGraphViewbox"),vA={},D2t=F((t,e,n)=>{let r="";return t in vA&&vA[t]?r=vA[t](n):pt.warn(`No theme found for ${t}`),` & { 699 font-family: ${n.fontFamily}; 700 font-size: ${n.fontSize}; 701 fill: ${n.textColor} 702 } 703 @keyframes edge-animation-frame { 704 from { 705 stroke-dashoffset: 0; 706 } 707 } 708 @keyframes dash { 709 to { 710 stroke-dashoffset: 0; 711 } 712 } 713 & .edge-animation-slow { 714 stroke-dasharray: 9,5 !important; 715 stroke-dashoffset: 900; 716 animation: dash 50s linear infinite; 717 stroke-linecap: round; 718 } 719 & .edge-animation-fast { 720 stroke-dasharray: 9,5 !important; 721 stroke-dashoffset: 900; 722 animation: dash 20s linear infinite; 723 stroke-linecap: round; 724 } 725 /* Classes common for multiple diagrams */ 726 727 & .error-icon { 728 fill: ${n.errorBkgColor}; 729 } 730 & .error-text { 731 fill: ${n.errorTextColor}; 732 stroke: ${n.errorTextColor}; 733 } 734 735 & .edge-thickness-normal { 736 stroke-width: 1px; 737 } 738 & .edge-thickness-thick { 739 stroke-width: 3.5px 740 } 741 & .edge-pattern-solid { 742 stroke-dasharray: 0; 743 } 744 & .edge-thickness-invisible { 745 stroke-width: 0; 746 fill: none; 747 } 748 & .edge-pattern-dashed{ 749 stroke-dasharray: 3; 750 } 751 .edge-pattern-dotted { 752 stroke-dasharray: 2; 753 } 754 755 & .marker { 756 fill: ${n.lineColor}; 757 stroke: ${n.lineColor}; 758 } 759 & .marker.cross { 760 stroke: ${n.lineColor}; 761 } 762 763 & svg { 764 font-family: ${n.fontFamily}; 765 font-size: ${n.fontSize}; 766 } 767 & p { 768 margin: 0 769 } 770 771 ${r} 772 773 ${e} 774`},"getStyles"),M2t=F((t,e)=>{e!==void 0&&(vA[t]=e)},"addStylesForDiagram"),N2t=D2t,Uxe={};Xvt(Uxe,{clear:()=>R2t,getAccDescription:()=>$2t,getAccTitle:()=>B2t,getDiagramTitle:()=>z2t,setAccDescription:()=>F2t,setAccTitle:()=>L2t,setDiagramTitle:()=>j2t});var UW="",VW="",WW="",qW=F(t=>Sb(t,Dc()),"sanitizeText"),R2t=F(()=>{UW="",WW="",VW=""},"clear"),L2t=F(t=>{UW=qW(t).replace(/^\s+/g,"")},"setAccTitle"),B2t=F(()=>UW,"getAccTitle"),F2t=F(t=>{WW=qW(t).replace(/\n\s+/g,` 775`)},"setAccDescription"),$2t=F(()=>WW,"getAccDescription"),j2t=F(t=>{VW=qW(t)},"setDiagramTitle"),z2t=F(()=>VW,"getDiagramTitle"),mie=pt,H2t=jW,Fi=Dc,AGt=Lxe,PGt=nw,GW=F(t=>Sb(t,Fi()),"sanitizeText"),U2t=I2t,V2t=F(()=>Uxe,"getCommonDb"),R7={},L7=F((t,e,n)=>{R7[t]&&mie.warn(`Diagram with id ${t} already registered. Overwriting.`),R7[t]=e,n&&Oxe(t,n),M2t(t,e.styles),e.injectUtils?.(mie,H2t,Fi,GW,U2t,V2t(),()=>{})},"registerDiagram"),D$=F(t=>{if(t in R7)return R7[t];throw new W2t(t)},"getDiagram"),W2t=class extends Error{static{F(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}};function KW(t){return typeof t>"u"||t===null}F(KW,"isNothing");function Vxe(t){return typeof t=="object"&&t!==null}F(Vxe,"isObject");function Wxe(t){return Array.isArray(t)?t:KW(t)?[]:[t]}F(Wxe,"toArray");function qxe(t,e){var n,r,i,s;if(e)for(s=Object.keys(e),n=0,r=s.length;n<r;n+=1)i=s[n],t[i]=e[i];return t}F(qxe,"extend");function Gxe(t,e){var n="",r;for(r=0;r<e;r+=1)n+=t;return n}F(Gxe,"repeat");function Kxe(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}F(Kxe,"isNegativeZero");var q2t=KW,G2t=Vxe,K2t=Wxe,Y2t=Gxe,Q2t=Kxe,X2t=qxe,la={isNothing:q2t,isObject:G2t,toArray:K2t,repeat:Y2t,isNegativeZero:Q2t,extend:X2t};function YW(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=` 776 777`+t.mark.snippet),r+" "+n):r}F(YW,"formatError");function sw(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=YW(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}F(sw,"YAMLException$1");sw.prototype=Object.create(Error.prototype);sw.prototype.constructor=sw;sw.prototype.toString=F(function(e){return this.name+": "+YW(this,e)},"toString");var kc=sw;function xA(t,e,n,r,i){var s="",o="",a=Math.floor(i/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),n-r>a&&(o=" ...",n=r+a-o.length),{str:s+t.slice(e,n).replace(/\t/g,"â")+o,pos:r-e+s.length}}F(xA,"getLine");function wA(t,e){return la.repeat(" ",e-t.length)+t}F(wA,"padStart");function Yxe(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],s,o=-1;s=n.exec(t.buffer);)i.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=xA(t.buffer,r[o-l],i[o-l],t.position-(r[o]-r[o-l]),h),a=la.repeat(" ",e.indent)+wA((t.line-l+1).toString(),u)+" | "+c.str+` 778`+a;for(c=xA(t.buffer,r[o],i[o],t.position,h),a+=la.repeat(" ",e.indent)+wA((t.line+1).toString(),u)+" | "+c.str+` 779`,a+=la.repeat("-",e.indent+u+3+c.pos)+`^ 780`,l=1;l<=e.linesAfter&&!(o+l>=i.length);l++)c=xA(t.buffer,r[o+l],i[o+l],t.position-(r[o]-r[o+l]),h),a+=la.repeat(" ",e.indent)+wA((t.line+l+1).toString(),u)+" | "+c.str+` 781`;return a.replace(/\n$/,"")}F(Yxe,"makeSnippet");var J2t=Yxe,Z2t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ext=["scalar","sequence","mapping"];function Qxe(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(r){e[String(r)]=n})}),e}F(Qxe,"compileStyleAliases");function Xxe(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(Z2t.indexOf(n)===-1)throw new kc('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Qxe(e.styleAliases||null),ext.indexOf(this.kind)===-1)throw new kc('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}F(Xxe,"Type$1");var gl=Xxe;function M$(t,e){var n=[];return t[e].forEach(function(r){var i=n.length;n.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(i=o)}),n[i]=r}),n}F(M$,"compileList");function Jxe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function r(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(F(r,"collectType"),e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(r);return t}F(Jxe,"compileMap");function B7(t){return this.extend(t)}F(B7,"Schema$1");B7.prototype.extend=F(function(e){var n=[],r=[];if(e instanceof gl)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new kc("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
vendor: 9,290 bytes, lines 781-782
781n.forEach(function(s){if(!(s instanceof gl))throw new kc("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new kc("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new kc("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof gl))throw new kc("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(B7.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=M$(i,"implicit"),i.compiledExplicit=M$(i,"explicit"),i.compiledTypeMap=Jxe(i.compiledImplicit,i.compiledExplicit),i},"extend");var txt=B7,nxt=new gl("tag:yaml.org,2002:str",{kind:"scalar",construct:F(function(t){return t!==null?t:""},"construct")}),rxt=new gl("tag:yaml.org,2002:seq",{kind:"sequence",construct:F(function(t){return t!==null?t:[]},"construct")}),ixt=new gl("tag:yaml.org,2002:map",{kind:"mapping",construct:F(function(t){return t!==null?t:{}},"construct")}),sxt=new txt({explicit:[nxt,rxt,ixt]});function Zxe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}F(Zxe,"resolveYamlNull");function ewe(){return null}F(ewe,"constructYamlNull");function twe(t){return t===null}F(twe,"isNull");var oxt=new gl("tag:yaml.org,2002:null",{kind:"scalar",resolve:Zxe,construct:ewe,predicate:twe,represent:{canonical:F(function(){return"~"},"canonical"),lowercase:F(function(){return"null"},"lowercase"),uppercase:F(function(){return"NULL"},"uppercase"),camelcase:F(function(){return"Null"},"camelcase"),empty:F(function(){return""},"empty")},defaultStyle:"lowercase"});function nwe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}F(nwe,"resolveYamlBoolean");function rwe(t){return t==="true"||t==="True"||t==="TRUE"}F(rwe,"constructYamlBoolean");function iwe(t){return Object.prototype.toString.call(t)==="[object Boolean]"}F(iwe,"isBoolean");var axt=new gl("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nwe,construct:rwe,predicate:iwe,represent:{lowercase:F(function(t){return t?"true":"false"},"lowercase"),uppercase:F(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:F(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function swe(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}F(swe,"isHexCode");function owe(t){return 48<=t&&t<=55}F(owe,"isOctCode");function awe(t){return 48<=t&&t<=57}F(awe,"isDecCode");function lwe(t){if(t===null)return!1;var e=t.length,n=0,r=!1,i;if(!e)return!1;if(i=t[n],(i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===e)return!0;if(i=t[++n],i==="b"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!swe(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!owe(t.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<e;n++)if(i=t[n],i!=="_"){if(!awe(t.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}F(lwe,"resolveYamlInteger");function cwe(t){var e=t,n=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}F(cwe,"constructYamlInteger");function uwe(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!la.isNegativeZero(t)}F(uwe,"isInteger");var lxt=new gl("tag:yaml.org,2002:int",{kind:"scalar",resolve:lwe,construct:cwe,predicate:uwe,represent:{binary:F(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:F(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:F(function(t){return t.toString(10)},"decimal"),hexadecimal:F(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cxt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function hwe(t){return!(t===null||!cxt.test(t)||t[t.length-1]==="_")}F(hwe,"resolveYamlFloat");function dwe(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}F(dwe,"constructYamlFloat");var uxt=/^[-+]?[0-9]+e/;function fwe(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(la.isNegativeZero(t))return"-0.0";return n=t.toString(10),uxt.test(n)?n.replace("e",".e"):n}F(fwe,"representYamlFloat");function pwe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||la.isNegativeZero(t))}F(pwe,"isFloat");var hxt=new gl("tag:yaml.org,2002:float",{kind:"scalar",resolve:hwe,construct:dwe,predicate:pwe,represent:fwe,defaultStyle:"lowercase"}),mwe=sxt.extend({implicit:[oxt,axt,lxt,hxt]}),dxt=mwe,gwe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ywe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bwe(t){return t===null?!1:gwe.exec(t)!==null||ywe.exec(t)!==null}F(bwe,"resolveYamlTimestamp");function vwe(t){var e,n,r,i,s,o,a,l=0,c=null,u,h,d;if(e=gwe.exec(t),e===null&&(e=ywe.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),d=new Date(Date.UTC(n,r,i,s,o,a,l)),c&&d.setTime(d.getTime()-c),d}F(vwe,"constructYamlTimestamp");function xwe(t){return t.toISOString()}F(xwe,"representYamlTimestamp");var fxt=new gl("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bwe,construct:vwe,instanceOf:Date,represent:xwe});function wwe(t){return t==="<<"||t===null}F(wwe,"resolveYamlMerge");var pxt=new gl("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wwe}),QW=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 782\r`;function Swe(t){if(t===null)return!1;var e,n,r=0,i=t.length,s=QW;for(n=0;n<i;n++)if(e=s.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}F(Swe,"resolveYamlBinary");function kwe(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,s=QW,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(e));return n=i%4*6,n===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):n===18?(a.push(o>>10&255),a.push(o>>2&255)):n===12&&a.push(o>>4&255),new Uint8Array(a)}F(kwe,"constructYamlBinary");function Cwe(t){var e="",n=0,r,i,s=t.length,o=QW;for(r=0;r<s;r++)r%3===0&&r&&(e+=o[n>>18&63],e+=o[n>>12&63],e+=o[n>>6&63],e+=o[n&63]),n=(n<<8)+t[r];return i=s%3,i===0?(e+=o[n>>18&63],e+=o[n>>12&63],e+=o[n>>6&63],e+=o[n&63]):i===2?(e+=o[n>>10&63],e+=o[n>>4&63],e+=o[n<<2&63],e+=o[64]):i===1&&(e+=o[n>>2&63],e+=o[n<<4&63],e+=o[64],e+=o[64]),e}F(Cwe,"representYamlBinary");function _we(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}F(_we,"isBinary");var mxt=new gl("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Swe,construct:kwe,predicate:_we,represent:Cwe}),gxt=Object.prototype.hasOwnProperty,yxt=Object.prototype.toString;function Twe(t){if(t===null)return!0;var e=[],n,r,i,s,o,a=t;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],o=!1,yxt.call(i)!=="[object Object]")return!1;for(s in i)if(gxt.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}F(Twe,"resolveYamlOmap");function Ewe(t){return t!==null?t:[]}F(Ewe,"constructYamlOmap");var bxt=new gl("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Twe,construct:Ewe}),vxt=Object.prototype.toString;function Awe(t){if(t===null)return!0;var e,n,r,i,s,o=t;for(s=new Array(o.length),e=0,n=o.length;e<n;e+=1){if(r=o[e],vxt.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[e]=[i[0],r[i[0]]]}return!0}F(Awe,"resolveYamlPairs");function Pwe(t){if(t===null)return[];var e,n,r,i,s,o=t;for(s=new Array(o.length),e=0,n=o.length;e<n;e+=1)r=o[e],i=Object.keys(r),s[e]=[i[0],r[i[0]]];return s}F(Pwe,"constructYamlPairs");var xxt=new gl("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Awe,construct:Pwe}),wxt=Object.prototype.hasOwnProperty;function Owe(t){if(t===null)return!0;var e,n=t;
vendor: 5,001 bytes, lines 782-783
782for(e in n)if(wxt.call(n,e)&&n[e]!==null)return!1;return!0}F(Owe,"resolveYamlSet");function Iwe(t){return t!==null?t:{}}F(Iwe,"constructYamlSet");var Sxt=new gl("tag:yaml.org,2002:set",{kind:"mapping",resolve:Owe,construct:Iwe}),Dwe=dxt.extend({implicit:[fxt,pxt],explicit:[mxt,bxt,xxt,Sxt]}),Jg=Object.prototype.hasOwnProperty,F7=1,Mwe=2,Nwe=3,$7=4,nR=1,kxt=2,gie=3,Cxt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_xt=/[\x85\u2028\u2029]/,Txt=/[,\[\]\{\}]/,Rwe=/^(?:!|!!|![a-z\-]+!)$/i,Lwe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function N$(t){return Object.prototype.toString.call(t)}F(N$,"_class");function Ad(t){return t===10||t===13}F(Ad,"is_EOL");function Mg(t){return t===9||t===32}F(Mg,"is_WHITE_SPACE");function Fl(t){return t===9||t===32||t===10||t===13}F(Fl,"is_WS_OR_EOL");function Fy(t){return t===44||t===91||t===93||t===123||t===125}F(Fy,"is_FLOW_INDICATOR");function Bwe(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}F(Bwe,"fromHexCode");function Fwe(t){return t===120?2:t===117?4:t===85?8:0}F(Fwe,"escapedHexLen");function $we(t){return 48<=t&&t<=57?t-48:-1}F($we,"fromDecimalCode");function R$(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?` 783`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"Â ":t===95?"Â ":t===76?"\u2028":t===80?"\u2029":""}F(R$,"simpleEscapeSequence");function jwe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}F(jwe,"charFromCodepoint");var zwe=new Array(256),Hwe=new Array(256);for(J1=0;J1<256;J1++)zwe[J1]=R$(J1)?1:0,Hwe[J1]=R$(J1);var J1;function Uwe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Dwe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}F(Uwe,"State$1");function XW(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=J2t(n),new kc(e,n)}F(XW,"generateError");function Dn(t,e){throw XW(t,e)}F(Dn,"throwError");function hC(t,e){t.onWarning&&t.onWarning.call(null,XW(t,e))}F(hC,"throwWarning");var yie={YAML:F(function(e,n,r){var i,s,o;e.version!==null&&Dn(e,"duplication of %YAML directive"),r.length!==1&&Dn(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Dn(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&Dn(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&hC(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:F(function(e,n,r){var i,s;r.length!==2&&Dn(e,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],Rwe.test(i)||Dn(e,"ill-formed tag handle (first argument) of the TAG directive"),Jg.call(e.tagMap,i)&&Dn(e,'there is a previously declared suffix for "'+i+'" tag handle'),Lwe.test(s)||Dn(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Dn(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s},"handleTagDirective")};function j0(t,e,n,r){var i,s,o,a;if(e<n){if(a=t.input.slice(e,n),r)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Dn(t,"expected valid JSON character");else Cxt.test(a)&&Dn(t,"the stream contains non-printable characters");t.result+=a}}F(j0,"captureSegment");function L$(t,e,n,r){var i,s,o,a;for(la.isObject(n)||Dn(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,a=i.length;o<a;o+=1)s=i[o],Jg.call(e,s)||(e[s]=n[s],r[s]=!0)}F(L$,"mergeMappings");function $y(t,e,n,r,i,s,o,a,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&Dn(t,"nested arrays are not supported inside keys"),typeof i=="object"&&N$(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&N$(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)L$(t,e,s[c],n);else L$(t,e,s,n);else!t.json&&!Jg.call(n,i)&&Jg.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,Dn(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete n[i];return e}F($y,"storeMappingPair");function yI(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Dn(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}
vendor: 15,881 bytes, lines 783-791
783F(yI,"readLineBreak");function So(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Mg(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(Ad(i))for(yI(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return n!==-1&&r!==0&&t.lineIndent<n&&hC(t,"deficient indentation"),r}F(So,"skipSeparationSpace");function N_(t){var e=t.position,n;return n=t.input.charCodeAt(e),!!((n===45||n===46)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)&&(e+=3,n=t.input.charCodeAt(e),n===0||Fl(n)))}F(N_,"testDocumentSeparator");function bI(t,e){e===1?t.result+=" ":e>1&&(t.result+=la.repeat(` 784`,e-1))}F(bI,"writeFoldedLines");function Vwe(t,e,n){var r,i,s,o,a,l,c,u,h=t.kind,d=t.result,p;if(p=t.input.charCodeAt(t.position),Fl(p)||Fy(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),Fl(i)||n&&Fy(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),Fl(i)||n&&Fy(i))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),Fl(r))break}else{if(t.position===t.lineStart&&N_(t)||n&&Fy(p))break;if(Ad(p))if(l=t.line,c=t.lineStart,u=t.lineIndent,So(t,!1,-1),t.lineIndent>=e){a=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(j0(t,s,o,!1),bI(t,t.line-l),s=o=t.position,a=!1),Mg(p)||(o=t.position+1),p=t.input.charCodeAt(++t.position)}return j0(t,s,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}F(Vwe,"readPlainScalar");function Wwe(t,e){var n,r,i;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(j0(t,r,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)r=t.position,t.position++,i=t.position;else return!0;else Ad(n)?(j0(t,r,i,!0),bI(t,So(t,!1,e)),r=i=t.position):t.position===t.lineStart&&N_(t)?Dn(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Dn(t,"unexpected end of the stream within a single quoted scalar")}F(Wwe,"readSingleQuotedScalar");function qwe(t,e){var n,r,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return j0(t,n,t.position,!0),t.position++,!0;if(a===92){if(j0(t,n,t.position,!0),a=t.input.charCodeAt(++t.position),Ad(a))So(t,!1,e);else if(a<256&&zwe[a])t.result+=Hwe[a],t.position++;else if((o=Fwe(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=Bwe(a))>=0?s=(s<<4)+o:Dn(t,"expected hexadecimal character");t.result+=jwe(s),t.position++}else Dn(t,"unknown escape sequence");n=r=t.position}else Ad(a)?(j0(t,n,r,!0),bI(t,So(t,!1,e)),n=r=t.position):t.position===t.lineStart&&N_(t)?Dn(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}Dn(t,"unexpected end of the stream within a double quoted scalar")}F(qwe,"readDoubleQuotedScalar");function Gwe(t,e){var n=!0,r,i,s,o=t.tag,a,l=t.anchor,c,u,h,d,p,g=Object.create(null),y,b,w,S;if(S=t.input.charCodeAt(t.position),S===91)u=93,p=!1,a=[];else if(S===123)u=125,p=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),S=t.input.charCodeAt(++t.position);S!==0;){if(So(t,!0,e),S=t.input.charCodeAt(t.position),S===u)return t.position++,t.tag=o,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=a,!0;n?S===44&&Dn(t,"expected the node content, but found ','"):Dn(t,"missed comma between flow collection entries"),b=y=w=null,h=d=!1,S===63&&(c=t.input.charCodeAt(t.position+1),Fl(c)&&(h=d=!0,t.position++,So(t,!0,e))),r=t.line,i=t.lineStart,s=t.position,kb(t,e,F7,!1,!0),b=t.tag,y=t.result,So(t,!0,e),S=t.input.charCodeAt(t.position),(d||t.line===r)&&S===58&&(h=!0,S=t.input.charCodeAt(++t.position),So(t,!0,e),kb(t,e,F7,!1,!0),w=t.result),p?$y(t,a,g,b,y,w,r,i,s):h?a.push($y(t,null,g,b,y,w,r,i,s)):a.push(y),So(t,!0,e),S=t.input.charCodeAt(t.position),S===44?(n=!0,S=t.input.charCodeAt(++t.position)):n=!1}Dn(t,"unexpected end of the stream within a flow collection")}F(Gwe,"readFlowCollection");function Kwe(t,e){var n,r,i=nR,s=!1,o=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)nR===i?i=h===43?gie:kxt:Dn(t,"repeat of a chomping mode identifier");else if((u=$we(h))>=0)u===0?Dn(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Dn(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Mg(h)){do h=t.input.charCodeAt(++t.position);while(Mg(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Ad(h)&&h!==0)}for(;h!==0;){for(yI(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ad(h)){l++;continue}if(t.lineIndent<a){i===gie?t.result+=la.repeat(` 785`,s?1+l:l):i===nR&&s&&(t.result+=` 786`);break}for(r?Mg(h)?(c=!0,t.result+=la.repeat(` 787`,s?1+l:l)):c?(c=!1,t.result+=la.repeat(` 788`,l+1)):l===0?s&&(t.result+=" "):t.result+=la.repeat(` 789`,l):t.result+=la.repeat(` 790`,s?1+l:l),s=!0,o=!0,l=0,n=t.position;!Ad(h)&&h!==0;)h=t.input.charCodeAt(++t.position);j0(t,n,t.position,!1)}return!0}F(Kwe,"readBlockScalar");function B$(t,e){var n,r=t.tag,i=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Dn(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Fl(o))));){if(a=!0,t.position++,So(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(n=t.line,kb(t,e,Nwe,!1,!0),s.push(t.result),So(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&l!==0)Dn(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}F(B$,"readBlockSequence");function Ywe(t,e,n){var r,i,s,o,a,l,c=t.tag,u=t.anchor,h={},d=Object.create(null),p=null,g=null,y=null,b=!1,w=!1,S;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),S=t.input.charCodeAt(t.position);S!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Dn(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(S===63||S===58)&&Fl(r))S===63?(b&&($y(t,h,d,p,g,null,o,a,l),p=g=y=null),w=!0,b=!0,i=!0):b?(b=!1,i=!0):Dn(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,S=r;else{if(o=t.line,a=t.lineStart,l=t.position,!kb(t,n,Mwe,!1,!0))break;if(t.line===s){for(S=t.input.charCodeAt(t.position);Mg(S);)S=t.input.charCodeAt(++t.position);if(S===58)S=t.input.charCodeAt(++t.position),Fl(S)||Dn(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&($y(t,h,d,p,g,null,o,a,l),p=g=y=null),w=!0,b=!1,i=!1,p=t.tag,g=t.result;else if(w)Dn(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(w)Dn(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===s||t.lineIndent>e)&&(b&&(o=t.line,a=t.lineStart,l=t.position),kb(t,e,$7,!0,i)&&(b?g=t.result:y=t.result),b||($y(t,h,d,p,g,y,o,a,l),p=g=y=null),So(t,!0,-1),S=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&S!==0)Dn(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&$y(t,h,d,p,g,null,o,a,l),w&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),w}F(Ywe,"readBlockMapping");function Qwe(t){var e,n=!1,r=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Dn(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(n=!0,o=t.input.charCodeAt(++t.position)):o===33?(r=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,n){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Dn(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Fl(o);)o===33&&(r?Dn(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),Rwe.test(i)||Dn(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Txt.test(s)&&Dn(t,"tag suffix cannot contain flow indicator characters")}s&&!Lwe.test(s)&&Dn(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Dn(t,"tag name is malformed: "+s)}return n?t.tag=s:Jg.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:Dn(t,'undeclared tag handle "'+i+'"'),!0}F(Qwe,"readTagProperty");function Xwe(t){var e,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&Dn(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Fl(n)&&!Fy(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Dn(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}F(Xwe,"readAnchorProperty");function Jwe(t){var e,n,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Fl(r)&&!Fy(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Dn(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),Jg.call(t.anchorMap,n)||Dn(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],So(t,!0,-1),!0}F(Jwe,"readAlias");function kb(t,e,n,r,i){var s,o,a,l=1,c=!1,u=!1,h,d,p,g,y,b;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=$7===n||Nwe===n,r&&So(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Qwe(t)||Xwe(t);)So(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||i),(l===1||$7===n)&&(F7===n||Mwe===n?y=e:y=e+1,b=t.position-t.lineStart,l===1?a&&(B$(t,b)||Ywe(t,b,y))||Gwe(t,y)?u=!0:(o&&Kwe(t,y)||Wwe(t,y)||qwe(t,y)?u=!0:Jwe(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&Dn(t,"alias node should not have any properties")):Vwe(t,y,F7===n)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&B$(t,b))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Dn(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,d=t.implicitTypes.length;h<d;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Jg.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,p=t.typeMap.multi[t.kind||"fallback"],h=0,d=p.length;h<d;h+=1)if(t.tag.slice(0,p[h].tag.length)===p[h].tag){g=p[h];break}g||Dn(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Dn(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Dn(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}F(kb,"composeNode");function Zwe(t){var e=t.position,n,r,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(So(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),n=t.position;o!==0&&!Fl(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(n,t.position),i=[],r.length<1&&Dn(t,"directive name must not be less than one character in length");o!==0;){for(;Mg(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Ad(o));break}if(Ad(o))break;for(n=t.position;o!==0&&!Fl(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(n,t.position))}o!==0&&yI(t),Jg.call(yie,r)?yie[r](t,r,i):hC(t,'unknown document directive "'+r+'"')}if(So(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,So(t,!0,-1)):s&&Dn(t,"directives end mark is expected"),kb(t,t.lineIndent-1,$7,!1,!0),So(t,!0,-1),t.checkLineBreaks&&_xt.test(t.input.slice(e,t.position))&&hC(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&N_(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,So(t,!0,-1));return}if(t.position<t.length-1)Dn(t,"end of the stream or a document separator is expected");else return}F(Zwe,"readDocument");function JW(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=` 791`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new Uwe(t,e),r=t.indexOf("\0");for(r!==-1&&(n.position=r,Dn(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Zwe(n);return n.documents}F(JW,"loadDocuments");function Ext(t,e,n){e!==null&&typeof e=="object"&&typeof n>"u"&&(n=e,e=null);var r=JW(t,n);if(typeof e!="function")return r;for(var i=0,s=r.length;i<s;i+=1)e(r[i])}F(Ext,"loadAll$1");function eSe(t,e){var n=JW(t,e);if(n.length!==0){if(n.length===1)return n[0];throw new kc("expected a single document in the stream, but found more")}}F(eSe,"load$1");var Axt=eSe,Pxt={load:Axt},tSe=Object.prototype.toString,nSe=Object.prototype.hasOwnProperty,ZW=65279,Oxt=9,dC=10,Ixt=13,Dxt=32,Mxt=33,Nxt=34,F$=35,Rxt=37,Lxt=38,Bxt=39,Fxt=42,rSe=44,$xt=45,j7=58,jxt=61,zxt=62,Hxt=63,Uxt=64,iSe=91,sSe=93,Vxt=96,oSe=123,Wxt=124,aSe=125,vl={};vl[0]="\\0";vl[7]="\\a";vl[8]="\\b";vl[9]="\\t";vl[10]="\\n";vl[11]="\\v";vl[12]="\\f";vl[13]="\\r";vl[27]="\\e";vl[34]='\\"';vl[92]="\\\\";vl[133]="\\N";vl[160]="\\_";vl[8232]="\\L";vl[8233]="\\P";var qxt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Gxt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function lSe(t,e){var n,r,i,s,o,a,l;if(e===null)return{};for(n={},r=Object.keys(e),i=0,s=r.length;i<s;i+=1)o=r[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=t.compiledTypeMap.fallback[o],l&&nSe.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[o]=a;return n}F(lSe,"compileStyleMap");function cSe(t){var e,n,r;if(e=t.toString(16).toUpperCase(),t<=255)n="x",r=2;else if(t<=65535)n="u",r=4;else if(t<=4294967295)n="U",r=8;else throw new kc("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+la.repeat("0",r-e.length)+e}F(cSe,"encodeHex");var Kxt=1,fC=2;function uSe(t){this.schema=t.schema||Dwe,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=la.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=lSe(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?fC:Kxt,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.impl
vendor: 16,821 bytes, lines 791-810
791icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}F(uSe,"State");function $$(t,e){for(var n=la.repeat(" ",e),r=0,i=-1,s="",o,a=t.length;r<a;)i=t.indexOf(` 792`,r),i===-1?(o=t.slice(r),r=a):(o=t.slice(r,i+1),r=i+1),o.length&&o!==` 793`&&(s+=n),s+=o;return s}F($$,"indentString");function z7(t,e){return` 794`+la.repeat(" ",t.indent*e)}F(z7,"generateNextLine");function hSe(t,e){var n,r,i;for(n=0,r=t.implicitTypes.length;n<r;n+=1)if(i=t.implicitTypes[n],i.resolve(e))return!0;return!1}F(hSe,"testImplicitResolving");function pC(t){return t===Dxt||t===Oxt}F(pC,"isWhitespace");function ow(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ZW||65536<=t&&t<=1114111}F(ow,"isPrintable");function j$(t){return ow(t)&&t!==ZW&&t!==Ixt&&t!==dC}F(j$,"isNsCharOrWhitespace");function z$(t,e,n){var r=j$(t),i=r&&!pC(t);return(n?r:r&&t!==rSe&&t!==iSe&&t!==sSe&&t!==oSe&&t!==aSe)&&t!==F$&&!(e===j7&&!i)||j$(e)&&!pC(e)&&t===F$||e===j7&&i}F(z$,"isPlainSafe");function dSe(t){return ow(t)&&t!==ZW&&!pC(t)&&t!==$xt&&t!==Hxt&&t!==j7&&t!==rSe&&t!==iSe&&t!==sSe&&t!==oSe&&t!==aSe&&t!==F$&&t!==Lxt&&t!==Fxt&&t!==Mxt&&t!==Wxt&&t!==jxt&&t!==zxt&&t!==Bxt&&t!==Nxt&&t!==Rxt&&t!==Uxt&&t!==Vxt}F(dSe,"isPlainSafeFirst");function fSe(t){return!pC(t)&&t!==j7}F(fSe,"isPlainSafeLast");function L2(t,e){var n=t.charCodeAt(e),r;return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}F(L2,"codePointAt");function eq(t){var e=/^\n* /;return e.test(t)}F(eq,"needIndentIndicator");var pSe=1,H$=2,mSe=3,gSe=4,h2=5;function ySe(t,e,n,r,i,s,o,a){var l,c=0,u=null,h=!1,d=!1,p=r!==-1,g=-1,y=dSe(L2(t,0))&&fSe(L2(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=L2(t,l),!ow(c))return h2;y=y&&z$(c,u,a),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=L2(t,l),c===dC)h=!0,p&&(d=d||l-g-1>r&&t[g+1]!==" ",g=l);else if(!ow(c))return h2;y=y&&z$(c,u,a),u=c}d=d||p&&l-g-1>r&&t[g+1]!==" "}return!h&&!d?y&&!o&&!i(t)?pSe:s===fC?h2:H$:n>9&&eq(t)?h2:o?s===fC?h2:H$:d?gSe:mSe}F(ySe,"chooseScalarStyle");function bSe(t,e,n,r,i){t.dump=function(){if(e.length===0)return t.quotingType===fC?'""':"''";if(!t.noCompatMode&&(qxt.indexOf(e)!==-1||Gxt.test(e)))return t.quotingType===fC?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,n),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=r||t.flowLevel>-1&&n>=t.flowLevel;function l(c){return hSe(t,c)}switch(F(l,"testAmbiguity"),ySe(e,a,t.indent,o,l,t.quotingType,t.forceQuotes&&!r,i)){case pSe:return e;case H$:return"'"+e.replace(/'/g,"''")+"'";case mSe:return"|"+U$(e,t.indent)+V$($$(e,s));case gSe:return">"+U$(e,t.indent)+V$($$(vSe(e,o),s));case h2:return'"'+xSe(e)+'"';default:throw new kc("impossible error: invalid scalar style")}}()}F(bSe,"writeScalar");function U$(t,e){var n=eq(t)?String(e):"",r=t[t.length-1]===` 795`,i=r&&(t[t.length-2]===` 796`||t===` 797`),s=i?"+":r?"":"-";return n+s+` 798`}F(U$,"blockHeader");function V$(t){return t[t.length-1]===` 799`?t.slice(0,-1):t}F(V$,"dropEndingNewline");function vSe(t,e){for(var n=/(\n+)([^\n]*)/g,r=function(){var c=t.indexOf(` 800`);return c=c!==-1?c:t.length,n.lastIndex=c,W$(t.slice(0,c),e)}(),i=t[0]===` 801`||t[0]===" ",s,o;o=n.exec(t);){var a=o[1],l=o[2];s=l[0]===" ",r+=a+(!i&&!s&&l!==""?` 802`:"")+W$(l,e),i=s}return r}F(vSe,"foldString");function W$(t,e){if(t===""||t[0]===" ")return t;for(var n=/ [^ ]/g,r,i=0,s,o=0,a=0,l="";r=n.exec(t);)a=r.index,a-i>e&&(s=o>i?o:a,l+=` 803`+t.slice(i,s),i=s+1),o=a;return l+=` 804`,t.length-i>e&&o>i?l+=t.slice(i,o)+` 805`+t.slice(o+1):l+=t.slice(i),l.slice(1)}F(W$,"foldLine");function xSe(t){for(var e="",n=0,r,i=0;i<t.length;n>=65536?i+=2:i++)n=L2(t,i),r=vl[n],!r&&ow(n)?(e+=t[i],n>=65536&&(e+=t[i+1])):e+=r||cSe(n);return e}F(xSe,"escapeString");function wSe(t,e,n){var r="",i=t.tag,s,o,a;for(s=0,o=n.length;s<o;s+=1)a=n[s],t.replacer&&(a=t.replacer.call(n,String(s),a)),(pp(t,e,a,!1,!1)||typeof a>"u"&&pp(t,e,null,!1,!1))&&(r!==""&&(r+=","+(t.condenseFlow?"":" ")),r+=t.dump);t.tag=i,t.dump="["+r+"]"}F(wSe,"writeFlowSequence");function q$(t,e,n,r){var i="",s=t.tag,o,a,l;for(o=0,a=n.length;o<a;o+=1)l=n[o],t.replacer&&(l=t.replacer.call(n,String(o),l)),(pp(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&pp(t,e+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=z7(t,e)),t.dump&&dC===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}F(q$,"writeBlockSequence");function SSe(t,e,n){var r="",i=t.tag,s=Object.keys(n),o,a,l,c,u;for(o=0,a=s.length;o<a;o+=1)u="",r!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=s[o],c=n[l],t.replacer&&(c=t.replacer.call(n,l,c)),pp(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),pp(t,e,c,!1,!1)&&(u+=t.dump,r+=u));t.tag=i,t.dump="{"+r+"}"}F(SSe,"writeFlowMapping");function kSe(t,e,n,r){var i="",s=t.tag,o=Object.keys(n),a,l,c,u,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new kc("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)d="",(!r||i!=="")&&(d+=z7(t,e)),c=o[a],u=n[c],t.replacer&&(u=t.replacer.call(n,c,u)),pp(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&dC===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=z7(t,e)),pp(t,e+1,u,!0,h)&&(t.dump&&dC===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=s,t.dump=i||"{}"}F(kSe,"writeBlockMapping");function G$(t,e,n){var r,i,s,o,a,l;for(i=n?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(n?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(l=t.styleMap[a.tag]||a.defaultStyle,tSe.call(a.represent)==="[object Function]")r=a.represent(e,l);else if(nSe.call(a.represent,l))r=a.represent[l](e,l);else throw new kc("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');t.dump=r}return!0}return!1}F(G$,"detectType");function pp(t,e,n,r,i,s,o){t.tag=null,t.dump=n,G$(t,n,!1)||G$(t,n,!0);var a=tSe.call(t.dump),l=r,c;r&&(r=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,d;if(u&&(h=t.duplicates.indexOf(n),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")r&&Object.keys(t.dump).length!==0?(kSe(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(SSe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")r&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?q$(t,e-1,t.dump,i):q$(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(wSe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&bSe(t,t.dump,e,s,l);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new kc("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}F(pp,"writeNode");function CSe(t,e){var n=[],r=[],i,s;for(H7(t,n,r),i=0,s=r.length;i<s;i+=1)e.duplicates.push(n[r[i]]);e.usedDuplicates=new Array(s)}F(CSe,"getDuplicateReferences");function H7(t,e,n){var r,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)H7(t[i],e,n);else for(r=Object.keys(t),i=0,s=r.length;i<s;i+=1)H7(t[r[i]],e,n)}F(H7,"inspectNode");function Yxt(t,e){e=e||{};var n=new uSe(e);n.noRefs||CSe(t,n);var r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),pp(n,0,r,!0,!0)?n.dump+` 806`:""}F(Yxt,"dump$1");function Qxt(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}F(Qxt,"renamed");var Xxt=mwe,Jxt=Pxt.load;/*! Bundled license information: 807 808js-yaml/dist/js-yaml.mjs: 809 (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) 810*/var Ju={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function i4(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Hs(t),e=Hs(e);const[n,r]=[t.x,t.y],[i,s]=[e.x,e.y],o=i-n,a=s-r;return{angle:Math.atan(a/o),deltaX:o,deltaY:a}}F(i4,"calculateDeltaAndAngle");var Hs=F(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Zxt=F(t=>({x:F(function(e,n,r){let i=0;const s=Hs(r[0]).x<Hs(r[r.length-1]).x?"left":"right";if(n===0&&Object.hasOwn(Ju,t.arrowTypeStart)){const{angle:p,deltaX:g}=i4(r[0],r[1]);i=Ju[t.arrowTypeStart]*Math.cos(p)*(g>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(Ju,t.arrowTypeEnd)){const{angle:p,deltaX:g}=i4(r[r.length-1],r[r.length-2]);i=Ju[t.arrowTypeEnd]*Math.cos(p)*(g>=0?1:-1)}const o=Math.abs(Hs(e).x-Hs(r[r.length-1]).x),a=Math.abs(Hs(e).y-Hs(r[r.length-1]).y),l=Math.abs(Hs(e).x-Hs(r[0]).x),c=Math.abs(Hs(e).y-Hs(r[0]).y),u=Ju[t.arrowTypeStart],h=Ju[t.arrowTypeEnd],d=1;if(o<h&&o>0&&a<h){let p=h+d-o;p*=s==="right"?-1:1,i-=p}if(l<u&&l>0&&c<u){let p=u+d-l;p*=s==="right"?-1:1,i+=p}return Hs(e).x+i},"x"),y:F(function(e,n,r){let i=0;const s=Hs(r[0]).y<Hs(r[r.length-1]).y?"down":"up";if(n===0&&Object.hasOwn(Ju,t.arrowTypeStart)){const{angle:p,deltaY:g}=i4(r[0],r[1]);i=Ju[t.arrowTypeStart]*Math.abs(Math.sin(p))*(g>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(Ju,t.arrowTypeEnd)){const{angle:p,deltaY:g}=i4(r[r.length-1],r[r.length-2]);i=Ju[t.arrowTypeEnd]*Math.abs(Math.sin(p))*(g>=0?1:-1)}const o=Math.abs(Hs(e).y-Hs(r[r.length-1]).y),a=Math.abs(Hs(e).x-Hs(r[r.length-1]).x),l=Math.abs(Hs(e).y-Hs(r[0]).y),c=Math.abs(Hs(e).x-Hs(r[0]).x),u=Ju[t.arrowTypeStart],h=Ju[t.arrowTypeEnd],d=1;if(o<h&&o>0&&a<h){let p=h+d-o;p*=s==="up"?-1:1,i-=p}if(l<u&&l>0&&c<u){let p=u+d-l;p*=s==="up"?-1:1,i+=p}return Hs(e).y+i},"y")}),"getLineFunctionsWithOffset"),tq=F(({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,n=t?.subGraphTitleMargin?.bottom??0,r=e+n;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:r}},"getSubGraphTitleMargins");const ewt=Object.freeze({left:0,top:0,width:16,height:16}),U7=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_Se=Object.freeze({...ewt,...U7}),twt=Object.freeze({..._Se,body:"",hidden:!1}),nwt=Object.freeze({width:null,height:null}),rwt=Object.freeze({...nwt,...U7}),iwt=(t,e,n,r="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:a};return rR(c)?c:null}const s=i[0],o=s.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return rR(a)?a:null}if(n&&r===""){const a={provider:r,prefix:"",name:s};return rR(a,n)?a:null}return null},rR=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function swt(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function bie(t,e){const n=swt(t,e);for(const r in twt)r in U7?r in t&&!(r in n)&&(n[r]=U7[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function owt(t,e){const n=t.icons,r=t.aliases||Object.create(null),i=Object.create(null);function s(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=r[o]&&r[o].parent,l=a&&s(a);l&&(i[o]=[a].concat(l))}return i[o]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),i}function vie(t,e,n){const r=t.icons,i=t.aliases||Object.create(null);let s={};function o(a){s=bie(r[a]||i[a],s)}return o(e),n.forEach(o),bie(t,s)}function awt(t,e){if(t.icons[e])return vie(t,e,[]);const n=owt(t,[e])[e];return n?vie(t,e,n):null}const lwt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,cwt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xie(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(lwt);if(r===null||!r.length)return t;const i=[];let s=r.shift(),o=cwt.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?i.push(s):i.push(Math.ceil(a*e*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");o=!o}}function uwt(t,e="defs"){let n="";const r=t.indexOf("<"+e);for(;r>=0;){const i=t.indexOf(">",r),s=t.indexOf("</"+e);if(i===-1||s===-1)break;const o=t.indexOf(">",s);if(o===-1)break;n+=t.slice(i+1,s).trim(),t=t.slice(0,r).trim()+t.slice(o+1)}return{defs:n,content:t}}function hwt(t,e){return t?"<defs>"+t+"</defs>"+e:e}function dwt(t,e,n){const r=uwt(t);return hwt(r.defs,e+r.content+n)}const fwt=t=>t==="unset"||t==="undefined"||t==="none";function pwt(t,e){const n={..._Se,...t},r={...rwt,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(y=>{const b=[],w=y.hFlip,S=y.vFlip;let T=y.rotate;w?S?T+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):S&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let D;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:D=i.height/2+i.top,b.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:D=i.width/2+i.left,b.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}T%2===1&&(i.left!==i.top&&(D=i.left,i.left=i.top,i.top=D),i.width!==i.height&&(D=i.width,i.width=i.height,i.height=D)),b.length&&(s=dwt(s,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=xie(h,l/c)):(u=o==="auto"?l:o,h=a===null?xie(u,c/l):a==="auto"?c:a);const d={},p=(y,b)=>{fwt(b)||(d[y]=b.toString())};p("width",u),p("height",h);const g=[i.left,i.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:s}}const mwt=/\sid="(\S+)"/g,gwt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ywt=0;function bwt(t,e=gwt){const n=[];let r;for(;r=mwt.exec(t);)n.push(r[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof e=="function"?e(s):e+(ywt++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function vwt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}var xwt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},K$=new Map,TSe=new Map,wwt=F(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(pt.debug("Registering icon pack:",e.name),"loader"in e)TSe.set(e.name,e.loader);else if("icons"in e)K$.set(e.name,e.icons);else throw pt.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Swt=F(async(t,e)=>{const n=iwt(t,!0,e!==void 0);if(!n)throw new Error(`Invalid icon name: ${t}`);const r=n.prefix||e;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let i=K$.get(r);if(!i){const o=TSe.get(r);if(!o)throw new Error(`Icon set not found: ${n.prefix}`);try{i={...await o(),prefix:r},K$.set(r,i)}catch(a){throw pt.error(a),new Error(`Failed to load icon set: ${n.prefix}`)}}const s=awt(i,n.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),vI=F(async(t,e)=>{let n;try{n=await Swt(t,e?.fallbackPrefix)}catch(s){pt.error(s),n=xwt}const r=pwt(n,e);return vwt(bwt(r.body),r.attributes)},"getIconSVG"),i3={},ra={},wie;function kwt(){return wie||(wie=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.BLANK_URL=ra.relativeFirstCharacters=ra.whitespaceEscapeCharsRegex=ra.urlSchemeRegex=ra.ctrlCharactersRegex=ra.htmlCtrlEntityRegex=ra.htmlEntitiesRegex=ra.invalidProtocolRegex=void 0,ra.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,ra.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,ra.htmlCtrlEntityRegex=/&(newline|tab);/gi,ra.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ra.urlSchemeRegex=/^.+(:|:)/gim,ra.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,ra.relativeFirstCharacters=[".","/"],ra.BLANK_URL="about:blank"),ra}var Sie;function Cwt(){if(Sie)return i3;
vendor: 10,998 bytes, line 810
810Sie=1,Object.defineProperty(i3,"__esModule",{value:!0}),i3.sanitizeUrl=void 0;var t=kwt();function e(o){return t.relativeFirstCharacters.indexOf(o[0])>-1}function n(o){var a=o.replace(t.ctrlCharactersRegex,"");return a.replace(t.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function r(o){return URL.canParse(o)}function i(o){try{return decodeURIComponent(o)}catch{return o}}function s(o){if(!o)return t.BLANK_URL;var a,l=i(o.trim());do l=n(l).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),l=i(l),a=l.match(t.ctrlCharactersRegex)||l.match(t.htmlEntitiesRegex)||l.match(t.htmlCtrlEntityRegex)||l.match(t.whitespaceEscapeCharsRegex);while(a&&a.length>0);var c=l;if(!c)return t.BLANK_URL;if(e(c))return c;var u=c.trimStart(),h=u.match(t.urlSchemeRegex);if(!h)return c;var d=h[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var p=u.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://"))return p;if(d==="http:"||d==="https:"){if(!r(p))return t.BLANK_URL;var g=new URL(p);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return p}return i3.sanitizeUrl=s,i3}var _wt=Cwt(),Twt={value:()=>{}};function ESe(){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 SA(n)}function SA(t){this._=t}function Ewt(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}})}SA.prototype=ESe.prototype={constructor:SA,on:function(t,e){var n=this._,r=Ewt(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=Awt(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=kie(n[i],t.name,e);else if(e==null)for(i in n)n[i]=kie(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 SA(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[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,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function Awt(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function kie(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Twt,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var Y$="http://www.w3.org/1999/xhtml";const Cie={svg:"http://www.w3.org/2000/svg",xhtml:Y$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xI(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Cie.hasOwnProperty(e)?{space:Cie[e],local:t}:t}function Pwt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Y$&&e.documentElement.namespaceURI===Y$?e.createElement(t):e.createElementNS(n,t)}}function Owt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ASe(t){var e=xI(t);return(e.local?Owt:Pwt)(e)}function Iwt(){}function nq(t){return t==null?Iwt:function(){return this.querySelector(t)}}function Dwt(t){typeof t!="function"&&(t=nq(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=new Array(o),l,c,u=0;u<o;++u)(l=s[u])&&(c=t.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new Lu(r,this._parents)}function Mwt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Nwt(){return[]}function PSe(t){return t==null?Nwt:function(){return this.querySelectorAll(t)}}function Rwt(t){return function(){return Mwt(t.apply(this,arguments))}}function Lwt(t){typeof t=="function"?t=Rwt(t):t=PSe(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(r.push(t.call(l,l.__data__,c,o)),i.push(l));return new Lu(r,i)}function OSe(t){return function(){return this.matches(t)}}function ISe(t){return function(e){return e.matches(t)}}var Bwt=Array.prototype.find;function Fwt(t){return function(){return Bwt.call(this.children,t)}}function $wt(){return this.firstElementChild}function jwt(t){return this.select(t==null?$wt:Fwt(typeof t=="function"?t:ISe(t)))}var zwt=Array.prototype.filter;function Hwt(){return Array.from(this.children)}function Uwt(t){return function(){return zwt.call(this.children,t)}}function Vwt(t){return this.selectAll(t==null?Hwt:Uwt(typeof t=="function"?t:ISe(t)))}function Wwt(t){typeof t!="function"&&(t=OSe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new Lu(r,this._parents)}function DSe(t){return new Array(t.length)}function qwt(){return new Lu(this._enter||this._groups.map(DSe),this._parents)}function V7(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}V7.prototype={constructor:V7,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 Gwt(t){return function(){return t}}function Kwt(t,e,n,r,i,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):n[o]=new V7(t,s[o]);for(;o<l;++o)(a=e[o])&&(i[o]=a)}function Ywt(t,e,n,r,i,s,o){var a,l,c=new Map,u=e.length,h=s.length,d=new Array(u),p;for(a=0;a<u;++a)(l=e[a])&&(d[a]=p=o.call(l,l.__data__,a,e)+"",c.has(p)?i[a]=l:c.set(p,l));for(a=0;a<h;++a)p=o.call(t,s[a],a,s)+"",(l=c.get(p))?(r[a]=l,l.__data__=s[a],c.delete(p)):n[a]=new V7(t,s[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(d[a])===l&&(i[a]=l)}function Qwt(t){return t.__data__}function Xwt(t,e){if(!arguments.length)return Array.from(this,Qwt);var n=e?Ywt:Kwt,r=this._parents,i=this._groups;typeof t!="function"&&(t=Gwt(t));for(var s=i.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var u=r[c],h=i[c],d=h.length,p=Jwt(t.call(u,u&&u.__data__,c,r)),g=p.length,y=a[c]=new Array(g),b=o[c]=new Array(g),w=l[c]=new Array(d);n(u,h,y,b,w,p,e);for(var S=0,T=0,D,E;S<g;++S)if(D=y[S]){for(S>=T&&(T=S+1);!(E=b[T])&&++T<g;);D._next=E||null}}return o=new Lu(o,r),o._enter=a,o._exit=l,o}function Jwt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Zwt(){return new Lu(this._exit||this._groups.map(DSe),this._parents)}function eSt(t,e,n){var r=this.enter(),i=this,s=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?s.remove():n(s),r&&i?r.merge(i).order():i}function tSt(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=new Array(i),l=0;l<o;++l)for(var c=n[l],u=r[l],h=c.length,d=a[l]=new Array(h),p,g=0;g<h;++g)(p=c[g]||u[g])&&(d[g]=p);for(;l<i;++l)a[l]=n[l];return new Lu(a,this._parents)}function nSt(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],o;--i>=0;)(o=r[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function rSt(t){t||(t=iSt);function e(h,d){return h&&d?t(h.__data__,d.__data__):!h-!d}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o=n[s],a=o.length,l=i[s]=new Array(a),c,u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(e)}return new Lu(i,this._parents).order()}function iSt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function sSt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function oSt(){return Array.from(this)}function aSt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null}function lSt(){let t=0;for(const e of this)++t;return t}function cSt(){return!this.node()}function uSt(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,o=i.length,a;s<o;++s)(a=i[s])&&t.call(a,a.__data__,s,i);return this}function hSt(t){return function(){this.removeAttribute(t)}}function dSt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fSt(t,e){return function(){this.setAttribute(t,e)}}function pSt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mSt(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function gSt(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 ySt(t,e){var n=xI(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?dSt:hSt:typeof e=="function"?n.local?gSt:mSt:n.local?pSt:fSt)(n,e))}function MSe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bSt(t){return function(){this.style.removeProperty(t)}}function vSt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function xSt(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function wSt(t,e,n){return arguments.length>1?this.each((e==null?bSt:typeof e=="function"?xSt:vSt)(t,e,n??"")):aw(this.node(),t)}function aw(t,e){return t.style.getPropertyValue(e)||MSe(t).getComputedStyle(t,null).getPropertyValue(e)}function SSt(t){return function(){delete this[t]}}function kSt(t,e){return function(){this[t]=e}}function CSt(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function _St(t,e){return arguments.length>1?this.each((e==null?SSt:typeof e=="function"?CSt:kSt)(t,e)):this.node()[t]}function NSe(t){return t.trim().split(/^|\s+/)}function rq(t){return t.classList||new RSe(t)}function RSe(t){this._node=t,this._names=NSe(t.getAttribute("class")||"")}RSe.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 LSe(t,e){for(var n=rq(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function BSe(t,e){for(var n=rq(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function TSt(t){return function(){LSe(this,t)}}function ESt(t){return function(){BSe(this,t)}}function ASt(t,e){return function(){(e.apply(this,arguments)?LSe:BSe)(this,t)}}function PSt(t,e){var n=NSe(t+"");
vendor: 7,941 bytes, line 810
810if(arguments.length<2){for(var r=rq(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?ASt:e?TSt:ESt)(n,e))}function OSt(){this.textContent=""}function ISt(t){return function(){this.textContent=t}}function DSt(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function MSt(t){return arguments.length?this.each(t==null?OSt:(typeof t=="function"?DSt:ISt)(t)):this.node().textContent}function NSt(){this.innerHTML=""}function RSt(t){return function(){this.innerHTML=t}}function LSt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function BSt(t){return arguments.length?this.each(t==null?NSt:(typeof t=="function"?LSt:RSt)(t)):this.node().innerHTML}function FSt(){this.nextSibling&&this.parentNode.appendChild(this)}function $St(){return this.each(FSt)}function jSt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zSt(){return this.each(jSt)}function HSt(t){var e=typeof t=="function"?t:ASe(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function USt(){return null}function VSt(t,e){var n=typeof t=="function"?t:ASe(t),r=e==null?USt:typeof e=="function"?e:nq(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function WSt(){var t=this.parentNode;t&&t.removeChild(this)}function qSt(){return this.each(WSt)}function GSt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function KSt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function YSt(t){return this.select(t?KSt:GSt)}function QSt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function XSt(t){return function(e){t.call(this,e,this.__data__)}}function JSt(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 ZSt(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function e3t(t,e,n){return function(){var r=this.__on,i,s=XSt(e);if(r){for(var o=0,a=r.length;o<a;++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=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function t3t(t,e,n){var r=JSt(t+""),i,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(i=0,u=a[l];i<s;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(a=e?e3t:ZSt,i=0;i<s;++i)this.each(a(r[i],e,n));return this}function FSe(t,e,n){var r=MSe(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 n3t(t,e){return function(){return FSe(this,t,e)}}function r3t(t,e){return function(){return FSe(this,t,e.apply(this,arguments))}}function i3t(t,e){return this.each((typeof e=="function"?r3t:n3t)(t,e))}function*s3t(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,o;i<s;++i)(o=r[i])&&(yield o)}var $Se=[null];function Lu(t,e){this._groups=t,this._parents=e}function R_(){return new Lu([[document.documentElement]],$Se)}function o3t(){return this}Lu.prototype=R_.prototype={constructor:Lu,select:Dwt,selectAll:Lwt,selectChild:jwt,selectChildren:Vwt,filter:Wwt,data:Xwt,enter:qwt,exit:Zwt,join:eSt,merge:tSt,selection:o3t,order:nSt,sort:rSt,call:sSt,nodes:oSt,node:aSt,size:lSt,empty:cSt,each:uSt,attr:ySt,style:wSt,property:_St,classed:PSt,text:MSt,html:BSt,raise:$St,lower:zSt,append:HSt,insert:VSt,remove:qSt,clone:YSt,datum:QSt,on:t3t,dispatch:i3t,[Symbol.iterator]:s3t};function pi(t){return typeof t=="string"?new Lu([[document.querySelector(t)]],[document.documentElement]):new Lu([[t]],$Se)}function iq(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function jSe(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function L_(){}var mC=.7,W7=1/mC,dx="\\s*([+-]?\\d+)\\s*",gC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ep="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a3t=/^#([0-9a-f]{3,8})$/,l3t=new RegExp(`^rgb\\(${dx},${dx},${dx}\\)$`),c3t=new RegExp(`^rgb\\(${ep},${ep},${ep}\\)$`),u3t=new RegExp(`^rgba\\(${dx},${dx},${dx},${gC}\\)$`),h3t=new RegExp(`^rgba\\(${ep},${ep},${ep},${gC}\\)$`),d3t=new RegExp(`^hsl\\(${gC},${ep},${ep}\\)$`),f3t=new RegExp(`^hsla\\(${gC},${ep},${ep},${gC}\\)$`),_ie={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};iq(L_,yC,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Tie,formatHex:Tie,formatHex8:p3t,formatHsl:m3t,formatRgb:Eie,toString:Eie});function Tie(){return this.rgb().formatHex()}function p3t(){return this.rgb().formatHex8()}function m3t(){return zSe(this).formatHsl()}function Eie(){return this.rgb().formatRgb()}function yC(t){var e,n;
vendor: 6,044 bytes, line 810
810return t=(t+"").trim().toLowerCase(),(e=a3t.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Aie(e):n===3?new Ac(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?gE(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?gE(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=l3t.exec(t))?new Ac(e[1],e[2],e[3],1):(e=c3t.exec(t))?new Ac(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=u3t.exec(t))?gE(e[1],e[2],e[3],e[4]):(e=h3t.exec(t))?gE(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=d3t.exec(t))?Iie(e[1],e[2]/100,e[3]/100,1):(e=f3t.exec(t))?Iie(e[1],e[2]/100,e[3]/100,e[4]):_ie.hasOwnProperty(t)?Aie(_ie[t]):t==="transparent"?new Ac(NaN,NaN,NaN,0):null}function Aie(t){return new Ac(t>>16&255,t>>8&255,t&255,1)}function gE(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ac(t,e,n,r)}function g3t(t){return t instanceof L_||(t=yC(t)),t?(t=t.rgb(),new Ac(t.r,t.g,t.b,t.opacity)):new Ac}function Q$(t,e,n,r){return arguments.length===1?g3t(t):new Ac(t,e,n,r??1)}function Ac(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}iq(Ac,Q$,jSe(L_,{brighter(t){return t=t==null?W7:Math.pow(W7,t),new Ac(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?mC:Math.pow(mC,t),new Ac(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ac(tb(this.r),tb(this.g),tb(this.b),q7(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:Pie,formatHex:Pie,formatHex8:y3t,formatRgb:Oie,toString:Oie}));function Pie(){return`#${jy(this.r)}${jy(this.g)}${jy(this.b)}`}function y3t(){return`#${jy(this.r)}${jy(this.g)}${jy(this.b)}${jy((isNaN(this.opacity)?1:this.opacity)*255)}`}function Oie(){const t=q7(this.opacity);return`${t===1?"rgb(":"rgba("}${tb(this.r)}, ${tb(this.g)}, ${tb(this.b)}${t===1?")":`, ${t})`}`}function q7(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function tb(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function jy(t){return t=tb(t),(t<16?"0":"")+t.toString(16)}function Iie(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new gd(t,e,n,r)}function zSe(t){if(t instanceof gd)return new gd(t.h,t.s,t.l,t.opacity);if(t instanceof L_||(t=yC(t)),!t)return new gd;if(t instanceof gd)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,l=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=l<.5?s+i:2-s-i,o*=60):a=l>0&&l<1?0:o,new gd(o,a,l,t.opacity)}function b3t(t,e,n,r){return arguments.length===1?zSe(t):new gd(t,e,n,r??1)}function gd(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}iq(gd,b3t,jSe(L_,{brighter(t){return t=t==null?W7:Math.pow(W7,t),new gd(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?mC:Math.pow(mC,t),new gd(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 Ac(iR(t>=240?t-240:t+120,i,r),iR(t,i,r),iR(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new gd(Die(this.h),yE(this.s),yE(this.l),q7(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=q7(this.opacity);return`${t===1?"hsl(":"hsla("}${Die(this.h)}, ${yE(this.s)*100}%, ${yE(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Die(t){return t=(t||0)%360,t<0?t+360:t}function yE(t){return Math.max(0,Math.min(1,t||0))}function iR(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 sq=t=>()=>t;function HSe(t,e){return function(n){return t+n*e}}function v3t(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 OGt(t,e){var n=e-t;return n?HSe(t,n>180||n<-180?n-360*Math.round(n/360):n):sq(isNaN(t)?e:t)}function x3t(t){return(t=+t)==1?USe:function(e,n){return n-e?v3t(e,n,t):sq(isNaN(e)?n:e)}}function USe(t,e){var n=e-t;return n?HSe(t,n):sq(isNaN(t)?e:t)}const Mie=function t(e){var n=x3t(e);function r(i,s){var o=n((i=Q$(i)).r,(s=Q$(s)).r),a=n(i.g,s.g),l=n(i.b,s.b),c=USe(i.opacity,s.opacity);return function(u){return i.r=o(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=t,r}(1);function dg(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var X$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sR=new RegExp(X$.source,"g");function w3t(t){return function(){return t}}function S3t(t){return function(e){return t(e)+""}}function k3t(t,e){var n=X$.lastIndex=sR.lastIndex=0,r,i,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(r=X$.exec(t))&&(i=sR.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:dg(r,i)})),n=sR.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?S3t(l[0].x):w3t(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}var Nie=180/Math.PI,J$={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function VSe(t,e,n,r,i,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*Nie,skewX:Math.atan(l)*Nie,scaleX:o,scaleY:a}}var bE;function C3t(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?J$:VSe(e.a,e.b,e.c,e.d,e.e,e.f)}function _3t(t){return t==null||(bE||(bE=document.createElementNS("http://www.w3.org/2000/svg","g")),bE.setAttribute("transform",t),!(t=bE.transform.baseVal.consolidate()))?J$:(t=t.matrix,VSe(t.a,t.b,t.c,t.d,t.e,t.f))}function WSe(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,h,d,p,g){if(c!==h||u!==d){var y=p.push("translate(",null,e,null,n);g.push({i:y-4,x:dg(c,h)},{i:y-2,x:dg(u,d)})}else(h||d)&&p.push("translate("+h+e+d+n)}function o(c,u,h,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(i(h)+"rotate(",null,r)-2,x:dg(c,u)})):u&&h.push(i(h)+"rotate("+u+r)}
vendor: 20,477 bytes, line 810
810function a(c,u,h,d){c!==u?d.push({i:h.push(i(h)+"skewX(",null,r)-2,x:dg(c,u)}):u&&h.push(i(h)+"skewX("+u+r)}function l(c,u,h,d,p,g){if(c!==h||u!==d){var y=p.push(i(p)+"scale(",null,",",null,")");g.push({i:y-4,x:dg(c,h)},{i:y-2,x:dg(u,d)})}else(h!==1||d!==1)&&p.push(i(p)+"scale("+h+","+d+")")}return function(c,u){var h=[],d=[];return c=t(c),u=t(u),s(c.translateX,c.translateY,u.translateX,u.translateY,h,d),o(c.rotate,u.rotate,h,d),a(c.skewX,u.skewX,h,d),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(p){for(var g=-1,y=d.length,b;++g<y;)h[(b=d[g]).i]=b.x(p);return h.join("")}}}var T3t=WSe(C3t,"px, ","px)","deg)"),E3t=WSe(_3t,", ",")",")"),lw=0,s4=0,s3=0,qSe=1e3,G7,o4,K7=0,Cb=0,wI=0,bC=typeof performance=="object"&&performance.now?performance:Date,GSe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oq(){return Cb||(GSe(A3t),Cb=bC.now()+wI)}function A3t(){Cb=0}function Y7(){this._call=this._time=this._next=null}Y7.prototype=KSe.prototype={constructor:Y7,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?oq():+n)+(e==null?0:+e),!this._next&&o4!==this&&(o4?o4._next=this:G7=this,o4=this),this._call=t,this._time=n,Z$()},stop:function(){this._call&&(this._call=null,this._time=1/0,Z$())}};function KSe(t,e,n){var r=new Y7;return r.restart(t,e,n),r}function P3t(){oq(),++lw;for(var t=G7,e;t;)(e=Cb-t._time)>=0&&t._call.call(void 0,e),t=t._next;--lw}function Rie(){Cb=(K7=bC.now())+wI,lw=s4=0;try{P3t()}finally{lw=0,I3t(),Cb=0}}function O3t(){var t=bC.now(),e=t-K7;e>qSe&&(wI-=e,K7=t)}function I3t(){for(var t,e=G7,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:G7=n);o4=t,Z$(r)}function Z$(t){if(!lw){s4&&(s4=clearTimeout(s4));var e=t-Cb;e>24?(t<1/0&&(s4=setTimeout(Rie,t-bC.now()-wI)),s3&&(s3=clearInterval(s3))):(s3||(K7=bC.now(),s3=setInterval(O3t,qSe)),lw=1,GSe(Rie))}}function Lie(t,e,n){var r=new Y7;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var D3t=ESe("start","end","cancel","interrupt"),M3t=[],YSe=0,Bie=1,ej=2,kA=3,Fie=4,tj=5,CA=6;function SI(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;N3t(t,n,{name:e,index:r,group:i,on:D3t,tween:M3t,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:YSe})}function aq(t,e){var n=Ud(t,e);if(n.state>YSe)throw new Error("too late; already scheduled");return n}function wp(t,e){var n=Ud(t,e);if(n.state>kA)throw new Error("too late; already running");return n}function Ud(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function N3t(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=KSe(s,0,n.time);function s(c){n.state=Bie,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var u,h,d,p;if(n.state!==Bie)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===kA)return Lie(o);p.state===Fie?(p.state=CA,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[u]):+u<e&&(p.state=CA,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[u])}if(Lie(function(){n.state===kA&&(n.state=Fie,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=ej,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ej){for(n.state=kA,i=new Array(d=n.tween.length),u=0,h=-1;u<d;++u)(p=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=p);i.length=h+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=tj,1),h=-1,d=i.length;++h<d;)i[h].call(t,u);n.state===tj&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=CA,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function R3t(t,e){var n=t.__transition,r,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>ej&&r.state<tj,r.state=CA,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function L3t(t){return this.each(function(){R3t(this,t)})}function B3t(t,e){var n,r;return function(){var i=wp(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function F3t(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=wp(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}s.tween=i}}function $3t(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Ud(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?B3t:F3t)(n,t,e))}function lq(t,e,n){var r=t._id;return t.each(function(){var i=wp(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return Ud(i,r).value[e]}}function QSe(t,e){var n;return(typeof e=="number"?dg:e instanceof yC?Mie:(n=yC(e))?(e=n,Mie):k3t)(t,e)}function j3t(t){return function(){this.removeAttribute(t)}}function z3t(t){return function(){this.removeAttributeNS(t.space,t.local)}}function H3t(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function U3t(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function V3t(t,e,n){var r,i,s;return function(){var o,a=n(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===r&&l===i?s:(i=l,s=e(r=o,a)))}}function W3t(t,e,n){var r,i,s;return function(){var o,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===r&&l===i?s:(i=l,s=e(r=o,a)))}}function q3t(t,e){var n=xI(t),r=n==="transform"?E3t:QSe;return this.attrTween(t,typeof e=="function"?(n.local?W3t:V3t)(n,r,lq(this,"attr."+t,e)):e==null?(n.local?z3t:j3t)(n):(n.local?U3t:H3t)(n,r,e))}function G3t(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function K3t(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Y3t(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&K3t(t,s)),n}return i._value=e,i}function Q3t(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&G3t(t,s)),n}return i._value=e,i}function X3t(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=xI(t);return this.tween(n,(r.local?Y3t:Q3t)(r,e))}function J3t(t,e){return function(){aq(this,t).delay=+e.apply(this,arguments)}}function Z3t(t,e){return e=+e,function(){aq(this,t).delay=e}}function e4t(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?J3t:Z3t)(e,t)):Ud(this.node(),e).delay}function t4t(t,e){return function(){wp(this,t).duration=+e.apply(this,arguments)}}function n4t(t,e){return e=+e,function(){wp(this,t).duration=e}}function r4t(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?t4t:n4t)(e,t)):Ud(this.node(),e).duration}function i4t(t,e){if(typeof e!="function")throw new Error;return function(){wp(this,t).ease=e}}function s4t(t){var e=this._id;return arguments.length?this.each(i4t(e,t)):Ud(this.node(),e).ease}function o4t(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;wp(this,t).ease=n}}function a4t(t){if(typeof t!="function")throw new Error;return this.each(o4t(this._id,t))}function l4t(t){typeof t!="function"&&(t=OSe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new tm(r,this._parents,this._name,this._id)}function c4t(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var l=e[a],c=n[a],u=l.length,h=o[a]=new Array(u),d,p=0;p<u;++p)(d=l[p]||c[p])&&(h[p]=d);for(;a<r;++a)o[a]=e[a];return new tm(o,this._parents,this._name,this._id)}function u4t(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 h4t(t,e,n){var r,i,s=u4t(e)?aq:wp;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function d4t(t,e){var n=this._id;return arguments.length<2?Ud(this.node(),n).on.on(t):this.each(h4t(n,t,e))}function f4t(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function p4t(){return this.on("end.remove",f4t(this._id))}function m4t(t){var e=this._name,n=this._id;typeof t!="function"&&(t=nq(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],l=a.length,c=s[o]=new Array(l),u,h,d=0;d<l;++d)(u=a[d])&&(h=t.call(u,u.__data__,d,a))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h,SI(c[d],e,n,d,c,Ud(u,n)));return new tm(s,this._parents,e,n)}function g4t(t){var e=this._name,n=this._id;typeof t!="function"&&(t=PSe(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var l=r[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var d=t.call(u,u.__data__,h,l),p,g=Ud(u,n),y=0,b=d.length;y<b;++y)(p=d[y])&&SI(p,e,n,y,d,g);s.push(d),o.push(u)}return new tm(s,o,e,n)}var y4t=R_.prototype.constructor;function b4t(){return new y4t(this._groups,this._parents)}function v4t(t,e){var n,r,i;return function(){var s=aw(this,t),o=(this.style.removeProperty(t),aw(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function XSe(t){return function(){this.style.removeProperty(t)}}function x4t(t,e,n){var r,i=n+"",s;return function(){var o=aw(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function w4t(t,e,n){var r,i,s;return function(){var o=aw(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),aw(this,t))),o===l?null:o===r&&l===i?s:(i=l,s=e(r=o,a))}}function S4t(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var l=wp(this,t),c=l.on,u=l.value[s]==null?a||(a=XSe(e)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(o,i=u),l.on=r}}function k4t(t,e,n){var r=(t+="")=="transform"?T3t:QSe;return e==null?this.styleTween(t,v4t(t,r)).on("end.style."+t,XSe(t)):typeof e=="function"?this.styleTween(t,w4t(t,r,lq(this,"style."+t,e))).each(S4t(this._id,t)):this.styleTween(t,x4t(t,r,e),n).on("end.style."+t,null)}function C4t(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function _4t(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&C4t(t,o,n)),r}return s._value=e,s}function T4t(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,_4t(t,e,n??""))}function E4t(t){return function(){this.textContent=t}}function A4t(t){return function(){var e=t(this);this.textContent=e??""}}function P4t(t){return this.tween("text",typeof t=="function"?A4t(lq(this,"text",t)):E4t(t==null?"":t+""))}function O4t(t){return function(e){this.textContent=t.call(this,e)}}function I4t(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&O4t(i)),e}return r._value=t,r}function D4t(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,I4t(t))}function M4t(){for(var t=this._name,e=this._id,n=JSe(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var u=Ud(l,e);SI(l,t,n,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tm(r,this._parents,t,n)}function N4t(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--i===0&&s()}};n.each(function(){var c=wp(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&s()})}var R4t=0;function tm(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function JSe(){return++R4t}var Xp=R_.prototype;tm.prototype={constructor:tm,select:m4t,selectAll:g4t,selectChild:Xp.selectChild,selectChildren:Xp.selectChildren,filter:l4t,merge:c4t,selection:b4t,transition:M4t,call:Xp.call,nodes:Xp.nodes,node:Xp.node,size:Xp.size,empty:Xp.empty,each:Xp.each,on:d4t,attr:q3t,attrTween:X3t,style:k4t,styleTween:T4t,text:P4t,textTween:D4t,remove:p4t,tween:$3t,delay:e4t,duration:r4t,ease:s4t,easeVarying:a4t,end:N4t,[Symbol.iterator]:Xp[Symbol.iterator]};function L4t(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var B4t={time:null,delay:0,duration:250,ease:L4t};function F4t(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 $4t(t){var e,n;t instanceof tm?(e=t._id,t=t._name):(e=JSe(),(n=B4t).time=oq(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&SI(l,t,e,c,o,n||F4t(l,e));return new tm(r,this._parents,t,e)}R_.prototype.interrupt=L3t;R_.prototype.transition=$4t;const nj=Math.PI,rj=2*nj,fy=1e-6,j4t=rj-fy;function ZSe(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function z4t(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ZSe;const n=10**e;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class H4t{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ZSe:z4t(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,s,o){this._append`C${+e},${+n},${+r},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,r,i,s){if(e=+e,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,a=this._y1,l=r-e,c=i-n,u=o-e,h=a-n,d=u*u+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(d>fy)if(!(Math.abs(h*l-c*u)>fy)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-o,g=i-a,y=l*l+c*c,b=p*p+g*g,w=Math.sqrt(y),S=Math.sqrt(d),T=s*Math.tan((nj-Math.acos((y+d-b)/(2*w*S)))/2),D=T/S,E=T/w;Math.abs(D-1)>fy&&this._append`L${e+D*u},${n+D*h}`,this._append`A${s},${s},0,0,${+(h*p>u*g)},${this._x1=e+E*l},${this._y1=n+E*c}`}}arc(e,n,r,i,s,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=e+a,u=n+l,h=1^o,d=o?i-s:s-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>fy||Math.abs(this._y1-u)>fy)&&this._append`L${c},${u}`,r&&(d<0&&(d=d%rj+rj),d>j4t?this._append`A${r},${r},0,1,${h},${e-a},${n-l}A${r},${r},0,1,${h},${this._x1=c},${this._y1=u}`:d>fy&&this._append`A${r},${r},0,${+(d>=nj)},${h},${this._x1=e+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Rv(t){return function(){return t}}const IGt=Math.abs,DGt=Math.atan2,MGt=Math.cos,NGt=Math.max,RGt=Math.min,LGt=Math.sin,BGt=Math.sqrt,$ie=1e-12,cq=Math.PI,jie=cq/2,FGt=2*cq;function $Gt(t){return t>1?0:t<-1?cq:Math.acos(t)}function jGt(t){return t>=1?jie:t<=-1?-jie:Math.asin(t)}function U4t(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new H4t(e)}function V4t(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function e3e(t){this._context=t}e3e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Q7(t){return new e3e(t)}function W4t(t){return t[0]}function q4t(t){return t[1]}function G4t(t,e){var n=Rv(!0),r=null,i=Q7,s=null,o=U4t(a);t=typeof t=="function"?t:t===void 0?W4t:Rv(t),e=typeof e=="function"?e:e===void 0?q4t:Rv(e);function a(l){var c,u=(l=V4t(l)).length,h,d=!1,p;for(r==null&&(s=i(p=o())),c=0;c<=u;++c)!(c<u&&n(h=l[c],c,l))===d&&((d=!d)?s.lineStart():s.lineEnd()),d&&s.point(+t(h,c,l),+e(h,c,l));if(p)return s=null,p+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:Rv(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:Rv(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Rv(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),a):r},a}class t3e{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function n3e(t){return new t3e(t,!0)}function r3e(t){return new t3e(t,!1)}function Zg(){}function X7(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function kI(t){this._context=t}kI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:X7(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:X7(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function _A(t){return new kI(t)}function i3e(t){this._context=t}i3e.prototype={areaStart:Zg,areaEnd:Zg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:X7(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function K4t(t){return new i3e(t)}function s3e(t){this._context=t}s3e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:X7(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Y4t(t){return new s3e(t)}
vendor: 9,962 bytes, line 810
810function o3e(t,e){this._basis=new kI(t),this._beta=e}o3e.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],s=t[n]-r,o=e[n]-i,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*s),this._beta*e[a]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Q4t=function t(e){function n(r){return e===1?new kI(r):new o3e(r,e)}return n.beta=function(r){return t(+r)},n}(.85);function J7(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function uq(t,e){this._context=t,this._k=(1-e)/6}uq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:J7(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:J7(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const a3e=function t(e){function n(r){return new uq(r,e)}return n.tension=function(r){return t(+r)},n}(0);function hq(t,e){this._context=t,this._k=(1-e)/6}hq.prototype={areaStart:Zg,areaEnd:Zg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:J7(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const X4t=function t(e){function n(r){return new hq(r,e)}return n.tension=function(r){return t(+r)},n}(0);function dq(t,e){this._context=t,this._k=(1-e)/6}dq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:J7(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const J4t=function t(e){function n(r){return new dq(r,e)}return n.tension=function(r){return t(+r)},n}(0);function fq(t,e,n){var r=t._x1,i=t._y1,s=t._x2,o=t._y2;if(t._l01_a>$ie){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>$ie){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,s,o,t._x2,t._y2)}function l3e(t,e){this._context=t,this._alpha=e}l3e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:fq(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const c3e=function t(e){function n(r){return e?new l3e(r,e):new uq(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function u3e(t,e){this._context=t,this._alpha=e}u3e.prototype={areaStart:Zg,areaEnd:Zg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fq(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Z4t=function t(e){function n(r){return e?new u3e(r,e):new hq(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function h3e(t,e){this._context=t,this._alpha=e}h3e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fq(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ekt=function t(e){function n(r){return e?new h3e(r,e):new dq(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function d3e(t){this._context=t}d3e.prototype={areaStart:Zg,areaEnd:Zg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function tkt(t){return new d3e(t)}function zie(t){return t<0?-1:1}function Hie(t,e,n){var r=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),a=(s*i+o*r)/(r+i);return(zie(s)+zie(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Uie(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function oR(t,e,n){var r=t._x0,i=t._y0,s=t._x1,o=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,i+a*e,s-a,o-a*n,s,o)}function Z7(t){this._context=t}Z7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:oR(this,this._t0,Uie(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,oR(this,Uie(this,n=Hie(this,t,e)),n);break;default:oR(this,this._t0,n=Hie(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function f3e(t){this._context=new p3e(t)}(f3e.prototype=Object.create(Z7.prototype)).point=function(t,e){Z7.prototype.point.call(this,e,t)};function p3e(t){this._context=t}p3e.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,s){this._context.bezierCurveTo(e,t,r,n,s,i)}};function m3e(t){return new Z7(t)}function g3e(t){return new f3e(t)}function y3e(t){this._context=t}y3e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=Vie(t),i=Vie(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],t[o],e[o
vendor: 4,526 bytes, lines 810-811
810]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Vie(t){var e,n=t.length-1,r,i=new Array(n),s=new Array(n),o=new Array(n);for(i[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/s[e-1],s[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-i[e+1];return[i,s]}function b3e(t){return new y3e(t)}function CI(t,e){this._context=t,this._t=e}CI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function v3e(t){return new CI(t,.5)}function x3e(t){return new CI(t,0)}function w3e(t){return new CI(t,1)}function a4(t,e,n){this.k=t,this.x=e,this.y=n}a4.prototype={constructor:a4,scale:function(t){return t===1?this:new a4(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new a4(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+")"}};a4.prototype;var nkt="â",rkt={curveBasis:_A,curveBasisClosed:K4t,curveBasisOpen:Y4t,curveBumpX:n3e,curveBumpY:r3e,curveBundle:Q4t,curveCardinalClosed:X4t,curveCardinalOpen:J4t,curveCardinal:a3e,curveCatmullRomClosed:Z4t,curveCatmullRomOpen:ekt,curveCatmullRom:c3e,curveLinear:Q7,curveLinearClosed:tkt,curveMonotoneX:m3e,curveMonotoneY:g3e,curveNatural:b3e,curveStep:v3e,curveStepAfter:w3e,curveStepBefore:x3e},ikt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,skt=F(function(t,e){const n=S3e(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const o=n.map(a=>a.args);M7(o),r=Wa(r,[...o])}else r=n.args;if(!r)return;let i=zW(t,e);const s="config";return r[s]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),r[i]=r[s],delete r[s]),r},"detectInit"),S3e=F(function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${ikt.source})(?=[}][%]{2}).* 811`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),pt.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const i=[];for(;(r=G4.exec(t))!==null;)if(r.index===G4.lastIndex&&G4.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){const s=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:s,args:o})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(n){return pt.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),okt=F(function(t){return t.replace(G4,"")},"removeDirectives"),akt=F(function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1},"isSubstringInArray");function pq(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return rkt[n]??e}F(pq,"interpolateToCurve");function k3e(t,e){const n=t.trim();if(n)return e.securityLevel!=="loose"?_wt.sanitizeUrl(n):n}F(k3e,"formatUrl");var lkt=F((t,...e)=>{const n=t.split("."),r=n.length-1,i=n[r];let s=window;for(let o=0;o<r;o++)if(s=s[n[o]],!s){pt.error(`Function name: ${t} not found in window`);return}s[i](...e)},"runFunc");function mq(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}F(mq,"distance");function C3e(t){let e,n=0;t.forEach(i=>
vendor: 7,387 bytes, line 811
811{n+=mq(i,e),e=i});const r=n/2;return gq(t,r)}F(C3e,"traverseEdge");function _3e(t){return t.length===1?t[0]:C3e(t)}F(_3e,"calcLabelPosition");var Wie=F((t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n},"roundNumber"),gq=F((t,e)=>{let n,r=e;for(const i of t){if(n){const s=mq(i,n);if(s===0)return n;if(s<r)r-=s;else{const o=r/s;if(o<=0)return n;if(o>=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:Wie((1-o)*n.x+o*i.x,5),y:Wie((1-o)*n.y+o*i.y,5)}}}n=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ckt=F((t,e,n)=>{pt.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const i=gq(e,25),s=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),a={x:0,y:0};return a.x=Math.sin(o)*s+(e[0].x+i.x)/2,a.y=-Math.cos(o)*s+(e[0].y+i.y)/2,a},"calcCardinalityPosition");function T3e(t,e,n){const r=structuredClone(n);pt.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const i=25+t,s=gq(r,i),o=10+t*.5,a=Math.atan2(r[0].y-s.y,r[0].x-s.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*o+(r[0].y+s.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*o+(r[0].y+s.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2-5):(l.x=Math.sin(a)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2),l}F(T3e,"calcTerminalLabelPosition");function E3e(t){let e="",n="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}F(E3e,"getStylesFromArray");var qie=0,ukt=F(()=>(qie++,"id-"+Math.random().toString(36).substr(2,12)+"-"+qie),"generateId");function A3e(t){let e="";const n="0123456789abcdef",r=n.length;for(let i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*r));return e}F(A3e,"makeRandomHex");var hkt=F(t=>A3e(t.length),"random"),dkt=F(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),fkt=F(function(t,e){const n=e.text.replace(Hw.lineBreakRegex," "),[,r]=_I(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",r),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const s=i.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(n),i},"drawSimpleText"),pkt=b_((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Hw.lineBreakRegex.test(t)))return t;const r=t.split(" ").filter(Boolean),i=[];let s="";return r.forEach((o,a)=>{const l=nm(`${o} `,n),c=nm(s,n);if(l>e){const{hyphenatedStrings:d,remainingWord:p}=mkt(o,e,"-",n);i.push(s,...d),s=p}else c+l>=e?(i.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===r.length&&i.push(s)}),i.filter(o=>o!=="").join(n.joinWith)},(t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),mkt=b_((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...t],s=[];let o="";return i.forEach((a,l)=>{const c=`${o}${a}`;if(nm(c,r)>=e){const h=l+1,d=i.length===h,p=`${c}${n}`;s.push(d?c:p),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function P3e(t,e){return yq(t,e).height}F(P3e,"calculateTextHeight");function nm(t,e){return yq(t,e).width}F(nm,"calculateTextWidth");var yq=b_((t,e)=>{const{fontSize:n=12,fontFamily:r="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,s]=_I(n),o=["sans-serif",r],a=t.split(Hw.lineBreakRegex),l=[],c=pi("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const d of o){let p=0;const g={width:0,height:0,lineHeight:0};for(const y of a){const b=dkt();b.text=y||nkt;const w=fkt(u,b).style("font-size",s).style("font-weight",i).style("font-family",d),S=(w._groups||w)[0][0].getBBox();if(S.width===0&&S.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,S.width)),p=Math.round(S.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}u.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),gkt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{F(this,"InitIDGenerator")}},vE,ykt=F(function(t){return vE=vE||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),vE.innerHTML=t,unescape(vE.textContent)},"entityDecode");function bq(t){return"str"in t}F(bq,"isDetailedError");var bkt=F((t,e,n,r)=>{if(!r)return;const i=t.node()?.getBBox();i&&t.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",e)},"insertTitle"),_I=F(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function vq(t,e){return rdt({},t,e)}F(vq,"cleanAndMerge");var Nf={assignWithDepth:Wa,wrapLabel:pkt,calculateTextHeight:P3e,calculateTextWidth:nm,calculateTextDimensions:yq,cleanAndMerge:vq,detectInit:skt,detectDirective:S3e,isSubstringInArray:akt,interpolateToCurve:pq,calcLabelPosition:_3e,calcCardinalityPosition:ckt,calcTerminalLabelPosition:T3e,formatUrl:k3e,getStylesFromArray:E3e,generateId:ukt,random:hkt,runFunc:lkt,entityDecode:ykt,insertTitle:bkt,parseFontSize:_I,InitIDGenerator:gkt},vkt=F(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/#\w+;/g,function(n){const r=n.substring(1,n.length-1);return/^\+?\d+$/.test(r)?"ï¬Â°Â°"+r+"¶Ã":"ï¬Â°"+r+"¶Ã"}),e},"encodeEntities"),$b=F(function(t){return t.replace(/ï¬Â°Â°/g,"&#").replace(/ï¬Â°/g,"&").replace(/¶Ã/g,";")},"decodeEntities"),zGt=F((t,e,{counter:n=0,prefix:r,suffix:i},s)=>s||`${r?`${r}_`:""}${t}_${e}_${n}${i?`_${i}`:""}`,"getEdgeId");function Wl(t){return t??null}F(Wl,"handleUndefinedAttr");function xq(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let jb=xq();function O3e(t){jb=t}const Y4={exec:()=>null};function qi(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace($l.caret,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,e)};return r}const $l={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine
vendor: 35,190 bytes, lines 811-865
811:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},xkt=/^(?:[ \t]*(?:\n|$))+/,wkt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Skt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,B_=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,kkt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,wq=/(?:[*+-]|\d{1,9}[.)])/,I3e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,D3e=qi(I3e).replace(/bull/g,wq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ckt=qi(I3e).replace(/bull/g,wq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Sq=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_kt=/^[^\n]+/,kq=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Tkt=qi(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kq).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ekt=qi(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,wq).getRegex(),TI="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cq=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Akt=qi("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Cq).replace("tag",TI).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M3e=qi(Sq).replace("hr",B_).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",TI).getRegex(),Pkt=qi(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",M3e).getRegex(),_q={blockquote:Pkt,code:wkt,def:Tkt,fences:Skt,heading:kkt,hr:B_,html:Akt,lheading:D3e,list:Ekt,newline:xkt,paragraph:M3e,table:Y4,text:_kt},Gie=qi("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",B_).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",TI).getRegex(),Okt={..._q,lheading:Ckt,table:Gie,paragraph:qi(Sq).replace("hr",B_).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gie).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",TI).getRegex()},Ikt={..._q,html:qi(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cq).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Y4,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qi(Sq).replace("hr",B_).replace("heading",` *#{1,6} *[^ 812]`).replace("lheading",D3e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Dkt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mkt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,N3e=/^( {2,}|\\)\n(?!\s*$)/,Nkt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,EI=/[\p{P}\p{S}]/u,Tq=/[\s\p{P}\p{S}]/u,R3e=/[^\s\p{P}\p{S}]/u,Rkt=qi(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Tq).getRegex(),L3e=/(?!~)[\p{P}\p{S}]/u,Lkt=/(?!~)[\s\p{P}\p{S}]/u,Bkt=/(?:[^\s\p{P}\p{S}]|~)/u,Fkt=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,B3e=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$kt=qi(B3e,"u").replace(/punct/g,EI).getRegex(),jkt=qi(B3e,"u").replace(/punct/g,L3e).getRegex(),F3e="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",zkt=qi(F3e,"gu").replace(/notPunctSpace/g,R3e).replace(/punctSpace/g,Tq).replace(/punct/g,EI).getRegex(),Hkt=qi(F3e,"gu").replace(/notPunctSpace/g,Bkt).replace(/punctSpace/g,Lkt).replace(/punct/g,L3e).getRegex(),Ukt=qi("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,R3e).replace(/punctSpace/g,Tq).replace(/punct/g,EI).getRegex(),Vkt=qi(/\\(punct)/,"gu").replace(/punct/g,EI).getRegex(),Wkt=qi(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),qkt=qi(Cq).replace("(?:-->|$)","-->").getRegex(),Gkt=qi("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",qkt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eP=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Kkt=qi(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",eP).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$3e=qi(/^!?\[(label)\]\[(ref)\]/).replace("label",eP).replace("ref",kq).getRegex(),j3e=qi(/^!?\[(ref)\](?:\[\])?/).replace("ref",kq).getRegex(),Ykt=qi("reflink|nolink(?!\\()","g").replace("reflink",$3e).replace("nolink",j3e).getRegex(),Eq={_backpedal:Y4,anyPunctuation:Vkt,autolink:Wkt,blockSkip:Fkt,br:N3e,code:Mkt,del:Y4,emStrongLDelim:$kt,emStrongRDelimAst:zkt,emStrongRDelimUnd:Ukt,escape:Dkt,link:Kkt,nolink:j3e,punctuation:Rkt,reflink:$3e,reflinkSearch:Ykt,tag:Gkt,text:Nkt,url:Y4},Qkt={...Eq,link:qi(/^!?\[(label)\]\((.*?)\)/).replace("label",eP).getRegex(),reflink:qi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eP).getRegex()},ij={...Eq,emStrongRDelimAst:Hkt,emStrongLDelim:jkt,url:qi(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Xkt={...ij,br:qi(N3e).replace("{2,}","*").getRegex(),text:qi(ij.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xE={normal:_q,gfm:Okt,pedantic:Ikt},o3={normal:Eq,gfm:ij,breaks:Xkt,pedantic:Qkt},Jkt={"&":"&","<":"<",">":">",'"':""","'":"'"},Kie=t=>Jkt[t];function ff(t,e){if(e){if($l.escapeTest.test(t))return t.replace($l.escapeReplace,Kie)}else if($l.escapeTestNoEncode.test(t))return t.replace($l.escapeReplaceNoEncode,Kie);return t}function Yie(t){try{t=encodeURI(t).replace($l.percentDecode,"%")}catch{return null}return t}function Qie(t,e){const n=t.replace($l.findPipe,(s,o,a)=>{let l=!1,c=o;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),r=n.split($l.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace($l.slashPipe,"|");return r}function a3(t,e,n){const r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function Zkt(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return-1}function Xie(t,e,n,r,i){const s=e.href,o=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:s,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:s,title:o,text:a}}function eCt(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(` 813`).map(s=>{const o=s.match(n.other.beginningSpace);if(o===null)return s;const[a]=o;return a.length>=i.length?s.slice(i.length):s}).join(` 814`)}class tP{options;rules;lexer;constructor(e){this.options=e||jb}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:a3(r,` 815`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],i=eCt(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=a3(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:a3(n[0],` 816`)}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){let r=a3(n[0],` 817`).split(` 818`),i="",s="";const o=[];for(;r.length>0;){let a=!1;const l=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))l.push(r[c]),a=!0;else if(!a)l.push(r[c]);else break;r=r.slice(c);const u=l.join(` 819`),h=u.replace(this.rules.other.blockquoteSetextReplace,` 820 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i} 821${u}`:u,s=s?`${s} 822${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,o,!0),this.lexer.state.top=d,r.length===0)break;const p=o.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){const g=p,y=g.raw+` 823`+r.join(` 824`),b=this.blockquote(y);o[o.length-1]=b,i=i.substring(0,i.length-g.raw.length)+b.raw,s=s.substring(0,s.length-g.text.length)+b.text;break}else if(p?.type==="list"){const g=p,y=g.raw+` 825`+r.join(` 826`),b=this.list(y);o[o.length-1]=b,i=i.substring(0,i.length-p.raw.length)+b.raw,s=s.substring(0,s.length-g.raw.length)+b.raw,r=y.substring(o.at(-1).raw.length).split(` 827`);continue}}return{type:"blockquote",raw:i,tokens:o,text:s}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const o=this.rules.other.listItemRegex(r);let a=!1;for(;e;){let c=!1,u="",h="";if(!(n=o.exec(e))||this.rules.block.hr.test(e))break;u=n[0],e=e.substring(u.length);let d=n[2].split(` 828`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),p=e.split(` 829`,1)[0],g=!d.trim(),y=0;if(this.options.pedantic?(y=2,h=d.trimStart()):g?y=n[1].length+1:(y=n[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,h=d.slice(y),y+=n[1].length),g&&this.rules.other.blankLine.test(p)&&(u+=p+` 830`,e=e.substring(p.length+1),c=!0),!c){const S=this.rules.other.nextBulletRegex(y),T=this.rules.other.hrRegex(y),D=this.rules.other.fencesBeginRegex(y),E=this.rules.other.headingBeginRegex(y),O=this.rules.other.htmlBeginRegex(y);for(;e;){const P=e.split(` 831`,1)[0];let $;if(p=P,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),$=p):$=p.replace(this.rules.other.tabCharGlobal," "),D.test(p)||E.test(p)||O.test(p)||S.test(p)||T.test(p))break;if($.search(this.rules.other.nonSpaceChar)>=y||!p.trim())h+=` 832`+$.slice(y);else{if(g||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(d)||E.test(d)||T.test(d))break;h+=` 833`+p}!g&&!p.trim()&&(g=!0),u+=P+` 834`,e=e.substring(P.length+1),d=$.slice(y)}}s.loose||(a?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(a=!0));let b=null,w;this.options.gfm&&(b=this.rules.other.listIsTask.exec(h),b&&(w=b[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!b,checked:w,loose:!1,text:h,tokens:[]}),s.raw+=u}const l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){const u=s.items[c].tokens.filter(d=>d.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=h}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(e){const n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){const n=this.rules.block.def.exec(e);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(e){const n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Qie(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(` 835`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<r.length;a++)o.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:o.align[a]});for(const a of s)o.rows.push(Qie(a,o.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[c]})));return o}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const r=n[1].charAt(n[1].length-1)===` 836`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=a3(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=Zkt(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(i);o&&(i=o[1],s=o[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Xie(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[i.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return Xie(r,s,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...i[0]].length-1;let a,l,c=o,u=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*e.length+o);(i=h.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){c+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const d=[...i[0]][0].length,p=e.slice(0,o+i.index+d+l);if(Math.min(o,l)%2){const y=p.slice(1,-1);return{type:"em",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}const g=p.slice(2,-2);return{type:"strong",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){const n=this.rules.inline.autolink.exec(e);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let r,i;if(n[2]==="@")r=n[0],i="mailto:"+r;else{let s;do s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(s!==n[0]);r=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const n=this.rules.inline.text.exec(e);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class ph{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jb,this.options.tokenizer=this.options.tokenizer||new tP,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:$l,block:xE.normal,inline:o3.normal};this.options.pedantic?(n.block=xE.pedantic,n.inline=o3.pedantic):this.options.gfm&&(n.block=xE.gfm,this.options.breaks?n.inline=o3.breaks:n.inline=o3.gfm),this.tokenizer.rules=n}static get rules(){return{block:xE,inline:o3}}static lex(e,n){return new ph(n).lex(e)}static lexInline(e,n){return new ph(n).inlineTokens(e)}lex(e){e=e.replace($l.carriageReturn,` 837`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace($l.tabCharGlobal," ").replace($l.spaceLine,""));e;){let i;if(this.options.extensions?.block?.some(o=>(i=o.call({lexer:this},e,n))?(e=e.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);const o=n.at(-1);i.raw.length===1&&o!==void 0?o.raw+=` 838`:n.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);const o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=` 839`+i.raw,o.text+=` 840`+i.text,this.inlineQueue.at(-1).src=o.text):n.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);const o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=` 841`+i.raw,o.text+=` 842`+i.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),n.push(i);continue}let s=e;if(this.options.extensions?.startBlock){let o=1/0;const a=e.slice(1);let l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},a),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(s=e.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){const o=n.at(-1);r&&o?.type==="paragraph"?(o.raw+=` 843`+i.raw,o.text+=` 844`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(i),r=s.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);const o=n.at(-1);o?.type==="text"?(o.raw+=` 845`+i.raw,o.text+=` 846`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(i);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=e,i=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,o="";for(;e;){s||(o=""),s=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);const c=n.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,r,o)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let l=e;if(this.options.extensions?.startInline){let c=1/0;const u=e.slice(1);let h;this.options.extensions.startInline.forEach(d=>{h=d.call({lexer:this},u),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(l=e.substring(0,c+1))}if(a=this.tokenizer.inlineText(l)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),s=!0;const c=n.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class nP{options;parser;constructor(e){this.options=e||jb}space(e){return""}code({text:e,lang:n,escaped:r}){const i=(n||"").match($l.notSpaceStart)?.[0],s=e.replace($l.endingNewline,"")+` 847`;return i?'<pre><code class="language-'+ff(i)+'">'+(r?s:ff(s,!0))+`</code></pre> 848`:"<pre><code>"+(r?s:ff(s,!0))+`</code></pre> 849`}blockquote({tokens:e}){return`<blockquote> 850${this.parser.parse(e)}</blockquote> 851`}html({text:e}){return e}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}> 852`}hr(e){return`<hr> 853`}list(e){const n=e.ordered,r=e.start;let i="";for(let a=0;a<e.items.length;a++){const l=e.items[a];i+=this.listitem(l)}const s=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+s+o+`> 854`+i+"</"+s+`> 855`}listitem(e){let n="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+ff(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li> 856`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 857`}table(e){let n="",r="";for(let s=0;s<e.header.length;s++)r+=this.tablecell(e.header[s]);n+=this.tablerow({text:r});let i="";for(let s=0;s<e.rows.length;s++){const o=e.rows[s];r="";for(let a=0;a<o.length;a++)r+=this.tablecell(o[a]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table> 858<thead> 859`+n+`</thead> 860`+i+`</table> 861`}tablerow({text:e}){return`<tr> 862${e}</tr> 863`}tablecell(e){const n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}> 864`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ff(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Yie(e);if(s===null)return i;e=s;let o='<a href="'+e+'"';return n&&(o+=' title="'+ff(n)+'"'),o+=">"+i+"</a>",o}image({href:e,title:n,text:r}){const i=Yie(e);if(i===null)return ff(r);e=i;let s=`<img src="${e}" alt="${r}"`;return n&&(s+=` title="${ff(n)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ff(e.text)}}class Aq{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class mh{options;renderer;textRenderer;constructor(e){this.options=e||jb,this.options.renderer=this.options.renderer||new nP,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Aq}static parse(e,n){return new mh(n).parse(e)}static parseInline(e,n){return new mh(n).parseInline(e)}parse(e,n=!0){let r="";for(let i=0;i<e.length;i++){const s=e[i];if(this.options.extensions?.renderers?.[s.type]){const a=s,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=l||"";continue}}const o=s;switch(o.type){case"space":{r+=this.renderer.space(o);continue}case"hr":{r+=this.renderer.hr(o);continue}case"heading":{r+=this.renderer.heading(o);continue}case"code":{r+=this.renderer.code(o);continue}case"table":{r+=this.renderer.table(o);continue}case"blockquote":{r+=this.renderer.blockquote(o);continue}case"list":{r+=this.renderer.list(o);continue}case"html":{r+=this.renderer.html(o);continue}case"paragraph":{r+=this.renderer.paragraph(o);continue}case"text":{let a=o,l=this.renderer.text(a);for(;i+1<e.length&&e[i+1].type==="text";)a=e[++i],l+=` 865`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(e,n=this.renderer){let r="";for(let i=0;i<e.length;i++){const s=e[i];if(this.options.extensions?.renderers?.[s.type]){const a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=a||"";continue}}const o=s;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}}class TA{options;block;constructor(e){this.options=e||jb}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ph.lex:ph.lexInline}provideParser(){return this.block?mh.parse:mh.parseInline}}class tCt{defaults=xq();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=mh;Renderer=nP;TextRenderer=Aq;Lexer=ph;Tokenizer=tP;Hooks=TA;constructor(...e){this.use(...e)}walkTokens(e,n){let r=[];for(const i of e)switch(r=r.concat(n.call(this,i)),i.type){case"table":{const s=i;for(const o of s.header)r=r.concat(this.walkTokens(o.tokens,n));for(const o of s.rows)for(const a of o)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const s=i;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{const a=s[o].flat(1/0);r=r.concat(this.walkTokens(a,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...e){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=n.renderers[s.name];o?n.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[s.level];o?o.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new nP(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],c=s[a];s[a]=(...u)=>{let h=l.apply(s,u);return h===!1&&(h=c.apply(s,u)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new tP(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],c=s[a];s[a]=(...u)=>{let h=l.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new TA;
vendor: 63,347 bytes, lines 865-878
865for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],c=s[a];TA.passThroughHooks.has(o)?s[a]=u=>{if(this.defaults.async)return Promise.resolve(l.call(s,u)).then(d=>c.call(s,d));const h=l.call(s,u);return c.call(s,h)}:s[a]=(...u)=>{let h=l.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),s&&(l=l.concat(s.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return ph.lex(e,n??this.defaults)}parser(e,n){return mh.parse(e,n??this.defaults)}parseMarkdown(e){return(r,i)=>{const s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const l=o.hooks?o.hooks.provideLexer():e?ph.lex:ph.lexInline,c=o.hooks?o.hooks.provideParser():e?mh.parse:mh.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(u=>l(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>c(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let u=l(r,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let h=c(u,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(u){return a(u)}}}onError(e,n){return r=>{if(r.message+=` 866Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+ff(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const _b=new tCt;function Wi(t,e){return _b.parse(t,e)}Wi.options=Wi.setOptions=function(t){return _b.setOptions(t),Wi.defaults=_b.defaults,O3e(Wi.defaults),Wi};Wi.getDefaults=xq;Wi.defaults=jb;Wi.use=function(...t){return _b.use(...t),Wi.defaults=_b.defaults,O3e(Wi.defaults),Wi};Wi.walkTokens=function(t,e){return _b.walkTokens(t,e)};Wi.parseInline=_b.parseInline;Wi.Parser=mh;Wi.parser=mh.parse;Wi.Renderer=nP;Wi.TextRenderer=Aq;Wi.Lexer=ph;Wi.lexer=ph.lex;Wi.Tokenizer=tP;Wi.Hooks=TA;Wi.parse=Wi;Wi.options;Wi.setOptions;Wi.use;Wi.walkTokens;Wi.parseInline;mh.parse;ph.lex;function z3e(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var h,d;return(d=(h=u.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&d!==void 0?d:0})):a},[]);if(i.length){var s=new RegExp(` 867[ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(a){return a.replace(s,` 868`)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(a,l){var c=o.match(/(?:^|\n)( *)$/),u=c?c[1]:"",h=a;typeof a=="string"&&a.includes(` 869`)&&(h=String(a).split(` 870`).map(function(d,p){return p===0?d:""+u+d}).join(` 871`)),o+=h+r[l+1]}),o}function H3e(t,{markdownAutoWrap:e}){const r=t.replace(/<br\/>/g,` 872`).replace(/\n{2,}/g,` 873`),i=z3e(r);return e===!1?i.replace(/ /g," "):i}F(H3e,"preprocessMarkdown");function U3e(t,e={}){const n=H3e(t,e),r=Wi.lexer(n),i=[[]];let s=0;function o(a,l="normal"){a.type==="text"?a.text.split(` 874`).forEach((u,h)=>{h!==0&&(s++,i.push([])),u.split(" ").forEach(d=>{d=d.replace(/'/g,"'"),d&&i[s].push({content:d,type:l})})}):a.type==="strong"||a.type==="em"?a.tokens.forEach(c=>{o(c,a.type)}):a.type==="html"&&i[s].push({content:a.text,type:"normal"})}return F(o,"processNode"),r.forEach(a=>{a.type==="paragraph"?a.tokens?.forEach(l=>{o(l)}):a.type==="html"&&i[s].push({content:a.text,type:"normal"})}),i}F(U3e,"markdownToLines");function V3e(t,{markdownAutoWrap:e}={}){const n=Wi.lexer(t);function r(i){return i.type==="text"?e===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g," "):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${i.tokens?.map(r).join("")}</strong>`:i.type==="em"?`<em>${i.tokens?.map(r).join("")}</em>`:i.type==="paragraph"?`<p>${i.tokens?.map(r).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:`Unsupported markdown: ${i.type}`}return F(r,"output"),n.map(r).join("")}F(V3e,"markdownToHTML");function W3e(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}F(W3e,"splitTextToChars");function q3e(t,e){const n=W3e(e.content);return Pq(t,[],n,e.type)}F(q3e,"splitWordToFitWidth");function Pq(t,e,n,r){if(n.length===0)return[{content:e.join(""),type:r},{content:"",type:r}];const[i,...s]=n,o=[...e,i];return t([{content:o.join(""),type:r}])?Pq(t,o,s,r):(e.length===0&&i&&(e.push(i),n.shift()),[{content:e.join(""),type:r},{content:n.join(""),type:r}])}F(Pq,"splitWordToFitWidthRecursion");function G3e(t,e){if(t.some(({content:n})=>n.includes(` 875`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return rP(t,e)}F(G3e,"splitLineToFitWidth");function rP(t,e,n=[],r=[]){if(t.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i="";t[0].content===" "&&(i=" ",t.shift());const s=t.shift()??{content:" ",type:"normal"},o=[...r];if(i!==""&&o.push({content:i,type:"normal"}),o.push(s),e(o))return rP(t,e,n,o);if(r.length>0)n.push(r),t.unshift(s);else if(s.content){const[a,l]=q3e(e,s);n.push([a]),l.content&&t.unshift(l)}return rP(t,e,n)}F(rP,"splitLineToFitWidthRecursion");function sj(t,e){e&&t.attr("style",e)}F(sj,"applyStyle");async function K3e(t,e,n,r,i=!1){const s=t.append("foreignObject");s.attr("width",`${10*n}px`),s.attr("height",`${10*n}px`);const o=s.append("xhtml:div");let a=e.label;e.label&&iw(e.label)&&(a=await HW(e.label.replace(Hw.lineBreakRegex,` 876`),Fi()));const l=e.isNode?"nodeLabel":"edgeLabel",c=o.append("span");c.html(a),sj(c,e.labelStyle),c.attr("class",`${l} ${r}`),sj(o,e.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",n+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===n&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",n+"px"),u=o.node().getBoundingClientRect()),s.node()}F(K3e,"addHtmlSpan");function AI(t,e,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}F(AI,"createTspan");function Y3e(t,e,n){const r=t.append("text"),i=AI(r,1,e);PI(i,n);const s=i.node().getComputedTextLength();return r.remove(),s}F(Y3e,"computeWidthOfText");function nCt(t,e,n){const r=t.append("text"),i=AI(r,1,e);PI(i,[{content:n,type:"normal"}]);const s=i.node()?.getBoundingClientRect();return s&&r.remove(),s}F(nCt,"computeDimensionOfText");function Q3e(t,e,n,r=!1){const s=e.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),a=s.append("text").attr("y","-10.1");let l=0;for(const c of n){const u=F(d=>Y3e(s,1.1,d)<=t,"checkWidth"),h=u(c)?[c]:G3e(c,u);for(const d of h){const p=AI(a,l,1.1);PI(p,d),l++}}if(r){const c=a.node().getBBox(),u=2;return o.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),s.node()}else return a.node()}F(Q3e,"createFormattedText");function PI(t,e){t.text(""),e.forEach((n,r)=>{const i=t.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");r===0?i.text(n.content):i.text(" "+n.content)})}F(PI,"updateTextContentAndStyles");function X3e(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`)}F(X3e,"replaceIconSubstring");var w1=F(async(t,e="",{style:n="",isTitle:r=!1,classes:i="",useHtmlLabels:s=!0,isNode:o=!0,width:a=200,addSvgBackground:l=!1}={},c)=>{if(pt.debug("XYZ createText",e,n,r,i,s,o,"addSvgBackground: ",l),s){const u=V3e(e,c),h=X3e($b(u)),d=e.replace(/\\\\/g,"\\"),p={isNode:o,label:iw(e)?d:h,labelStyle:n.replace("fill:","color:")};return await K3e(t,p,a,i,l)}else{const u=e.replace(/<br\s*\/?>/g,"<br/>"),h=U3e(u.replace("<br>","<br/>"),c),d=Q3e(a,t,h,e?l:!1);if(o){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const p=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");pi(d).attr("style",p)}else{const p=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");pi(d).select("rect").attr("style",p.replace(/background:/g,"fill:"));const g=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");pi(d).select("text").attr("style",g)}return d}},"createText");function aR(t,e,n){if(t&&t.length){const[r,i]=e,s=Math.PI/180*n,o=Math.cos(s),a=Math.sin(s);for(const l of t){const[c,u]=l;l[0]=(c-r)*o-(u-i)*a+r,l[1]=(c-r)*a+(u-i)*o+i}}}function rCt(t,e){return t[0]===e[0]&&t[1]===e[1]}function iCt(t,e,n,r=1){const i=n,s=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(i)for(const c of o)aR(c,a,i);const l=function(c,u,h){const d=[];for(const S of c){const T=[...S];rCt(T[0],T[T.length-1])||T.push([T[0][0],T[0][1]]),T.length>2&&d.push(T)}const p=[];u=Math.max(u,.1);const g=[];for(const S of d)for(let T=0;T<S.length-1;T++){const D=S[T],E=S[T+1];if(D[1]!==E[1]){const O=Math.min(D[1],E[1]);g.push({ymin:O,ymax:Math.max(D[1],E[1]),x:O===D[1]?D[0]:E[0],islope:(E[0]-D[0])/(E[1]-D[1])})}}if(g.sort((S,T)=>S.ymin<T.ymin?-1:S.ymin>T.ymin?1:S.x<T.x?-1:S.x>T.x?1:S.ymax===T.ymax?0:(S.ymax-T.ymax)/Math.abs(S.ymax-T.ymax)),!g.length)return p;let y=[],b=g[0].ymin,w=0;for(;y.length||g.length;){if(g.length){let S=-1;for(let T=0;T<g.length&&!(g[T].ymin>b);T++)S=T;g.splice(0,S+1).forEach(T=>{y.push({s:b,edge:T})})}if(y=y.filter(S=>!(S.edge.ymax<=b)),y.sort((S,T)=>S.edge.x===T.edge.x?0:(S.edge.x-T.edge.x)/Math.abs(S.edge.x-T.edge.x)),(h!==1||w%u==0)&&y.length>1)for(let S=0;S<y.length;S+=2){const T=S+1;if(T>=y.length)break;const D=y[S].edge,E=y[T].edge;p.push([[Math.round(D.x),b],[Math.round(E.x),b]])}b+=h,y.forEach(S=>{S.edge.x=S.edge.x+h*S.edge.islope}),w++}return p}(o,s,r);if(i){for(const c of o)aR(c,a,-i);(function(c,u,h){const d=[];c.forEach(p=>d.push(...p)),aR(d,u,h)})(l,a,-i)}return l}function F_(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let s=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(s=i),iCt(t,i,r,s||1)}class Oq{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const r=F_(e,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(e,n){const r=[];for(const i of e)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}}function OI(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}let sCt=class extends Oq{fillPolygons(e,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=F_(e,Object.assign({},n,{hachureGap:r})),s=Math.PI/180*n.hachureAngle,o=[],a=.5*r*Math.cos(s),l=.5*r*Math.sin(s);for(const[c,u]of i)OI([c,u])&&o.push([[c[0]-a,c[1]+l],[...u]],[[c[0]+a,c[1]-l],[...u]]);return{type:"fillSketch",ops:this.renderLines(o,n)}}};class oCt extends Oq{fillPolygons(e,n){const r=this._fillPolygons(e,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),s=this._fillPolygons(e,i);return r.ops=r.ops.concat(s.ops),r}}let aCt=class{constructor(e){this.helper=e}fillPolygons(e,n){const r=F_(e,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(e,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let s=n.fillWeight;s<0&&(s=n.strokeWidth/2);const o=i/4;for(const a of e){const l=OI(a),c=l/i,u=Math.ceil(c)-1,h=l-u*i,d=(a[0][0]+a[1][0])/2-i/4,p=Math.min(a[0][1],a[1][1]);for(let g=0;g<u;g++){const y=p+h+g*i,b=d-o+2*Math.random()*o,w=y-o+2*Math.random()*o,S=this.helper.ellipse(b,w,s,s,n);r.push(...S.ops)}}return{type:"fillSketch",ops:r}}};class lCt{constructor(e){this.helper=e}fillPolygons(e,n){const r=F_(e,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(e,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,s=[];return e.forEach(o=>{const a=OI(o),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let u=o[0],h=o[1];u[0]>h[0]&&(u=o[1],h=o[0]);const d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let p=0;p<l;p++){const g=p*(r+i),y=g+r,b=[u[0]+g*Math.cos(d)+c*Math.cos(d),u[1]+g*Math.sin(d)+c*Math.sin(d)],w=[u[0]+y*Math.cos(d)+c*Math.cos(d),u[1]+y*Math.sin(d)+c*Math.sin(d)];s.push(...this.helper.doubleLineOps(b[0],b[1],w[0],w[1],n))}}),s}}class cCt{constructor(e){this.helper=e}fillPolygons(e,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,s=F_(e,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(s,i,n)}}zigzagLines(e,n,r){const i=[];return e.forEach(s=>{const o=OI(s),a=Math.round(o/(2*n));let l=s[0],c=s[1];l[0]>c[0]&&(l=s[1],c=s[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<a;h++){const d=2*h*n,p=2*(h+1)*n,g=Math.sqrt(2*Math.pow(n,2)),y=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],b=[l[0]+p*Math.cos(u),l[1]+p*Math.sin(u)],w=[y[0]+g*Math.cos(u+Math.PI/4),y[1]+g*Math.sin(u+Math.PI/4)];i.push(...this.helper.doubleLineOps(y[0],y[1],w[0],w[1],r),...this.helper.doubleLineOps(w[0],w[1],b[0],b[1],r))}}),i}}const oc={};let uCt=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const hCt=0,lR=1,Jie=2,wE={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function cR(t,e){return t.type===e}function Iq(t){const e=[],n=function(o){const a=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:hCt,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:lR,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return a[a.length]={type:Jie,text:""},a}(t);let r="BOD",i=0,s=n[i];for(;!cR(s,Jie);){let o=0;const a=[];if(r==="BOD"){if(s.text!=="M"&&s.text!=="m")return Iq("M0,0"+t);i++,o=wE[s.text],r=s.text}else cR(s,lR)?o=wE[r]:(i++,o=wE[s.text],r=s.text);if(!(i+o<n.length))throw new Error("Path data ended short");for(let l=i;l<i+o;l++){const c=n[l];if(!cR(c,lR))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof wE[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};e.push(l),i+=o,s=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return e}function J3e(t){let e=0,n=0,r=0,i=0;const s=[];for(const{key:o,data:a}of t)switch(o){case"M":s.push({key:"M",data:[...a]}),[e,n]=a,[r,i]=a;break;case"m":e+=a[0],n+=a[1],s.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":s.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],s.push({key:"L",data:[e,n]});break;case"C":s.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+n:c+e);s.push({key:"C",data:l}),e=l[4],n=l[5];break}case"Q":s.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+n:c+e);s.push({key:"Q",data:l}),e=l[2],n=l[3];break}case"A":s.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],s.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":s.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],s.push({key:"H",data:[e]});break;case"V":s.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],s.push({key:"V",data:[n]});break;case"S":s.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+n:c+e);s.push({key:"S",data:l}),e=l[2],n=l[3];break}case"T":s.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],s.push({key:"T",data:[e,n]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=r,n=i}return s}function Z3e(t){const e=[];let n="",r=0,i=0,s=0,o=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[r,i]=u,[s,o]=u;break;case"C":e.push({key:"C",data:[...u]}),r=u[4],i=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],e.push({key:"L",data:[r,i]});break;case"V":i=u[0],e.push({key:"L",data:[r,i]});break;case"S":{let h=0,d=0;n==="C"||n==="S"?(h=r+(r-a),d=i+(i-l)):(h=r,d=i),e.push({key:"C",data:[h,d,...u]}),a=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[h,d]=u;let p=0,g=0;n==="Q"||n==="T"?(p=r+(r-a),g=i+(i-l)):(p=r,g=i);const y=r+2*(p-r)/3,b=i+2*(g-i)/3,w=h+2*(p-h)/3,S=d+2*(g-d)/3;e.push({key:"C",data:[y,b,w,S,h,d]}),a=p,l=g,r=h,i=d;break}case"Q":{const[h,d,p,g]=u,y=r+2*(h-r)/3,b=i+2*(d-i)/3,w=p+2*(h-p)/3,S=g+2*(d-g)/3;e.push({key:"C",data:[y,b,w,S,p,g]}),a=h,l=d,r=p,i=g;break}case"A":{const h=Math.abs(u[0]),d=Math.abs(u[1]),p=u[2],g=u[3],y=u[4],b=u[5],w=u[6];h===0||d===0?(e.push({key:"C",data:[r,i,b,w,b,w]}),r=b,i=w):(r!==b||i!==w)&&(e4e(r,i,b,w,h,d,p,g,y).forEach(function(S){e.push({key:"C",data:S})}),r=b,i=w);break}case"Z":e.push({key:"Z",data:[]}),r=s,i=o}n=c}return e}function l3(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function e4e(t,e,n,r,i,s,o,a,l,c){const u=(h=o,Math.PI*h/180);var h;let d=[],p=0,g=0,y=0,b=0;if(c)[p,g,y,b]=c;else{[t,e]=l3(t,e,-u),[n,r]=l3(n,r,-u);const oe=(t-n)/2,te=(e-r)/2;let re=oe*oe/(i*i)+te*te/(s*s);re>1&&(re=Math.sqrt(re),i*=re,s*=re);const Y=i*i,z=s*s,U=Y*z-Y*te*te-z*oe*oe,G=Y*te*te+z*oe*oe,B=(a===l?-1:1)*Math.sqrt(Math.abs(U/G));y=B*i*te/s+(t+n)/2,b=B*-s*oe/i+(e+r)/2,p=Math.asin(parseFloat(((e-b)/s).toFixed(9))),g=Math.asin(parseFloat(((r-b)/s).toFixed(9))),t<y&&(p=Math.PI-p),n<y&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let w=g-p;if(Math.abs(w)>120*Math.PI/180){const oe=g,te=n,re=r;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=e4e(n=y+i*Math.cos(g),r=b+s*Math.sin(g),te,re,i,s,o,0,l,[g,oe,y,b])}w=g-p;const S=Math.cos(p),T=Math.sin(p),D=Math.cos(g),E=Math.sin(g),O=Math.tan(w/4),P=4/3*i*O,$=4/3*s*O,W=[t,e],H=[t+P*T,e-$*S],K=[n+P*E,r-$*D],Z=[n,r];if(H[0]=2*W[0]-H[0],H[1]=2*W[1]-H[1],c)return[H,K,Z].concat(d);{d=[H,K,Z].concat(d);const oe=[];for(let te=0;te<d.length;te+=3){const re=l3(d[te][0],d[te][1],u),Y=l3(d[te+1][0],d[te+1][1],u),z=l3(d[te+2][0],d[te+2][1],u);oe.push([re[0],re[1],Y[0],Y[1],z[0],z[1]])}return oe}}const dCt={randOffset:function(t,e){return ur(t,e)},randOffsetWithRange:function(t,e,n){return iP(t,e,n)},ellipse:function(t,e,n,r,i){const s=n4e(n,r,i);return oj(t,e,i,s).opset},doubleLineOps:function(t,e,n,r,i){return e1(t,e,n,r,i,!0)}};function t4e(t,e,n,r,i){return{type:"path",ops:e1(t,e,n,r,i)}}function EA(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let s=0;s<r-1;s++)i.push(...e1(t[s][0],t[s][1],t[s+1][0],t[s+1][1],n));return e&&i.push(...e1(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return r===2?t4e(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function fCt(t,e,n,r,i){return function(s,o){return EA(s,!0,o)}([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}function Zie(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=SE(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:SE(n[0],1.5*(1+.22*e.roughness),nse(e));for(let s=1;s<n.length;s++){const o=n[s];if(o.length){const a=SE(o,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:SE(o,1.5*(1+.22*e.roughness),nse(e));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function n4e(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),s=2*Math.PI/i;let o=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return o+=ur(o*l,n),a+=ur(a*l,n),{increment:s,rx:o,ry:a}}function oj(t,e,n,r){const[i,s]=rse(r.increment,t,e,r.rx,r.ry,1,r.increment*iP(.1,iP(.4,1,n),n),n);let o=sP(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=rse(r.increment,t,e,r.rx,r.ry,1.5,0,n),l=sP(a,null,n);o=o.concat(l)}return{estimatedPoints:s,opset:{type:"path",ops:o}}}function ese(t,e,n,r,i,s,o,a,l){const c=t,u=e;let h=Math.abs(n/2),d=Math.abs(r/2);h+=ur(.01*h,l),d+=ur(.01*d,l);let p=i,g=s;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const y=2*Math.PI/l.curveStepCount,b=Math.min(y/2,(g-p)/2),w=ise(b,c,u,h,d,p,g,1,l);if(!l.disableMultiStroke){const S=ise(b,c,u,h,d,p,g,1.5,l);w.push(...S)}return o&&(a?w.push(...e1(c,u,c+h*Math.cos(p),u+d*Math.sin(p),l),...e1(c,u,c+h*Math.cos(g),u+d*Math.sin(g),l)):w.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(p),u+d*Math.sin(p)]})),{type:"path",ops:w}}function tse(t,e){const n=Z3e(J3e(Iq(t))),r=[];let i=[0,0],s=[0,0];for(const{key:o,data:a}of n)switch(o){case"M":s=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...e1(s[0],s[1],a[0],a[1],e)),s=[a[0],a[1]];break;case"C":{const[l,c,u,h,d,p]=a;r.push(...pCt(l,c,u,h,d,p,s,e)),s=[d,p];break}case"Z":r.push(...e1(s[0],s[1],i[0],i[1],e)),s=[i[0],i[1]]}return{type:"path",ops:r}}function uR(t,e){const n=[];for(const r of t)if(r.length){const i=e.maxRandomnessOffset||0,s=r.length;if(s>2){n.push({op:"move",data:[r[0][0]+ur(i,e),r[0][1]+ur(i,e)]});for(let o=1;o<s;o++)n.push({op:"lineTo",data:[r[o][0]+ur(i,e),r[o][1]+ur(i,e)]})}}return{type:"fillPath",ops:n}}function Lv(t,e){return function(n,r){let i=n.fillStyle||"hachure";if(!oc[i])switch(i){case"zigzag":oc[i]||(oc[i]=new sCt(r));break;case"cross-hatch":oc[i]||(oc[i]=new oCt(r));break;case"dots":oc[i]||(oc[i]=new aCt(r));break;case"dashed":oc[i]||(oc[i]=new lCt(r));break;case"zigzag-line":oc[i]||(oc[i]=new cCt(r));break;default:i="hachure",oc[i]||(oc[i]=new Oq(r))}return oc[i]}(e,dCt).fillPolygons(t,e)}function nse(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function r4e(t){return t.randomizer||(t.randomizer=new uCt(t.seed||0)),t.randomizer.next()}function iP(t,e,n,r=1){return n.roughness*r*(r4e(n)*(e-t)+t)}function ur(t,e,n=1){return iP(-t,t,e,n)}function e1(t,e,n,r,i,s=!1){const o=s?i.disableMultiStrokeFill:i.disableMultiStroke,a=aj(t,e,n,r,i,!0,!1);if(o)return a;const l=aj(t,e,n,r,i,!0,!0);return a.concat(l)}function aj(t,e,n,r,i,s,o){const a=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const h=u/2,d=.2+.2*r4e(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=ur(p,i,c),g=ur(g,i,c);const y=[],b=()=>ur(h,i,c),w=()=>ur(u,i,c),S=i.preserveVertices;return o?y.push({op:"move",data:[t+(S?0:b()),e+(S?0:b())]}):y.push({op:"move",data:[t+(S?0:ur(u,i,c)),e+(S?0:ur(u,i,c))]}),o?y.push({op:"bcurveTo",data:[p+t+(n-t)*d+b(),g+e+(r-e)*d+b(),p+t+2*(n-t)*d+b(),g+e+2*(r-e)*d+b(),n+(S?0:b()),r+(S?0:b())]}):y.push({op:"bcurveTo",data:[p+t+(n-t)*d+w(),g+e+(r-e)*d+w(),p+t+2*(n-t)*d+w(),g+e+2*(r-e)*d+w(),n+(S?0:w()),r+(S?0:w())]}),y}function SE(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+ur(e,n),t[0][1]+ur(e,n)]),r.push([t[0][0]+ur(e,n),t[0][1]+ur(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+ur(e,n),t[i][1]+ur(e,n)]),i===t.length-1&&r.push([t[i][0]+ur(e,n),t[i][1]+ur(e,n)]);return sP(r,null,n)}function sP(t,e,n){const r=t.length,i=[];if(r>3){const s=[],o=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<r;a++){const l=t[a];s[0]=[l[0],l[1]],s[1]=[l[0]+(o*t[a+1][0]-o*t[a-1][0])/6,l[1]+(o*t[a+1][1]-o*t[a-1][1])/6],s[2]=[t[a+1][0]+(o*t[a][0]-o*t[a+2][0])/6,t[a+1][1]+(o*t[a][1]-o*t[a+2][1])/6],s[3]=[t[a+1][0],t[a+1][1]],i.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}}else r===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):r===2&&i.push(...aj(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function rse(t,e,n,r,i,s,o,a){const l=[],c=[];if(a.roughness===0){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let u=0;u<=2*Math.PI;u+=t){const h=[e+r*Math.cos(u),n+i*Math.sin(u)];l.push(h),c.push(h)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const u=ur(.5,a)-Math.PI/2;c.push([ur(s,a)+e+.9*r*Math.cos(u-t),ur(s,a)+n+.9*i*Math.sin(u-t)]);const h=2*Math.PI+u-.01;for(let d=u;d<h;d+=t){const p=[ur(s,a)+e+r*Math.cos(d),ur(s,a)+n+i*Math.sin(d)];l.push(p),c.push(p)}c.push([ur(s,a)+e+r*Math.cos(u+2*Math.PI+.5*o),ur(s,a)+n+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([ur(s,a)+e+.98*r*Math.cos(u+o),ur(s,a)+n+.98*i*Math.sin(u+o)]),c.push([ur(s,a)+e+.9*r*Math.cos(u+.5*o),ur(s,a)+n+.9*i*Math.sin(u+.5*o)])}return[c,l]}function ise(t,e,n,r,i,s,o,a,l){const c=s+ur(.1,l),u=[];u.push([ur(a,l)+e+.9*r*Math.cos(c-t),ur(a,l)+n+.9*i*Math.sin(c-t)]);for(let h=c;h<=o;h+=t)u.push([ur(a,l)+e+r*Math.cos(h),ur(a,l)+n+i*Math.sin(h)]);return u.push([e+r*Math.cos(o),n+i*Math.sin(o)]),u.push([e+r*Math.cos(o),n+i*Math.sin(o)]),sP(u,null,l)}function pCt(t,e,n,r,i,s,o,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const h=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let p=0;p<h;p++)p===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:ur(c[0],a)),o[1]+(d?0:ur(c[0],a))]}),u=d?[i,s]:[i+ur(c[p],a),s+ur(c[p],a)],l.push({op:"bcurveTo",data:[t+ur(c[p],a),e+ur(c[p],a),n+ur(c[p],a),r+ur(c[p],a),u[0],u[1]]});return l}function c3(t){return[...t]}function sse(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(c3(t[0]),c3(t[1]),c3(t[2]),c3(t[2]));else{const i=[];i.push(t[0],t[0]);for(let a=1;a<t.length;a++)i.push(t[a]),a===t.length-1&&i.push(t[a]);const s=[],o=1-e;r.push(c3(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];s[0]=[l[0],l[1]],s[1]=[l[0]+(o*i[a+1][0]-o*i[a-1][0])/6,l[1]+(o*i[a+1][1]-o*i[a-1][1])/6],s[2]=[i[a+1][0]+(o*i[a][0]-o*i[a+2][0])/6,i[a+1][1]+(o*i[a][1]-o*i[a+2][1])/6],s[3]=[i[a+1][0],i[a+1][1]],r.push(s[1],s[2],s[3])}}return r}function AA(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function mCt(t,e,n){const r=AA(e,n);if(r===0)return AA(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),AA(t,py(e,n,i))}function py(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function lj(t,e,n,r){const i=r||[];if(function(a,l){const c=a[l+0],u=a[l+1],h=a[l+2],d=a[l+3];let p=3*u[0]-2*c[0]-d[0];p*=p;let g=3*u[1]-2*c[1]-d[1];g*=g;let y=3*h[0]-2*d[0]-c[0];y*=y;let b=3*h[1]-2*d[1]-c[1];return b*=b,p<y&&(p=y),g<b&&(g=b),p+g}(t,e)<n){const a=t[e+0];i.length?(s=i[i.length-1],o=a,Math.sqrt(AA(s,o))>1&&i.push(a)):i.push(a),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],u=t[e+2],h=t[e+3],d=py(l,c,.5),p=py(c,u,.5),g=py(u,h,.5),y=py(d,p,.5),b=py(p,g,.5),w=py(y,b,.5);lj([l,d,y,w],0,n,i),lj([w,b,g,h],0,n,i)}var s,o;return i}function gCt(t,e){return oP(t,0,t.length,e)}function oP(t,e,n,r,i){const s=i||[],o=t[e],a=t[n-1];let l=0,c=1;for(let u=e+1;u<n-1;++u){const h=mCt(t[u],o,a);h>l&&(l=h,c=u)}return Math.sqrt(l)>r?(oP(t,e,c+1,r,s),oP(t,c,n,r,s)):(s.length||s.push(o),s.push(a)),s}function hR(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let s=0;s<i;s++)lj(t,3*s,e,r);return n&&n>0?oP(r,0,r.length,n):r}const cu="none";class aP{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,n,r){return{shape:e,sets:n||[],options:r||this.defaultOptions}}line(e,n,r,i,s){const o=this._o(s);return this._d("line",[t4e(e,n,r,i,o)],o)}rectangle(e,n,r,i,s){const o=this._o(s),a=[],l=fCt(e,n,r,i,o);if(o.fill){const c=[[e,n],[e+r,n],[e+r,n+i],[e,n+i]];o.fillStyle==="solid"?a.push(uR([c],o)):a.push(Lv([c],o))}return o.stroke!==cu&&a.push(l),this._d("rectangle",a,o)}ellipse(e,n,r,i,s){const o=this._o(s),a=[],l=n4e(r,i,o),c=oj(e,n,o,l);if(o.fill)if(o.fillStyle==="solid"){const u=oj(e,n,o,l).opset;u.type="fillPath",a.push(u)}else a.push(Lv([c.estimatedPoints],o));return o.stroke!==cu&&a.push(c.opset),this._d("ellipse",a,o)}circle(e,n,r,i){const s=this.ellipse(e,n,r,r,i);return s.shape="circle",s}linearPath(e,n){const r=this._o(n);return this._d("linearPath",[EA(e,!1,r)],r)}arc(e,n,r,i,s,o,a=!1,l){const c=this._o(l),u=[],h=ese(e,n,r,i,s,o,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const p=ese(e,n,r,i,s,o,!0,!1,d);p.type="fillPath",u.push(p)}else u.push(function(d,p,g,y,b,w,S){const T=d,D=p;let E=Math.abs(g/2),O=Math.abs(y/2);E+=ur(.01*E,S),O+=ur(.01*O,S);let P=b,$=w;for(;P<0;)P+=2*Math.PI,$+=2*Math.PI;$-P>2*Math.PI&&(P=0,$=2*Math.PI);const W=($-P)/S.curveStepCount,H=[];for(let K=P;K<=$;K+=W)H.push([T+E*Math.cos(K),D+O*Math.sin(K)]);return H.push([T+E*Math.cos($),D+O*Math.sin($)]),H.push([T,D]),Lv([H],S)}(e,n,r,i,s,o,c));return c.stroke!==cu&&u.push(h),this._d("arc",u,c)}curve(e,n){const r=this._o(n),i=[],s=Zie(e,r);if(r.fill&&r.fill!==cu)if(r.fillStyle==="solid"){const o=Zie(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],a=e;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?o.push(...c):c.length===3?o.push(...hR(sse([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):o.push(...hR(sse(c),10,(1+r.roughness)/2))}o.length&&i.push(Lv([o],r))}return r.stroke!==cu&&i.push(s),this._d("curve",i,r)}polygon(e,n){const r=this._o(n),i=[],s=EA(e,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(uR([e],r)):i.push(Lv([e],r))),r.stroke!==cu&&i.push(s),this._d("polygon",i,r)}path(e,n){const r=this._o(n),i=[];if(!e)return this._d("path",i,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=r.fill&&r.fill!=="transparent"&&r.fill!==cu,o=r.stroke!==cu,a=!!(r.simplification&&r.simplification<1),l=function(u,h,d){const p=Z3e(J3e(Iq(u))),g=[];let y=[],b=[0,0],w=[];const S=()=>{w.length>=4&&y.push(...hR(w,h)),w=[]},T=()=>{S(),y.length&&(g.push(y),y=[])};for(const{key:E,data:O}of p)switch(E){case"M":T(),b=[O[0],O[1]],y.push(b);break;case"L":S(),y.push([O[0],O[1]]);break;case"C":if(!w.length){const P=y.length?y[y.length-1]:b;w.push([P[0],P[1]])}w.push([O[0],O[1]]),w.push([O[2],O[3]]),w.push([O[4],O[5]]);break;case"Z":S(),y.push([b[0],b[1]])}if(T(),!d)return g;const D=[];for(const E of g){const O=gCt(E,d);O.length&&D.push(O)}return D}(e,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=tse(e,r);if(s)if(r.fillStyle==="solid")if(l.length===1){const u=tse(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else i.push(uR(l,r));else i.push(Lv(l,r));return o&&(a?l.forEach(u=>{i.push(EA(u,!1,r))}):i.push(c)),this._d("path",i,r)}opsToPath(e,n){let r="";for(const i of e.ops){const s=typeof n=="number"&&n>=0?i.data.map(o=>+o.toFixed(n)):i.data;switch(i.op){case"move":r+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":r+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":r+=`L${s[0]} ${s[1]} `}}return r.trim()}toPaths(e){const n=e.sets||[],r=e.options||this.defaultOptions,i=[];for(const s of n){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:cu};break;case"fillPath":o={d:this.opsToPath(s),stroke:cu,strokeWidth:0,fill:r.fill||cu};break;case"fillSketch":o=this.fillSketch(s,r)}o&&i.push(o)}return i}fillSketch(e,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||cu,strokeWidth:r,fill:cu}}_mergedShape(e){return e.filter((n,r)=>r===0||n.op!=="move")}}class yCt{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new aP(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.ctx,s=e.options.fixedDecimalPlaceDigits;for(const o of n)switch(o.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,o,s),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,o,s,a),i.restore();break}case"fillSketch":this.fillSketch(i,o,r)}}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),e.save(),r.fillLineDash&&e.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(e.lineDashOffset=r.fillLineDashOffset),e.strokeStyle=r.fill||"",e.lineWidth=i,this._drawToContext(e,n,r.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,n,r,i="nonzero"){e.beginPath();for(const s of n.ops){const o=typeof r=="number"&&r>=0?s.data.map(a=>+a.toFixed(r)):s.data;switch(s.op){case"move":e.moveTo(o[0],o[1]);break;case"bcurveTo":e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":e.lineTo(o[0],o[1])}}n.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,n,r,i,s){const o=this.gen.line(e,n,r,i,s);return this.draw(o),o}rectangle(e,n,r,i,s){const o=this.gen.rectangle(e,n,r,i,s);return this.draw(o),o}ellipse(e,n,r,i,s){const o=this.gen.ellipse(e,n,r,i,s);return this.draw(o),o}circle(e,n,r,i){const s=this.gen.circle(e,n,r,i);return this.draw(s),s}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r),r}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r),r}arc(e,n,r,i,s,o,a=!1,l){const c=this.gen.arc(e,n,r,i,s,o,a,l);return this.draw(c),c}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r),r}path(e,n){const r=this.gen.path(e,n);return this.draw(r),r}}const kE="http://www.w3.org/2000/svg";class bCt{constructor(e,n){this.svg=e,this.gen=new aP(n)}draw(e){const n=e.sets||[],r=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,s=i.createElementNS(kE,"g"),o=e.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(kE,"path"),l.setAttribute("d",this.opsToPath(a,o)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(kE,"path"),l.setAttribute("d",this.opsToPath(a,o)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&s.appendChild(l)}return s}fillSketch(e,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const s=e.createElementNS(kE,"path");return s.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),s.setAttribute("stroke",r.fill||""),s.setAttribute("stroke-width",i+""),s.setAttribute("fill","none"),r.fillLineDash&&s.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,n){return this.gen.opsToPath(e,n)}line(e,n,r,i,s){const o=this.gen.line(e,n,r,i,s);return this.draw(o)}rectangle(e,n,r,i,s){const o=this.gen.rectangle(e,n,r,i,s);return this.draw(o)}ellipse(e,n,r,i,s){const o=this.gen.ellipse(e,n,r,i,s);return this.draw(o)}circle(e,n,r,i){const s=this.gen.circle(e,n,r,i);return this.draw(s)}linearPath(e,n){const r=this.gen.linearPath(e,n);return this.draw(r)}polygon(e,n){const r=this.gen.polygon(e,n);return this.draw(r)}arc(e,n,r,i,s,o,a=!1,l){const c=this.gen.arc(e,n,r,i,s,o,a,l);return this.draw(c)}curve(e,n){const r=this.gen.curve(e,n);return this.draw(r)}path(e,n){const r=this.gen.path(e,n);return this.draw(r)}}var kn={canvas:(t,e)=>new yCt(t,e),svg:(t,e)=>new bCt(t,e),generator:t=>new aP(t),newSeed:()=>aP.newSeed()},Sr=F(async(t,e,n)=>{let r;const i=e.useHtmlLabels||ca(Fi()?.htmlLabels);n?r=n:r="node default";const s=t.insert("g").attr("class",r).attr("id",e.domId||e.id),o=s.insert("g").attr("class","label").attr("style",Wl(e.labelStyle));let a;e.label===void 0?a="":a=typeof e.label=="string"?e.label:e.label[0];const l=await w1(o,Sb($b(a),Fi()),{useHtmlLabels:i,width:e.width||Fi().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let c=l.getBBox();const u=(e?.padding??0)/2;if(i){const h=l.children[0],d=pi(l),p=h.getElementsByTagName("img");if(p){const g=a.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(y=>new Promise(b=>{function w(){if(y.style.display="flex",y.style.flexDirection="column",g){const S=Fi().fontSize?Fi().fontSize:window.getComputedStyle(document.body).fontSize,T=5,[D=Mxe.fontSize]=_I(S),E=D*T+"px";y.style.minWidth=E,y.style.maxWidth=E}else y.style.width="100%";b(y)}F(w,"setupImage"),setTimeout(()=>{y.complete&&w()}),y.addEventListener("error",w),y.addEventListener("load",w)})))}c=h.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}return i?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),e.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:c,halfPadding:u,label:o}},"labelHelper"),dR=F(async(t,e,n)=>{const r=n.useHtmlLabels||ca(Fi()?.flowchart?.htmlLabels),i=t.insert("g").attr("class","label").attr("style",n.labelStyle||""),s=await w1(i,Sb($b(e),Fi()),{useHtmlLabels:r,width:n.width||Fi()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let o=s.getBBox();const a=n.padding/2;if(ca(Fi()?.flowchart?.htmlLabels)){const l=s.children[0],c=pi(s);o=l.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}return r?i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):i.attr("transform","translate(0, "+-o.height/2+")"),n.centerLabel&&i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:o,halfPadding:a,label:i}},"insertLabel"),On=F((t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height},"updateNodeBounds"),dr=F((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function gi(t){const e=t.map((n,r)=>`${r===0?"M":"L"}${n.x},${n.y}`);return e.push("Z"),e.join(" ")}F(gi,"createPathFromPoints");function t1(t,e,n,r,i,s){const o=[],l=n-t,c=r-e,u=l/s,h=2*Math.PI/u,d=e+c/2;for(let p=0;p<=50;p++){const g=p/50,y=t+g*l,b=d+i*Math.sin(h*(y-t));o.push({x:y,y:b})}return o}F(t1,"generateFullSineWavePoints");function Dq(t,e,n,r,i,s){const o=[],a=i*Math.PI/180,u=(s*Math.PI/180-a)/(r-1);for(let h=0;h<r;h++){const d=a+h*u,p=t+n*Math.cos(d),g=e+n*Math.sin(d);o.push({x:-p,y:-g})}return o}F(Dq,"generateCirclePoints");var vCt=F((t,e)=>{var n=t.x,r=t.y,i=e.x-n,s=e.y-r,o=t.width/2,a=t.height/2,l,c;return Math.abs(s)*o>Math.abs(i)*a?(s<0&&(a=-a),l=s===0?0:a*i/s,c=a):(i<0&&(o=-o),l=o,c=i===0?0:o*s/i),{x:n+l,y:r+c}},"intersectRect"),Uw=vCt;function i4e(t,e){e&&t.attr("style",e)}F(i4e,"applyStyle");async function s4e(t){const e=pi(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div");let r=t.label;t.label&&iw(t.label)&&(r=await HW(t.label.replace(Hw.lineBreakRegex,` 877`),Fi()));const i=t.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+r+"</span>"),i4e(n,t.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}F(s4e,"addHtmlLabel");var xCt=F(async(t,e,n,r)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),ca(Fi().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),pt.info("vertexText"+i);const s={isNode:r,label:$b(i).replace(/fa[blrs]?:fa-[\w-]+/g,a=>`<i class='${a.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")};return await s4e(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));let o=[];typeof i=="string"?o=i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?o=i:o=[];for(const a of o){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),n?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=a.trim(),s.appendChild(l)}return s}},"createLabel"),zy=xCt,mm=F((t,e,n,r,i)=>["M",t+i,e,"H",t+n-i,"A",i,i,0,0,1,t+n,e+i,"V",e+r-i,"A",i,i,0,0,1,t+n-i,e+r,"H",t+i,"A",i,i,0,0,1,t,e+r-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD"),wCt=F(t=>{const{handDrawnSeed:e}=Fi();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),Vw=F(t=>{const e=SCt([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),SCt=F(t=>{const e=new Map;return t.forEach(n=>{const[r,i]=n.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),o4e=F(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),In=F(t=>{const{stylesArray:e}=Vw(t),n=[],r=[],i=[],s=[];return e.forEach(o=>{const a=o[0];o4e(a)?n.push(o.join(":")+" !important"):(r.push(o.join(":")+" !important"),a.includes("stroke")&&i.push(o.join(":")+" !important"),a==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:s}},"styles2String"),Tn=F((t,e)=>{const{themeVariables:n,handDrawnSeed:r}=Fi(),{nodeBorder:i,mainBkg:s}=n,{stylesMap:o}=Vw(t);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:r,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)},"userNodeOverrides"),a4e=F(async(t,e)=>{pt.info("Creating subgraph rect for ",e.id,e);const n=Fi(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:s,clusterBorder:o}=r,{labelStyles:a,nodeStyles:l,borderStyles:c,backgroundStyles:u}=In(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),d=ca(n.flowchart.htmlLabels),p=h.insert("g").attr("class","cluster-label "),g=await w1(p,e.label,{style:e.labelStyle,useHtmlLabels:d,isNode:!0});let y=g.getBBox();if(ca(n.flowchart.htmlLabels)){const P=g.children[0],$=pi(g);y=P.getBoundingClientRect(),$.attr("width",y.width),$.attr("height",y.height)}const b=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;const w=e.height,S=e.x-b/2,T=e.y-w/2;pt.trace("Data ",e,JSON.stringify(e));let D;if(e.look==="handDrawn"){const P=kn.svg(h),$=Tn(e,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:i}),W=P.path(mm(S,T,b,w,0),$);D=h.insert(()=>(pt.debug("Rough node insert CXC",W),W),":first-child"),D.select("path:nth-child(2)").attr("style",c.join(";")),D.select("path").attr("style",u.join(";").replace("fill","stroke"))}else D=h.insert("rect",":first-child"),D.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",S).attr("y",T).attr("width",b).attr("height",w);const{subGraphTitleTopMargin:E}=tq(n);if(p.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+E})`),a){const P=p.select("span");P&&P.attr("style",a)}const O=D.node().getBBox();return e.offsetX=0,e.width=O.width,e.height=O.height,e.offsetY=y.height-e.padding/2,e.intersect=function(P){return Uw(e,P)},{cluster:h,labelBBox:y}},"rect"),kCt=F((t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,s=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-s).attr("y",e.y-e.height/2-s).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(a){return Uw(e,a)},{cluster:n,labelBBox:{width:0,height:0}}},"noteGroup"),CCt=F(async(t,e)=>{const n=Fi(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:s,compositeBackground:o,compositeTitleBackground:a,nodeBorder:l}=r,c=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),u=c.insert("g",":first-child"),h=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const p=h.node().appendChild(await zy(e.label,e.labelStyle,void 0,!0));let g=p.getBBox();if(ca(n.flowchart.htmlLabels)){const W=p.children[0],H=pi(p);g=W.getBoundingClientRect(),H.attr("width",g.width),H.attr("height",g.height)}const y=0*e.padding,b=y/2,w=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+y;e.width<=g.width+e.padding?e.diff=(w-e.width)/2-e.padding:e.diff=-e.padding;const S=e.height+y,T=e.height+y-g.height-6,D=e.x-w/2,E=e.y-S/2;e.width=w;const O=e.y-e.height/2-b+g.height+2;let P;if(e.look==="handDrawn"){const W=e.cssClasses.includes("statediagram-cluster-alt"),H=kn.svg(c),K=e.rx||e.ry?H.path(mm(D,E,w,S,10),{roughness:.7,fill:a,fillStyle:"solid",stroke:l,seed:i}):H.rectangle(D,E,w,S,{seed:i});P=c.insert(()=>K,":first-child");const Z=H.rectangle(D,O,w,T,{fill:W?s:o,fillStyle:W?"hachure":"solid",stroke:l,seed:i});P=c.insert(()=>K,":first-child"),d=c.insert(()=>Z)}else P=u.insert("rect",":first-child"),P.attr("class","outer").attr("x",D).attr("y",E).attr("width",w).attr("height",S).attr("data-look",e.look),d.attr("class","inner").attr("x",D).attr("y",O).attr("width",w).attr("height",T);h.attr("transform",`translate(${e.x-g.width/2}, ${E+1-(ca(n.flowchart.htmlLabels)?0:3)})`);const $=P.node().getBBox();return e.height=$.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(W){return Uw(e,W)},{cluster:c,labelBBox:g}},"roundedWithTitle"),_Ct=F(async(t,e)=>{pt.info("Creating subgraph rect for ",e.id,e);const n=Fi(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:s,clusterBorder:o}=r,{labelStyles:a,nodeStyles:l,borderStyles:c,backgroundStyles:u}=In(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),d=ca(n.flowchart.htmlLabels),p=h.insert("g").attr("class","cluster-label "),g=await w1(p,e.label,{style:e.labelStyle,useHtmlLabels:d,isNode:!0,width:e.width});let y=g.getBBox();if(ca(n.flowchart.htmlLabels)){const P=g.children[0],$=pi(g);y=P.getBoundingClientRect(),$.attr("width",y.width),$.attr("height",y.height)}const b=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;const w=e.height,S=e.x-b/2,T=e.y-w/2;pt.trace("Data ",e,JSON.stringify(e));let D;if(e.look==="handDrawn"){const P=kn.svg(h),$=Tn(e,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:i}),W=P.path(mm(S,T,b,w,e.rx),$);D=h.insert(()=>(pt.debug("Rough node insert CXC",W),W),":first-child"),D.select("path:nth-child(2)").attr("style",c.join(";")),D.select("path").attr("style",u.join(";").replace("fill","stroke"))}else D=h.insert("rect",":first-child"),D.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",S).attr("y",T).attr("width",b).attr("height",w);const{subGraphTitleTopMargin:E}=tq(n);if(p.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+E})`),a){const P=p.select("span");P&&P.attr("style",a)}const O=D.node().getBBox();return e.offsetX=0,e.width=O.width,e.height=O.height,e.offsetY=y.height-e.padding/2,e.intersect=function(P){return Uw(e,P)},{cluster:h,labelBBox:y}},"kanbanSection"),TCt=F((t,e)=>{const n=Fi(),{themeVariables:r,handDrawnSeed:i}=n,{nodeBorder:s}=r,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),a=o.insert("g",":first-child"),l=0*e.padding,c=e.width+l;e.diff=-e.padding;const u=e.height+l,h=e.x-c/2,d=e.y-u/2;e.width=c;let p;if(e.look==="handDrawn"){const b=kn.svg(o).rectangle(h,d,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:i});p=o.insert(()=>b,":first-child")}else p=a.insert("rect",":first-child"),p.attr("class","divider").attr("x",h).attr("y",d).attr("width",c).attr("height",u).attr("data-look",e.look);const g=p.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(y){return Uw(e,y)},{cluster:o,labelBBox:{}}},"divider"),ECt=a4e,ACt={rect:a4e,squareRect:ECt,roundedWithTitle:CCt,noteGroup:kCt,divider:TCt,kanbanSection:_Ct},l4e=new Map,PCt=F(async(t,e)=>{const n=e.shape||"rect",r=await ACt[n](t,e);return l4e.set(e.id,r),r},"insertCluster"),WGt=F(()=>{l4e=new Map},"clear");function c4e(t,e){return t.intersect(e)}F(c4e,"intersectNode");var OCt=c4e;function u4e(t,e,n,r){var i=t.x,s=t.y,o=i-r.x,a=s-r.y,l=Math.sqrt(e*e*a*a+n*n*o*o),c=Math.abs(e*n*o/l);r.x<i&&(c=-c);var u=Math.abs(e*n*a/l);return r.y<s&&(u=-u),{x:i+c,y:s+u}}F(u4e,"intersectEllipse");var h4e=u4e;function d4e(t,e,n){return h4e(t,e,e,n)}F(d4e,"intersectCircle");var ICt=d4e;function f4e(t,e,n,r){var i,s,o,a,l,c,u,h,d,p,g,y,b,w,S;if(i=e.y-t.y,o=t.x-e.x,l=e.x*t.y-t.x*e.y,d=i*n.x+o*n.y+l,p=i*r.x+o*r.y+l,!(d!==0&&p!==0&&cj(d,p))&&(s=r.y-n.y,a=n.x-r.x,c=r.x*n.y-n.x*r.y,u=s*t.x+a*t.y+c,h=s*e.x+a*e.y+c,!(u!==0&&h!==0&&cj(u,h))&&(g=i*a-s*o,g!==0)))return y=Math.abs(g/2),b=o*c-a*l,w=b<0?(b-y)/g:(b+y)/g,b=s*l-i*c,S=b<0?(b-y)/g:(b+y)/g,{x:w,y:S}}F(f4e,"intersectLine");function cj(t,e){return t*e>0}F(cj,"sameSign");var DCt=f4e;function p4e(t,e,n){let r=t.x,i=t.y,s=[],o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(u){o=Math.min(o,u.x),a=Math.min(a,u.y)}):(o=Math.min(o,e.x),a=Math.min(a,e.y));let l=r-t.width/2-o,c=i-t.height/2-a;for(let u=0;u<e.length;u++){let h=e[u],d=e[u<e.length-1?u+1:0],p=DCt(t,n,{x:l+h.x,y:c+h.y},{x:l+d.x,y:c+d.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(u,h){let d=u.x-n.x,p=u.y-n.y,g=Math.sqrt(d*d+p*p),y=h.x-n.x,b=h.y-n.y,w=Math.sqrt(y*y+b*b);return g<w?-1:g===w?0:1}),s[0]):t}F(p4e,"intersectPolygon");var MCt=p4e,bn={node:OCt,circle:ICt,ellipse:h4e,polygon:MCt,rect:Uw};function m4e(t,e){const{labelStyles:n}=In(e);e.labelStyle=n;const r=dr(e);let i=r;r||(i="anchor");const s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=1,{cssStyles:a}=e,l=kn.svg(s),c=Tn(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(c.roughness=0);const u=l.circle(0,0,o*2,c),h=s.insert(()=>u,":first-child");return h.attr("class","anchor").attr("style",Wl(a)),On(e,h),e.intersect=function(d){return pt.info("Circle intersect",e,o,d),bn.circle(e,o,d)},s}F(m4e,"anchor");function uj(t,e,n,r,i,s,o){const l=(t+n)/2,c=(e+r)/2,u=Math.atan2(r-e,n-t),h=(n-t)/2,d=(r-e)/2,p=h/i,g=d/s,y=Math.sqrt(p**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");const b=Math.sqrt(1-y**2),w=l+b*s*Math.sin(u)*(o?-1:1),S=c-b*i*Math.cos(u)*(o?-1:1),T=Math.atan2((e-S)/s,(t-w)/i);let E=Math.atan2((r-S)/s,(n-w)/i)-T;o&&E<0&&(E+=2*Math.PI),!o&&E>0&&(E-=2*Math.PI);const O=[];for(let P=0;P<20;P++){const $=P/19,W=T+$*E,H=w+i*Math.cos(W),K=S+s*Math.sin(W);O.push({x:H,y:K})}return O}F(uj,"generateArcPoints");async function g4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=s.width+e.padding+20,a=s.height+e.padding,l=a/2,c=l/(2.5+a/50),{cssStyles:u}=e,h=[{x:o/2,y:-a/2},{x:-o/2,y:-a/2},...uj(-o/2,-a/2,-o/2,a/2,c,l,!1),{x:o/2,y:a/2},...uj(o/2,a/2,o/2,-a/2,c,l,!0)],d=kn.svg(i),p=Tn(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=gi(h),y=d.path(g,p),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",u),r&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(${c/2}, 0)`),On(e,b),e.intersect=function(w){return bn.polygon(e,h,w)},i}F(g4e,"bowTieRect");function gm(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}F(gm,"insertPolygonShape");async function y4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=s.height+e.padding,a=12,l=s.width+e.padding+a,c=0,u=l,h=-o,d=0,p=[{x:c+a,y:h},{x:u,y:h},{x:u,y:d},{x:c,y:d},{x:c,y:h+a},{x:c+a,y:h}];let g;const{cssStyles:y}=e;if(e.look==="handDrawn"){const b=kn.svg(i),w=Tn(e,{}),S=gi(p),T=b.path(S,w);g=i.insert(()=>T,":first-child").attr("transform",`translate(${-l/2}, ${o/2})`),y&&g.attr("style",y)}else g=gm(i,l,o,p);return r&&g.attr("style",r),On(e,g),e.intersect=function(b){return bn.polygon(e,p,b)},i}F(y4e,"card");function b4e(t,e){const{nodeStyles:n}=In(e);e.label="";const r=t.insert("g").attr("class",dr(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,s=Math.max(28,e.width??0),o=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],a=kn.svg(r),l=Tn(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=gi(o),u=a.path(c,l),h=r.insert(()=>u,":first-child");return i&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",i),n&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",n),e.width=28,e.height=28,e.intersect=function(d){return bn.polygon(e,o,d)},r}F(b4e,"choice");async function v4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,halfPadding:o}=await Sr(t,e,dr(e)),a=s.width/2+o;let l;const{cssStyles:c}=e;if(e.look==="handDrawn"){const u=kn.svg(i),h=Tn(e,{}),d=u.circle(0,0,a*2,h);l=i.insert(()=>d,":first-child"),l.attr("class","basic label-container").attr("style",Wl(c))}else l=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",a).attr("cx",0).attr("cy",0);return On(e,l),e.intersect=function(u){return pt.info("Circle intersect",e,a,u),bn.circle(e,a,u)},i}F(v4e,"circle");function x4e(t){const e=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=t*2,i={x:r/2*e,y:r/2*n},s={x:-(r/2)*e,y:r/2*n},o={x:-(r/2)*e,y:-(r/2)*n},a={x:r/2*e,y:-(r/2)*n};return`M ${s.x},${s.y} L ${a.x},${a.y} 878 M ${i.x},${i.y} L ${o.x},${o.y}`}F(x4e,"createLine");function w4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n,e.label="";const i=t.insert("g").attr("class",dr(e)).attr("id",e.domId??e.id),s=Math.max(30,e?.width??0),{cssStyles:o}=e,a=kn.svg(i),l=Tn(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=a.circle(0,0,s*2,l),u=x4e(s),h=a.path(u,l),d=i.insert(()=>c,":first-child");return d.insert(()=>h),o&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",o),r&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",r),On(e,d),e.intersect=function(p){return pt.info("crossedCircle intersect",e,{radius:s,point:p}),bn.circle(e,s,p)},i}F(w4e,"crossedCircle");function s0(t,e,n,r=100,i=0,s=180){const o=[],a=i*Math.PI/180,u=(s*Math.PI/180-a)/(r-1);for(let h=0;h<r;h++){const d=a+h*u,p=t+n*Math.cos(d),g=e+n*Math.sin(d);o.push({x:-p,y:-g})}return o}F(s0,"generateCirclePoints");async function S4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=s.width+(e.padding??0),l=s.height+(e.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=e,h=[...s0(a/2,-l/2,c,30,-90,0),{x:-a/2-c,y:c},...s0(a/2+c*2,-c,c,20,-180,-270),...s0(a/2+c*2,c,c,20,-90,-180),{x:-a/2-c,y:-l/2},...s0(a/2,l/2,c,20,0,90)],d=[{x:a/2,y:-l/2-c},{x:-a/2,y:-l/2-c},...s0(a/2,-l/2,c,20,-90,0),{x:-a/2-c,y:-c},...s0(a/2+a*.1,-c,c,20,-180,-270),...s0(a/2+a*.1,c,c,20,-90,-180),{x:-a/2-c,y:l/2},...s0(a/2,l/2,c,20,0,90),{x:-a/2,y:l/2+c},{x:a/2,y:l/2+c}],p=kn.svg(i),g=Tn(e,{fill:"none"});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=gi(h).replace("Z",""),w=p.path(b,g),S=gi(d),T=p.path(S,{...g}),D=i.insert("g",":first-child");return D.insert(()=>T,":first-child").attr("stroke-opacity",0),D.insert(()=>w,":first-child"),D.attr("class","text"),u&&e.look!=="handDrawn"&&D.selectAll("path").attr("style",u),r&&e.look!=="handDrawn"&&D.selectAll("path").attr("style",r),D.attr("transform",`translate(${c}, 0)`),o.attr("transform",`translate(${-a/2+c-(s.x-(s.left??0))},${-l/2+(e.padding??0)/2-(s.y-(s.top??0))})`),On(e,D),e.intersect=function(E){return bn.polygon(e,d,E)},i}F(S4e,"curlyBraceLeft");function o0(t,e,n,r=100,i=0,s=180){const o=[],a=i*Math.PI/180,u=(s*Math.PI/180-a)/(r-1);for(let h=0;h<r;h++){const d=a+h*u,p=t+n*Math.cos(d),g=e+n*Math.sin(d);o.push({x:p,y:g})}return o}F(o0,"generateCirclePoints");async function k4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=s.width+(e.padding??0),l=s.height+(e.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=e,h=[...o0(a/2,-l/2,c,20,-90,0),{x:a/2+c,y:-c},...o0(a/2+c*2,-c,c,20,-180,-270),...o0(a/2+c*2,c,c,20,-90,-180),{x:a/2+c,y:l/2},...o0(a/2,l/2,c,20,0,90)],d=[{x:-a/2,y:-l/2-c},{x:a/2,y:-l/2-c},...o0(a/2,-l/2,c,20,-90,0),{x:a/2+c,y:-c},...o0(a/2+c*2,-c,c,20,-180,-270),...o0(a/2+c*2,c,c,20,-90,-180),{x:a/2+c,y:l/2},...o0(a/2,l/2,c,20,0,90),{x:a/2,y:l/2+c},{x:-a/2,y:l/2+c}],p=kn.svg(i),g=Tn(e,{fill:"none"});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const b=gi(h).replace("Z",""),w=p.path(b,g),S=gi(d),T=p.path(S,{...g}),D=i.insert("g",":first-child");return D.insert(()=>T,":first-child").attr("stroke-opacity",0),D.insert(()=>w,":first-child"),D.attr("class","text"),u&&e.look!=="handDrawn"&&D.selectAll("path").attr("style",u),r&&e.look!=="handDrawn"&&D.selectAll("path").attr("style",r),D.attr("transform",`translate(${-c}, 0)`),o.attr("transform",`translate(${-a/2+(e.padding??0)/2-(s.x-(s.left??0))},${-l/2+(e.padding??0)/2-(s.y-(s.top??0))})`),On(e,D),e.intersect=function(E){return bn.polygon(e,d,E)},i}F(k4e,"curlyBraceRight");function Ra(t,e,n,r=100,i=0,s=180){const o=[],a=i*Math.PI/180,u=(s*Math.PI/180-a)/(r-1);for(let h=0;h<r;h++){const d=a+h*u,p=t+n*Math.cos(d),g=e+n*Math.sin(d);o.push({x:-p,y:-g})}return o}F(Ra,"generateCirclePoints");async function C4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=s.width+(e.padding??0),l=s.height+(e.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=e,h=[...Ra(a/2,-l/2,c,30,-90,0),{x:-a/2-c,y:c},...Ra(a/2+c*2,-c,c,20,-180,-270),...Ra(a/2+c*2,c,c,20,-90,-180),{x:-a/2-c,y:-l/2},...Ra(a/2,l/2,c,20,0,90)],d=[...Ra(-a/2+c+c/2,-l/2,c,20,-90,-180),{x:a/2-c/2,y:c},...Ra(-a/2-c/2,-c,c,20,0,90),...Ra(-a/2-c/2,c,c,20,-90,0),{x:a/2-c/2,y:-c},...Ra(-a/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:a/2,y:-l/2-c},{x:-a/2,y:-l/2-c},...Ra(a/2,-l/2,c,20,-90,0),{x:-a/2-c,y:-c},...Ra(a/2+c*2,-c,c,20,-180,-270),...Ra(a/2+c*2,c,c,20,-90,-180),{x:-a/2-c,y:l/2},...Ra(a/2,l/2,c,20,0,90),{x:-a/2,y:l/2+c},{x:a/2-c-c/2,y:l/2+c},...Ra(-a/2+c+c/2,-l/2,c,20,-90,-180),{x:a/2-c/2,y:c},...Ra(-a/2-c/2,-c,c,20,0,90),...Ra(-a/2-c/2,c,c,20,-90,0),{x:a/2-c/2,y:-c},...Ra(-a/2+c+c/2,l/2,c,30,-180,-270)],g=kn.svg(i),y=Tn(e,{fill:"none"});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const w=gi(h).replace("Z",""),S=g.path(w,y),D=gi(d).replace("Z",""),E=g.path(D,y),O=gi(p),P=g.path(O,{...y}),$=i.insert("g",":first-child");return $.insert(()=>P,":first-child").attr("stroke-opacity",0),$.insert(()=>S,":first-child"),$.insert(()=>E,":first-child"),$.attr("class","text"),u&&e.look!=="handDrawn"&&$.selectAll("path").attr("style",u),r&&e.look!=="handDrawn"&&$.selectAll("path").attr("style",r),$.attr("transform",`translate(${c-c/4}, 0)`),o.attr("transform",`translate(${-a/2+(e.padding??0)/2-(s.x-(s.left??0))},${-l/2+(e.padding??0)/2-(s.y-(s.top??0))})`),On(e,$),e.intersect=function(W){return bn.polygon(e,p,W)},i}F(C4e,"curlyBraces");async function _4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=80,a=20,l=Math.max(o,(s.width+(e.padding??0)*2)*1.25,e?.width??0),c=Math.max(a,s.height+(e.padding??0)*2,e?.height??0),u=c/2,{cssStyles:h}=e,d=kn.svg(i),p=Tn(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=l,y=c,b=g-u,w=y/4,S=[{x:b,y:0},{x:w,y:0},{x:0,y:y/2},{x:w,y},{x:b,y},...Dq(-b,-y/2,u,50,270,90)],T=gi(S),D=d.path(T,p),E=i.insert(()=>D,":first-child");return E.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&E.selectChildren("path").attr("style",h),r&&e.look!=="handDrawn"&&E.selectChildren("path").attr("style",r),E.attr("transform",`translate(${-l/2}, ${-c/2})`),On(e,E),e.intersect=function(O){return bn.polygon(e,S,O)},i}F(_4e,"curvedTrapezoid");var NCt=F((t,e,n,r,i,s)=>[`M${t},${e+s}`,`a${i},${s} 0,0,0 ${n},0`,`a${i},${s} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${s} 0,0,0 ${n},0`,`l0,${-r}`].join(" "),"createCylinderPathD"),RCt=F((t,e,n,r,i,s)=>[`M${t},${e+s}`,`M${t+n},${e+s}`,`a${i},${s} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${s} 0,0,0 ${n},0`,`l0,${-r}`].join(" "),"createOuterCylinderPathD"),LCt=F((t,e,n,r,i,s)=>[`M${t-n/2},${-r/2}`,`a${i},${s} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function T4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+e.padding,e.width??0),l=a/2,c=l/(2.5+a/50),u=Math.max(s.height+c+e.padding,e.height??0);let h;const{cssStyles:d}=e;if(e.look==="handDrawn"){const p=kn.svg(i),g=RCt(0,0,a,u,l,c),y=LCt(0,c,a,u,l,c),b=p.path(g,Tn(e,{})),w=p.path(y,Tn(e,{fill:"none"}));h=i.insert(()=>w,":first-child"),h=i.insert(()=>b,":first-child"),h.attr("class","basic label-container"),d&&h.attr("style",d)}else{const p=NCt(0,0,a,u,l,c);h=i.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",Wl(d)).attr("style",r)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-a/2}, ${-(u/2+c)})`),On(e,h),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}
878, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(p){const g=bn.rect(e,p),y=g.x-(e.x??0);if(l!=0&&(Math.abs(y)<(e.width??0)/2||Math.abs(y)==(e.width??0)/2&&Math.abs(g.y-(e.y??0))>(e.height??0)/2-c)){let b=c*c*(1-y*y/(l*l));b>0&&(b=Math.sqrt(b)),b=c-b,p.y-(e.y??0)>0&&(b=-b),g.y+=b}return g},i}F(T4e,"cylinder");async function E4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=s.width+e.padding,l=s.height+e.padding,c=l*.2,u=-a/2,h=-l/2-c/2,{cssStyles:d}=e,p=kn.svg(i),g=Tn(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:u,y:h+c},{x:-u,y:h+c},{x:-u,y:-h},{x:u,y:-h},{x:u,y:h},{x:-u,y:h},{x:-u,y:h+c}],b=p.polygon(y.map(S=>[S.x,S.y]),g),w=i.insert(()=>b,":first-child");return w.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",d),r&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",r),o.attr("transform",`translate(${u+(e.padding??0)/2-(s.x-(s.left??0))}, ${h+c+(e.padding??0)/2-(s.y-(s.top??0))})`),On(e,w),e.intersect=function(S){return bn.rect(e,S)},i}F(E4e,"dividedRectangle");async function A4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,halfPadding:o}=await Sr(t,e,dr(e)),l=s.width/2+o+5,c=s.width/2+o;let u;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=kn.svg(i),p=Tn(e,{roughness:.2,strokeWidth:2.5}),g=Tn(e,{roughness:.2,strokeWidth:1.5}),y=d.circle(0,0,l*2,p),b=d.circle(0,0,c*2,g);u=i.insert("g",":first-child"),u.attr("class",Wl(e.cssClasses)).attr("style",Wl(h)),u.node()?.appendChild(y),u.node()?.appendChild(b)}else{u=i.insert("g",":first-child");const d=u.insert("circle",":first-child"),p=u.insert("circle");u.attr("class","basic label-container").attr("style",r),d.attr("class","outer-circle").attr("style",r).attr("r",l).attr("cx",0).attr("cy",0),p.attr("class","inner-circle").attr("style",r).attr("r",c).attr("cx",0).attr("cy",0)}return On(e,u),e.intersect=function(d){return pt.info("DoubleCircle intersect",e,l,d),bn.circle(e,l,d)},i}F(A4e,"doublecircle");function P4e(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:i}=In(e);e.label="",e.labelStyle=r;const s=t.insert("g").attr("class",dr(e)).attr("id",e.domId??e.id),o=7,{cssStyles:a}=e,l=kn.svg(s),{nodeBorder:c}=n,u=Tn(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(u.roughness=0);const h=l.circle(0,0,o*2,u),d=s.insert(()=>h,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),a&&a.length>0&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",a),i&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",i),On(e,d),e.intersect=function(p){return pt.info("filledCircle intersect",e,{radius:o,point:p}),bn.circle(e,o,p)},s}F(P4e,"filledCircle");async function O4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=s.width+(e.padding??0),l=a+s.height,c=a+s.height,u=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:h}=e,d=kn.svg(i),p=Tn(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=gi(u),y=d.path(g,p),b=i.insert(()=>y,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return h&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",h),r&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",r),e.width=a,e.height=l,On(e,b),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-l/2+(e.padding??0)/2+(s.y-(s.top??0))})`),e.intersect=function(w){return pt.info("Triangle intersect",e,u,w),bn.polygon(e,u,w)},i}F(O4e,"flippedTriangle");function I4e(t,e,{dir:n,config:{state:r,themeVariables:i}}){const{nodeStyles:s}=In(e);e.label="";const o=t.insert("g").attr("class",dr(e)).attr("id",e.domId??e.id),{cssStyles:a}=e;let l=Math.max(70,e?.width??0),c=Math.max(10,e?.height??0);n==="LR"&&(l=Math.max(10,e?.width??0),c=Math.max(70,e?.height??0));const u=-1*l/2,h=-1*c/2,d=kn.svg(o),p=Tn(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=d.rectangle(u,h,l,c,p),y=o.insert(()=>g,":first-child");a&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",a),s&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",s),On(e,y);const b=r?.padding??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(w){return bn.rect(e,w)},o}F(I4e,"forkJoin");async function D4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const i=80,s=50,{shapeSvg:o,bbox:a}=await Sr(t,e,dr(e)),l=Math.max(i,a.width+(e.padding??0)*2,e?.width??0),c=Math.max(s,a.height+(e.padding??0)*2,e?.height??0),u=c/2,{cssStyles:h}
vendor: 6,439 bytes, line 878
878=e,d=kn.svg(o),p=Tn(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-l/2,y:-c/2},{x:l/2-u,y:-c/2},...Dq(-l/2+u,0,u,50,90,270),{x:l/2-u,y:c/2},{x:-l/2,y:c/2}],y=gi(g),b=d.path(y,p),w=o.insert(()=>b,":first-child");return w.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",h),r&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),On(e,w),e.intersect=function(S){return pt.info("Pill intersect",e,{radius:u,point:S}),bn.polygon(e,g,S)},o}F(D4e,"halfRoundedRectangle");var BCt=F((t,e,n,r,i)=>[`M${t+i},${e}`,`L${t+n-i},${e}`,`L${t+n},${e-r/2}`,`L${t+n-i},${e-r}`,`L${t+i},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createHexagonPathD");async function M4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=4,a=s.height+e.padding,l=a/o,c=s.width+2*l+e.padding,u=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-a/2},{x:c-l,y:-a},{x:l,y:-a},{x:0,y:-a/2}];let h;const{cssStyles:d}=e;if(e.look==="handDrawn"){const p=kn.svg(i),g=Tn(e,{}),y=BCt(0,0,c,a,l),b=p.path(y,g);h=i.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${a/2})`),d&&h.attr("style",d)}else h=gm(i,c,a,u);return r&&h.attr("style",r),e.width=c,e.height=a,On(e,h),e.intersect=function(p){return bn.polygon(e,u,p)},i}F(M4e,"hexagon");async function N4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.label="",e.labelStyle=n;const{shapeSvg:i}=await Sr(t,e,dr(e)),s=Math.max(30,e?.width??0),o=Math.max(30,e?.height??0),{cssStyles:a}=e,l=kn.svg(i),c=Tn(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],h=gi(u),d=l.path(h,c),p=i.insert(()=>d,":first-child");return p.attr("class","basic label-container"),a&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",a),r&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",r),p.attr("transform",`translate(${-s/2}, ${-o/2})`),On(e,p),e.intersect=function(g){return pt.info("Pill intersect",e,{points:u}),bn.polygon(e,u,g)},i}F(N4e,"hourglass");async function R4e(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=In(e);e.labelStyle=i;const s=e.assetHeight??48,o=e.assetWidth??48,a=Math.max(s,o),l=r?.wrappingWidth;e.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,label:h}=await Sr(t,e,"icon-shape default"),d=e.pos==="t",p=a,g=a,{nodeBorder:y}=n,{stylesMap:b}=Vw(e),w=-g/2,S=-p/2,T=e.label?8:0,D=kn.svg(c),E=Tn(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const O=D.rectangle(w,S,g,p,E),P=Math.max(g,u.width),$=p+u.height+T,W=D.rectangle(-P/2,-$/2,P,$,{...E,fill:"transparent",stroke:"none"}),H=c.insert(()=>O,":first-child"),K=c.insert(()=>W);if(e.icon){const Z=c.append("g");Z.html(`<g>${await vI(e.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const oe=Z.node().getBBox(),te=oe.width,re=oe.height,Y=oe.x,z=oe.y;Z.attr("transform",`translate(${-te/2-Y},${d?u.height/2+T/2-re/2-z:-u.height/2-T/2-re/2-z})`),Z.attr("style",`color: ${b.get("stroke")??y};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-$/2:$/2-u.height})`),H.attr("transform",`translate(0,${d?u.height/2+T/2:-u.height/2-T/2})`),On(e,K),e.intersect=function(Z){if(pt.info("iconSquare intersect",e,Z),!e.label)return bn.rect(e,Z);const oe=e.x??0,te=e.y??0,re=e.height??0;let Y=[];return d?Y=[{x:oe-u.width/2,y:te-re/2},{x:oe+u.width/2,y:te-re/2},{x:oe+u.width/2,y:te-re/2+u.height+T},{x:oe+g/2,y:te-re/2+u.height+T},{x:oe+g/2,y:te+re/2},{x:oe-g/2,y:te+re/2},{x:oe-g/2,y:te-re/2+u.height+T},{x:oe-u.width/2,y:te-re/2+u.height+T}]:Y=[{x:oe-g/2,y:te-re/2},{x:oe+g/2,y:te-re/2},{x:oe+g/2,y:te-re/2+p},{x:oe+u.width/2,y:te-re/2+p},{x:oe+u.width/2/2,y:te+re/2},{x:oe-u.width/2,y:te+re/2},{x:oe-u.width/2,y:te-re/2+p},{x:oe-g/2,y:te-re/2+p}],bn.polygon(e,Y,Z)},c}F(R4e,"icon");async function L4e(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=In(e);e.labelStyle=i;const s=e.assetHeight??48,o=e.assetWidth??48,a=Math.max(s,o),l=r?.wrappingWidth;e.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,label:h}=await Sr(t,e,"icon-shape default"),d=20,p=e.label?8:0,g=e.pos==="t",{nodeBorder:y,mainBkg:b}=n,{stylesMap:w}=Vw(e),S=kn.svg(c),T=Tn(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const D=w.get("fill");T.stroke=D??b;const E=c.append("g");e.icon&&E.html(`<g>${await vI(e.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const O=E.node().getBBox(),P=O.width,$=O.height,W=O.x,H=O.y,K=Math.max(P,$)*Math.SQRT2+d*2,Z=S.circle(0,0,K,T),oe=Math.max(K,u.width),te=K+u.height+p,re=S.rectangle(-oe/2,-te/2,oe,te,{...T,fill:"transparent",stroke:"none"}),Y=c.insert(()=>Z,":first-child"),z=c.insert(()=>re);return E.attr("transform",`translate(${-P/2-W},${g?u.height/2+p/2-$/2-H:-u.height/2-p/2-$/2-H})`),E.attr("style",`color: ${w.get("stroke")??y};`),h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${g?-te/2:te/2-u.height})`),Y.attr("transform",`translate(0,${g?u.height/2+p/2:-u.height/2-p/2})`),On(e,z),e.intersect=function(U){return pt.info("iconSquare intersect",e,U),bn.rect(e,U)},c}F(L4e,"iconCircle");async function B4e(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=In(e);e.labelStyle=i;const s=e.assetHeight??48,o=e.assetWidth??48,a=Math.max(s,o),l=r?.wrappingWidth;e.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await Sr(t,e,"icon-shape default"),p=e.pos==="t",g=a+h*2,y=a+h*2,{nodeBorder:b,mainBkg:w}=n,{stylesMap:S}=Vw(e),T=-y/2,D=-g/2,E=e.label?8:0,O=kn.svg(c),P=Tn(e,{});e.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const $=S.get("fill");P.stroke=$??w;const W=O.path(mm(T,D,y,g,5),P),H=Math.max(y,u.width),K=g+u.height+E,Z=O.rectangle(-H/2,-K/2,H,K,{...P,fill:"transparent",stroke:"none"}),oe=c.insert(()=>W,":first-child").attr("class","icon-shape2"),te=c.insert(()=>Z);if(e.icon){const re=c.append("g");re.html(`<g>${await vI(e.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const Y=re.node().getBBox(),z=Y.width,U=Y.height,G=Y.x,B=Y.y;re.attr("transform",`translate(${-z/2-G},${p?u.height/2+E/2-U/2-B:-u.height/2-E/2-U/2-B})`),re.attr("style",`color: ${S.get("stroke")??b};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-K/2:K/2-u.height})`),oe.attr("transform",`translate(0,${p?u.height/2+E/2:-u.height/2-E/2})`),On(e,te),e.intersect=function(re){if(pt.info("iconSquare intersect",e,re),!e.label)return bn.rect(e,re);
vendor: 10,653 bytes, line 878
878const Y=e.x??0,z=e.y??0,U=e.height??0;let G=[];return p?G=[{x:Y-u.width/2,y:z-U/2},{x:Y+u.width/2,y:z-U/2},{x:Y+u.width/2,y:z-U/2+u.height+E},{x:Y+y/2,y:z-U/2+u.height+E},{x:Y+y/2,y:z+U/2},{x:Y-y/2,y:z+U/2},{x:Y-y/2,y:z-U/2+u.height+E},{x:Y-u.width/2,y:z-U/2+u.height+E}]:G=[{x:Y-y/2,y:z-U/2},{x:Y+y/2,y:z-U/2},{x:Y+y/2,y:z-U/2+g},{x:Y+u.width/2,y:z-U/2+g},{x:Y+u.width/2/2,y:z+U/2},{x:Y-u.width/2,y:z+U/2},{x:Y-u.width/2,y:z-U/2+g},{x:Y-y/2,y:z-U/2+g}],bn.polygon(e,G,re)},c}F(B4e,"iconRounded");async function F4e(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:i}=In(e);e.labelStyle=i;const s=e.assetHeight??48,o=e.assetWidth??48,a=Math.max(s,o),l=r?.wrappingWidth;e.width=Math.max(a,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await Sr(t,e,"icon-shape default"),p=e.pos==="t",g=a+h*2,y=a+h*2,{nodeBorder:b,mainBkg:w}=n,{stylesMap:S}=Vw(e),T=-y/2,D=-g/2,E=e.label?8:0,O=kn.svg(c),P=Tn(e,{});e.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const $=S.get("fill");P.stroke=$??w;const W=O.path(mm(T,D,y,g,.1),P),H=Math.max(y,u.width),K=g+u.height+E,Z=O.rectangle(-H/2,-K/2,H,K,{...P,fill:"transparent",stroke:"none"}),oe=c.insert(()=>W,":first-child"),te=c.insert(()=>Z);if(e.icon){const re=c.append("g");re.html(`<g>${await vI(e.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const Y=re.node().getBBox(),z=Y.width,U=Y.height,G=Y.x,B=Y.y;re.attr("transform",`translate(${-z/2-G},${p?u.height/2+E/2-U/2-B:-u.height/2-E/2-U/2-B})`),re.attr("style",`color: ${S.get("stroke")??b};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-K/2:K/2-u.height})`),oe.attr("transform",`translate(0,${p?u.height/2+E/2:-u.height/2-E/2})`),On(e,te),e.intersect=function(re){if(pt.info("iconSquare intersect",e,re),!e.label)return bn.rect(e,re);const Y=e.x??0,z=e.y??0,U=e.height??0;let G=[];return p?G=[{x:Y-u.width/2,y:z-U/2},{x:Y+u.width/2,y:z-U/2},{x:Y+u.width/2,y:z-U/2+u.height+E},{x:Y+y/2,y:z-U/2+u.height+E},{x:Y+y/2,y:z+U/2},{x:Y-y/2,y:z+U/2},{x:Y-y/2,y:z-U/2+u.height+E},{x:Y-u.width/2,y:z-U/2+u.height+E}]:G=[{x:Y-y/2,y:z-U/2},{x:Y+y/2,y:z-U/2},{x:Y+y/2,y:z-U/2+g},{x:Y+u.width/2,y:z-U/2+g},{x:Y+u.width/2/2,y:z+U/2},{x:Y-u.width/2,y:z+U/2},{x:Y-u.width/2,y:z-U/2+g},{x:Y-y/2,y:z-U/2+g}],bn.polygon(e,G,re)},c}F(F4e,"iconSquare");async function $4e(t,e,{config:{flowchart:n}}){const r=new Image;r.src=e?.img??"",await r.decode();const i=Number(r.naturalWidth.toString().replace("px","")),s=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/s;const{labelStyles:o}=In(e);e.labelStyle=o;const a=n?.wrappingWidth;e.defaultWidth=n?.wrappingWidth;const l=Math.max(e.label?a??0:0,e?.assetWidth??i),c=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:l,u=e.constraint==="on"?c/e.imageAspectRatio:e?.assetHeight??s;e.width=Math.max(c,a??0);const{shapeSvg:h,bbox:d,label:p}=await Sr(t,e,"image-shape default"),g=e.pos==="t",y=-c/2,b=-u/2,w=e.label?8:0,S=kn.svg(h),T=Tn(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const D=S.rectangle(y,b,c,u,T),E=Math.max(c,d.width),O=u+d.height+w,P=S.rectangle(-E/2,-O/2,E,O,{...T,fill:"none",stroke:"none"}),$=h.insert(()=>D,":first-child"),W=h.insert(()=>P);if(e.img){const H=h.append("image");H.attr("href",e.img),H.attr("width",c),H.attr("height",u),H.attr("preserveAspectRatio","none"),H.attr("transform",`translate(${-c/2},${g?O/2-u:-O/2})`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-u/2-d.height/2-w/2:u/2-d.height/2+w/2})`),$.attr("transform",`translate(0,${g?d.height/2+w/2:-d.height/2-w/2})`),On(e,W),e.intersect=function(H){if(pt.info("iconSquare intersect",e,H),!e.label)return bn.rect(e,H);const K=e.x??0,Z=e.y??0,oe=e.height??0;let te=[];return g?te=[{x:K-d.width/2,y:Z-oe/2},{x:K+d.width/2,y:Z-oe/2},{x:K+d.width/2,y:Z-oe/2+d.height+w},{x:K+c/2,y:Z-oe/2+d.height+w},{x:K+c/2,y:Z+oe/2},{x:K-c/2,y:Z+oe/2},{x:K-c/2,y:Z-oe/2+d.height+w},{x:K-d.width/2,y:Z-oe/2+d.height+w}]:te=[{x:K-c/2,y:Z-oe/2},{x:K+c/2,y:Z-oe/2},{x:K+c/2,y:Z-oe/2+u},{x:K+d.width/2,y:Z-oe/2+u},{x:K+d.width/2/2,y:Z+oe/2},{x:K-d.width/2,y:Z+oe/2},{x:K-d.width/2,y:Z-oe/2+u},{x:K-c/2,y:Z-oe/2+u}],bn.polygon(e,te,H)},h}F($4e,"imageSquare");async function j4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=Math.max(s.width+(e.padding??0)*2,e?.width??0),a=Math.max(s.height+(e.padding??0)*2,e?.height??0),l=[{x:0,y:0},{x:o,y:0},{x:o+3*a/6,y:-a},{x:-3*a/6,y:-a}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=kn.svg(i),d=Tn(e,{}),p=gi(l),g=h.path(p,d);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${a/2})`),u&&c.attr("style",u)}else c=gm(i,o,a,l);return r&&c.attr("style",r),e.width=o,e.height=a,On(e,c),e.intersect=function(h){return bn.polygon(e,l,h)},i}F(j4e,"inv_trapezoid");async function $_(t,e,n){const{labelStyles:r,nodeStyles:i}=In(e);e.labelStyle=r;const{shapeSvg:s,bbox:o}=await Sr(t,e,dr(e)),a=Math.max(o.width+n.labelPaddingX*2,e?.width||0),l=Math.max(o.height+n.labelPaddingY*2,e?.height||0),c=-a/2,u=-l/2;let h,{rx:d,ry:p}=e;const{cssStyles:g}=e;if(n?.rx&&n.ry&&(d=n.rx,p=n.ry),e.look==="handDrawn"){const y=kn.svg(s),b=Tn(e,{}),w=d||p?y.path(mm(c,u,a,l,d||0),b):y.rectangle(c,u,a,l,b);h=s.insert(()=>w,":first-child"),h.attr("class","basic label-container").attr("style",Wl(g))}else h=s.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",Wl(d)).attr("ry",Wl(p)).attr("x",c).attr("y",u).attr("width",a).attr("height",l);return On(e,h),e.intersect=function(y){return bn.rect(e,y)},s}F($_,"drawRect");async function z4e(t,e){const{shapeSvg:n,bbox:r,label:i}=await Sr(t,e,"label"),s=n.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),On(e,s),e.intersect=function(l){return bn.rect(e,l)},n}F(z4e,"labelRect");async function H4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=Math.max(s.width+(e.padding??0),e?.width??0),a=Math.max(s.height+(e.padding??0),e?.height??0),l=[{x:0,y:0},{x:o+3*a/6,y:0},{x:o,y:-a},{x:-(3*a)/6,y:-a}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=kn.svg(i),d=Tn(e,{}),p=gi(l),g=h.path(p,d);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${a/2})`),u&&c.attr("style",u)}else c=gm(i,o,a,l);return r&&c.attr("style",r),e.width=o,e.height=a,On(e,c),e.intersect=function(h){return bn.polygon(e,l,h)},i}F(H4e,"lean_left");async function U4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=Math.max(s.width+(e.padding??0),e?.width??0),a=Math.max(s.height+(e.padding??0),e?.height??0),l=[{x:-3*a/6,y:0},{x:o,y:0},{x:o+3*a/6,y:-a},{x:0,y:-a}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=kn.svg(i),d=Tn(e,{}),p=gi(l),g=h.path(p,d);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${a/2})`),u&&c.attr("style",u)}else c=gm(i,o,a,l);return r&&c.attr("style",r),e.width=o,e.height=a,On(e,c),e.intersect=function(h){return bn.polygon(e,l,h)},i}F(U4e,"lean_right");function V4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.label="",e.labelStyle=n;const i=t.insert("g").attr("class",dr(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=Math.max(35,e?.width??0),a=Math.max(35,e?.height??0),l=7,c=[{x:o,y:0},{x:0,y:a+l/2},{x:o-2*l,y:a+l/2},{x:0,y:2*a},{x:o,y:a-l/2},{x:2*l,y:a-l/2}],u=kn.svg(i),h=Tn(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=gi(c),p=u.path(d,h),g=i.insert(()=>p,":first-child");return s&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",s),r&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",r),g.attr("transform",`translate(-${o/2},${-a})`),On(e,g),e.intersect=function(y){return pt.info("lightningBolt intersect",e,y),bn.polygon(e,c,y)},i}F(V4e,"lightningBolt");var FCt=F((t,e,n,r,i,s,o)=>[`M${t},${e+s}`,`a${i},${s} 0,0,0 ${n},0`,`a${i},${s} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${s} 0,0,0 ${n},0`,`l0,${-r}`,`M${t},${e+s+o}`,`a${i},${s} 0,0,0 ${n},0`].join(" "),"createCylinderPathD"),$Ct=F((t,e,n,r,i,s,o)=>[`M${t},${e+s}`,`M${t+n},${e+s}`,`a${i},${s} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${s} 0,0,0 ${n},0`,`l0,${-r}`,`M${t},${e+s+o}`,`a${i},${s} 0,0,0 ${n},0`].join(" "),"createOuterCylinderPathD"),jCt=F((t,e,n,r,i,s)=>[`M${t-n/2},${-r/2}`,`a${i},${s} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function W4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0),e.width??0),l=a/2,c=l/(2.5+a/50),u=Math.max(s.height+c+(e.padding??0),e.height??0),h=u*.1;let d;const{cssStyles:p}=e;if(e.look==="handDrawn"){const g=kn.svg(i),y=$Ct(0,0,a,u,l,c,h),b=jCt(0,c,a,u,l,c),w=Tn(e,{}),S=g.path(y,w),T=g.path(b,w);i.insert(()=>T,":first-child").attr("class","line"),d=i.insert(()=>S,":first-child"),d.attr("class","basic label-container"),p&&d.attr("style",p)}else{const g=FCt(0,0,a,u,l,c,h);d=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Wl(p)).attr("style",r)}return d.attr("label-offset-y",c),d.attr("transform",`translate(${-a/2}, ${-(u/2+c)})`),On(e,d),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+c-(s.y-(s.top??0))})`),e.intersect=function(g){const y=bn.rect(e,g),b=y.x-(e.x??0);if(l!=0&&(Math.abs(b)<(e.width??0)/2||Math.abs(b)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-c)){let w=c*c*(1-b*b/(l*l));w>0&&(w=Math.sqrt(w)),w=c-w,g.y-(e.y??0)>0&&(w=-w),y.y+=w}return y},i}F(W4e,"linedCylinder");async function q4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=l/4,u=l+c,{cssStyles:h}=e,d=kn.svg(i),p=Tn(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-a/2-a/2*.1,y:-u/2},{x:-a/2-a/2*.1,y:u/2},...t1(-a/2-a/2*.1,u/2,a/2+a/2*.1,u/2,c,.8),{x:a/2+a/2*.1,y:-u/2},{x:-a/2-a/2*.1,y:-u/2},{x:-a/2,y:-u/2},{x:-a/2,y:u/2*1.1},{x:-a/2,y:-u/2}],y=d.polygon(g.map(w=>[w.x,w.y]),p),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",h),r&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",r),b.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-a/2+(e.padding??0)+a/2*.1/2-(s.x-(s.left??0))},${-l/2+(e.padding??0)-c/2-(s.y-(s.top??0))}
878)`),On(e,b),e.intersect=function(w){return bn.polygon(e,g,w)},i}F(q4e,"linedWaveEdgedRect");async function G4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=5,u=-a/2,h=-l/2,{cssStyles:d}=e,p=kn.svg(i),g=Tn(e,{}),y=[{x:u-c,y:h+c},{x:u-c,y:h+l+c},{x:u+a-c,y:h+l+c},{x:u+a-c,y:h+l},{x:u+a,y:h+l},{x:u+a,y:h+l-c},{x:u+a+c,y:h+l-c},{x:u+a+c,y:h-c},{x:u+c,y:h-c},{x:u+c,y:h},{x:u,y:h},{x:u,y:h+c}],b=[{x:u,y:h+c},{x:u+a-c,y:h+c},{x:u+a-c,y:h+l},{x:u+a,y:h+l},{x:u+a,y:h},{x:u,y:h}];e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const w=gi(y),S=p.path(w,g),T=gi(b),D=p.path(T,{...g,fill:"none"}),E=i.insert(()=>D,":first-child");return E.insert(()=>S,":first-child"),E.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",d),r&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(s.width/2)-c-(s.x-(s.left??0))}, ${-(s.height/2)+c-(s.y-(s.top??0))})`),On(e,E),e.intersect=function(O){return bn.polygon(e,y,O)},i}F(G4e,"multiRect");async function K4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=l/4,u=l+c,h=-a/2,d=-u/2,p=5,{cssStyles:g}=e,y=t1(h-p,d+u+p,h+a-p,d+u+p,c,.8),b=y?.[y.length-1],w=[{x:h-p,y:d+p},{x:h-p,y:d+u+p},...y,{x:h+a-p,y:b.y-p},{x:h+a,y:b.y-p},{x:h+a,y:b.y-2*p},{x:h+a+p,y:b.y-2*p},{x:h+a+p,y:d-p},{x:h+p,y:d-p},{x:h+p,y:d},{x:h,y:d},{x:h,y:d+p}],S=[{x:h,y:d+p},{x:h+a-p,y:d+p},{x:h+a-p,y:b.y-p},{x:h+a,y:b.y-p},{x:h+a,y:d},{x:h,y:d}],T=kn.svg(i),D=Tn(e,{});e.look!=="handDrawn"&&(D.roughness=0,D.fillStyle="solid");const E=gi(w),O=T.path(E,D),P=gi(S),$=T.path(P,D),W=i.insert(()=>O,":first-child");return W.insert(()=>$),W.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",g),r&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",r),W.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(s.width/2)-p-(s.x-(s.left??0))}, ${-(s.height/2)+p-c/2-(s.y-(s.top??0))})`),On(e,W),e.intersect=function(H){return bn.polygon(e,w,H)},i}F(K4e,"multiWaveEdgedRectangle");async function Y4e(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:i}=In(e);e.labelStyle=r,e.useHtmlLabels||Dc().flowchart?.htmlLabels!==!1||(e.centerLabel=!0);const{shapeSvg:o,bbox:a}=await Sr(t,e,dr(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),c=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=-l/2,h=-c/2,{cssStyles:d}=e,p=kn.svg(o),g=Tn(e,{fill:n.noteBkgColor,stroke:n.noteBorderColor});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=p.rectangle(u,h,l,c,g),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",i),On(e,b),e.intersect=function(w){return bn.rect(e,w)},o}F(Y4e,"note");var zCt=F((t,e,n)=>[`M${t+n/2},${e}`,`L${t+n},${e-n/2}`,`L${t+n/2},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Q4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=s.width+e.padding,a=s.height+e.padding,l=o+a,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:h}=e;if(e.look==="handDrawn"){const d=kn.svg(i),p=Tn(e,{}),g=zCt(0,0,l),y=d.path(g,p);u=i.insert(()=>y,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),h&&u.attr("style",h)}else u=gm(i,l,l,c);return r&&u.attr("style",r),On(e,u),e.intersect=function(d){return pt.debug(`APA12 Intersect called SPLIT 879point:`,d,` 880node: 881`,e,` 882res:`,bn.polygon(e,c,d)),bn.polygon(e,c,d)},i}F(Q4e,"question");async function X4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0),e?.width??0),l=Math.max(s.height+(e.padding??0),e?.height??0),c=-a/2,u=-l/2,h=u/2,d=[{x:c+h,y:u},{x:c,y:0},{x:c+h,y:-u},{x:-c,y:-u},{x:-c,y:u}],{cssStyles:p}=e,g=kn.svg(i),y=Tn(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=gi(d),w=g.path(b,y),S=i.insert(()=>w,":first-child");return S.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",p),r&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",r),S.attr("transform",`translate(${-h/2},0)`),o.attr("transform",`translate(${-h/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))}
882)`),On(e,S),e.intersect=function(T){return bn.polygon(e,d,T)},i}F(X4e,"rect_left_inv_arrow");async function J4e(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";const s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=s.insert("g"),a=s.insert("g").attr("class","label").attr("style",r),l=e.description,c=e.label,u=a.node().appendChild(await zy(c,e.labelStyle,!0,!0));let h={width:0,height:0};if(ca(Fi()?.flowchart?.htmlLabels)){const $=u.children[0],W=pi(u);h=$.getBoundingClientRect(),W.attr("width",h.width),W.attr("height",h.height)}pt.info("Text 2",l);const d=l||[],p=u.getBBox(),g=a.node().appendChild(await zy(d.join?d.join("<br/>"):d,e.labelStyle,!0,!0)),y=g.children[0],b=pi(g);h=y.getBoundingClientRect(),b.attr("width",h.width),b.attr("height",h.height);const w=(e.padding||0)/2;pi(g).attr("transform","translate( "+(h.width>p.width?0:(p.width-h.width)/2)+", "+(p.height+w+5)+")"),pi(u).attr("transform","translate( "+(h.width<p.width?0:-(p.width-h.width)/2)+", 0)"),h=a.node().getBBox(),a.attr("transform","translate("+-h.width/2+", "+(-h.height/2-w+3)+")");const S=h.width+(e.padding||0),T=h.height+(e.padding||0),D=-h.width/2-w,E=-h.height/2-w;let O,P;if(e.look==="handDrawn"){const $=kn.svg(s),W=Tn(e,{}),H=$.path(mm(D,E,S,T,e.rx||0),W),K=$.line(-h.width/2-w,-h.height/2-w+p.height+w,h.width/2+w,-h.height/2-w+p.height+w,W);P=s.insert(()=>(pt.debug("Rough node insert CXC",H),K),":first-child"),O=s.insert(()=>(pt.debug("Rough node insert CXC",H),H),":first-child")}else O=o.insert("rect",":first-child"),P=o.insert("line"),O.attr("class","outer title-state").attr("style",r).attr("x",-h.width/2-w).attr("y",-h.height/2-w).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),P.attr("class","divider").attr("x1",-h.width/2-w).attr("x2",h.width/2+w).attr("y1",-h.height/2-w+p.height+w).attr("y2",-h.height/2-w+p.height+w);return On(e,O),e.intersect=function($){return bn.rect(e,$)},s}F(J4e,"rectWithTitle");async function Z4e(t,e){const n={rx:5,ry:5,labelPaddingX:(e?.padding||0)*1,labelPaddingY:(e?.padding||0)*1};return $_(t,e,n)}F(Z4e,"roundedRect");async function eke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=e?.padding??0,l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),u=-s.width/2-a,h=-s.height/2-a,{cssStyles:d}=e,p=kn.svg(i),g=Tn(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:u,y:h},{x:u+l+8,y:h},{x:u+l+8,y:h+c},{x:u-8,y:h+c},{x:u-8,y:h},{x:u,y:h},{x:u,y:h+c}],b=p.polygon(y.map(S=>[S.x,S.y]),g),w=i.insert(()=>b,":first-child");return w.attr("class","basic label-container").attr("style",Wl(d)),r&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",r),d&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",r),o.attr("transform",`translate(${-l/2+4+(e.padding??0)-(s.x-(s.left??0))},${-c/2+(e.padding??0)-(s.y-(s.top??0))})`),On(e,w),e.intersect=function(S){return bn.rect(e,S)},i}F(eke,"shadedProcess");async function tke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=-a/2,u=-l/2,{cssStyles:h}=e,d=kn.svg(i),p=Tn(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:c,y:u},{x:c,y:u+l},{x:c+a,y:u+l},{x:c+a,y:u-l/2}],y=gi(g),b=d.path(y,p),w=i.insert(()=>b,":first-child");return w.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",h),r&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),w.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-a/2+(e.padding??0)-(s.x-(s.left??0))}, ${-l/4+(e.padding??0)-(s.y-(s.top??0))})`),On(e,w),e.intersect=function(S){return bn.polygon(e,g,S)},i}F(tke,"slopedRect");async function nke(t,e){const n={rx:0,ry:0,labelPaddingX:(e?.padding||0)*2,labelPaddingY:(e?.padding||0)*1};return $_(t,e,n)}F(nke,"squareRect");async function rke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=s.height+e.padding,a=s.width+o/4+e.padding;let l;const{cssStyles:c}=e;if(e.look==="handDrawn"){const u=kn.svg(i),h=Tn(e,{}),d=mm(-a/2,-o/2,a,o,o/2),p=u.path(d,h);l=i.insert(()=>p,":first-child"),l.attr("class","basic label-container").attr("style",Wl(c))}else l=i.insert("rect",":first-child"),l.attr("class","basic label-container").attr("style",r).attr("rx",o/2).attr("ry",o/2).attr("x",-a/2).attr("y",-o/2).attr("width",a).attr("height",o);return On(e,l),e.intersect=function(u){return bn.rect(e,u)},i}F(rke,"stadium");async function ike(t,e){return $_(t,e,{rx:5,ry:5})}F(ike,"state");function ske(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:i}=In(e);e.labelStyle=r;const{cssStyles:s}=e,{lineColor:o,stateBorder:a,nodeBorder:l}=n,c=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=kn.svg(c),h=Tn(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=u.circle(0,0,14,{...h,stroke:o,strokeWidth:2}),p=a??l,g=u.circle(0,0,5,{...h,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>d,":first-child");return y.insert(()=>g),s&&y.selectAll("path").attr("style",s),i&&y.selectAll("path").attr("style",i),On(e,y),e.intersect=function(b){return bn.circle(e,7,b)},c}F(ske,"stateEnd");function oke(t,e,{config:{themeVariables:n}}){const{lineColor:r}=n,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const a=kn.svg(i).circle(0,0,14,wCt(r));s=i.insert(()=>a),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=i.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return On(e,s),e.intersect=function(o){return bn.circle(e,7,o)},i}F(oke,"stateStart");async function ake(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=(e?.padding||0)/2,a=s.width+e.padding,l=s.height+e.padding,c=-s.width/2-o,u=-s.height/2-o,h=[{x:0,y:0},{x:a,y:0},{x:a,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(e.look==="handDrawn"){const d=kn.svg(i),p=Tn(e,{}),g=d.rectangle(c-8,u,a+16,l,p),y=d.line(c,u,c,u+l,p),b=d.line(c+a,u,c+a,u+l,p);i.insert(()=>y,":first-child"),i.insert(()=>b,":first-child");const w=i.insert(()=>g,":first-child"),{cssStyles:S}=e;w.attr("class","basic label-container").attr("style",Wl(S)),On(e,w)}else{const d=gm(i,a,l,h);r&&d.attr("style",r),On(e,d)}
vendor: 23,525 bytes, lines 882-890
882return e.intersect=function(d){return bn.polygon(e,h,d)},i}F(ake,"subroutine");async function lke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=Math.max(s.width+(e.padding??0)*2,e?.width??0),a=Math.max(s.height+(e.padding??0)*2,e?.height??0),l=-o/2,c=-a/2,u=.2*a,h=.2*a,{cssStyles:d}=e,p=kn.svg(i),g=Tn(e,{}),y=[{x:l-u/2,y:c},{x:l+o+u/2,y:c},{x:l+o+u/2,y:c+a},{x:l-u/2,y:c+a}],b=[{x:l+o-u/2,y:c+a},{x:l+o+u/2,y:c+a},{x:l+o+u/2,y:c+a-h}];e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const w=gi(y),S=p.path(w,g),T=gi(b),D=p.path(T,{...g,fillStyle:"solid"}),E=i.insert(()=>D,":first-child");return E.insert(()=>S,":first-child"),E.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",d),r&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",r),On(e,E),e.intersect=function(O){return bn.polygon(e,y,O)},i}F(lke,"taggedRect");async function cke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=l/4,u=.2*a,h=.2*l,d=l+c,{cssStyles:p}=e,g=kn.svg(i),y=Tn(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:-a/2-a/2*.1,y:d/2},...t1(-a/2-a/2*.1,d/2,a/2+a/2*.1,d/2,c,.8),{x:a/2+a/2*.1,y:-d/2},{x:-a/2-a/2*.1,y:-d/2}],w=-a/2+a/2*.1,S=-d/2-h*.4,T=[{x:w+a-u,y:(S+l)*1.4},{x:w+a,y:S+l-h},{x:w+a,y:(S+l)*.9},...t1(w+a,(S+l)*1.3,w+a-u,(S+l)*1.5,-l*.03,.5)],D=gi(b),E=g.path(D,y),O=gi(T),P=g.path(O,{...y,fillStyle:"solid"}),$=i.insert(()=>P,":first-child");return $.insert(()=>E,":first-child"),$.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&$.selectAll("path").attr("style",p),r&&e.look!=="handDrawn"&&$.selectAll("path").attr("style",r),$.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-a/2+(e.padding??0)-(s.x-(s.left??0))},${-l/2+(e.padding??0)-c/2-(s.y-(s.top??0))})`),On(e,$),e.intersect=function(W){return bn.polygon(e,b,W)},i}F(cke,"taggedWaveEdgedRectangle");async function uke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=Math.max(s.width+e.padding,e?.width||0),a=Math.max(s.height+e.padding,e?.height||0),l=-o/2,c=-a/2,u=i.insert("rect",":first-child");return u.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",o).attr("height",a),On(e,u),e.intersect=function(h){return bn.rect(e,h)},i}F(uke,"text");var HCt=F((t,e,n,r,i,s)=>`M${t},${e} 883 a${i},${s} 0,0,1 0,${-r} 884 l${n},0 885 a${i},${s} 0,0,1 0,${r} 886 M${n},${-r} 887 a${i},${s} 0,0,0 0,${r} 888 l${-n},0`,"createCylinderPathD"),UCt=F((t,e,n,r,i,s)=>[`M${t},${e}`,`M${t+n},${e}`,`a${i},${s} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${s} 0,0,0 0,${r}`,`l${n},0`].join(" "),"createOuterCylinderPathD"),VCt=F((t,e,n,r,i,s)=>[`M${t+n/2},${-r/2}`,`a${i},${s} 0,0,0 0,${r}`].join(" "),"createInnerCylinderPathD");async function hke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o,halfPadding:a}=await Sr(t,e,dr(e)),l=e.look==="neo"?a*2:a,c=s.height+l,u=c/2,h=u/(2.5+c/50),d=s.width+h+l,{cssStyles:p}=e;let g;if(e.look==="handDrawn"){const y=kn.svg(i),b=UCt(0,0,d,c,h,u),w=VCt(0,0,d,c,h,u),S=y.path(b,Tn(e,{})),T=y.path(w,Tn(e,{fill:"none"}));g=i.insert(()=>T,":first-child"),g=i.insert(()=>S,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const y=HCt(0,0,d,c,h,u);g=i.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",Wl(p)).attr("style",r),g.attr("class","basic label-container"),p&&g.selectAll("path").attr("style",p),r&&g.selectAll("path").attr("style",r)}return g.attr("label-offset-x",h),g.attr("transform",`translate(${-d/2}, ${c/2} )`),o.attr("transform",`translate(${-(s.width/2)-h-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),On(e,g),e.intersect=function(y){const b=bn.rect(e,y),w=b.y-(e.y??0);if(u!=0&&(Math.abs(w)<(e.height??0)/2||Math.abs(w)==(e.height??0)/2&&Math.abs(b.x-(e.x??0))>(e.width??0)/2-h)){let S=h*h*(1-w*w/(u*u));S!=0&&(S=Math.sqrt(Math.abs(S))),S=h-S,y.x-(e.x??0)>0&&(S=-S),b.x+=S}return b},i}F(hke,"tiltedCylinder");async function dke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=s.width+e.padding,a=s.height+e.padding,l=[{x:-3*a/6,y:0},{x:o+3*a/6,y:0},{x:o,y:-a},{x:0,y:-a}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=kn.svg(i),d=Tn(e,{}),p=gi(l),g=h.path(p,d);c=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${a/2})`),u&&c.attr("style",u)}else c=gm(i,o,a,l);return r&&c.attr("style",r),e.width=o,e.height=a,On(e,c),e.intersect=function(h){return bn.polygon(e,l,h)},i}F(dke,"trapezoid");async function fke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=60,a=20,l=Math.max(o,s.width+(e.padding??0)*2,e?.width??0),c=Math.max(a,s.height+(e.padding??0)*2,e?.height??0),{cssStyles:u}=e,h=kn.svg(i),d=Tn(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],g=gi(p),y=h.path(g,d),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",u),r&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",r),On(e,b),e.intersect=function(w){return bn.polygon(e,p,w)},i}F(fke,"trapezoidalPentagon");async function pke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=ca(Fi().flowchart?.htmlLabels),l=s.width+(e.padding??0),c=l+s.height,u=l+s.height,h=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-c}],{cssStyles:d}=e,p=kn.svg(i),g=Tn(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=gi(h),b=p.path(y,g),w=i.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",d),r&&e.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),e.width=l,e.height=c,On(e,w),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${c/2-(s.height+(e.padding??0)/(a?2:1)-(s.y-(s.top??0)))})`),e.intersect=function(S){return pt.info("Triangle intersect",e,h,S),bn.polygon(e,h,S)},i}F(pke,"triangle");async function mke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=l/8,u=l+c,{cssStyles:h}=e,p=70-a,g=p>0?p/2:0,y=kn.svg(i),b=Tn(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:-a/2-g,y:u/2},...t1(-a/2-g,u/2,a/2+g,u/2,c,.8),{x:a/2+g,y:-u/2},{x:-a/2-g,y:-u/2}],S=gi(w),T=y.path(S,b),D=i.insert(()=>T,":first-child");return D.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&D.selectAll("path").attr("style",h),r&&e.look!=="handDrawn"&&D.selectAll("path").attr("style",r),D.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-a/2+(e.padding??0)-(s.x-(s.left??0))},${-l/2+(e.padding??0)-c-(s.y-(s.top??0))})`),On(e,D),e.intersect=function(E){return bn.polygon(e,w,E)},i}F(mke,"waveEdgedRectangle");async function gke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s}=await Sr(t,e,dr(e)),o=100,a=50,l=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),u=l/c;let h=l,d=c;h>d*u?d=h/u:h=d*u,h=Math.max(h,o),d=Math.max(d,a);const p=Math.min(d*.2,d/4),g=d+p*2,{cssStyles:y}=e,b=kn.svg(i),w=Tn(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-h/2,y:g/2},...t1(-h/2,g/2,h/2,g/2,p,1),{x:h/2,y:-g/2},...t1(h/2,-g/2,-h/2,-g/2,p,-1)],T=gi(S),D=b.path(T,w),E=i.insert(()=>D,":first-child");return E.attr("class","basic label-container"),y&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",y),r&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",r),On(e,E),e.intersect=function(O){return bn.polygon(e,S,O)},i}F(gke,"waveRectangle");async function yke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const{shapeSvg:i,bbox:s,label:o}=await Sr(t,e,dr(e)),a=Math.max(s.width+(e.padding??0)*2,e?.width??0),l=Math.max(s.height+(e.padding??0)*2,e?.height??0),c=5,u=-a/2,h=-l/2,{cssStyles:d}=e,p=kn.svg(i),g=Tn(e,{}),y=[{x:u-c,y:h-c},{x:u-c,y:h+l},{x:u+a,y:h+l},{x:u+a,y:h-c}],b=`M${u-c},${h-c} L${u+a},${h-c} L${u+a},${h+l} L${u-c},${h+l} L${u-c},${h-c} 889 M${u-c},${h} L${u+a},${h} 890 M${u},${h-c} L${u},${h+l}`;e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const w=p.path(b,g),S=i.insert(()=>w,":first-child");return S.attr("transform",`translate(${c/2}, ${c/2})`),S.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",d),r&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(s.width/2)+c/2-(s.x-(s.left??0))}, ${-(s.height/2)+c/2-(s.y-(s.top??0))})`),On(e,S),e.intersect=function(T){return bn.polygon(e,y,T)},i}F(yke,"windowPane");async function Mq(t,e){const n=e;if(n.alias&&(e.label=n.alias),e.look==="handDrawn"){const{themeVariables:G}=Dc(),{background:B}=G,Q={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${B}`]};await Mq(t,Q)}const r=Dc();e.useHtmlLabels=r.htmlLabels;let i=r.er?.diagramPadding??10,s=r.er?.entityPadding??6;const{cssStyles:o}=e,{labelStyles:a}=In(e);if(n.attributes.length===0&&e.label){const G={rx:0,ry:0,labelPaddingX:i,labelPaddingY:i*1.5};nm(e.label,r)+G.labelPaddingX*2<r.er.minEntityWidth&&(e.width=r.er.minEntityWidth);const B=await $_(t,e,G);if(!ca(r.htmlLabels)){const Q=B.select("text"),ie=Q.node()?.getBBox();Q.attr("transform",`translate(${-ie.width/2}, 0)`)}return B}r.htmlLabels||(i*=1.25,s*=1.25);let l=dr(e);l||(l="node default");const c=t.insert("g").attr("class",l).attr("id",e.domId||e.id),u=await d2(c,e.label??"",r,0,0,["name"],a);u.height+=s;let h=0;const d=[];let p=0,g=0,y=0,b=0,w=!0,S=!0;for(const G of n.attributes){const B=await d2(c,G.type,r,0,h,["attribute-type"],a);p=Math.max(p,B.width+i);const Q=await d2(c,G.name,r,0,h,["attribute-name"],a);g=Math.max(g,Q.width+i);const ie=await d2(c,G.keys.join(),r,0,h,["attribute-keys"],a);y=Math.max(y,ie.width+i);const q=await d2(c,G.comment,r,0,h,["attribute-comment"],a);b=Math.max(b,q.width+i),h+=Math.max(B.height,Q.height,ie.height,q.height)+s,d.push(h)}d.pop();let T=4;y<=i&&(w=!1,y=0,T--),b<=i&&(S=!1,b=0,T--);const D=c.node().getBBox();if(u.width+i*2-(p+g+y+b)>0){const G=u.width+i*2-(p+g+y+b);p+=G/T,g+=G/T,y>0&&(y+=G/T),b>0&&(b+=G/T)}const E=p+g+y+b,O=kn.svg(c),P=Tn(e,{});e.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const $=Math.max(D.width+i*2,e?.width||0,E),W=Math.max(D.height+(d[0]||h)+s,e?.height||0),H=-$/2,K=-W/2;c.selectAll("g:not(:first-child)").each((G,B,Q)=>{const ie=pi(Q[B]),q=ie.attr("transform");let fe=0,ke=0;if(q){const Qe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(q);Qe&&(fe=parseFloat(Qe[1]),ke=parseFloat(Qe[2]),ie.attr("class").includes("attribute-name")?fe+=p:ie.attr("class").includes("attribute-keys")?fe+=p+g:ie.attr("class").includes("attribute-comment")&&(fe+=p+g+y))}ie.attr("transform",`translate(${H+i/2+fe}, ${ke+K+u.height+s/2})`)}),c.select(".name").attr("transform","translate("+-u.width/2+", "+(K+s/2)+")");const Z=O.rectangle(H,K,$,W,P),oe=c.insert(()=>Z,":first-child").attr("style",o.join("")),{themeVariables:te}=Dc(),{rowEven:re,rowOdd:Y,nodeBorder:z}=te;d.push(0);for(const[G,B]of d.entries()){if(G===0&&d.length>1)continue;const Q=G%2===0&&B!==0,ie=O.rectangle(H,u.height+K+B,$,u.height,{...P,fill:Q?re:Y,stroke:z});c.insert(()=>ie,"g.label").attr("style",o.join("")).attr("class",`row-rect-${G%2===0?"even":"odd"}`)}let U=O.line(H,u.height+K,$+H,u.height+K,P);c.insert(()=>U).attr("class","divider"),U=O.line(p+H,u.height+K,p+H,W+K,P),c.insert(()=>U).attr("class","divider"),w&&(U=O.line(p+g+H,u.height+K,p+g+H,W+K,P),c.insert(()=>U).attr("class","divider")),S&&(U=O.line(p+g+y+H,u.height+K,p+g+y+H,W+K,P),c.insert(()=>U).attr("class","divider"));for(const G of d)U=O.line(H,u.height+K+G,$+H,u.height+K+G,P),c.insert(()=>U).attr("class","divider");return On(e,oe),e.intersect=function(G){return bn.rect(e,G)},c}F(Mq,"erBox");async function d2(t,e,n,r=0,i=0,s=[],o=""){const a=t.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${r}, ${i})`).attr("style",o);e!==fie(e)&&(e=fie(e),e=e.replaceAll("<","<").replaceAll(">",">"));const l=a.node().appendChild(await w1(a,e,{width:nm(e,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(e.includes("<")||e.includes(">")){let u=l.children[0];for(u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">");u.childNodes[0];)u=u.childNodes[0],u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">")}let c=l.getBBox();if(ca(n.htmlLabels)){const u=l.children[0];u.style.textAlign="start";const h=pi(l);c=u.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}return c}F(d2,"addText");async function bke(t,e,n,r,i=n.class.padding??12){const s=r?0:3,o=t.insert("g").attr("class",dr(e)).attr("id",e.domId||e.id);let a=null,l=null,c=null,u=null,h=0,d=0,p=0;if(a=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const S=e.annotations[0];await l4(a,{text:`«${S}»`},0),h=a.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await l4(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();d=g.height,c=o.insert("g").attr("class","members-group text");let y=0;for(const S of e.members){const T=await l4(c,S,y,[S.parseClassifier()]);y+=T+s}p=c.node().getBBox().height,p<=0&&(p=i/2),u=o.insert("g").attr("class","methods-group text");let b=0;for(const S of e.methods){const T=await l4(u,S,b,[S.parseClassifier()]);b+=T+s}let w=o.node().getBBox();if(a!==null){const S=a.node().getBBox();a.attr("transform",`translate(${-S.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${h})`),w=o.node().getBBox(),c.attr("transform",`translate(0, ${h+d+i*2})`),w=o.node().getBBox(),u.attr("transform",`translate(0, ${h+d+(p?p+i*4:i*2)})`),w=o.node().getBBox(),{shapeSvg:o,bbox:w}}F(bke,"textHelper");async function l4(t,e,n,r=[]){const i=t.insert("g").attr("class","label").attr("style",r.join("; ")),s=Dc();let o="useHtmlLabels"in e?e.useHtmlLabels:ca(s.htmlLabels)??!0,a="";"text"in e?a=e.text:a=e.label,!o&&a.startsWith("\\")&&(a=a.substring(1)),iw(a)&&(o=!0);const l=await w1(i,GW($b(a)),{width:nm(a,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s);let c,u=1;if(o){const h=l.children[0],d=pi(l);u=h.innerHTML.split("<br>").length,h.innerHTML.includes("</math>")&&(u+=h.innerHTML.split("<mrow>").length-1);const p=h.getElementsByTagName("img");if(p){const g=a.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...p].map(y=>new Promise(b=>{function w(){if(y.style.display="flex",y.style.flexDirection="column",g){const S=s.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,D=parseInt(S,10)*5+"px";y.style.minWidth=D,y.style.maxWidth=D}else y.style.width="100%";b(y)}F(w,"setupImage"),setTimeout(()=>{y.complete&&w()}),y.addEventListener("error",w),y.addEventListener("load",w)})))}c=h.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{r.includes("font-weight: bolder")&&pi(l).selectAll("tspan").attr("font-weight",""),u=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(h.textContent=a[0]+a.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),a[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),c=l.getBBox()}return i.attr("transform","translate(0,"+(-c.height/(2*u)+n)+")"),c.height}F(l4,"addText");async function vke(t,e){const n=Fi(),r=n.class.padding??12,i=r,s=e.useHtmlLabels??ca(n.htmlLabels)??!0,o=e;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:a,bbox:l}=await bke(t,e,n,s,i),{labelStyles:c,nodeStyles:u}=In(e);e.labelStyle=c,e.cssStyles=o.styles||"";const h=o.styles?.join(";")||u||"";e.cssStyles||(e.cssStyles=h.replaceAll("!important","").split(";"));const d=o.members.length===0&&o.methods.length===0&&!n.class?.hideEmptyMembersBox,p=kn.svg(a),g=Tn(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=l.width;let b=l.height;o.members.length===0&&o.methods.length===0?b+=i:o.members.length>0&&o.methods.length===0&&(b+=i*2);const w=-y/2,S=-b/2,T=p.rectangle(w-r,S-r-(d?r:o.members.length===0&&o.methods.length===0?-r/2:0),y+2*r,b+2*r+(d?r*2:o.members.length===0&&o.methods.length===0?-r:0),g),D=a.insert(()=>T,":first-child");D.attr("class","basic label-container");const E=D.node().getBBox();a.selectAll(".text").each((W,H,K)=>{const Z=pi(K[H]),oe=Z.attr("transform");let te=0;if(oe){const U=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(oe);U&&(te=parseFloat(U[2]))}let re=te+S+r-(d?r:o.members.length===0&&o.methods.length===0?-r/2:0);s||(re-=4);let Y=w;(Z.attr("class").includes("label-group")||Z.attr("class").includes("annotation-group"))&&(Y=-Z.node()?.getBBox().width/2||0,a.selectAll("text").each(function(z,U,G){window.getComputedStyle(G[U]).textAnchor==="middle"&&(Y=0)})),Z.attr("transform",`translate(${Y}, ${re})`)});const O=a.select(".annotation-group").node().getBBox().height-(d?r/2:0)||0,P=a.select(".label-group").node().getBBox().height-(d?r/2:0)||0,$=a.select(".members-group").node().getBBox().height-(d?r/2:0)||0;if(o.members.length>0||o.methods.length>0||d){const W=p.line(E.x,O+P+S+r,E.x+E.width,O+P+S+r,g);a.insert(()=>W).attr("class","divider").attr("style",h)}if(d||o.members.length>0||o.methods.length>0){const W=p.line(E.x,O+P+$+S+i*2+r,E.x+E.width,O+P+$+S+r+i*2,g);a.insert(()=>W).attr("class","divider").attr("style",h)}if(o.look!=="handDrawn"&&a.selectAll("path").attr("style",h),D.select(":nth-child(2)").attr("style",h),a.selectAll(".divider").select("path").attr("style",h),e.labelStyle?a.selectAll("span").attr("style",e.labelStyle):a.selectAll("span").attr("style",h),!s){const W=RegExp(/color\s*:\s*([^;]*)/),H=W.exec(h);if(H){const K=H[0].replace("color","fill");a.selectAll("tspan").attr("style",K)}else if(c){const K=W.exec(c);if(K){const Z=K[0].replace("color","fill");a.selectAll("tspan").attr("style",Z)}}}return On(e,D),e.intersect=function(W){return bn.rect(e,W)},a}F(vke,"classBox");async function xke(t,e){const{labelStyles:n,nodeStyles:r}=In(e);e.labelStyle=n;const i=e,s=e,o=20,a=20,l="verifyMethod"in e,c=dr(e),u=t.insert("g").attr("class",c).attr("id",e.domId??e.id);let h;l?h=await pf(u,`<<${i.type}>>`,0,e.labelStyle):h=await pf(u,"<<Element>>",0,e.labelStyle);let d=h;const p=await pf(u,i.name,d,e.labelStyle+"; font-weight: bold;");if(d+=p+a,l){const O=await pf(u,`${i.requirementId?`Id: ${i.requirementId}`:""}`,d,e.labelStyle);d+=O;const P=await pf(u,`${i.text?`Text: ${i.text}`:""}`,d,e.labelStyle);d+=P;const $=await pf(u,`${i.risk?`Risk: ${i.risk}`:""}`,d,e.labelStyle);d+=$,await pf(u,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,d,e.labelStyle)}else{const O=await pf(u,`${s.type?`Type: ${s.type}`:""}`,d,e.labelStyle);d+=O,await pf(u,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,d,e.labelStyle)}const g=(u.node()?.getBBox().width??200)+o,y=(u.node()?.getBBox().height??200)+o,b=-g/2,w=-y/2,S=kn.svg(u),T=Tn(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const D=S.rectangle(b,w,g,y,T),E=u.insert(()=>D,":first-child");if(E.attr("class","basic label-container").attr("style",r),u.selectAll(".label").each((O,P,$)=>{const W=pi($[P]),H=W.attr("transform");let K=0,Z=0;if(H){const Y=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(H);Y&&(K=parseFloat(Y[1]),Z=parseFloat(Y[2]))}const oe=Z-y/2;let te=b+o/2;(P===0||P===1)&&(te=K),W.attr("transform",`translate(${te}, ${oe+o})`)}),d>h+p+a){const O=S.line(b,w+h+p+a,b+g,w+h+p+a,T);u.insert(()=>O).attr("style",r)}return On(e,E),e.intersect=function(O){return bn.rect(e,O)},u}F(xke,"requirementBox");async function pf(t,e,n,r=""){if(e==="")return 0;const i=t.insert("g").attr("class","label").attr("style",r),s=Fi(),o=s.htmlLabels??!0,a=await w1(i,GW($b(e)),{width:nm(e,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:r},s);let l;if(o){const c=a.children[0],u=pi(a);l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}else{const c=a.children[0];for(const u of c.children)u.textContent=u.textContent.replaceAll(">",">").replaceAll("<","<"),r&&u.setAttribute("style",r);l=a.getBBox(),l.height+=6}return i.attr("transform",`translate(${-l.width/2},${-l.height/2+n})`),l.height}F(pf,"addText");var WCt=F(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function wke(t,e,{config:n}){const{labelStyles:r,nodeStyles:i}=In(e);e.labelStyle=r||"";const s=10,o=e.width;e.width=(e.width??200)-10;const{shapeSvg:a,bbox:l,label:c}=await Sr(t,e,dr(e)),u=e.padding||10;let h="",d;"ticket"in e&&e.ticket&&n?.kanban?.ticketBaseUrl&&(h=n?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),d=a.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const p={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let g,y;d?{label:g,bbox:y}=await dR(d,"ticket"in e&&e.ticket||"",p):{label:g,bbox:y}=await dR(a,"ticket"in e&&e.ticket||"",p);const{label:b,bbox:w}=await dR(a,"assigned"in e&&e.assigned||"",p);e.width=o;const S=10,T=e?.width||0,D=Math.max(y.height,w.height)/2,E=Math.max(l.height+S*2,e?.height||0)+D,O=-T/2,P=-E/2;c.attr("transform","translate("+(u-T/2)+", "+(-D-l.height/2)+")"),g.attr("transform","translate("+(u-T/2)+", "+(-D+l.height/2)+")"),b.attr("transform","translate("+(u+T/2-w.width-2*s)+", "+(-D+l.height/2)+")");let $;const{rx:W,ry:H}=e,{cssStyles:K}=e;if(e.look==="handDrawn"){const Z=kn.svg(a),oe=Tn(e,{}),te=W||H?Z.path(mm(O,P,T,E,W||0),oe):Z.rectangle(O,P,T,E,oe);$=a.insert(()=>te,":first-child"),$.attr("class","basic label-container").attr("style",K||null)}else{$=a.insert("rect",":first-child"),$.attr("class","basic label-container __APA__").attr("style",i).attr("rx",W??5).attr("ry",H??5).attr("x",O).attr("y",P).attr("width",T).attr("height",E);const Z="priority"in e&&e.priority;if(Z){const oe=a.append("line"),te=O+2,re=P+Math.floor((W??0)/2),Y=P+E-Math.floor((W??0)/2);oe.attr("x1",te).attr("y1",re).attr("x2",te).attr("y2",Y).attr("stroke-width","4").attr("stroke",WCt(Z))}}return On(e,$),e.height=E,e.intersect=function(Z){return bn.rect(e,Z)},a}F(wke,"kanbanItem");var qCt=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:nke},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Z4e},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:rke},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
890subproc","framed-rectangle","subroutine"],handler:ake},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:T4e},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:v4e},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Q4e},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:M4e},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:U4e},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:H4e},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:dke},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:j4e},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:A4e},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:uke}
890,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:y4e},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:eke},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:oke},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ske},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:I4e},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:N4e},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:S4e},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:k4e},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:C4e},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:V4e}
vendor: 4,282 bytes, line 890
890,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:mke},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:D4e},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:hke},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:W4e},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:_4e},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:E4e},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:pke},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:yke},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:P4e},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:fke},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:O4e},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tke},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:K4e},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:G4e},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:g4e},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:w4e},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:cke},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:lke},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:gke},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:X4e},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:q4e}],GCt=F(()=>{const e=[...Object.entries({state:ike,choice:b4e,note:Y4e,rectWithTitle:J4e,labelRect:z4e,iconSquare:F4e,iconCircle:L4e,icon:R4e,iconRounded:B4e,imageSquare:$4e,anchor:m4e,kanbanItem:wke,classBox:vke,erBox:Mq,requirementBox:xke}),...qCt.flatMap(n=>[n.shortName,..."aliases"in n?n.aliases:[],..."internalAliases"in n?n.internalAliases:[]].map(i=>[i,n.handler]))];return Object.fromEntries(e)},"generateShapeMap"),Ske=GCt();function KCt(t){return t in Ske}F(KCt,"isValidShape");var II=new Map;async function kke(t,e,n){let r,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const s=e.shape?Ske[e.shape]:void 0;if(!s)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;n.config.securityLevel==="sandbox"?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null),i=await s(r,e,n)}else i=await s(t,e,n),r=i;return e.tooltip&&i.attr("title",e.tooltip),II.set(e.id,r),e.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}
vendor: 10,001 bytes, lines 890-893
890F(kke,"insertNode");var qGt=F((t,e)=>{II.set(e.id,t)},"setNodeElem"),GGt=F(()=>{II.clear()},"clear"),KGt=F(t=>{const e=II.get(t.id);pt.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=8,r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-n)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode"),YCt=F((t,e,n,r,i,s)=>{e.arrowTypeStart&&ose(t,"start",e.arrowTypeStart,n,r,i,s),e.arrowTypeEnd&&ose(t,"end",e.arrowTypeEnd,n,r,i,s)},"addEdgeMarkers"),QCt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},ose=F((t,e,n,r,i,s,o)=>{const a=QCt[n];if(!a){pt.warn(`Unknown arrow type: ${n}`);return}const l=a.type,u=`${i}_${s}-${l}${e==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const h=o.replace(/[^\dA-Za-z]/g,"_"),d=`${u}_${h}`;if(!document.getElementById(d)){const p=document.getElementById(u);if(p){const g=p.cloneNode(!0);g.id=d,g.querySelectorAll("path, circle, line").forEach(b=>{b.setAttribute("stroke",o),a.fill&&b.setAttribute("fill",o)}),p.parentNode?.appendChild(g)}}t.attr(`marker-${e}`,`url(${r}#${d})`)}else t.attr(`marker-${e}`,`url(${r}#${u})`)},"addEdgeMarker"),lP=new Map,Ba=new Map,YGt=F(()=>{lP.clear(),Ba.clear()},"clear"),u3=F(t=>t?t.reduce((n,r)=>n+";"+r,""):"","getLabelStyles"),XCt=F(async(t,e)=>{let n=ca(Fi().flowchart.htmlLabels);const r=await w1(t,e.label,{style:u3(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1});pt.info("abc82",e,e.labelType);const i=t.insert("g").attr("class","edgeLabel"),s=i.insert("g").attr("class","label");s.node().appendChild(r);let o=r.getBBox();if(n){const l=r.children[0],c=pi(r);o=l.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),lP.set(e.id,i),e.width=o.width,e.height=o.height;let a;if(e.startLabelLeft){const l=await zy(e.startLabelLeft,u3(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");a=u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Ba.get(e.id)||Ba.set(e.id,{}),Ba.get(e.id).startLeft=c,c4(a,e.startLabelLeft)}if(e.startLabelRight){const l=await zy(e.startLabelRight,u3(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");a=c.node().appendChild(l),u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Ba.get(e.id)||Ba.set(e.id,{}),Ba.get(e.id).startRight=c,c4(a,e.startLabelRight)}if(e.endLabelLeft){const l=await zy(e.endLabelLeft,u3(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");a=u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(l),Ba.get(e.id)||Ba.set(e.id,{}),Ba.get(e.id).endLeft=c,c4(a,e.endLabelLeft)}if(e.endLabelRight){const l=await zy(e.endLabelRight,u3(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");a=u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(l),Ba.get(e.id)||Ba.set(e.id,{}),Ba.get(e.id).endRight=c,c4(a,e.endLabelRight)}return r},"insertEdgeLabel");function c4(t,e){Fi().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}F(c4,"setTerminalWidth");var JCt=F((t,e)=>{pt.debug("Moving label abc88 ",t.id,t.label,lP.get(t.id),e);let n=e.updatedPath?e.updatedPath:e.originalPath;const r=Fi(),{subGraphTitleTotalMargin:i}=tq(r);if(t.label){const s=lP.get(t.id);let o=t.x,a=t.y;if(n){const l=Nf.calcLabelPosition(n);pt.debug("Moving label "+t.label+" from (",o,",",a,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(o=l.x,a=l.y)}s.attr("transform",`translate(${o}, ${a+i/2})`)}if(t.startLabelLeft){const s=Ba.get(t.id).startLeft;let o=t.x,a=t.y;if(n){const l=Nf.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}if(t.startLabelRight){const s=Ba.get(t.id).startRight;let o=t.x,a=t.y;if(n){const l=Nf.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}if(t.endLabelLeft){const s=Ba.get(t.id).endLeft;let o=t.x,a=t.y;if(n){const l=Nf.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}if(t.endLabelRight){const s=Ba.get(t.id).endRight;let o=t.x,a=t.y;if(n){const l=Nf.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}},"positionEdgeLabel"),ZCt=F((t,e)=>{const n=t.x,r=t.y,i=Math.abs(e.x-n),s=Math.abs(e.y-r),o=t.width/2,a=t.height/2;return i>=o||s>=a},"outsideNode"),e_t=F((t,e,n)=>{pt.debug(`intersection calc abc89: 891 outsidePoint: ${JSON.stringify(e)} 892 insidePoint : ${JSON.stringify(n)} 893 node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const r=t.x,i=t.y,s=Math.abs(r-n.x),o=t.width/2;let a=n.x<e.x?o-s:o+s;const l=t.height/2,c=Math.abs(e.y-n.y),u=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*o>Math.abs(r-e.x)*l){let h=n.y<e.y?e.y-l-i:i-l-e.y;a=u*h/c;const d={x:n.x<e.x?n.x+a:n.x-u+a,y:n.y<e.y?n.y+c-h:n.y-c+h};return a===0&&(d.x=e.x,d.y=e.y),u===0&&(d.x=e.x),c===0&&(d.y=e.y),pt.debug(`abc89 top/bottom calc, Q ${c}, q ${h}, R ${u}, r ${a}`,d),d}else{n.x<e.x?a=e.x-o-r:a=r-o-e.x;let h=c*a/u,d=n.x<e.x?n.x+u-a:n.x-u+a,p=n.y<e.y?n.y+h:n.y-h;return pt.debug(`sides calc abc89, Q ${c}, q ${h}, R ${u}, r ${a}`,{_x:d,_y:p}),a===0&&(d=e.x,p=e.y),u===0&&(d=e.x),c===0&&(p=e.y),{x:d,y:p}}},"intersection"),ase=F((t,e)=>{pt.warn("abc88 cutPathAtIntersect",t,e);let n=[],r=t[0],i=!1;return t.forEach(s=>{if(pt.info("abc88 checking point",s,e),!ZCt(e,s)&&!i){const o=e_t(e,r,s);pt.debug("abc88 inside",s,r,o),pt.debug("abc88 intersection",o,e);let a=!1;n.forEach(l=>{a=a||l.x===o.x&&l.y===o.y}),n.some(l=>l.x===o.x&&l.y===o.y)?pt.warn("abc88 no intersect",o,n):n.push(o),i=!0}else pt.warn("abc88 outside",s,r),r=s,i||n.push(s)}),pt.debug("returning points",n),n},"cutPathAtIntersect");function Cke(t){const e=[],n=[];for(let r=1;r<t.length-1;r++){const i=t[r-1],s=t[r],o=t[r+1];(i.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-i.y)>5||i.y===s.y&&s.x===o.x&&Math.abs(s.x-i.x)>5&&Math.abs(s.y-o.y)>5)&&(e.push(s),n.push(r))}return{cornerPoints:e,cornerPointPositions:n}}F(Cke,"extractCornerPoints");var lse=F(function(t,e,n){const r=e.x-t.x,i=e.y-t.y,s=Math.sqrt(r*r+i*i),o=n/s;return{x:e.x-o*r,y:e.y-o*i}},"findAdjacentPoint"),t_t=F(function(t){const{cornerPointPositions:e}=Cke(t),n=[];for(let r=0;r<t.length;r++)if(e.includes(r)){const i=t[r-1],s=t[r+1],o=t[r],a=lse(i,o,5),l=lse(s,o,5),c=l.x-a.x,u=l.y-a.y;n.push(a);const h=Math.sqrt(2)*2;let d={x:o.x,y:o.y};if(Math.abs(s.x-i.x)>10&&Math.abs(s.y-i.y)>=10){pt.debug("Corner point fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));const p=5;o.x===a.x?d={x:c<0?a.x-p+h:a.x+p-h,y:u<0?a.y-h:a.y+h}:d={x:c<0?a.x-h:a.x+h,y:u<0?a.y-p+h:a.y+p-h}}else pt.debug("Corner point skipping fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));n.push(d,l)}else n.push(t[r]);return n},"fixCorners"),n_t=F(function(t,e,n,r,i,s,o){const{handDrawnSeed:a}=Fi();let l=e.points,c=!1;const u=i;var h=s;const d=[];for(const W in e.cssCompiledStyles)o4e(W)||d.push(e.cssCompiledStyles[W]);h.intersect&&u.intersect&&(l=l.slice(1,e.points.length-1),l.unshift(u.intersect(l[0])),pt.debug("Last point APA12",e.start,"-->",e.end,l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),e.toCluster&&(pt.info("to cluster abc88",n.get(e.toCluster)),l=ase(e.points,n.get(e.toCluster).node),c=!0),e.fromCluster&&(pt.debug("from cluster abc88",n.get(e.fromCluster),JSON.stringify(l,null,2)),l=ase(l.reverse(),n.get(e.fromCluster).node).reverse(),c=!0);let p=l.filter(W=>!Number.isNaN(W.y));p=t_t(p);let g=_A;switch(g=Q7,e.curve){case"linear":g=Q7;break;case"basis":g=_A;break;case"cardinal":g=a3e;break;case"bumpX":g=n3e;break;case"bumpY":g=r3e;break;case"catmullRom":g=c3e;break;case"monotoneX":g=m3e;break;case"monotoneY":g=g3e;break;case"natural":g=b3e;break;case"step":g=v3e;break;case"stepAfter":g=w3e;break;case"stepBefore":g=x3e;break;default:g=_A}const{x:y,y:b}=Zxt(e),w=G4t().x(y).y(b).curve(g);let S;switch(e.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(e.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let T,D=w(p);const E=Array.isArray(e.style)?e.style:[e.style];let O=E.find(W=>W?.startsWith("stroke:"));if(e.look==="handDrawn"){const W=kn.svg(t);Object.assign([],p);const H=W.path(D,{roughness:.3,seed:a});S+=" transition",T=pi(H).select("path").attr("id",e.id).attr("class"," "+S+(e.classes?" "+e.classes:"")).attr("style",E?E.reduce((Z,oe)=>Z+";"+oe,""):"");let K=T.attr("d");T.attr("d",K),t.node().appendChild(T.node())}else{const W=d.join(";"),H=E?E.reduce((oe,te)=>oe+te+";",""):"";let K="";e.animate&&(K=" edge-animation-fast"),e.animation&&(K=" edge-animation-"+e.animation);const Z=W?W+";"+H+";":H;T=t.append("path").attr("d",D).attr("id",e.id).attr("class"," "+S+(e.classes?" "+e.classes:"")+(K??"")).attr("style",Z),O=Z.match(/stroke:([^;
vendor: 8,985 bytes, lines 893-896
893]+)/)?.[1]}let P="";(Fi().flowchart.arrowMarkerAbsolute||Fi().state.arrowMarkerAbsolute)&&(P=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,P=P.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),pt.info("arrowTypeStart",e.arrowTypeStart),pt.info("arrowTypeEnd",e.arrowTypeEnd),YCt(T,e,P,o,r,O);let $={};return c&&($.updatedPath=l),$.originalPath=e.points,$},"insertEdge"),r_t=F((t,e,n,r)=>{e.forEach(i=>{v_t[i](t,n,r)})},"insertMarkers"),i_t=F((t,e,n)=>{pt.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),s_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),o_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),a_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),l_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),c_t=F((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),u_t=F((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),h_t=F((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",n+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),d_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),f_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",n+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),p_t=F((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),m_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",n+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),g_t=F((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),y_t=F((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 894 L20,10 895 M20,10 896 L0,20`)},"requirement_arrow"),b_t=F((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-requirement_c
896ontainsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),v_t={extension:i_t,composition:s_t,aggregation:o_t,dependency:a_t,lollipop:l_t,point:c_t,circle:u_t,cross:h_t,barb:d_t,only_one:f_t,zero_or_one:p_t,one_or_more:m_t,zero_or_more:g_t,requirement_arrow:y_t,requirement_contains:b_t},x_t=r_t,w_t={common:Hw,getConfig:Dc,insertCluster:PCt,insertEdge:n_t,insertEdgeLabel:XCt,insertMarkers:x_t,insertNode:kke,interpolateToCurve:pq,labelHelper:Sr,log:pt,positionEdgeLabel:JCt},vC={},_ke=F(t=>{for(const e of t)vC[e.name]=e},"registerLayoutLoaders"),S_t=F(()=>{_ke([{name:"dagre",loader:F(async()=>await ge(()=>import("./dagre-OKDRZEBW-Qv1OqjZf.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");S_t();var QGt=F(async(t,e)=>{if(!(t.layoutAlgorithm in vC))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const n=vC[t.layoutAlgorithm];return(await n.loader()).render(t,e,w_t,{algorithm:n.algorithm})},"render"),XGt=F((t="",{fallback:e="dagre"}={})=>{if(t in vC)return t;if(e in vC)return pt.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),cse={name:"mermaid",version:"11.6.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},k_t=F(t=>{const{securityLevel:e}=Fi();let n=pi("body");if(e==="sandbox"){const s=pi(`#i${t}`).node()?.contentDocument??document;n=pi(s.body)}return n.select(`#${t}`)},"selectSvgElement"),Tke="comm",Eke="rule",Ake="decl",C_t="@import",__t="@namespace",T_t="@keyframes",E_t="@layer",Pke=Math.abs,Nq=String.fromCharCode;function Oke(t){return t.trim()}function PA(t,e,n){return t.replace(e,n)}function A_t(t,e,n){return t.indexOf(e,n)}function fx(t,e){return t.charCodeAt(e)|0}function cw(t,e,n){return t.slice(e,n)}function Sf(t){return t.length}function P_t(t){return t.length}function CE(t,e){return e.push(t),t}var DI=1,uw=1,Ike=0,Dh=0,zo=0,Ww="";function Rq(t,e,n,r,i,s,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:DI,column:uw,length:o,return:"",siblings:a}}function O_t(){return zo}function I_t(){return zo=Dh>0?fx(Ww,--Dh):0,uw--,zo===10&&(uw=1,DI--),zo}function Pd(){return zo=Dh<Ike?fx(Ww,Dh++):0,uw++,zo===10&&(uw=1,DI++),zo}function Cg(){return fx(Ww,Dh)}function OA(){return Dh}function MI(t,e){return cw(Ww,t,e)}function xC(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D_t(t){return DI=uw=1,Ike=Sf(Ww=t),Dh=0,[]}function M_t(t){return Ww="",t}function fR(t){return Oke(MI(Dh-1,hj(t===91?t+2:t===40?t+1:t)))}function N_t(t){for(;(zo=Cg())&&zo<33;)Pd();return xC(t)>2||xC(zo)>3?"":" "}function R_t(t,e){for(;--e&&Pd()&&!(zo<48||zo>102||zo>57&&zo<65||zo>70&&zo<97););return MI(t,OA()+(e<6&&Cg()==32&&Pd()==32))}function hj(t){for(;Pd();)switch(zo){case t:return Dh;case 34:case 39:t!==34&&t!==39&&hj(zo);break;case 40:t===41&&hj(t);break;case 92:Pd();break}return Dh}function L_t(t,e){for(;Pd()&&t+zo!==57;)if(t+zo===84&&Cg()===47)break;return"/*"+MI(e,Dh-1)+"*"+Nq(t===47?t:Pd())}function B_t(t){for(;!xC(Cg());)Pd();return MI(t,Dh)}
vendor: 9,514 bytes, lines 896-897
896function F_t(t){return M_t(IA("",null,null,null,[""],t=D_t(t),0,[0],t))}function IA(t,e,n,r,i,s,o,a,l){for(var c=0,u=0,h=o,d=0,p=0,g=0,y=1,b=1,w=1,S=0,T="",D=i,E=s,O=r,P=T;b;)switch(g=S,S=Pd()){case 40:if(g!=108&&fx(P,h-1)==58){A_t(P+=PA(fR(S),"&","&\f"),"&\f",Pke(c?a[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:P+=fR(S);break;case 9:case 10:case 13:case 32:P+=N_t(g);break;case 92:P+=R_t(OA()-1,7);continue;case 47:switch(Cg()){case 42:case 47:CE($_t(L_t(Pd(),OA()),e,n,l),l),(xC(g||1)==5||xC(Cg()||1)==5)&&Sf(P)&&cw(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*y:a[c++]=Sf(P)*w;case 125*y:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:w==-1&&(P=PA(P,/\f/g,"")),p>0&&(Sf(P)-h||y===0&&g===47)&&CE(p>32?hse(P+";",r,n,h-1,l):hse(PA(P," ","")+";",r,n,h-2,l),l);break;case 59:P+=";";default:if(CE(O=use(P,e,n,c,u,i,a,T,D=[],E=[],h,s),s),S===123)if(u===0)IA(P,e,O,O,D,s,h,a,E);else{switch(d){case 99:if(fx(P,3)===110)break;case 108:if(fx(P,2)===97)break;default:u=0;case 100:case 109:case 115:}u?IA(t,O,O,r&&CE(use(t,O,O,0,0,i,a,T,i,D=[],h,E),E),i,E,h,a,r?D:E):IA(P,O,O,O,[""],E,0,a,E)}}c=u=p=0,y=w=1,T=P="",h=o;break;case 58:h=1+Sf(P),p=g;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&I_t()==125)continue}switch(P+=Nq(S),S*y){case 38:w=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(Sf(P)-1)*w,w=1;break;case 64:Cg()===45&&(P+=fR(Pd())),d=Cg(),u=h=Sf(T=P+=B_t(OA())),S++;break;case 45:g===45&&Sf(P)==2&&(y=0)}}return s}function use(t,e,n,r,i,s,o,a,l,c,u,h){for(var d=i-1,p=i===0?s:[""],g=P_t(p),y=0,b=0,w=0;y<r;++y)for(var S=0,T=cw(t,d+1,d=Pke(b=o[y])),D=t;S<g;++S)(D=Oke(b>0?p[S]+" "+T:PA(T,/&\f/g,p[S])))&&(l[w++]=D);return Rq(t,e,n,i===0?Eke:a,l,c,u,h)}function $_t(t,e,n,r){return Rq(t,e,n,Tke,Nq(O_t()),cw(t,2,-2),0,r)}function hse(t,e,n,r,i){return Rq(t,e,n,Ake,cw(t,0,r),cw(t,r+1,-1),r,i)}function dj(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function j_t(t,e,n,r){switch(t.type){case E_t:if(t.children.length)break;case C_t:case __t:case Ake:return t.return=t.return||t.value;case Tke:return"";case T_t:return t.return=t.value+"{"+dj(t.children,r)+"}";case Eke:if(!Sf(t.value=t.props.join(",")))return""}return Sf(n=dj(t.children,r))?t.return=t.value+"{"+n+"}":""}var Dke="c4",z_t=F(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),H_t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./c4Diagram-VJAJSXHY-Dr37r5EM.js");return{diagram:e}},__vite__mapDeps([6,7]));return{id:Dke,diagram:t}},"loader"),U_t={id:Dke,detector:z_t,loader:H_t},V_t=U_t,Mke="flowchart",W_t=F((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),q_t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./flowDiagram-4HSFHLVR-LCWCJ1jf.js");return{diagram:e}},__vite__mapDeps([8,9,10]));return{id:Mke,diagram:t}},"loader"),G_t={id:Mke,detector:W_t,loader:q_t},K_t=G_t,Nke="flowchart-v2",Y_t=F((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),Q_t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./flowDiagram-4HSFHLVR-LCWCJ1jf.js");return{diagram:e}},__vite__mapDeps([8,9,10]));return{id:Nke,diagram:t}},"loader"),X_t={id:Nke,detector:Y_t,loader:Q_t},J_t=X_t,Rke="er",Z_t=F(t=>/^\s*erDiagram/.test(t),"detector"),eTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./erDiagram-Q7BY3M3F-BvRGLT7l.js");return{diagram:e}},__vite__mapDeps([11,9,10]));return{id:Rke,diagram:t}},"loader"),tTt={id:Rke,detector:Z_t,loader:eTt},nTt=tTt,Lke="gitGraph",rTt=F(t=>/^\s*gitGraph/.test(t),"detector"),iTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./gitGraphDiagram-7IBYFJ6S-DOCS6Ae0.js");return{diagram:e}},__vite__mapDeps([12,13,14,15,2,4,5]));return{id:Lke,diagram:t}},"loader"),sTt={id:Lke,detector:rTt,loader:iTt},oTt=sTt,Bke="gantt",aTt=F(t=>/^\s*gantt/.test(t),"detector"),lTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./ganttDiagram-APWFNJXF-BFX4HC4R.js");return{diagram:e}},__vite__mapDeps([16,17,18]));return{id:Bke,diagram:t}},"loader"),cTt={id:Bke,detector:aTt,loader:lTt},uTt=cTt,Fke="info",hTt=F(t=>/^\s*info/.test(t),"detector"),dTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./infoDiagram-PH2N3AL5-DvtXlf_y.js");return{diagram:e}},__vite__mapDeps([19,15,2,4,5]));return{id:Fke,diagram:t}},"loader"),fTt={id:Fke,detector:hTt,loader:dTt},$ke="pie",pTt=F(t=>/^\s*pie/.test(t),"detector"),mTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./pieDiagram-IB7DONF6-De-eR9ht.js");return{diagram:e}},__vite__mapDeps([20,13,15,2,4,5,21,22,18]));return{id:$ke,diagram:t}},"loader"),gTt={id:$ke,detector:pTt,loader:mTt},jke="quadrantChart",yTt=F(t=>/^\s*quadrantChart/.test(t),"detector"),bTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./quadrantDiagram-7GDLP6J5-z9d8d_RX.js");return{diagram:e}},__vite__mapDeps([23,17,18]));return{id:jke,diagram:t}},"loader"),vTt={id:jke,detector:yTt,loader:bTt},xTt=vTt,zke="xychart",wTt=F(t=>/^\s*xychart-beta/.test(t),"detector"),STt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./xychartDiagram-VJFVF3MP-BmB-XlM1.js");return{diagram:e}},__vite__mapDeps([24,18,22,17]));return{id:zke,diagram:t}},"loader"),kTt={id:zke,detector:wTt,loader:STt},CTt=kTt,Hke="requirement",_Tt=F(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),TTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./requirementDiagram-KVF5MWMF-CMZ002LM.js");return{diagram:e}},__vite__mapDeps([25,9]));return{id:Hke,diagram:t}},"loader"),ETt={id:Hke,detector:_Tt,loader:TTt},ATt=ETt,Uke="sequence",PTt=F(t=>/^\s*sequenceDiagram/.test(t),"detector"),OTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./sequenceDiagram-X6HHIX6F-B33x9hb0.js");return{diagram:e}},__vite__mapDeps([26,7,14]));return{id:Uke,diagram:t}},"loader"),ITt={id:Uke,detector:PTt,loader:OTt},DTt=ITt,Vke="class",MTt=F((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),NTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./classDiagram-GIVACNV2-mEn_xmMW.js");return{diagram:e}},__vite__mapDeps([27,28,9]));return{id:Vke,diagram:t}},"loader"),RTt={id:Vke,detector:MTt,loader:NTt},LTt=RTt,Wke="classDiagram",BTt=F((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),FTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./classDiagram-v2-COTLJTTW-mEn_xmMW.js");return{diagram:e}},__vite__mapDeps([29,28,9]));return{id:Wke,diagram:t}},"loader"),$Tt={id:Wke,detector:BTt,loader:FTt},jTt=$Tt,qke="state",zTt=F((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),HTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./stateDiagram-DGXRK772-DxooAkAU.js");return{diagram:e}},__vite__mapDeps([30,31,9,1,2,3,4]));return{id:qke,diagram:t}},"loader"),UTt={id:qke,detector:zTt,loader:HTt},VTt=UTt,Gke="stateDiagram",WTt=F((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),qTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./stateDiagram-v2-YXO3MK2T-oh0tNk6z.js");return{diagram:e}},__vite__mapDeps([32,31,9]));return{id:Gke,diagram:t}},"loader"),GTt={id:Gke,detector:WTt,loader:qTt},KTt=GTt,Kke="journey",YTt=F(t=>/^\s*journey/.test(t),"detector"),QTt=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./journeyDiagram-U35MCT3I-CTwuH5oV.js");return{diagram:e}},__vite__mapDeps([33,7,21]));return{id:Kke,diagram:t}},"loader"),XTt={id:Kke,detector:YTt,loader:QTt},JTt=XTt,ZTt=F((t,e,n)=>{pt.debug(`rendering svg for syntax error 897`);const r=k_t(e),i=r.append("g");r.attr("viewBox","0 0 2412 512"),Hxe(r,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
897164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),Yke={draw:ZTt},e5t=Yke,t5t={db:{},renderer:Yke,parser:{parse:F(()=>{},"parse")}},n5t=t5t,Qke="flowchart-elk",r5t=F((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),i5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./flowDiagram-4HSFHLVR-LCWCJ1jf.js");return{diagram:e}},__vite__mapDeps([8,9,10]));return{id:Qke,diagram:t}},"loader"),s5t={id:Qke,detector:r5t,loader:i5t},o5t=s5t,Xke="timeline",a5t=F(t=>/^\s*timeline/.test(t),"detector"),l5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./timeline-definition-BDJGKUSR-CtOKFDuA.js");return{diagram:e}},__vite__mapDeps([34,21]));return{id:Xke,diagram:t}},"loader"),c5t={id:Xke,detector:a5t,loader:l5t},u5t=c5t,Jke="mindmap",h5t=F(t=>/^\s*mindmap/.test(t),"detector"),d5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./mindmap-definition-ALO5MXBD-VPwlpF5V.js");return{diagram:e}},__vite__mapDeps([35,36]));return{id:Jke,diagram:t}},"loader"),f5t={id:Jke,detector:h5t,loader:d5t},p5t=f5t,Zke="kanban",m5t=F(t=>/^\s*kanban/.test(t),"detector"),g5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./kanban-definition-NDS4AKOZ-CDdn315C.js");return{diagram:e}},[]);return{id:Zke,diagram:t}},"loader"),y5t={id:Zke,detector:m5t,loader:g5t},b5t=y5t,eCe="sankey",v5t=F(t=>/^\s*sankey-beta/.test(t),"detector"),x5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./sankeyDiagram-QLVOVGJD-BoKCXolh.js");return{diagram:e}},__vite__mapDeps([37,22,18]));return{id:eCe,diagram:t}},"loader"),w5t={id:eCe,detector:v5t,loader:x5t},S5t=w5t,tCe="packet",k5t=F(t=>/^\s*packet-beta/.test(t),"detector"),C5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-VNBRO52H-CQ83BhK5.js");return{diagram:e}},__vite__mapDeps([38,13,15,2,4,5]));return{id:tCe,diagram:t}},"loader"),_5t={id:tCe,detector:k5t,loader:C5t},nCe="radar",T5t=F(t=>/^\s*radar-beta/.test(t),"detector"),E5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-SSKATNLV-13FRk0Nc.js");return{diagram:e}},__vite__mapDeps([39,13,15,2,4,5]));return{id:nCe,diagram:t}},"loader"),A5t={id:nCe,detector:T5t,loader:E5t},rCe="block",P5t=F(t=>/^\s*block-beta/.test(t),"detector"),O5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./blockDiagram-JOT3LUYC-BATRuxW_.js");return{diagram:e}},__vite__mapDeps([40,5,2,1,10]));return{id:rCe,diagram:t}},"loader"),I5t={id:rCe,detector:P5t,loader:O5t},D5t=I5t,iCe="architecture",M5t=F(t=>/^\s*architecture/.test(t),"detector"),N5t=F(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./architectureDiagram-IEHRJDOE-DNR8Uw6F.js");return{diagram:e}},__vite__mapDeps([41,13,14,15,2,4,5,36]));return{id:iCe,diagram:t}},"loader"),R5t={id:iCe,detector:M5t,loader:N5t},L5t=R5t,dse=!1,NI=F(()=>{dse||(dse=!0,L7("error",n5t,t=>t.toLowerCase().trim()==="error"),L7("---",{db:{clear:F(()=>{},"clear")},styles:{},renderer:{draw:F(()=>{},"draw")},parser:{parse:F(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:F(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Pxe(V_t,b5t,jTt,LTt,nTt,uTt,fTt,gTt,ATt,DTt,o5t,J_t,K_t,p5t,u5t,oTt,KTt,VTt,JTt,xTt,S5t,_5t,CTt,D5t,L5t,A5t))},"addDiagrams"),B5t=F(async()=>{pt.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(tw).map(async([n,{detector:r,loader:i}])=>{if(i)try{D$(n)}catch{try{const{diagram:s,id:o}=await i();L7(o,s,r)}catch(s){throw pt.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete tw[n],s}}}))).filter(n=>n.status==="rejected");if(e.length>0){pt.error(`Failed to load ${e.length} external diagrams`);for(const n of e)pt.error(n);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),F5t="graphics-document document";function sCe(t,e){t.attr("role",F5t),e!==""&&t.attr("aria-roledescription",e)}F(sCe,"setA11yDiagramInfo");function oCe(t,e,n,r){if(t.insert!==void 0){if(n){const i=`chart
897-desc-${r}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(n)}if(e){const i=`chart-title-${r}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}F(oCe,"addSVGa11yTitleDescription");var fj=class aCe{constructor(e,n,r,i,s){this.type=e,this.text=n,this.db=r,this.parser=i,this.renderer=s}static{F(this,"Diagram")}static async fromText(e,n={}){const r=Dc(),i=zW(e,r);e=vkt(e)+` 898`;try{D$(i)}catch{const c=Zvt(i);if(!c)throw new Axe(`Diagram ${i} not found.`);const{id:u,diagram:h}=await c();L7(u,h)}const{db:s,parser:o,renderer:a,init:l}=D$(i);return o.parser&&(o.parser.yy=s),s.clear?.(),l?.(r),n.title&&s.setDiagramTitle?.(n.title),await o.parse(e),new aCe(i,e,s,o,a)}async render(e,n){await this.renderer.draw(this.text,e,n,this)}getParser(){return this.parser}getType(){return this.type}},fse=[],$5t=F(()=>{fse.forEach(t=>{t()}),fse=[]},"attachFunctions"),j5t=F(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function lCe(t){const e=t.match(Exe);if(!e)return{text:t,metadata:{}};let n=Jxt(e[1],{schema:Xxt})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:t.slice(e[0].length),metadata:r}}F(lCe,"extractFrontMatter");var z5t=F(t=>t.replace(/\r\n?/g,` 899`).replace(/<(\w+)([^>]*)>/g,(e,n,r)=>"<"+n+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),H5t=F(t=>{const{text:e,metadata:n}=lCe(t),{displayMode:r,title:i,config:s={}}=n;return r&&(s.gantt||(s.gantt={}),s.gantt.displayMode=r),{title:i,config:s,text:e}},"processFrontmatter"),U5t=F(t=>{const e=Nf.detectInit(t)??{},n=Nf.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some(({type:r})=>r==="wrap"):n?.type==="wrap"&&(e.wrap=!0),{text:okt(t),directive:e}},"processDirectives");function Lq(t){const e=z5t(t),n=H5t(e),r=U5t(n.text),i=vq(n.config,r.directive);return t=j5t(r.text),{code:t,title:n.title,config:i}}F(Lq,"preprocessDiagram");function cCe(t){const e=new TextEncoder().encode(t),n=Array.from(e,r=>String.fromCodePoint(r)).join("");return btoa(n)}F(cCe,"toBase64");var V5t=5e4,W5t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",q5t="sandbox",G5t="loose",K5t="http://www.w3.org/2000/svg",Y5t="http://www.w3.org/1999/xlink",Q5t="http://www.w3.org/1999/xhtml",X5t="100%",J5t="100%",Z5t="border:0;margin:0;",eEt="margin:0",tEt="allow-top-navigation-by-user-activation allow-popups",nEt='The "iframe" tag is not supported by your browser.',rEt=["foreignobject"],iEt=["dominant-baseline"];function Bq(t){const e=Lq(t);return N7(),m2t(e.config??{}),e}F(Bq,"processAndSetConfigs");async function uCe(t,e){NI();try{const{code:n,config:r}=Bq(t);return{diagramType:(await dCe(n)).type,config:r}}catch(n){if(e?.suppressErrors)return!1;throw n}}F(uCe,"parse");var pse=F((t,e,n=[])=>` 900.${t} ${e} { ${n.join(" !important; ")} !important; }`,"cssImportantStyles"),sEt=F((t,e=new Map)=>{let n="";if(t.themeCSS!==void 0&&(n+=` 901${t.themeCSS}`),t.fontFamily!==void 0&&(n+=` 902:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=` 903:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const o=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(a=>{Wte(a.styles)||o.forEach(l=>{n+=pse(a.id,l,a.styles)}
vendor: 4,576 bytes, lines 903-905
903),Wte(a.textStyles)||(n+=pse(a.id,"tspan",(a?.textStyles||[]).map(l=>l.replace("color","fill"))))})}return n},"createCssStyles"),oEt=F((t,e,n,r)=>{const i=sEt(t,n),s=N2t(e,i,t.themeVariables);return dj(F_t(`${r}{${s}}`),j_t)},"createUserStyles"),aEt=F((t="",e,n)=>{let r=t;return!n&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=$b(r),r=r.replace(/<br>/g,"<br/>"),r},"cleanUpSvgCode"),lEt=F((t="",e)=>{const n=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":J5t,r=cCe(`<body style="${eEt}">${t}</body>`);return`<iframe style="width:${X5t};height:${n};${Z5t}" src="data:text/html;charset=UTF-8;base64,${r}" sandbox="${tEt}"> 904 ${nEt} 905</iframe>`},"putIntoIFrame"),mse=F((t,e,n,r,i)=>{const s=t.append("div");s.attr("id",n),r&&s.attr("style",r);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",K5t);return i&&o.attr("xmlns:xlink",i),o.append("g"),t},"appendDivSvgG");function pj(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}F(pj,"sandboxedIframe");var cEt=F((t,e,n,r)=>{t.getElementById(e)?.remove(),t.getElementById(n)?.remove(),t.getElementById(r)?.remove()},"removeExistingElements"),uEt=F(async function(t,e,n){NI();const r=Bq(e);e=r.code;const i=Dc();pt.debug(i),e.length>(i?.maxTextSize??V5t)&&(e=W5t);const s="#"+t,o="i"+t,a="#"+o,l="d"+t,c="#"+l,u=F(()=>{const oe=pi(d?a:c).node();oe&&"remove"in oe&&oe.remove()},"removeTempElements");let h=pi("body");const d=i.securityLevel===q5t,p=i.securityLevel===G5t,g=i.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),d){const Z=pj(pi(n),o);h=pi(Z.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=pi(n);mse(h,t,l,`font-family: ${g}`,Y5t)}else{if(cEt(document,t,l,o),d){const Z=pj(pi("body"),o);h=pi(Z.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=pi("body");mse(h,t,l)}let y,b;try{y=await fj.fromText(e,{title:r.title})}catch(Z){if(i.suppressErrorRendering)throw u(),Z;y=await fj.fromText("error"),b=Z}const w=h.select(c).node(),S=y.type,T=w.firstChild,D=T.firstChild,E=y.renderer.getClasses?.(e,y),O=oEt(i,S,E,s),P=document.createElement("style");P.innerHTML=O,T.insertBefore(P,D);try{await y.renderer.draw(e,t,cse.version,y)}catch(Z){throw i.suppressErrorRendering?u():e5t.draw(e,t,cse.version),Z}const $=h.select(`${c} svg`),W=y.db.getAccTitle?.(),H=y.db.getAccDescription?.();fCe(S,$,W,H),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Q5t);let K=h.select(c).node().innerHTML;if(pt.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),K=aEt(K,d,ca(i.arrowMarkerAbsolute)),d){const Z=h.select(c+" svg").node();K=lEt(K,Z)}else p||(K=ew.sanitize(K,{ADD_TAGS:rEt,ADD_ATTR:iEt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if($5t(),b)throw b;return u(),{diagramType:S,svg:K,bindFunctions:y.db.bindFunctions}},"render");function hCe(t={}){const e=Wa({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),f2t(e),e?.theme&&e.theme in $0?e.themeVariables=$0[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=$0.default.getThemeVariables(e.themeVariables));const n=typeof e=="object"?d2t(e):Rxe();jW(n.logLevel),NI()}F(hCe,"initialize");var dCe=F((t,e={})=>{const{code:n}=Lq(t);return fj.fromText(n,e)},"getDiagramFromText");function fCe(t,e,n,r){sCe(e,t),oCe(e,n,r,e.attr("id"))}F(fCe,"addA11yInfo");var Tb=Object.freeze({render:uEt,parse:uCe,getDiagramFromText:dCe,initialize:hCe,getConfig:Dc,setConfig:Lxe,getSiteConfig:Rxe,updateSiteConfig:p2t,reset:F(()=>{N7()},"reset"),globalReset:F(()=>{N7(nw)},"globalReset"),defaultConfig:nw});jW(Dc().logLevel);N7(Dc());var hEt=F((t,e,n)=>{pt.warn(t),bq(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),pCe=F(async function(t={querySelector:".mermaid"}){try{await dEt(t)}catch(e){if(bq(e)&&pt.error(e.str),rm.parseError&&rm.parseError(e),!t.suppressErrors)throw pt.error("Use the suppressErrors option to suppress these errors"),e}},"run"),dEt=F(async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const r=Tb.getConfig();pt.debug(`${t?"":"No "}Callback function found`);let i;if(n)i=n;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");pt.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(pt.debug("Start On Load: "+r?.startOnLoad),Tb.updateSiteConfig({startOnLoad:r?.startOnLoad}
905));const s=new Nf.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const l of Array.from(i)){if(pt.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=l.innerHTML,o=z3e(Nf.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Nf.detectInit(o);u&&pt.debug("Detected early reinit: ",u);try{const{svg:h,bindFunctions:d}=await bCe(c,o,l);l.innerHTML=h,t&&await t(c),d&&d(l)}catch(h){hEt(h,a,rm.parseError)}}if(a.length>0)throw a[0]},"runThrowsErrors"),mCe=F(function(t){Tb.initialize(t)},"initialize"),fEt=F(async function(t,e,n){pt.warn("mermaid.init is deprecated. Please use run instead."),t&&mCe(t);const r={postRenderCallback:n,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await pCe(r)},"init"),pEt=F(async(t,{lazyLoad:e=!0}={})=>{NI(),Pxe(...t),e===!1&&await B5t()},"registerExternalDiagrams"),gCe=F(function(){if(rm.startOnLoad){const{startOnLoad:t}=Tb.getConfig();t&&rm.run().catch(e=>pt.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",gCe,!1);var mEt=F(function(t){rm.parseError=t},"setParseErrorHandler"),cP=[],pR=!1,yCe=F(async()=>{if(!pR){for(pR=!0;cP.length>0;){const t=cP.shift();if(t)try{await t()}catch(e){pt.error("Error executing queue",e)}}pR=!1}},"executeQueue"),gEt=F(async(t,e)=>new Promise((n,r)=>{const i=F(()=>new Promise((s,o)=>{Tb.parse(t,e).then(a=>{s(a),n(a)},a=>{pt.error("Error parsing",a),rm.parseError?.(a),o(a),r(a)})}),"performCall");cP.push(i),yCe().catch(r)}),"parse"),bCe=F((t,e,n)=>new Promise((r,i)=>{const s=F(()=>new Promise((o,a)=>{Tb.render(t,e,n).then(l=>{o(l),r(l)},l=>{pt.error("Error parsing",l),rm.parseError?.(l),a(l),i(l)})}),"performCall");cP.push(s),yCe().catch(i)}),"render"),rm={startOnLoad:!0,mermaidAPI:Tb,parse:gEt,render:bCe,init:fEt,run:pCe,registerExternalDiagrams:pEt,registerLayoutLoaders:_ke,initialize:mCe,parseError:void 0,contentLoaded:gCe,setParseErrorHandler:mEt,detectType:zW,registerIconPacks:wwt},vCe=rm;/*! Check if previously processed *//*! 906 * Wait for document loaded before starting the execution 907 */function uP(t){return yn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"},child:[]}]})(t)}var yEt=_.useLayoutEffect,bEt=function(e){var n=ii.useRef(e);return yEt(function(){n.current=e}),n},gse=function(e,n){if(typeof e=="function"){e(n);return}e.current=n},vEt=function(e,n){var r=ii.useRef();return ii.useCallback(function(i){e.current=i,r.current&&gse(r.current,null),r.current=n,n&&gse(n,i)},[n])},yse={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},xEt=function(e){Object.keys(yse).forEach(function(n){e.style.setProperty(n,yse[n],"important")})},bse=xEt,Al=null,vse=function(e,n){var r=e.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function wEt(t,e,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Al||(Al=document.createElement("textarea"),Al.setAttribute("tabindex","-1"),Al.setAttribute("aria-hidden","true"),bse(Al)),Al.parentNode===null&&document.body.appendChild(Al);var i=t.paddingSize,s=t.borderSize,o=t.sizingStyle,a=o.boxSizing;Object.keys(o).forEach(function(d){var p=d;Al.style[p]=o[p]}),bse(Al),Al.value=e;var l=vse(Al,t);Al.value=e,l=vse(Al,t),Al.value="x";var c=Al.scrollHeight-i,u=c*n;a==="border-box"&&(u=u+i+s),l=Math.max(u,l);var h=c*r;return a==="border-box"&&(h=h+i+s),l=Math.min(h,l),[l,c]}var xse=function(){},SEt=function(e,n){return e.reduce(function(r,i){return r[i]=n[i],r},{})},kEt=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],CEt=!!document.documentElement.currentStyle,_Et=function(e){var n=window.getComputedStyle(e);
907if(n===null)return null;var r=SEt(kEt,n),i=r.boxSizing;if(i==="")return null;CEt&&i==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var s=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:s,borderSize:o}},TEt=_Et;function Fq(t,e,n){var r=bEt(n);_.useLayoutEffect(function(){var i=function(o){return r.current(o)};if(t)return t.addEventListener(e,i),function(){return t.removeEventListener(e,i)}},[])}var EEt=function(e,n){Fq(document.body,"reset",function(r){e.current.form===r.target&&n(r)})},AEt=function(e){Fq(window,"resize",e)},PEt=function(e){Fq(document.fonts,"loadingdone",e)},OEt=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],IEt=function(e,n){var r=e.cacheMeasurements,i=e.maxRows,s=e.minRows,o=e.onChange,a=o===void 0?xse:o,l=e.onHeightChange,c=l===void 0?xse:l,u=rO(e,OEt),h=u.value!==void 0,d=_.useRef(null),p=vEt(d,n),g=_.useRef(0),y=_.useRef(),b=function(){var T=d.current,D=r&&y.current?y.current:TEt(T);if(D){y.current=D;var E=wEt(D,T.value||T.placeholder||"x",s,i),O=E[0],P=E[1];g.current!==O&&(g.current=O,T.style.setProperty("height",O+"px","important"),c(O,{rowHeight:P}))}},w=function(T){h||b(),a(T)};return _.useLayoutEffect(b),EEt(d,function(){if(!h){var S=d.current.value;requestAnimationFrame(function(){var T=d.current;T&&S!==T.value&&b()})}}),AEt(b),PEt(b),_.createElement("textarea",Dd({},u,{onChange:w,ref:p}))},xCe=_.forwardRef(IEt);const $q=t=>!!t&&t[0]==="o",mj=G0.unstable_batchedUpdates,wC=(t,e)=>t===!0||!!(t&&t[e]),Ou=(t,e)=>typeof t=="function"?t(e):t,DEt="_szhsinMenu",MEt=t=>t[DEt],j_=(t,e)=>(e&&Object.keys(e).forEach(n=>{const r=t[n],i=e[n];typeof i=="function"&&r?t[n]=(...s)=>{i(...s),r(...s)}:t[n]=i}),t),NEt=t=>{if(typeof t!="string")return{top:0,right:0,bottom:0,left:0};const e=t.trim().split(/\s+/,4).map(parseFloat),n=isNaN(e[0])?0:e[0],r=isNaN(e[1])?n:e[1];return{top:n,right:r,bottom:isNaN(e[2])?n:e[2],left:isNaN(e[3])?r:e[3]}},mR=t=>{for(;t;){if(t=t.parentNode,!t||t===document.body||!t.parentNode)return;const{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/auto|scroll|overlay|hidden/.test(e+r+n))return t}};function jq(t,e){return{"aria-disabled":t||void 0,tabIndex:e?0:-1}}function wse(t,e){for(let n=0;n<t.length;n++)if(t[n]===e)return n;return-1}const im=({block:t,element:e,modifiers:n,className:r})=>_.useMemo(()=>{const i=e?`${t}__${e}`:t;let s=i;n&&Object.keys(n).forEach(a=>{const l=n[a];l&&(s+=` ${i}--${l===!0?a:`${a}-${l}`}`)});let o=typeof r=="function"?r(n):r;return typeof o=="string"&&(o=o.trim(),o&&(s+=` ${o}`)),s},[t,e,n,r]),REt="szh-menu-container",z0="szh-menu",LEt="arrow",wCe="item",BEt="divider",FEt="header",$Et="group",jEt="submenu",SCe=_.createContext(),zq=_.createContext({}),hP=_.createContext({}),kCe=_.createContext({}),zEt=_.createContext({}),RI=_.createContext({}),cl=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),vo=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),SC=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),px=Object.freeze({FIRST:"first",LAST:"last"}),HEt=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Sse="absolute",Hq="none",CCe="menuitem",gj={preventScroll:!0},UEt=({className:t,containerRef:e,containerProps:n,children:r,isOpen:i,theming:s,transition:o,onClose:a})=>{const l=wC(o,"item"),c=({key:h})=>{switch(h){case cl.ESC:Ou(a,{key:h,reason:SC.CANCEL});break}},u=h=>{i&&!h.currentTarget.contains(h.relatedTarget)&&Ou(a,{reason:SC.BLUR})};return x.jsx("div",{...j_({onKeyDown:c,onBlur:u},n),className:im({block:REt,modifiers:_.useMemo(()=>({theme:s,itemTransition:l}),[s,l]),className:t}),style:{position:"absolute",...n?.style},ref:e,children:r})},VEt=()=>{let t,e=0;return{toggle:n=>{n?e++:e--,e=Math.max(e,0)},on:(n,r,i)=>{e?t||(t=setTimeout(()=>{t=0,r()},n)):i?.()},off:()=>{t&&(clearTimeout(t),t=0)}}},WEt=t=>{const[e,n]=_.useState(),i=_.useRef({items:[],hoverIndex:-1,sorted:!1}).current,s=_.useCallback((a,l)=>{const{items:c}=i;if(!a)i.items=[];else if(l)c.push(a);else{const u=c.indexOf(a);u>-1&&(c.splice(u,1),a.contains(document.activeElement)&&(t.current.focus(gj),n()))}i.hoverIndex=-1,i.sorted=!1},[i,t]),o=_.useCallback((a,l,c)=>{const{items:u,hoverIndex:h}=i,d=()=>
907{if(i.sorted)return;const y=t.current.querySelectorAll(".szh-menu__item");u.sort((b,w)=>wse(y,b)-wse(y,w)),i.sorted=!0};let p=-1,g;switch(a){case vo.RESET:break;case vo.SET:g=l;break;case vo.UNSET:g=y=>y===l?void 0:y;break;case vo.FIRST:d(),p=0,g=u[p];break;case vo.LAST:d(),p=u.length-1,g=u[p];break;case vo.SET_INDEX:d(),p=c,g=u[p];break;case vo.INCREASE:d(),p=h,p<0&&(p=u.indexOf(l)),p++,p>=u.length&&(p=0),g=u[p];break;case vo.DECREASE:d(),p=h,p<0&&(p=u.indexOf(l)),p--,p<0&&(p=u.length-1),g=u[p];break}g||(p=-1),n(g),i.hoverIndex=p},[t,i]);return{hoverItem:e,dispatch:o,updateItems:s}},kse=(t,e)=>Math.round(t)===e?t:e,_Ce=t=>{const e=t.getBoundingClientRect();return e.width=kse(e.width,t.offsetWidth),e.height=kse(e.height,t.offsetHeight),e},qEt=(t,e,n,r)=>{const i=_Ce(e.current),s=t.current.getBoundingClientRect(),o=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),a=NEt(r),l=g=>g+s.left-o.left-a.left,c=g=>g+s.left+i.width-o.right+a.right,u=g=>g+s.top-o.top-a.top,h=g=>g+s.top+i.height-o.bottom+a.bottom;return{menuRect:i,containerRect:s,getLeftOverflow:l,getRightOverflow:c,getTopOverflow:u,getBottomOverflow:h,confineHorizontally:g=>{let y=l(g);if(y<0)g-=y;else{const b=c(g);b>0&&(g-=b,y=l(g),y<0&&(g-=y))}return g},confineVertically:g=>{let y=u(g);if(y<0)g-=y;else{const b=h(g);b>0&&(g-=b,y=u(g),y<0&&(g-=y))}return g}}},GEt=({arrowRef:t,menuY:e,anchorRect:n,containerRect:r,menuRect:i})=>{let s=n.top-r.top-e+n.height/2;const o=t.current.offsetHeight*1.25;return s=Math.max(o,s),s=Math.min(s,i.height-o),s},KEt=({anchorRect:t,containerRect:e,menuRect:n,placeLeftorRightY:r,placeLeftX:i,placeRightX:s,getLeftOverflow:o,getRightOverflow:a,confineHorizontally:l,confineVertically:c,arrowRef:u,arrow:h,direction:d,position:p})=>{let g=d,y=r;p!=="initial"&&(y=c(y),p==="anchor"&&(y=Math.min(y,t.bottom-e.top),y=Math.max(y,t.top-e.top-n.height)));let b,w,S;return g==="left"?(b=i,p!=="initial"&&(w=o(b),w<0&&(S=a(s),(S<=0||-w>S)&&(b=s,g="right")))):(b=s,p!=="initial"&&(S=a(b),S>0&&(w=o(i),(w>=0||-w<S)&&(b=i,g="left")))),p==="auto"&&(b=l(b)),{arrowY:h?GEt({menuY:y,arrowRef:u,anchorRect:t,containerRect:e,menuRect:n}):void 0,x:b,y,computedDirection:g}},YEt=({arrowRef:t,menuX:e,anchorRect:n,containerRect:r,menuRect:i})=>{let s=n.left-r.left-e+n.width/2;const o=t.current.offsetWidth*1.25;return s=Math.max(o,s),s=Math.min(s,i.width-o),s},QEt=({anchorRect:t,containerRect:e,menuRect:n,placeToporBottomX:r,placeTopY:i,placeBottomY:s,getTopOverflow:o,getBottomOverflow:a,confineHorizontally:l,confineVertically:c,arrowRef:u,arrow:h,direction:d,position:p})=>{let g=d==="top"?"top":"bottom",y=r;p!=="initial"&&(y=l(y),p==="anchor"&&(y=Math.min(y,t.right-e.left),y=Math.max(y,t.left-e.left-n.width)));let b,w,S;return g==="top"?(b=i,p!=="initial"&&(w=o(b),w<0&&(S=a(s),(S<=0||-w>S)&&(b=s,g="bottom")))):(b=s,p!=="initial"&&(S=a(b),S>0&&(w=o(i),(w>=0||-w<S)&&(b=i,g="top")))),p==="auto"&&(b=c(b)),{arrowX:h?YEt({menuX:y,arrowRef:u,anchorRect:t,containerRect:e,menuRect:n}):void 0,x:y,y:b,computedDirection:g}},XEt=({arrow:t,align:e,direction:n,gap:r,shift:i,position:s,anchorRect:o,arrowRef:a,positionHelpers:l})=>{const{menuRect:c,containerRect:u}=l,h=n==="left"||n==="right";let d=h?r:i,p=h?i:r;if(t){const E=a.current;h?d+=E.offsetWidth:p+=E.offsetHeight}const g=o.left-u.left-c.width-d,y=o.right-u.left+d,b=o.top-u.top-c.height-p,w=o.bottom-u.top+p;let S,T;e==="end"?(S=o.right-u.left-c.width,T=o.bottom-u.top-c.height):e==="center"?(S=o.left-u.left-(c.width-o.width)/2,T=o.top-u.top-(c.height-o.height)/2):(S=o.left-u.left,T=o.top-u.top),S+=d,T+=p;const D={...l,anchorRect:o,placeLeftX:g,placeRightX:y,placeLeftorRightY:T,placeTopY:b,placeBottomY:w,placeToporBottomX:S,arrowRef:a,arrow:t,direction:n,position:s};switch(n){case"left":case"right":return KEt(D);case"top":case"bottom":default:return QEt(D)}},mx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_.useLayoutEffect:_.useEffect;function Cse(t,e){typeof t=="function"?t(e):t.current=e}const z_=(t,e)=>_.useMemo(()=>t?e?n=>{Cse(t,n),Cse(e,n)}:t:e,[t,e]),_se=-9999,TCe=({ariaLabel:t,menuClassName:e,menuStyle:n,arrow:r,arrowProps:i={},anchorPoint:s,anchorRef:o,containerRef:a,containerProps:l,externalRef:c,parentScrollingRef:u,align:h="start",direction:d="bottom",position:p="auto",overflow:g="visible",setDownOverflow:y,repositionFlag:b,captureFocus:w=!0,state:S,endTransition:T,isDisabled:D,menuItemFocus:E,gap:O=0,shift:P=0,children:$,onClose:W,focusProps:H,...
907K})=>{const[Z,oe]=_.useState({x:_se,y:_se}),[te,re]=_.useState({}),[Y,z]=_.useState(),[U,G]=_.useState(d),[B]=_.useState(VEt),[Q,ie]=_.useReducer(xn=>xn+1,1),{transition:q,boundingBoxRef:fe,boundingBoxPadding:ke,rootMenuRef:Be,rootAnchorRef:Qe,scrollNodesRef:ft,reposition:Ne,viewScroll:rt,submenuCloseDelay:Mt}=_.useContext(RI),{submenuCtx:it,reposSubmenu:Rt=b}=_.useContext(hP),xt=_.useRef(),Nn=_.useRef(),Hn=_.useRef(!1),{hoverItem:$n,dispatch:Wn,updateItems:nr}=WEt(xt),Cn=$q(S),Nr=wC(q,"open"),ki=wC(q,"close"),yr=ft.current,mt=xn=>{switch(xn.key){case cl.HOME:Wn(vo.FIRST);break;case cl.END:Wn(vo.LAST);break;case cl.UP:Wn(vo.DECREASE,$n);break;case cl.DOWN:Wn(vo.INCREASE,$n);break;case cl.SPACE:xn.target&&xn.target.className.indexOf(z0)!==-1&&xn.preventDefault();return;default:return}xn.preventDefault(),xn.stopPropagation()},zt=()=>{S==="closing"&&z(),Ou(T)},ze=xn=>{xn.stopPropagation(),B.on(Mt,()=>{Wn(vo.RESET),xt.current.focus(gj)})},tt=xn=>{xn.target===xn.currentTarget&&B.off()},wt=_.useCallback(xn=>{const ut=o?o.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!ut)return;yr.menu||(yr.menu=(fe?fe.current:mR(Be.current))||window);const kr=qEt(a,xt,yr.menu,ke);let{arrowX:di,arrowY:Kr,x:Ao,y:oi,computedDirection:Po}=XEt({arrow:r,align:h,direction:d,gap:O,shift:P,position:p,anchorRect:ut,arrowRef:Nn,positionHelpers:kr});const{menuRect:Yo}=kr,is=Yo.height;if(!xn&&g!=="visible"){const{getTopOverflow:Ii,getBottomOverflow:Oo}=kr;let xe,Se;const Fe=Oo(oi);if(Fe>0)xe=is-Fe,Se=Fe;else{const at=Ii(oi);at<0&&(xe=is+at,Se=0-at,xe>=0&&(oi-=at))}xe>=0&&z({height:xe,overflowAmt:Se})}r&&re({x:di,y:Kr}),oe({x:Ao,y:oi}),G(Po)},[r,h,ke,d,O,P,p,g,s,o,a,fe,Be,yr]);mx(()=>{Cn&&(wt(),Hn.current&&ie()),Hn.current=Cn},[Cn,wt,Rt]),mx(()=>{Y&&!y&&(xt.current.scrollTop=0)},[Y,y]),mx(()=>nr,[nr]),_.useEffect(()=>{let{menu:xn}=yr;if(!Cn||!xn)return;if(xn=xn.addEventListener?xn:window,!yr.anchors){yr.anchors=[];let Kr=mR(Qe&&Qe.current);for(;Kr&&Kr!==xn;)yr.anchors.push(Kr),Kr=mR(Kr)}let ut=rt;if(yr.anchors.length&&ut==="initial"&&(ut="auto"),ut==="initial")return;const kr=()=>{ut==="auto"?mj(()=>wt(!0)):Ou(W,{reason:SC.SCROLL})},di=yr.anchors.concat(rt!=="initial"?xn:[]);return di.forEach(Kr=>Kr.addEventListener("scroll",kr)),()=>di.forEach(Kr=>Kr.removeEventListener("scroll",kr))},[Qe,yr,Cn,W,rt,wt]);const tn=!!Y&&Y.overflowAmt>0;_.useEffect(()=>{if(tn||!Cn||!u)return;const xn=()=>mj(wt),ut=u.current;return ut.addEventListener("scroll",xn),()=>ut.removeEventListener("scroll",xn)},[Cn,tn,u,wt]),_.useEffect(()=>{if(!Cn||typeof ResizeObserver!="function"||Ne==="initial")return;const xn=[],ut=new ResizeObserver(Kr=>Kr.forEach(({target:Ao})=>{xn.indexOf(Ao)<0?xn.push(Ao):G0.flushSync(()=>{wt(),ie()})})),kr={box:"border-box"};ut.observe(xt.current,kr);const di=o?.current;return di&&ut.observe(di,kr),()=>ut.disconnect()},[Cn,Ne,o,wt]),_.useEffect(()=>{if(!Cn){Wn(vo.RESET),ki||z();return}const{position:xn,alwaysUpdate:ut}=E||{},kr=()=>{xn===px.FIRST?Wn(vo.FIRST):xn===px.LAST?Wn(vo.LAST):xn>=-1&&Wn(vo.SET_INDEX,void 0,xn)};if(ut)kr();else if(w){const di=setTimeout(()=>{const Kr=xt.current;Kr&&!Kr.contains(document.activeElement)&&(Kr.focus(gj),kr())},Nr?170:100);return()=>clearTimeout(di)}},[Cn,Nr,ki,w,E,Wn]);const ot=_.useMemo(()=>({isParentOpen:Cn,submenuCtx:B,dispatch:Wn,updateItems:nr}),[Cn,B,Wn,nr]);let jt,_r;Y&&(y?_r=Y.overflowAmt:jt=Y.height);const fr=_.useMemo(()=>({reposSubmenu:Q,submenuCtx:B,overflow:g,overflowAmt:_r,parentMenuRef:xt,parentDir:U}),[Q,B,g,_r,U]),Rr=jt>=0?{maxHeight:jt,overflow:g}:void 0,Zt=_.useMemo(()=>({state:S,align:h,dir:U}),[S,h,U]),lt=_.useMemo(()=>({dir:U}),[U]),Hr=im({block:z0,element:LEt,modifiers:lt,className:i.className}),Un=x.jsxs("ul",{role:"menu","aria-label":t,...jq(D),...j_({onPointerEnter:it?.off,onPointerMove:ze,onPointerLeave:tt,onKeyDown:mt,onAnimationEnd:zt},K),ref:z_(c,xt),className:im({block:z0,modifiers:Zt,className:e}),style:{...n,...Rr,margin:0,display:S==="closed"?"none":void 0,position:Sse,left:Z.x,top:Z.y},children:[r&&x.jsx("li",{"aria-hidden":!0,...i,className:Hr,style:{display:"block",position:Sse,left:te.x,top:te.y,...i.style},ref:Nn}),x.jsx(hP.Provider,{value:fr,children:x.jsx(zq.Provider,{value:ot,children:x.jsx(SCe.Provider,{value:$n,children:Ou($,Zt)})})})]});return l?x.jsx(UEt,{...l,isOpen:Cn,children:Un}):Un},JEt=_.forwardRef(function({"aria-label":e,className:n,containerProps:r,initialMounted:i,unmountOnClose:s,transition:o,transitionTimeout:a,boundingBoxRef:l,boundingBoxPadding:c,reposition:u="auto",submenuOpenDelay:h=300,submenuCloseDelay:d=150,viewScroll:p="initial",portal:g,theming:y,onItemClick:b,...w},S){const T=_.useRef(null),D=_.useRef({}),{anchorRef:E,state:O,onClose:P}=w,$=_.useMemo(()=>({initialMounted:i,unmountOnClose:s,transition:o,transitionTimeout:a,boundingBoxRef:l,boundingBoxPadding:c,rootMenuRef:T,rootAnchorRef:E,scrollNodesRef:D,reposition:u,viewScroll:p,submenuOpenDelay:h,submenuCloseDelay:d}),[i,s,o,a,E,l,c,u,p,h,d]),W=_.useMemo(()=>({handleClick(K,Z){K.stopPropagation||Ou(b,K);let oe=K.keepOpen;oe===void 0&&(oe=Z&&K.key===cl.SPACE),oe||Ou(P,{value:K.value,key:K.key,reason:SC.CLICK})},handleClose(K){Ou(P,{key:K,reason:SC.CLICK})}}),[b,P]);if(!O)return null;const H=x.jsx(RI.Provider,{value:$,children:x.jsx(kCe.Provider,{value:W,children:x.jsx(TCe,{...w,ariaLabel:e||"Menu",externalRef:S,containerRef:T,containerProps:{className:n,containerRef:T,containerProps:r,theming:y,transition:o,onClose:P}})})});return g===!0&&typeof document<"u"?G0.createPortal(H,document.body):g?g.target?G0.createPortal(H,g.target):g.stablePosition?null:H:H}),yj=0,bj=1,dP=2,fP=3,pP=4,ZEt=5,ECe=6,e6t=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],ACe=t=>({_s:t,status:e6t[t],isEnter:t<fP,isMounted:t!==ECe,isResolved:t===dP||t>pP}),vj=t=>t?ECe:ZEt,t6t=(t,e)=>{switch(t){case bj:case yj:return dP;case pP:case fP:return vj(e)}},n6t=t=>typeof t=="object"?[t.enter,t.exit]:[t,t],r6t=(t,e)=>setTimeout(()=>{isNaN(document.body.offsetTop)||t(e+1)},0),Tse=(t,e,n,r,i)=>{clearTimeout(r.current);const s=ACe(t);e(s),n.current=s,i&&i({current:s})}
907,i6t=({enter:t=!0,exit:e=!0,preEnter:n,preExit:r,timeout:i,initialEntered:s,mountOnEnter:o,unmountOnExit:a,onStateChange:l}={})=>{const[c,u]=_.useState(()=>ACe(s?dP:vj(o))),h=_.useRef(c),d=_.useRef(),[p,g]=n6t(i),y=_.useCallback(()=>{const w=t6t(h.current._s,a);w&&Tse(w,u,h,d,l)},[l,a]),b=_.useCallback(w=>{const S=D=>{switch(Tse(D,u,h,d,l),D){case bj:p>=0&&(d.current=setTimeout(y,p));break;case pP:g>=0&&(d.current=setTimeout(y,g));break;case yj:case fP:d.current=r6t(S,D);break}},T=h.current.isEnter;typeof w!="boolean"&&(w=!T),w?!T&&S(t?n?yj:bj:dP):T&&S(e?r?fP:pP:vj(a))},[y,l,t,e,n,r,p,g,a]);return[c,b,y]},s6t=({initialOpen:t,initialMounted:e,unmountOnClose:n,transition:r,transitionTimeout:i=500,onMenuChange:s}={})=>{const o=wC(r,"open"),a=wC(r,"close"),[{status:l},c,u]=i6t({initialEntered:t,mountOnEnter:!e,unmountOnExit:n,timeout:i,enter:o,exit:a,onStateChange:_.useCallback(({current:{isEnter:h,isResolved:d}})=>{!s||h&&o&&d||!h&&a&&d||s({open:h})},[s,o,a])});return[{state:HEt[l],endTransition:u},c]},PCe=t=>{const[e,n]=s6t(t),[r,i]=_.useState(),s=(o,a)=>{i({position:o,alwaysUpdate:a}),n(!0)};return[{menuItemFocus:r,...e},n,s]},o6t=(t,e)=>{const[n]=_.useState({});return{onMouseDown:()=>{n.v=t&&t!=="closed"},onClick:r=>n.v?n.v=!1:e(!0,r)}},a6t=parseInt(_.version)<19,l6t=_.forwardRef(function({"aria-label":e,captureFocus:n,initialOpen:r,menuButton:i,instanceRef:s,onMenuChange:o,...a},l){const[c,u,h]=PCe({...a,onMenuChange:o}),{state:d}=c,p=$q(d),g=_.useRef(null),y=o6t(d,(E,O)=>h(O.detail?void 0:px.FIRST)),b=_.useCallback(E=>{u(!1),E.key&&g.current.focus()},[u]),w=E=>{switch(E.key){case cl.UP:h(px.LAST);break;case cl.DOWN:h(px.FIRST);break;default:return}E.preventDefault()},S=Ou(i,{open:p});if(!S||!S.type)throw new Error("Menu requires a menuButton prop.");const T={...j_({onKeyDown:w,...y},S.props),ref:z_(a6t?S.ref:S.props.ref,g)};MEt(S.type)==="MenuButton"&&(T.isOpen=p);const D=_.cloneElement(S,T);return _.useImperativeHandle(s,()=>({openMenu:h,closeMenu:()=>u(!1)})),x.jsxs(_.Fragment,{children:[D,x.jsx(JEt,{...a,...c,"aria-label":e||(typeof S.props.children=="string"?S.props.children:"Menu"),anchorRef:g,ref:l,onClose:b})]})}),OCe=(t,e)=>{const n=_.memo(e),r=_.forwardRef((i,s)=>{const o=_.useRef(null);return x.jsx(n,{...i,itemRef:o,externalRef:s,isHovering:_.useContext(SCe)===o.current})});return r.displayName=`WithHovering(${t})`,r},ICe=(t,e,n)=>{mx(()=>{if(t)return;const r=e.current;return n(r,!0),()=>{n(r)}},[t,e,n])},c6t=OCe("SubMenu",function({"aria-label":e,className:n,disabled:r,direction:i,label:s,openTrigger:o,onMenuChange:a,isHovering:l,instanceRef:c,itemRef:u,captureFocus:h,repositionFlag:d,itemProps:p={},...g}){const y=_.useContext(RI),{rootMenuRef:b,submenuOpenDelay:w,submenuCloseDelay:S}=y,{parentMenuRef:T,parentDir:D,overflow:E}=_.useContext(hP),{isParentOpen:O,submenuCtx:P,dispatch:$,updateItems:W}=_.useContext(zq),H=E!=="visible",[K,Z,oe]=PCe({...y,onMenuChange:a}),{state:te}=K,re=!!r,Y=$q(te),z=_.useRef(null),[U]=_.useState({v:0}),G=()=>{P.off(),U.v&&(clearTimeout(U.v),U.v=0)},B=(...Rt)=>{G(),Q(),!re&&oe(...Rt)},Q=()=>!l&&!re&&$(vo.SET,u.current),ie=Rt=>{Q(),o||(U.v=setTimeout(()=>mj(B),Math.max(Rt,0)))},q=Rt=>{re||(Rt.stopPropagation(),!(U.v||Y)&&P.on(S,()=>ie(w-S),()=>ie(w)))},fe=()=>{G(),Y||$(vo.UNSET,u.current)},ke=Rt=>{if(l)switch(Rt.key){case cl.ENTER:Rt.preventDefault();case cl.SPACE:case cl.RIGHT:o!=="none"&&B(px.FIRST)}},Be=Rt=>{let xt=!1;switch(Rt.key){case cl.LEFT:Y&&(u.current.focus(),Z(!1),xt=!0);break;case cl.RIGHT:Y||(xt=!0);break}xt&&(Rt.preventDefault(),Rt.stopPropagation())};ICe(re,u,W),_.useEffect(()=>P.toggle(Y),[P,Y]),_.useEffect(()=>()=>{clearTimeout(U.v),P.toggle(!1)},[U,P]),_.useEffect(()=>{l&&O?u.current.focus():Z(!1)},[l,O,Z,u]),_.useImperativeHandle(c,()=>({openMenu:(...Rt)=>{O&&B(...Rt)},closeMenu:()=>{Y&&(u.current.focus(),Z(!1))}}));const Qe=_.useMemo(()=>({open:Y,hover:l,disabled:re,submenu:!0}),[Y,l,re]),{ref:ft,className:Ne,...rt}=p,Mt=j_({onPointerEnter:P.off,onPointerMove:q,onPointerLeave:fe,onKeyDown:ke,onClick:()=>o!=="none"&&B()},rt),it=()=>{const Rt=x.jsx(TCe,{...g,...K,ariaLabel:e||(typeof s=="string"?s:"Submenu"),anch
907orRef:u,containerRef:H?b:z,direction:i||(D==="right"||D==="left"?D:"right"),parentScrollingRef:H&&T,isDisabled:re}),xt=b.current;return H&&xt?G0.createPortal(Rt,xt):Rt};return x.jsxs("li",{className:im({block:z0,element:jEt,className:n}),style:{position:"relative"},role:Hq,ref:z,onKeyDown:Be,children:[x.jsx("div",{role:CCe,"aria-haspopup":!0,"aria-expanded":Y,...jq(re,l),...Mt,ref:z_(ft,u),className:im({block:z0,element:wCe,modifiers:Qe,className:Ne}),children:_.useMemo(()=>Ou(s,Qe),[s,Qe])}),te&&it()]})}),u6t=(t,e,n,r)=>{const{submenuCloseDelay:i}=_.useContext(RI),{isParentOpen:s,submenuCtx:o,dispatch:a,updateItems:l}=_.useContext(zq),c=()=>{!n&&!r&&a(vo.SET,t.current)},u=()=>{!r&&a(vo.UNSET,t.current)},h=g=>{n&&!g.currentTarget.contains(g.relatedTarget)&&u()},d=g=>{r||(g.stopPropagation(),o.on(i,c,c))},p=(g,y)=>{o.off(),!y&&u()};return ICe(r,t,l),_.useEffect(()=>{n&&s&&e.current&&e.current.focus()},[e,n,s]),{setHover:c,onBlur:h,onPointerMove:d,onPointerLeave:p}},h6t=OCe("MenuItem",function({className:e,value:n,href:r,type:i,checked:s,disabled:o,children:a,onClick:l,isHovering:c,itemRef:u,externalRef:h,...d}){const p=!!o,{setHover:g,...y}=u6t(u,u,c,p),b=_.useContext(kCe),w=_.useContext(zEt),S=i==="radio",T=i==="checkbox",D=!!r&&!p&&!S&&!T,E=S?w.value===n:T?!!s:!1,O=K=>{if(p){K.stopPropagation(),K.preventDefault();return}const Z={value:n,syntheticEvent:K};K.key!==void 0&&(Z.key=K.key),T&&(Z.checked=!E),S&&(Z.name=w.name),Ou(l,Z),S&&Ou(w.onRadioChange,Z),b.handleClick(Z,T||S)},P=K=>{if(c)switch(K.key){case cl.ENTER:K.preventDefault();case cl.SPACE:D?u.current.click():O(K)}},$=_.useMemo(()=>({type:i,disabled:p,hover:c,checked:E,anchor:D}),[i,p,c,E,D]),W=j_({...y,onPointerDown:g,onKeyDown:P,onClick:O},d),H={role:S?"menuitemradio":T?"menuitemcheckbox":CCe,"aria-checked":S||T?E:void 0,...jq(p,c),...W,ref:z_(h,u),className:im({block:z0,element:wCe,modifiers:$,className:e}),children:_.useMemo(()=>Ou(a,$),[a,$])};return D?x.jsx("li",{role:Hq,children:x.jsx("a",{href:r,...H})}):x.jsx("li",{...H})}),d6t=_.memo(_.forwardRef(function({className:e,...n},r){return x.jsx("li",{role:"separator",...n,ref:r,className:im({block:z0,element:BEt,className:e})})})),mP=_.memo(_.forwardRef(function({className:e,...n},r){return x.jsx("li",{role:Hq,...n,ref:r,className:im({block:z0,element:FEt,className:e})})})),gP=_.forwardRef(function({className:e,style:n,takeOverflow:r,...i},s){const o=_.useRef(null),[a,l]=_.useState(),{overflow:c,overflowAmt:u}=_.useContext(hP);return mx(()=>{let h;r&&u>=0&&(h=_Ce(o.current).height-u,h<0&&(h=0)),l(h>=0?{maxHeight:h,overflow:c}:void 0)},[r,c,u]),mx(()=>{a&&(o.current.scrollTop=0)},[a]),x.jsx("div",{...i,ref:z_(s,o),className:im({block:z0,element:$Et,className:e}),style:{...n,...a}})}),LI=t=>{const{colorMode:e}=lm(),n=t.menuButton??x.jsx(Br,{"aria-label":"Menu",icon:x.jsx(blt,{}),variant:"ghost",isDisabled:t.isDisabled});return x.jsx(l6t,{transition:!0,theming:e==="dark"?"dark":void 0,...t,menuButton:n,menuStyle:{minWidth:"225px",...t.menuStyle},children:t.children})},os=({icon:t,iconSpacing:e=2,isDisabled:n,children:r,...i})=>{const s=a1(),o=l=>{if(!l)return;if(!/\w+\.\d+/.test(l))return l;const[c,u]=l.split(".");return s.colors[c]?.[u]},a=l=>x.jsxs(x.Fragment,{children:[t&&x.jsx(Sn,{display:"inline-flex",alignItems:"center",marginRight:e,color:i.color,children:t}),typeof r=="function"?r(l):r]});return x.jsx(h6t,{...i,disabled:!!n,style:{color:o(i.color)},children:a})},DA=({to:t,target:e,children:n,...r})=>x.jsx(bh,{as:Td,to:t,target:e,_hover:{textDecoration:"none"},children:x.jsx(os,{...r,children:n})}),Q4=({color:t,label:e,icon:n,iconSpacing:r,...i})=>{const s=a1(),o=a=>{if(!a)return;if(!/\w+\.\d+/.test(a))return a;const[l,c]=a.split(".");return s.colors[l]?.[c]};return x.jsx(c6t,{itemProps:{style:{color:o(t)}},align:"center",...i,label:x.jsxs(qt,{gap:r??2,alignItems:"center",children:[n,e]}),children:i.children})},H0=()=>{const t=ws("gray.200","gray.600");return x.jsx(Sn,{as:d6t,borderColor:t,my:1})};function DCe({onMetaEnter:t,onEscape:e}){return _.useCallback(n=>{t&&(zO()&&n.metaKey||nXe()&&n.ctrlKey)&&(n.key==="Enter"||n.key==="NumpadEnter")&&t(n),e&&n.key==="Escape"&&e(n)},[t,e])}const MCe=({isOpen:t,onClose:e,imageSrc:n})=>x.jsxs(lb,{isOpen:t,onClose:e,size:"2xl",isCentered:!0,children:[x.jsx(hb,{}),x.jsxs(Ix,{maxW:"90vw",maxHeight:"90vh",children:[x.jsx(ub,{}
vendor: 4,867 bytes, line 907
907),x.jsx(cb,{children:x.jsx(qt,{height:"100%",justifyContent:"center",alignItems:"center",children:x.jsx(bh,{href:n,isExternal:!0,children:x.jsx(VC,{maxWidth:"100%",maxHeight:"70vh",overflow:"auto",src:n,alt:"Selected Image",m:"auto",objectFit:"contain"})})})})]})]});function Ese(t){const e=[],n=String(t||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const o=n.slice(i,r).trim();(o||!s)&&e.push(o),i=r+1,r=n.indexOf(",",i)}return e}function NCe(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const f6t=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,p6t=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,m6t={};function Ase(t,e){return(m6t.jsx?p6t:f6t).test(t)}const g6t=/[ \t\n\f\r]/g;function y6t(t){return typeof t=="object"?t.type==="text"?Pse(t.value):!1:Pse(t)}function Pse(t){return t.replace(g6t,"")===""}let H_=class{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}};H_.prototype.normal={};H_.prototype.property={};H_.prototype.space=void 0;function RCe(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new H_(n,r,e)}function kC(t){return t.toLowerCase()}let Vc=class{constructor(e,n){this.attribute=n,this.property=e}};Vc.prototype.attribute="";Vc.prototype.booleanish=!1;Vc.prototype.boolean=!1;Vc.prototype.commaOrSpaceSeparated=!1;Vc.prototype.commaSeparated=!1;Vc.prototype.defined=!1;Vc.prototype.mustUseProperty=!1;Vc.prototype.number=!1;Vc.prototype.overloadedBoolean=!1;Vc.prototype.property="";Vc.prototype.spaceSeparated=!1;Vc.prototype.space=void 0;let b6t=0;const $r=zb(),Ro=zb(),LCe=zb(),It=zb(),ys=zb(),gx=zb(),fu=zb();function zb(){return 2**++b6t}const xj=Object.freeze(Object.defineProperty({__proto__:null,boolean:$r,booleanish:Ro,commaOrSpaceSeparated:fu,commaSeparated:gx,number:It,overloadedBoolean:LCe,spaceSeparated:ys},Symbol.toStringTag,{value:"Module"})),gR=Object.keys(xj);let Uq=class extends Vc{constructor(e,n,r,i){let s=-1;if(super(e,n),Ose(this,"space",i),typeof r=="number")for(;++s<gR.length;){const o=gR[s];Ose(this,gR[s],(r&xj[o])===xj[o])}}};Uq.prototype.defined=!0;function Ose(t,e,n){n&&(t[e]=n)}function qw(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const s=new Uq(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[kC(r)]=r,n[kC(s.attribute)]=r}return new H_(e,n,t.space)}const BCe=qw({properties:{ariaActiveDescendant:null,ariaAtomic:Ro,ariaAutoComplete:null,ariaBusy:Ro,ariaChecked:Ro,ariaColCount:It,ariaColIndex:It,ariaColSpan:It,ariaControls:ys,ariaCurrent:null,ariaDescribedBy:ys,ariaDetails:null,ariaDisabled:Ro,ariaDropEffect:ys,ariaErrorMessage:null,ariaExpanded:Ro,ariaFlowTo:ys,ariaGrabbed:Ro,ariaHasPopup:null,ariaHidden:Ro,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ys,ariaLevel:It,ariaLive:null,ariaModal:Ro,ariaMultiLine:Ro,ariaMultiSelectable:Ro,ariaOrientation:null,ariaOwns:ys,ariaPlaceholder:null,ariaPosInSet:It,ariaPressed:Ro,ariaReadOnly:Ro,ariaRelevant:null,ariaRequired:Ro,ariaRoleDescription:ys,ariaRowCount:It,ariaRowIndex:It,ariaRowSpan:It,ariaSelected:Ro,ariaSetSize:It,ariaSort:null,ariaValueMax:It,ariaValueMin:It,ariaValueNow:It,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function FCe(t,e){return e in t?t[e]:e}function $Ce(t,e){return FCe(t,e.toLowerCase())}const v6t=qw({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gx,acceptCharset:ys,accessKey:ys,action:null,allow:null,allowFullScreen:$r,allowPaymentRequest:$r,allowUserMedia:$r,alt:null,as:null,async:$r,autoCapitalize:null,autoComplete:ys,autoFocus:$r,autoPlay:$r,blocking:ys,capture:null,charSet:null,checked:$r,cite:null,className:ys,cols:It,colSpan:null,content:null,contentEditable:Ro,controls:$r,controlsList:ys,coords:It|gx,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$r,defer:$r,dir:null,dirName:null,disabled:$r,download:LCe,draggable:Ro,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$r,formTarget:null,headers:ys,height:It,hidden:$r,high:It,href:null,hrefLang:null,htmlFor:ys,httpEquiv:ys,id:null,imageSizes:null,imageSrcSet:null,inert:$r,inputMode:null,integrity:null,is:null,isMap:$r,itemId:null,itemProp:ys,itemRef:ys,itemScope:$r,itemType:ys,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$r,low:It,manifest:null,max:null,maxLength:It,media:null,method:null,min:null,minLength:It,multiple:$r,muted:$r,name:null,nonce:null,noModule:$r,noValidate:$r,onAbort:null,onAfterPrint:null,onAuxCl
907ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$r,optimum:It,pattern:null,ping:ys,placeholder:null,playsInline:$r,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$r,referrerPolicy:null,rel:ys,required:$r,reversed:$r,rows:It,rowSpan:It,sandbox:ys,scope:null,scoped:$r,seamless:$r,selected:$r,shadowRootClonable:$r,shadowRootDelegatesFocus:$r,shadowRootMode:null,shape:null,size:It,sizes:null,slot:null,span:It,spellCheck:Ro,src:null,srcDoc:null,srcLang:null,srcSet:null,start:It,step:null,style:null,tabIndex:It,target:null,title:null,translate:null,type:null,typeMustMatch:$r,useMap:null,value:Ro,width:It,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ys,axis:null,background:null,bgColor:null,border:It,borderColor:null,bottomMargin:It,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:It,leftMargin:It,link:null,longDesc:null,lowSrc:null,marginHeight:It,marginWidth:It,noResize:$r,noHref:$r,noShade:$r,noWrap:$r,object:null,profile:null,prompt:null,rev:null,rightMargin:It,rules:null,scheme:null,scrolling:Ro,standby:null,summary:null,text:null,topMargin:It,valueType:null,version:null,vAlign:null,vLink:null,vSpace:It,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$r,disableRemotePlayback:$r,prefix:null,property:null,results:It,security:null,unselectable:null},space:"html",transform:$Ce}),x6t=qw({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav
907-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:fu,accentHeight:It,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:It,amplitude:It,arabicForm:null,ascent:It,attributeName:null,attributeType:null,azimuth:It,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:It,by:null,calcMode:null,capHeight:It,className:ys,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:It,diffuseConstant:It,direction:null,display:null,dur:null,divisor:It,dominantBaseline:null,download:$r,dx:null,dy:null,edgeMode:null,editable:null,elevation:It,enableBackground:null,end:null,event:null,exponent:It,externalResourcesRequired:null,fill:null,fillOpacity:It,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gx,g2:gx,glyphName:gx,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:It,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:It,horizOriginX:It,horizOriginY:It,id:null,ideographic:It,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:It,k:It,k1:It,k2:It,k3:It,k4:It,kernelMatrix:fu,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:It,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:It,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 9,282 bytes, lines 907-908
907Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:It,overlineThickness:It,paintOrder:null,panose1:null,path:null,pathLength:It,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ys,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:It,pointsAtY:It,pointsAtZ:It,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fu,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fu,rev:fu,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fu,requiredFeatures:fu,requiredFonts:fu,requiredFormats:fu,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:It,specularExponent:It,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:It,strikethroughThickness:It,string:null,stroke:null,strokeDashArray:fu,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:It,strokeOpacity:It,strokeWidth:null,style:null,surfaceScale:It,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fu,tabIndex:It,tableValues:null,target:null,targetX:It,targetY:It,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fu,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:It,underlineThickness:It,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:It,values:null,vAlphabetic:It,vMathematical:It,vectorEffect:null,vHanging:It,vIdeographic:It,version:null,vertAdvY:It,vertOriginX:It,vertOriginY:It,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:It,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:FCe}),jCe=qw({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),zCe=qw({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$Ce}),HCe=qw({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),w6t={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},S6t=/[A-Z]/g,Ise=/-[a-z]/g,k6t=/^data[-\w.:]+$/i;function Vq(t,e){const n=kC(e);let r=e,i=Vc;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&k6t.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(Ise,_6t);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!Ise.test(s)){let o=s.replace(S6t,C6t);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Uq}return new i(r,e)}function C6t(t){return"-"+t.toLowerCase()}function _6t(t){return t.charAt(1).toUpperCase()}const BI=RCe([BCe,v6t,jCe,zCe,HCe],"html"),Gw=RCe([BCe,x6t,jCe,zCe,HCe],"svg");function wj(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function UCe(t){return t.join(" ").trim()}var Bv={},yR,Dse;function T6t(){if(Dse)return yR;Dse=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,l=` 908`,c="/",u="*",h="",d="comment",p="declaration";yR=function(y,b){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];b=b||{};var w=1,S=1;function T(oe){var te=oe.match(e);te&&(w+=te.length);var re=oe.lastIndexOf(l);S=~re?oe.length-re:S+oe.length}function D(){var oe={line:w,column:S};return function(te){return te.position=new E(oe),$(),te}}function E(oe){this.start=oe,this.end={line:w,column:S},this.source=b.source}E.prototype.content=y;function O(oe){var te=new Error(b.source+":"+w+":"+S+": "+oe);if(te.reason=oe,te.filename=b.source,te.line=w,te.column=S,te.source=y,!b.silent)throw te}function P(oe){var te=oe.exec(y);if(te){var re=te[0];return T(re),y=y.slice(re.length),te}}function $(){P(n)}function W(oe){var te;for(oe=oe||[];te=H();)te!==!1&&oe.push(te);return oe}function H(){var oe=D();if(!(c!=y.charAt(0)||u!=y.charAt(1))){for(var te=2;h!=y.charAt(te)&&(u!=y.charAt(te)||c!=y.charAt(te+1));)++te;if(te+=2,h===y.charAt(te-1))return O("End of comment missing");var re=y.slice(2,te-2);return S+=2,T(re),y=y.slice(te),S+=2,oe({type:d,comment:re})}}function K(){var oe=D(),te=P(r);if(te){if(H(),!P(i))return O("property missing ':'");var re=P(s),Y=oe({type:p,property:g(te[0].replace(t,h)),value:re?g(re[0].replace(t,h)):h});return P(o),Y}}function Z(){var oe=[];W(oe);for(var te;te=K();)te!==!1&&(oe.push(te),W(oe));return oe}return $(),Z()};function g(y){return y?y.replace(a,h):h}return yR}var Mse;function E6t(){if(Mse)return Bv;Mse=1;var t=Bv&&Bv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.default=n;var e=t(T6t());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var o=(0,e.default)(r),a=typeof i=="function";return o.forEach(function(l){if(l.type==="declaration"){var c=l.property,u=l.value;a?i(c,u,l):u&&(s=s||{},s[c]=u)}}),s}return Bv}var h3={},Nse;function A6t(){if(Nse)return h3;Nse=1,Object.defineProperty(h3,"__esModule",{value:!0}),h3.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(c){return!c||n.test(c)||t.test(c)},o=function(c,u){return u.toUpperCase()},a=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),s(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(i,a):c=c.replace(r,a),c.replace(e,o))};return h3.camelCase=l,h3}var d3,Rse;function P6t(){if(Rse)return d3;Rse=1;var t=d3&&d3.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(E6t()),n=A6t();function r(i,s){var o={};return!i||typeof i!="string"||(0,e.default)(i,function(a,l){a&&l&&(o[(0,n.camelCase)(a,s)]=l)}),o}return r.default=r,d3=r,d3}var O6t=P6t();const I6t=zc(O6t),FI=VCe("end"),Sp=VCe("start");function VCe(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function WCe(t){const e=Sp(t),n=FI(t);if(e&&n)return{start:e,end:n}}function X4(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Lse(t.position):"start"in t||"end"in t?Lse(t):"line"in t||"column"in t?Sj(t):""}function Sj(t){return Bse(t&&t.line)+":"+Bse(t&&t.column)}function Lse(t){return Sj(t&&t.start)+"-"+Sj(t&&t.end)}function Bse(t){return t&&typeof t=="number"?t:1}class xl extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=X4(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}xl.prototype.file="";xl.prototype.name="";xl.prototype.reason="";xl.prototype.message="";xl.prototype.stack="";xl.prototype.column=void 0;xl.prototype.line=void 0;xl.prototype.ancestors=void 0;xl.prototype.cause=void 0;xl.prototype.fatal=void 0;xl.prototype.place=void 0;xl.prototype.ruleId=void 0;xl.prototype.source=void 0;const Wq={}.hasOwnProperty,D6t=new Map,M6t=/[A-Z]/g,N6t=new Set(["table","tbody","thead","tfoot","tr"]),R6t=new Set(["td","th"]),qCe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function L6t(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=V6t(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,366 bytes, line 908
908if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=U6t(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Gw:BI,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=GCe(i,t,void 0);return s&&typeof s!="string"?s:i.create(t,i.Fragment,{children:s||void 0},void 0)}function GCe(t,e,n){if(e.type==="element")return B6t(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return F6t(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return j6t(t,e,n);if(e.type==="mdxjsEsm")return $6t(t,e);if(e.type==="root")return z6t(t,e,n);if(e.type==="text")return H6t(t,e)}function B6t(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Gw,t.schema=i),t.ancestors.push(e);const s=YCe(t,e.tagName,!1),o=W6t(t,e);let a=Gq(t,e);return N6t.has(e.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!y6t(l):!0})),KCe(t,o,s,e),qq(o,a),t.ancestors.pop(),t.schema=r,t.create(e,s,o,n)}function F6t(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}CC(t,e.position)}function $6t(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);CC(t,e.position)}function j6t(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Gw,t.schema=i),t.ancestors.push(e);const s=e.name===null?t.Fragment:YCe(t,e.name,!0),o=q6t(t,e),a=Gq(t,e);return KCe(t,o,s,e),qq(o,a),t.ancestors.pop(),t.schema=r,t.create(e,s,o,n)}function z6t(t,e,n){const r={};return qq(r,Gq(t,e)),t.create(e,t.Fragment,r,n)}function H6t(t,e){return e.value}function KCe(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function qq(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function U6t(t,e,n){return r;function r(i,s,o,a){const c=Array.isArray(o.children)?n:e;return a?c(s,o,a):c(s,o)}}function V6t(t,e){return n;function n(r,i,s,o){const a=Array.isArray(s.children),l=Sp(r);return e(i,s,o,a,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function W6t(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&Wq.call(e.properties,i)){const s=G6t(t,i,e.properties[i]);if(s){const[o,a]=s;t.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&R6t.has(e.tagName)?r=a:n[o]=a}}if(r){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function q6t(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,t.evaluater.evaluateExpression(a.argument))}else CC(t,e.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const a=r.value.data.estree.body[0];a.type,s=t.evaluater.evaluateExpression(a.expression)}else CC(t,e.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function Gq(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:D6t;for(;++r<e.children.length;){const s=e.children[r];let o;if(t.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const c=i.get(l)||0;o=l+"-"+c,i.set(l,c+1)}}const a=GCe(t,s,o);a!==void 0&&n.push(a)}return n}function G6t(t,e,n){const r=Vq(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?NCe(n):UCe(n)),r.property==="style"){let i=typeof n=="object"?n:K6t(t,String(n));return t.stylePropertyNameCase==="css"&&(i=Y6t(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?w6t[r.property]||r.property:r.attribute,n]}}function K6t(t,e){try{return I6t(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new xl("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=qCe+"#cannot-parse-style-attribute",i}}function YCe(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let s=-1,o;for(;++s<i.length;){const a=Ase(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=Ase(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return Wq.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);CC(t)}function CC(t,e){const n=new xl("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=qCe+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Y6t(t){const e={};let n;for(n in t)Wq.call(t,n)&&(e[Q6t(n)]=t[n]);return e}function Q6t(t){let e=t.replace(M6t,X6t);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function X6t(t){return"-"+t.toLowerCase()}const bR={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},J6t={};function Kq(t,e){const n=J6t,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return QCe(t,r,i)}function QCe(t,e,n){if(Z6t(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Fse(t.children,e,n)}return Array.isArray(t)?Fse(t,e,n):""}function Fse(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=QCe(t[i],e,n);return r.join("")}function Z6t(t){return!!(t&&typeof t=="object")}const $se=document.createElement("i");function Yq(t){const e="&"+t+";";$se.innerHTML=e;const n=$se.textContent;
vendor: 12,040 bytes, line 908
908return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Iu(t,e,n,r){const i=t.length;let s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function lh(t,e){return t.length>0?(Iu(t,t.length,0,e),t):e}const jse={}.hasOwnProperty;function XCe(t){const e={};let n=-1;for(;++n<t.length;)eAt(e,t[n]);return e}function eAt(t,e){let n;for(n in e){const i=(jse.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){jse.call(i,o)||(i[o]=[]);const a=s[o];tAt(i[o],Array.isArray(a)?a:a?[a]:[])}}}function tAt(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Iu(t,0,0,r)}function JCe(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Od(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rl=S1(/[A-Za-z]/),hl=S1(/[\dA-Za-z]/),nAt=S1(/[#-'*+\--9=?A-Z^-~]/);function yP(t){return t!==null&&(t<32||t===127)}const kj=S1(/\d/),rAt=S1(/[\dA-Fa-f]/),iAt=S1(/[!-/:-@[-`{-~]/);function Pn(t){return t!==null&&t<-2}function hs(t){return t!==null&&(t<0||t===32)}function si(t){return t===-2||t===-1||t===32}const $I=S1(/\p{P}|\p{S}/u),Eb=S1(/\s/);function S1(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Kw(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let o="";if(s===37&&hl(t.charCodeAt(n+1))&&hl(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=t.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),i=1):o="�"}else o=String.fromCharCode(s);o&&(e.push(t.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function ei(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(l){return si(l)?(t.enter(n),a(l)):e(l)}function a(l){return si(l)&&s++<i?(t.consume(l),a):(t.exit(n),e(l))}}const sAt={tokenize:oAt};function oAt(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ei(t,e,"linePrefix")}function i(a){return t.enter("paragraph"),s(a)}function s(a){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return Pn(a)?(t.consume(a),t.exit("chunkText"),s):(t.consume(a),o)}}const aAt={tokenize:lAt},zse={tokenize:cAt};function lAt(t){const e=this,n=[];let r=0,i,s,o;return a;function a(T){if(r<n.length){const D=n[r];return e.containerState=D[1],t.attempt(D[0].continuation,l,c)(T)}return c(T)}function l(T){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&S();const D=e.events.length;let E=D,O;for(;E--;)if(e.events[E][0]==="exit"&&e.events[E][1].type==="chunkFlow"){O=e.events[E][1].end;break}w(r);let P=D;for(;P<e.events.length;)e.events[P][1].end={...O},P++;return Iu(e.events,E+1,0,e.events.slice(D)),e.events.length=P,c(T)}return a(T)}function c(T){if(r===n.length){if(!i)return d(T);if(i.currentConstruct&&i.currentConstruct.concrete)return g(T);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(zse,u,h)(T)}function u(T){return i&&S(),w(r),d(T)}function h(T){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,g(T)}function d(T){return e.containerState={},t.attempt(zse,p,g)(T)}function p(T){return r++,n.push([e.currentConstruct,e.containerState]),d(T)}function g(T){if(T===null){i&&S(),w(0),t.consume(T);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),y(T)}function y(T){if(T===null){b(t.exit("chunkFlow"),!0),w(0),t.consume(T);return}return Pn(T)?(t.consume(T),b(t.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(t.consume(T),y)}function b(T,D){const E=e.sliceStream(T);if(D&&E.push(null),T.previous=s,s&&(s.next=T),s=T,i.defineSkip(T.start),i.write(E),e.parser.lazy[T.start.line]){let O=i.events.length;for(;O--;)if(i.events[O][1].start.offset<o&&(!i.events[O][1].end||i.events[O][1].end.offset>o))return;const P=e.events.length;let $=P,W,H;for(;$--;)if(e.events[$][0]==="exit"&&e.events[$][1].type==="chunkFlow"){if(W){H=e.events[$][1].end;break}W=!0}for(w(r),O=P;O<e.events.length;)e.events[O][1].end={...H},O++;Iu(e.events,$+1,0,e.events.slice(P)),e.events.length=O}}function w(T){let D=n.length;for(;D-- >T;){const E=n[D];e.containerState=E[1],E[0].exit.call(e,t)}n.length=T}function S(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function cAt(t,e,n){return ei(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function hw(t){if(t===null||hs(t)||Eb(t))return 1;if($I(t))return 2}function jI(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}const Cj={name:"attention",resolveAll:uAt,tokenize:hAt};function uAt(t,e){let n=-1,r,i,s,o,a,l,c,u;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const h={...t[r][1].end},d={...t[n][1].start};Hse(h,-l),Hse(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...t[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:d},s={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},t[r][1].end={...o.start},t[n][1].start={...a.end},c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=lh(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=lh(c,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),c=lh(c,jI(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=lh(c,[["exit",s,e],["enter",a,e],["exit",a,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(u=2,c=lh(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):u=0,Iu(t,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function hAt(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=hw(r);let s;return o;function o(l){return s=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===s)return t.consume(l),a;const c=t.exit("attentionSequence"),u=hw(l),h=!u||u===2&&i||n.includes(l),d=!i||i===2&&u||n.includes(r);return c._open=!!(s===42?h:h&&(i||!d)),c._close=!!(s===42?d:d&&(u||!h)),e(l)}}function Hse(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const dAt={name:"autolink",tokenize:fAt};function fAt(t,e,n){let r=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(p){return Rl(p)?(t.consume(p),o):p===64?n(p):c(p)}function o(p){return p===43||p===45||p===46||hl(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(t.consume(p),r=0,l):(p===43||p===45||p===46||hl(p))&&r++<32?(t.consume(p),a):(r=0,c(p))}function l(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||yP(p)?n(p):(t.consume(p),l)}function c(p){return p===64?(t.consume(p),u):nAt(p)?(t.consume(p),c):n(p)}function u(p){return hl(p)?h(p):n(p)}function h(p){return p===46?(t.consume(p),r=0,u):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):d(p)}function d(p){if((p===45||hl(p))&&r++<63){const g=p===45?d:h;return t.consume(p),g}return n(p)}}const U_={partial:!0,tokenize:pAt};function pAt(t,e,n){return r;function r(s){return si(s)?ei(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||Pn(s)?e(s):n(s)}}const ZCe={continuation:{tokenize:gAt},exit:yAt,name:"blockQuote",tokenize:mAt};function mAt(t,e,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return si(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function gAt(t,e,n){const r=this;return i;function i(o){return si(o)?ei(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(ZCe,e,n)(o)}}function yAt(t){t.exit("blockQuote")}const e_e={name:"characterEscape",tokenize:bAt};function bAt(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return iAt(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const t_e={name:"characterReference",tokenize:vAt};function vAt(t,e,n){const r=this;let i=0,s,o;return a;function a(h){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),l}function l(h){return h===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(h),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,o=hl,u(h))}function c(h){return h===88||h===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(h),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=rAt,u):(t.enter("characterReferenceValue"),s=7,o=kj,u(h))}function u(h){if(h===59&&i){const d=t.exit("characterReferenceValue");return o===hl&&!Yq(r.sliceSerialize(d))?n(h):(t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(h)&&i++<s?(t.consume(h),u):n(h)}}const Use={partial:!0,tokenize:wAt},Vse={concrete:!0,name:"codeFenced",tokenize:xAt};function xAt(t,e,n){const r=this,i={partial:!0,tokenize:E};let s=0,o=0,a;return l;function l(O){return c(O)}function c(O){const P=r.events[r.events.length-1];return s=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,a=O,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),u(O)}function u(O){return O===a?(o++,t.consume(O),u):o<3?n(O):(t.exit("codeFencedFenceSequence"),si(O)?ei(t,h,"whitespace")(O):h(O))}function h(O){return O===null||Pn(O)?(t.exit("codeFencedFence"),r.interrupt?e(O):t.check(Use,y,D)(O)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),d(O))}function d(O){return O===null||Pn(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),h(O)):si(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ei(t,p,"whitespace")(O)):O===96&&O===a?n(O):(t.consume(O),d)}function p(O){return O===null||Pn(O)?h(O):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(O))}function g(O){return O===null||Pn(O)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),h(O)):O===96&&O===a?n(O):(t.consume(O),g)}function y(O){return t.attempt(i,D,b)(O)}function b(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),w}function w(O){return s>0&&si(O)?ei(t,S,"linePrefix",s+1)(O):S(O)}function S(O){return O===null||Pn(O)?t.check(Use,y,D)(O):(t.enter("co
908deFlowValue"),T(O))}function T(O){return O===null||Pn(O)?(t.exit("codeFlowValue"),S(O)):(t.consume(O),T)}function D(O){return t.exit("codeFenced"),e(O)}function E(O,P,$){let W=0;return H;function H(re){return O.enter("lineEnding"),O.consume(re),O.exit("lineEnding"),K}function K(re){return O.enter("codeFencedFence"),si(re)?ei(O,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(re):Z(re)}function Z(re){return re===a?(O.enter("codeFencedFenceSequence"),oe(re)):$(re)}function oe(re){return re===a?(W++,O.consume(re),oe):W>=o?(O.exit("codeFencedFenceSequence"),si(re)?ei(O,te,"whitespace")(re):te(re)):$(re)}function te(re){return re===null||Pn(re)?(O.exit("codeFencedFence"),P(re)):$(re)}}}function wAt(t,e,n){const r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}const vR={name:"codeIndented",tokenize:kAt},SAt={partial:!0,tokenize:CAt};function kAt(t,e,n){const r=this;return i;function i(c){return t.enter("codeIndented"),ei(t,s,"linePrefix",5)(c)}function s(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Pn(c)?t.attempt(SAt,o,l)(c):(t.enter("codeFlowValue"),a(c))}function a(c){return c===null||Pn(c)?(t.exit("codeFlowValue"),o(c)):(t.consume(c),a)}function l(c){return t.exit("codeIndented"),e(c)}}function CAt(t,e,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Pn(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):ei(t,s,"linePrefix",5)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):Pn(o)?i(o):n(o)}}const _At={name:"codeText",previous:EAt,resolve:TAt,tokenize:AAt};function TAt(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function EAt(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function AAt(t,e,n){let r=0,i,s;return o;function o(h){return t.enter("codeText"),t.enter("codeTextSequence"),a(h)}function a(h){return h===96?(t.consume(h),r++,a):(t.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),l):h===96?(s=t.enter("codeTextSequence"),i=0,u(h)):Pn(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),l):(t.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||Pn(h)?(t.exit("codeTextData"),l(h)):(t.consume(h),c)}function u(h){return h===96?(t.consume(h),i++,u):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(s.type="codeTextData",c(h))}}class PAt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&f3(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),f3(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),f3(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);f3(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);f3(this.left,n.reverse())}}}function f3(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function n_e(t){const e={};let n=-1,r,i,s,o,a,l,c;const u=new PAt(t);for(;++n<u.length;){for(;n in e;)n=e[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,OAt(u,n)),n=e[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=u.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},a=u.slice(i,n),a.unshift(r),u.splice(i,n-i+1,a))}}return Iu(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function OAt(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,l=[],c={};let u,h,d=-1,p=n,g=0,y=0;const b=[y];for(;p;){for(;t.get(++i)[1]!==p;);s.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&o.defineSki
vendor: 19,373 bytes, line 908
908p(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(y=d+1,b.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),d=b.length;d--;){const w=a.slice(b[d],b[d+1]),S=s.pop();l.push([S,S+w.length-1]),t.splice(S,2,w)}for(l.reverse(),d=-1;++d<l.length;)c[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return c}const IAt={resolve:MAt,tokenize:NAt},DAt={partial:!0,tokenize:RAt};function MAt(t){return n_e(t),t}function NAt(t,e){let n;return r;function r(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):Pn(a)?t.check(DAt,o,s)(a):(t.consume(a),i)}function s(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function o(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function RAt(t,e,n){const r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),ei(t,s,"linePrefix")}function s(o){if(o===null||Pn(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}function r_e(t,e,n,r,i,s,o,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return h;function h(w){return w===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(w),t.exit(s),d):w===null||w===32||w===41||yP(w)?n(w):(t.enter(r),t.enter(o),t.enter(a),t.enter("chunkString",{contentType:"string"}),y(w))}function d(w){return w===62?(t.enter(s),t.consume(w),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(t.exit("chunkString"),t.exit(a),d(w)):w===null||w===60||Pn(w)?n(w):(t.consume(w),w===92?g:p)}function g(w){return w===60||w===62||w===92?(t.consume(w),p):p(w)}function y(w){return!u&&(w===null||w===41||hs(w))?(t.exit("chunkString"),t.exit(a),t.exit(o),t.exit(r),e(w)):u<c&&w===40?(t.consume(w),u++,y):w===41?(t.consume(w),u--,y):w===null||w===32||w===40||yP(w)?n(w):(t.consume(w),w===92?b:y)}function b(w){return w===40||w===41||w===92?(t.consume(w),y):y(w)}}function i_e(t,e,n,r,i,s){const o=this;let a=0,l;return c;function c(p){return t.enter(r),t.enter(i),t.consume(p),t.exit(i),t.enter(s),u}function u(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(t.exit(s),t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):Pn(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||Pn(p)||a++>999?(t.exit("chunkString"),u(p)):(t.consume(p),l||(l=!si(p)),p===92?d:h)}function d(p){return p===91||p===92||p===93?(t.consume(p),a++,h):h(p)}}function s_e(t,e,n,r,i,s){let o;return a;function a(d){return d===34||d===39||d===40?(t.enter(r),t.enter(i),t.consume(d),t.exit(i),o=d===40?41:d,l):n(d)}function l(d){return d===o?(t.enter(i),t.consume(d),t.exit(i),t.exit(r),e):(t.enter(s),c(d))}function c(d){return d===o?(t.exit(s),l(o)):d===null?n(d):Pn(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),ei(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===o||d===null||Pn(d)?(t.exit("chunkString"),c(d)):(t.consume(d),d===92?h:u)}function h(d){return d===o||d===92?(t.consume(d),u):u(d)}}function J4(t,e){let n;return r;function r(i){return Pn(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):si(i)?ei(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const LAt={name:"definition",tokenize:FAt},BAt={partial:!0,tokenize:$At};function FAt(t,e,n){const r=this;let i;return s;function s(p){return t.enter("definition"),o(p)}function o(p){return i_e.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Od(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),l):n(p)}function l(p){return hs(p)?J4(t,c)(p):c(p)}function c(p){return r_e(t,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return t.attempt(BAt,h,h)(p)}function h(p){return si(p)?ei(t,d,"whitespace")(p):d(p)}function d(p){return p===null||Pn(p)?(t.exit("definition"),r.parser.defined.push(i),e(p)):n(p)}}function $At(t,e,n){return r;function r(a){return hs(a)?J4(t,i)(a):n(a)}function i(a){return s_e(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return si(a)?ei(t,o,"whitespace")(a):o(a)}function o(a){return a===null||Pn(a)?e(a):n(a)}}const jAt={name:"hardBreakEscape",tokenize:zAt};function zAt(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return Pn(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const HAt={name:"headingAtx",resolve:UAt,tokenize:VAt};function UAt(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Iu(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function VAt(t,e,n){let r=0;return i;function i(u){return t.enter("atxHeading"),s(u)}function s(u){return t.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(t.consume(u),o):u===null||hs(u)?(t.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(t.enter("atxHeadingSequence"),l(u)):u===null||Pn(u)?(t.exit("atxHeading"),e(u)):si(u)?ei(t,a,"whitespace")(u):(t.enter("atxHeadingText"),c(u))}function l(u){return u===35?(t.consume(u),l):(t.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||hs(u)?(t.exit("atxHeadingText"),a(u)):(t.consume(u),c)}}const WAt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Wse=["pre","script","style","textarea"],qAt={concrete:!0,name:"htmlFlow",resolveTo:YAt,tokenize:QAt},GAt={partial:!0,tokenize:JAt},KAt={partial:!0,tokenize:XAt};function YAt(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function QAt(t,e,n){const r=this;let i,s,o,a,l;return c;function c(q){return u(q)}function u(q){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(q),h}function h(q){return q===33?(t.consume(q),d):q===47?(t.consume(q),s=!0,y):q===63?(t.consume(q),i=3,r.interrupt?e:B):Rl(q)?(t.consume(q),o=String.fromCharCode(q),b):n(q)}function d(q){return q===45?(t.consume(q),i=2,p):q===91?(t.consume(q),i=5,a=0,g):Rl(q)?(t.consume(q),i=4,r.interrupt?e:B):n(q)}function p(q){return q===45?(t.consume(q),r.interrupt?e:B):n(q)}function g(q){const fe="CDATA[";return q===fe.charCodeAt(a++)?(t.consume(q),a===fe.length?r.interrupt?e:Z:g):n(q)}function y(q){return Rl(q)?(t.consume(q),o=String.fromCharCode(q),b):n(q)}function b(q){if(q===null||q===47||q===62||hs(q)){const fe=q===47,ke=o.toLowerCase();return!fe&&!s&&Wse.includes(ke)?(i=1,r.interrupt?e(q):Z(q)):WAt.includes(o.toLowerCase())?(i=6,fe?(t.consume(q),w):r.interrupt?e(q):Z(q)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(q):s?S(q):T(q))}return q===45||hl(q)?(t.consume(q),o+=String.fromCharCode(q),b):n(q)}function w(q){return q===62?(t.consume(q),r.interrupt?e:Z):n(q)}function S(q){return si(q)?(t.consume(q),S):H(q)}function T(q){return q===47?(t.consume(q),H):q===58||q===95||Rl(q)?(t.consume(q),D):si(q)?(t.consume(q),T):H(q)}function D(q){return q===45||q===46||q===58||q===95||hl(q)?(t.consume(q),D):E(q)}function E(q){return q===61?(t.consume(q),O):si(q)?(t.consume(q),E):T(q)}function O(q){return q===null||q===60||q===61||q===62||q===96?n(q):q===34||q===39?(t.consume(q),l=q,P):si(q)?(t.consume(q),O):$(q)}function P(q){return q===l?(t.consume(q),l=null,W):q===null||Pn(q)?n(q):(t.consume(q),P)}function $(q){return q===null||q===34||q===39||q===47||q===60||q===61||q===62||q===96||hs(q)?E(q):(t.consume(q),$)}function W(q){return q===47||q===62||si(q)?T(q):n(q)}function H(q){return q===62?(t.consume(q),K):n(q)}function K(q){return q===null||Pn(q)?Z(q):si(q)?(t.consume(q),K):n(q)}function Z(q){return q===45&&i===2?(t.consume(q),Y):q===60&&i===1?(t.consume(q),z):q===62&&i===4?(t.consume(q),Q):q===63&&i===3?(t.consume(q),B):q===93&&i===5?(t.consume(q),G):Pn(q)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(GAt,ie,oe)(q)):q===null||Pn(q)?(t.exit("htmlFlowData"),oe(q)):(t.consume(q),Z)}function oe(q){return t.check(KAt,te,ie)(q)}function te(q){return t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),re}function re(q){return q===null||Pn(q)?oe(q):(t.enter("htmlFlowData"),Z(q))}function Y(q){return q===45?(t.consume(q),B):Z(q)}function z(q){return q===47?(t.consume(q),o="",U):Z(q)}function U(q){if(q===62){const fe=o.toLowerCase();return Wse.includes(fe)?(t.consume(q),Q):Z(q)}return Rl(q)&&o.length<8?(t.consume(q),o+=String.fromCharCode(q),U):Z(q)}function G(q){return q===93?(t.consume(q),B):Z(q)}function B(q){return q===62?(t.consume(q),Q):q===45&&i===2?(t.consume(q),B):Z(q)}function Q(q){return q===null||Pn(q)?(t.exit("htmlFlowData"),ie(q)):(t.consume(q),Q)}function ie(q){return t.exit("htmlFlow"),e(q)}}function XAt(t,e,n){const r=this;return i;function i(o){return Pn(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}function JAt(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(U_,e,n)}}const ZAt={name:"htmlText",tokenize:e8t};function e8t(t,e,n){const r=this;let i,s,o;return a;function a(B){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(B),l}function l(B){return B===33?(t.consume(B),c):B===47?(t.consume(B),E):B===63?(t.consume(B),T):Rl(B)?(t.consume(B),$):n(B)}function c(B){return B===45?(t.consume(B),u):B===91?(t.consume(B),s=0,g):Rl(B)?(t.consume(B),S):n(B)}function u(B){return B===45?(t.consume(B),p):n(B)}function h(B){return B===null?n(B):B===45?(t.consume(B),d):Pn(B)?(o=h,z(B)):(t.consume(B),h)}function d(B){return B===45?(t.consume(B),p):h(B)}function p(B){return B===62?Y(B):B===45?d(B):h(B)}function g(B){const Q="CDATA[";return B===Q.charCodeAt(s++)?(t.consume(B),s===Q.length?y:g):n(B)}function y(B){return B===null?n(B):B===93?(t.consume(B),b):Pn(B)?(o=y,z(B)):(t.consume(B),y)}function b(B){return B===93?(t.consume(B),w):y(B)}function w(B){return B===62?Y(B):B===93?(t.consume(B),w):y(B)}function S(B){return B===null||B===62?Y(B):Pn(B)?(o=S,z(B)):(t.consume(B),S)}function T(B){return B===null?n(B):B===63?(t.consume(B),D):Pn(B)?(o=T,z(B)):(t.consume(B),T)}function D(B){return B===62?Y(B):T(B)}function E(B){return Rl(B)?(t.consume(B),O):n(B)}function O(B){return B===45||hl(B)?(t.consume(B),O):P(B)}function P(B){return Pn(B)?(o=P,z(B)):si(B)?(t.consume(B),P):Y(B)}function $(B){return B===45||hl(B)?(t.consume(B),$):B===47||B===62||hs(B)?W(B):n(B)}function W(B){return B===47?(t.consume(B),Y):B===58||B===95||Rl(B)?(t.consume(B),H):Pn(B)?(o=W,z(B)):si(B)?(t.consume(B),W):Y(B)}function H(B){return B===45||B===46||B===58||B===95||hl(B)?(t.consume(B),H):K(B)}function K(B){return B===61?(t.consume(B),Z):Pn(B)?(o=K,z(B)):si(B)?(t.consume(B),K):W(B)}function Z(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(t.consume(B),i=B,oe):Pn(B)?(o=Z,z(B)):si(B)?(t.consume(B),Z):(t.consume(B),te)}function oe(B){return B===i?(t.consume(B),i=void 0,re):B===null?n(B):Pn(B)?(o=oe,z(B)):(t.consume(B),oe)}function te(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||hs(B)?W(B):(t.consume(B),te)}function re(B){return B===47||B===62||hs(B)?W(B):n(B)}function Y(B){return B===62?(t.consume(B),t.exit("htmlTextData"),t.exit("htmlText"),e):n(B)}function z(B){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),U}function U(B){return si(B)?ei(t,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):G(B)}function G(B){return t.enter("htmlTextData"),o(B)}}const Qq={name:"labelEnd",resolveAll:i8t,resolveTo:s8t,tokenize:o8t},t8t={tokenize:a8t},n8t={tokenize:l8t},r8t={tokenize:c8t};function i8t(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&Iu(t,0,t.length,n),t}function s8t(t,e){let n=t.length,r=0,i,s,o,a;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[s][1].start},end:{...t[o][1].end}},u={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[o-2][1].start}};return a=[["enter",l,e],["enter",c,e]],a=lh(a,t.slice(s+1,s+r+3)),a=lh(a,[["enter",u,e]]),a=lh(a,jI(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),a=lh(a,[["exit",u,e],t[o-2],t[o-1],["exit",c,e]]),a=lh(a,t.slice(o+1)),a=lh(a,[["exit",l,e]]),Iu(t,s,t.length,a),t}function o8t(t,e,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(d){return s?s._inactive?h(d):(o=r.parser.defined.includes(Od(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),l):n(d)}function l(d){return d===40?t.attempt(t8t,u,o?u:h)(d):d===91?t.attempt(n8t,u,o?c:h)(d):o?u(d):h(d)}function c(d){return t.attempt(r8t,u,h)(d)}function u(d){return e(d)}function h(d){return s._balanced=!0,n(d)}}function a8t(t,e,n){return r;function r(h){return t.enter("resource"),t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),i}function i(h){return hs(h)?J4(t,s)(h):s(h)}function s(h){return h===41?u(h):r_e(t,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return hs(h)?J4(t,l)(h):u(h)}function a(h){return n(h)}function l(h){return h===34||h===39||h===40?s_e(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):u(h)}function c(h){return hs(h)?J4(t,u)(h):u(h)}function u(h){return h===41?(t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),t.exit("resource"),e):n(h)}}function l8t(t,e,n){const r=this;return i;function i(a){return i_e.call(r,t,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Od(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function o(a){return n(a)}}function c8t(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const u8t={name:"labelStartImage",resolveAll:Qq.resolveAll,tokenize:h8t};function h8t(t,e,n){const r=this;return i;function i(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),s}function s(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}const d8t={name:"labelStartLink",resolveAll:Qq.resolveAll,tokenize:f8t};function f8t(t,e,n){const r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const xR={name:"lineEnding",tokenize:p8t};function p8t(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),ei(t,e,"linePrefix")}}const MA={name:"thematicBreak",tokenize:m8t};function m8t(t,e,n){let r=0,i;return s;function s(c){return t.enter("thematicBreak"),o(c)}function o(c){return i=c,a(c)}function a(c){return c===i?(t.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Pn(c))?(t.exit("thematicBreak"),e(c)):n(c)}function l(c){return c===i?(t.consume(c),r++,l):(t.exit("thematicBreakSequence"),si(c)?ei(t,a,"whitespace")(c):a(c))}}const cc={continuation:{tokenize:v8t},exit:w8t,name:"list",tokenize:b8t},g8t={partial:!0,tokenize:S8t},y8t={partial:!0,tokenize:x8t};function b8t(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:kj(p)){if(r.containerState.type||(r.containerState.type=g,t.enter(g,{_container:!0})),g==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(MA,n,c)(p):c(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(p)}return n(p)}function l(p){return kj(p)&&++o<10?(t.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),c(p)):n(p)}function c(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(U_,r.interrupt?n:u,t.attempt(g8t,d,h))}function u(p){return r.containerState.initialBlankLine=!0,s++,d(p)}function h(p){return si(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function v8t(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(U_,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ei(t,e,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!si(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
vendor: 4,723 bytes, line 908
908=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(y8t,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ei(t,t.attempt(cc,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function x8t(t,e,n){const r=this;return ei(t,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}function w8t(t){t.exit(this.containerState.type)}function S8t(t,e,n){const r=this;return ei(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!si(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const qse={name:"setextUnderline",resolveTo:k8t,tokenize:C8t};function k8t(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=o,t.push(["exit",o,e]),t}function C8t(t,e,n){const r=this;let i;return s;function s(c){let u=r.events.length,h;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){h=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(t.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return t.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(t.consume(c),a):(t.exit("setextHeadingLineSequence"),si(c)?ei(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Pn(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}const _8t={tokenize:T8t};function T8t(t){const e=this,n=t.attempt(U_,r,t.attempt(this.parser.constructs.flowInitial,i,ei(t,t.attempt(this.parser.constructs.flow,i,t.attempt(IAt,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const E8t={resolveAll:a_e()},A8t=o_e("string"),P8t=o_e("text");function o_e(t){return{resolveAll:a_e(t==="text"?O8t:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,o,a);return o;function o(u){return c(u)?s(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),s(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const h=i[u];let d=-1;if(h)for(;++d<h.length;){const p=h[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function a_e(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function O8t(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,o=-1,a=0,l;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(c===-2)l=!0,a++;else if(c!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(a=0),a){const c={type:n===t.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}const I8t={42:cc,43:cc,45:cc,48:cc,49:cc,50:cc,51:cc,52:cc,53:cc,54:cc,55:cc,56:cc,57:cc,62:ZCe},D8t={91:LAt},M8t={[-2]:vR,[-1]:vR,32:vR},N8t={35:HAt,42:MA,45:[qse,MA],60:qAt,61:qse,95:MA,96:Vse,126:Vse},R8t={38:t_e,92:e_e},L8t={[-5]:xR,[-4]:xR,[-3]:xR,33:u8t,38:t_e,42:Cj,60:[dAt,ZAt],91:d8t,92:[jAt,e_e],93:Qq,95:Cj,96:_At},B8t={null:[Cj,E8t]},F8t={null:[42,95]},$8t={null:[]},j8t=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:F8t,contentInitial:D8t,disable:$8t,document:I8t,flow:N8t,flowInitial:M8t,insideSpan:B8t,string:R8t,text:L8t},Symbol.toStringTag,{value:"Module"}));function z8t(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 20,855 bytes, lines 908-914
908olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],a=[];const l={attempt:P(E),check:P(O),consume:S,enter:T,exit:D,interrupt:P(O,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:t,previous:null,sliceSerialize:d,sliceStream:p,write:h};let u=e.tokenize.call(c,l);return e.resolveAll&&s.push(e),c;function h(K){return o=lh(o,K),b(),o[o.length-1]!==null?[]:($(e,0),c.events=jI(s,c.events,c),c.events)}function d(K,Z){return U8t(p(K),Z)}function p(K){return H8t(o,K)}function g(){const{_bufferIndex:K,_index:Z,line:oe,column:te,offset:re}=r;return{_bufferIndex:K,_index:Z,line:oe,column:te,offset:re}}function y(K){i[K.line]=K.column,H()}function b(){let K;for(;r._index<o.length;){const Z=o[r._index];if(typeof Z=="string")for(K=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===K&&r._bufferIndex<Z.length;)w(Z.charCodeAt(r._bufferIndex));else w(Z)}}function w(K){u=u(K)}function S(K){Pn(K)?(r.line++,r.column=1,r.offset+=K===-3?2:1,H()):K!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=K}function T(K,Z){const oe=Z||{};return oe.type=K,oe.start=g(),c.events.push(["enter",oe,c]),a.push(oe),oe}function D(K){const Z=a.pop();return Z.end=g(),c.events.push(["exit",Z,c]),Z}function E(K,Z){$(K,Z.from)}function O(K,Z){Z.restore()}function P(K,Z){return oe;function oe(te,re,Y){let z,U,G,B;return Array.isArray(te)?ie(te):"tokenize"in te?ie([te]):Q(te);function Q(Be){return Qe;function Qe(ft){const Ne=ft!==null&&Be[ft],rt=ft!==null&&Be.null,Mt=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(rt)?rt:rt?[rt]:[]];return ie(Mt)(ft)}}function ie(Be){return z=Be,U=0,Be.length===0?Y:q(Be[U])}function q(Be){return Qe;function Qe(ft){return B=W(),G=Be,Be.partial||(c.currentConstruct=Be),Be.name&&c.parser.constructs.disable.null.includes(Be.name)?ke():Be.tokenize.call(Z?Object.assign(Object.create(c),Z):c,l,fe,ke)(ft)}}function fe(Be){return K(G,B),re}function ke(Be){return B.restore(),++U<z.length?q(z[U]):Y}}}function $(K,Z){K.resolveAll&&!s.includes(K)&&s.push(K),K.resolve&&Iu(c.events,Z,c.events.length-Z,K.resolve(c.events.slice(Z),c)),K.resolveTo&&(c.events=K.resolveTo(c.events,c))}function W(){const K=g(),Z=c.previous,oe=c.currentConstruct,te=c.events.length,re=Array.from(a);return{from:te,restore:Y};function Y(){r=K,c.previous=Z,c.currentConstruct=oe,c.events.length=te,a=re,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function H8t(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}function U8t(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=` 909`;break}case-3:{o=`\r 910`;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function V8t(t){const r={constructs:XCe([j8t,...(t||{}).extensions||[]]),content:i(sAt),defined:[],document:i(aAt),flow:i(_8t),lazy:{},string:i(A8t),text:i(P8t)};return r;function i(s){return o;function o(a){return z8t(r,s,a)}}}function W8t(t){for(;!n_e(t););return t}const Gse=/[\0\t\n\r]/g;function q8t(){let t=1,e="",n=!0,r;return i;function i(s,o,a){const l=[];let c,u,h,d,p;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),h=0,e="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(Gse.lastIndex=h,c=Gse.exec(s),d=c&&c.index!==void 0?c.index:s.length,p=s.charCodeAt(d),!c){e=s.slice(h);break}if(p===10&&h===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<d&&(l.push(s.slice(h,d)),t+=d-h),p){case 0:{l.push(65533),t++;break}case 9:{for(u=Math.ceil(t/4)*4,l.push(-2);t++<u;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}h=d+1}return a&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}const G8t=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function K8t(t){return t.replace(G8t,Y8t)}function Y8t(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return JCe(n.slice(s?2:1),s?16:10)}return Yq(n)||t}const l_e={}.hasOwnProperty;function Q8t(t,e,n){return typeof e!="string"&&(n=e,e=void 0),X8t(n)(W8t(V8t(n).document().write(q8t()(t,e,!0))))}function X8t(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(nr),autolinkProtocol:W,autolinkEmail:W,atxHeading:s(Nn),blockQuote:s(rt),characterEscape:W,characterReference:W,codeFenced:s(Mt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Mt,o),codeText:s(it,o),codeTextData:W,data:W,codeFlowValue:W,definition:s(Rt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(xt),hardBreakEscape:s(Hn),hardBreakTrailing:s(Hn),htmlFlow:s($n,o),htmlFlowData:W,htmlText:s($n,o),htmlTextData:W,image:s(Wn),label:o,link:s(nr),listItem:s(Nr),listItemValue:d,listOrdered:s(Cn,h),listUnordered:s(Cn),paragraph:s(ki),reference:q,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Nn),strong:s(yr),thematicBreak:s(zt)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:Ne,autolinkProtocol:ft,blockQuote:l(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:Be,characterReference:Qe,codeFenced:l(b),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:H,codeIndented:l(w),codeText:l(re),codeTextData:H,data:H,definition:l(),definitionDestinationString:D,definitionLabelString:S,definitionTitleString:T,emphasis:l(),hardBreakEscape:l(Z),hardBreakTrailing:l(Z),htmlFlow:l(oe),htmlFlowData:H,htmlText:l(te),htmlTextData:H,image:l(z),label:G,labelText:U,lineEnding:K,link:l(Y),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:fe,resourceDestinationString:B,resourceTitleString:Q,resource:ie,setextHeading:l($),setextHeadingLineSequence:P,setextHeadingText:O,strong:l(),thematicBreak:l()}};c_e(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(ze){let tt={type:"root",children:[]};const wt={stack:[tt],tokenStack:[],config:e,enter:a,exit:c,buffer:o,resume:u,data:n},tn=[];let ot=-1;for(;++ot<ze.length;)if(ze[ot][1].type==="listOrdered"||ze[ot][1].type==="listUnordered")if(ze[ot][0]==="enter")tn.push(ot);else{const jt=tn.pop();ot=i(ze,jt,ot)}for(ot=-1;++ot<ze.length;){const jt=e[ze[ot][0]];l_e.call(jt,ze[ot][1].type)&&jt[ze[ot][1].type].call(Object.assign({sliceSerialize:ze[ot][2].sliceSerialize},wt),ze[ot][1])}if(wt.tokenStack.length>0){const jt=wt.tokenStack[wt.tokenStack.length-1];(jt[1]||Kse).call(wt,void 0,jt[0])}for(tt.position={start:Gm(ze.length>0?ze[0][1].start:{line:1,column:1,offset:0}),end:Gm(ze.length>0?ze[ze.length-2][1].end:{line:1,column:1,offset:0})},ot=-1;++ot<e.transforms.length;)tt=e.transforms[ot](tt)||tt;return tt}function i(ze,tt,wt){let tn=tt-1,ot=-1,jt=!1,_r,fr,Rr,Zt;for(;++tn<=wt;){const lt=ze[tn];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?ot++:ot--,Zt=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(_r&&!Zt&&!ot&&!Rr&&(Rr=tn),Zt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zt=void 0}if(!ot&<[0]==="enter"&<[1].type==="listItemPrefix"||ot===-1&<[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(_r){let Hr=tn;for(fr=void 0;Hr--;){const Un=ze[Hr];if(Un[1].type==="lineEnding"||Un[1].type==="lineEndingBlank"){if(Un[0]==="exit")continue;fr&&(ze[fr][1].type="lineEndingBlank",jt=!0),Un[1].type="lineEnding",fr=Hr}else if(!(Un[1].type==="linePrefix"||Un[1].type==="blockQuotePrefix"||Un[1].type==="blockQuotePrefixWhitespace"||Un[1].type==="blockQuoteMarker"||Un[1].type==="listItemIndent"))break}Rr&&(!fr||Rr<fr)&&(_r._spread=!0),_r.end=Object.assign({},fr?ze[fr][1].start:lt[1].end),ze.splice(fr||tn,0,["exit",_r,lt[2]]),tn++,wt++}if(lt[1].type==="listItemPrefix"){const Hr={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};_r=Hr,ze.splice(tn,0,["enter",Hr,lt[2]]),tn++,wt++,Rr=void 0,Zt=!0}}}return ze[tt][1]._spread=jt,wt}function s(ze,tt){return wt;function wt(tn){a.call(this,ze(tn),tn),tt&&tt.call(this,tn)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(ze,tt,wt){this.stack[this.stack.length-1].children.push(ze),this.stack.push(ze),this.tokenStack.push([tt,wt||void 0]),ze.position={start:Gm(tt.start),end:void 0}}function l(ze){return tt;function tt(wt){ze&&ze.call(this,wt),c.call(this,wt)}}function c(ze,tt){const wt=this.stack.pop(),tn=this.tokenStack.pop();if(tn)tn[0].type!==ze.type&&(tt?tt.call(this,ze,tn[0]):(tn[1]||Kse).call(this,ze,tn[0]));else throw new Error("Cannot close `"+ze.type+"` ("+X4({start:ze.start,end:ze.end})+"): itâs not open");wt.position.end=Gm(ze.end)}function u(){return Kq(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(ze){if(this.data.expectingFirstListItemValue){const tt=this.stack[this.stack.length-2];tt.start=Number.parseInt(this.sliceSerialize(ze),10),this.data.expectingFirstListItemValue=void 0}}function p(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.lang=ze}function g(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.meta=ze}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.value=ze.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.value=ze.replace(/(\r?\n|\r)$/g,"")}function S(ze){const tt=this.resume(),wt=this.stack[this.stack.length-1];wt.label=tt,wt.identifier=Od(this.sliceSerialize(ze)).toLowerCase()}function T(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.title=ze}function D(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.url=ze}function E(ze){const tt=this.stack[this.stack.length-1];if(!tt.depth){const wt=this.sliceSerialize(ze).length;tt.depth=wt}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function P(ze){const tt=this.stack[this.stack.length-1];tt.depth=this.sliceSerialize(ze).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function W(ze){const wt=this.stack[this.stack.length-1].children;let tn=wt[wt.length-1];(!tn||tn.type!=="text")&&(tn=mt(),tn.position={start:Gm(ze.start),end:void 0},wt.push(tn)),this.stack.push(tn)}function H(ze){const tt=this.stack.pop();tt.value+=this.sliceSerialize(ze),tt.position.end=Gm(ze.end)}function K(ze){const tt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const wt=tt.children[tt.children.length-1];wt.position.end=Gm(ze.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(tt.type)&&(W.call(this,ze),H.call(this,ze))}function Z(){this.data.atHardBreak=!0}function oe(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.value=ze}function te(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.value=ze}function re(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.value=ze}function Y(){const ze=this.stack[this.stack.length-1];if(this.data.inReference){const tt=this.data.referenceType||"shortcut";ze.type+="Reference",ze.referenceType=tt,delete ze.url,delete ze.title}else delete ze.identifier,delete ze.label;this.data.referenceType=void 0}function z(){const ze=this.stack[this.stack.length-1];if(this.data.inReference){const tt=this.data.referenceType||"shortcut";ze.type+="Reference",ze.referenceType=tt,delete ze.url,delete ze.title}else delete ze.identifier,delete ze.label;this.data.referenceType=void 0}function U(ze){const tt=this.sliceSerialize(ze),wt=this.stack[this.stack.length-2];wt.label=K8t(tt),wt.identifier=Od(tt).toLowerCase()}function G(){const ze=this.stack[this.stack.length-1],tt=this.resume(),wt=this.stack[this.stack.length-1];if(this.data.inReference=!0,wt.type==="link"){const tn=ze.children;wt.children=tn}else wt.alt=tt}function B(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.url=ze}function Q(){const ze=this.resume(),tt=this.stack[this.stack.length-1];tt.title=ze}function ie(){this.data.inReference=void 0}function q(){this.data.referenceType="collapsed"}function fe(ze){const tt=this.resume(),wt=this.stack[this.stack.length-1];wt.label=tt,wt.identifier=Od(this.sliceSerialize(ze)).toLowerCase(),this.data.referenceType="full"}function ke(ze){this.data.characterReferenceType=ze.type}function Be(ze){const tt=this.sliceSerialize(ze),wt=this.data.characterReferenceType;let tn;wt?(tn=JCe(tt,wt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):tn=Yq(tt);const ot=this.stack[this.stack.length-1];ot.value+=tn}function Qe(ze){const tt=this.stack.pop();tt.position.end=Gm(ze.end)}function ft(ze){H.call(this,ze);const tt=this.stack[this.stack.length-1];tt.url=this.sliceSerialize(ze)}function Ne(ze){H.call(this,ze);const tt=this.stack[this.stack.length-1];tt.url="mailto:"+this.sliceSerialize(ze)}function rt(){return{type:"blockquote",children:[]}}function Mt(){return{type:"code",lang:null,meta:null,value:""}}function it(){return{type:"inlineCode",value:""}}function Rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xt(){return{type:"emphasis",children:[]}}function Nn(){return{type:"heading",depth:0,children:[]}}function Hn(){return{type:"break"}}function $n(){return{type:"html",value:""}}function Wn(){return{type:"image",title:null,url:"",alt:null}}function nr(){return{type:"link",title:null,url:"",children:[]}}function Cn(ze){return{type:"list",ordered:ze.type==="listOrdered",start:null,spread:ze._spread,children:[]}}function Nr(ze){return{type:"listItem",spread:ze._spread,checked:null,children:[]}}function ki(){return{type:"paragraph",children:[]}}function yr(){return{type:"strong",children:[]}}function mt(){return{type:"text",value:""}}function zt(){return{type:"thematicBreak"}}}function Gm(t){return{line:t.line,column:t.column,offset:t.offset}}function c_e(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?c_e(t,r):J8t(t,r)}}function J8t(t,e){let n;for(n in e)if(l_e.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function Kse(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+X4({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+X4({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+X4({start:e.start,end:e.end})+") is still open")}function Z8t(t){const e=this;e.parser=n;function n(r){return Q8t(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function e7t(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function t7t(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:` 911`}]}function n7t(t,e){const n=e.value?e.value+` 912`:"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}function r7t(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function i7t(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function s7t(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=Kw(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let o,a=t.footnoteCounts.get(r);a===void 0?(a=0,t.footnoteOrder.push(r),o=t.footnoteOrder.length):o=s+1,a+=1,t.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)}function o7t(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function a7t(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function u_e(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function l7t(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return u_e(t,e);const i={src:Kw(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}function c7t(t,e){const n={src:Kw(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function u7t(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function h7t(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return u_e(t,e);const i={href:Kw(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function d7t(t,e){const n={href:Kw(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function f7t(t,e,n){const r=t.all(e),i=n?p7t(n):h_e(e),s={},o=[];if(typeof e.checked=="boolean"){const u=r[0];let h;u&&u.type==="element"&&u.tagName==="p"?h=u:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(i||a!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:` 913`}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:` 914`});const c={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,c),t.applyData(e,c)}function p7t(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=h_e(n[r])}return e}function h_e(t){const e=t.spread;return e??t.children.length>1}function m7t(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}function g7t(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function y7t(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function b7t(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function v7t(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},a=Sp(e.children[1]),l=FI(e.children[e.children.length-1]);a&&l&&(o.position={start:a,end:l}),i.push(o)}const s={type:"element",tagName:"table",properties:{}
vendor: 5,949 bytes, line 914
914,children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function x7t(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:e.children.length;let l=-1;const c=[];for(;++l<a;){const h=e.children[l],d={},p=o?o[l]:void 0;p&&(d.align=p);let g={type:"element",tagName:s,properties:d,children:[]};h&&(g.children=t.all(h),t.patch(h,g),g=t.applyData(h,g)),c.push(g)}const u={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,u),t.applyData(e,u)}function w7t(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const Yse=9,Qse=32;function S7t(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(Xse(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(Xse(e.slice(i),i>0,!1)),s.join("")}function Xse(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===Yse||s===Qse;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===Yse||s===Qse;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}function k7t(t,e){const n={type:"text",value:S7t(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function C7t(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const _7t={blockquote:e7t,break:t7t,code:n7t,delete:r7t,emphasis:i7t,footnoteReference:s7t,heading:o7t,html:a7t,imageReference:l7t,image:c7t,inlineCode:u7t,linkReference:h7t,link:d7t,listItem:f7t,list:m7t,paragraph:g7t,root:y7t,strong:b7t,table:v7t,tableCell:w7t,tableRow:x7t,text:k7t,thematicBreak:C7t,toml:_E,yaml:_E,definition:_E,footnoteDefinition:_E};function _E(){}const d_e=-1,zI=0,Z4=1,bP=2,Xq=3,Jq=4,Zq=5,eG=6,f_e=7,p_e=8,Jse=typeof self=="object"?self:globalThis,T7t=(t,e)=>{const n=(i,s)=>(t.set(s,i),i),r=i=>{if(t.has(i))return t.get(i);const[s,o]=e[i];switch(s){case zI:case d_e:return n(o,i);case Z4:{const a=n([],i);for(const l of o)a.push(r(l));return a}case bP:{const a=n({},i);for(const[l,c]of o)a[r(l)]=r(c);return a}case Xq:return n(new Date(o),i);case Jq:{const{source:a,flags:l}=o;return n(new RegExp(a,l),i)}case Zq:{const a=n(new Map,i);for(const[l,c]of o)a.set(r(l),r(c));return a}case eG:{const a=n(new Set,i);for(const l of o)a.add(r(l));return a}case f_e:{const{name:a,message:l}=o;return n(new Jse[a](l),i)}case p_e:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new Jse[s](o),i)};return r},Zse=t=>T7t(new Map,t)(0),Fv="",{toString:E7t}={},{keys:A7t}=Object,p3=t=>{const e=typeof t;if(e!=="object"||!t)return[zI,e];const n=E7t.call(t).slice(8,-1);switch(n){case"Array":return[Z4,Fv];case"Object":return[bP,Fv];case"Date":return[Xq,Fv];case"RegExp":return[Jq,Fv];case"Map":return[Zq,Fv];case"Set":return[eG,Fv];case"DataView":return[Z4,n]}return n.includes("Array")?[Z4,n]:n.includes("Error")?[f_e,n]:[bP,n]},TE=([t,e])=>t===zI&&(e==="function"||e==="symbol"),P7t=(t,e,n,r)=>{const i=(o,a)=>{const l=r.push(o)-1;return n.set(a,l),l},s=o=>{if(n.has(o))return n.get(o);let[a,l]=p3(o);switch(a){case zI:{let u=o;switch(l){case"bigint":a=p_e,u=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([d_e],o)}return i([a,u],o)}case Z4:{if(l){let d=o;return l==="DataView"?d=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(o)),i([l,[...d]],o)}const u=[],h=i([a,u],o);for(const d of o)u.push(s(d));return h}case bP:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const u=[],h=i([a,u],o);for(const d of A7t(o))(t||!TE(p3(o[d])))&&u.push([s(d),s(o[d])]);return h}case Xq:return i([a,o.toISOString()],o);case Jq:{const{source:u,flags:h}=o;return i([a,{source:u,flags:h}],o)}case Zq:{const u=[],h=i([a,u],o);for(const[d,p]of o)(t||!(TE(p3(d))||TE(p3(p))))&&u.push([s(d),s(p)]);return h}case eG:{const u=[],h=i([a,u],o);for(const d of o)(t||!TE(p3(d)))&&u.push(s(d));return h}}const{message:c}=o;return i([a,{name:l,message:c}],o)};return s},eoe=(t,{json:e,lossy:n}={})=>{const r=[];return P7t(!(e||n),!!e,new Map,r)(t),r},tp=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Zse(eoe(t,e)):structuredClone(t):(t,e)=>Zse(eoe(t,e));function O7t(t,e){const n=[{type:"text",value:"â©"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function I7t(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function D7t(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||O7t,r=t.options.footnoteBackLabel||I7t,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<t.footnoteOrder.length;){const c=t.footnoteById.get(t.footnoteOrder[l]);if(!c)continue;const u=t.all(c),h=String(c.identifier).toUpperCase(),d=Kw(h.toLowerCase());let p=0;const g=[],y=t.footnoteCounts.get(h);for(;y!==void 0&&++p<=y;){g.length>0&&g.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,p);typeof S=="string"&&(S={type:"text",value:S}),g.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const b=u[u.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const S=b.children[b.children.length-1];S&&S.type==="text"?S.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...g)}else u.push(...g);const w={type:"element",tagName:"li",properties:{id:e+"fn-"+d},children:t.wrap(u,!0)};t.patch(c,w),a.push(w)}
vendor: 5,919 bytes, lines 914-920
914if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...tp(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 915`},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:` 916`}]}}const V_=function(t){if(t==null)return L7t;if(typeof t=="function")return HI(t);if(typeof t=="object")return Array.isArray(t)?M7t(t):N7t(t);if(typeof t=="string")return R7t(t);throw new Error("Expected function, string, or object as test")};function M7t(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=V_(t[n]);return HI(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function N7t(t){const e=t;return HI(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function R7t(t){return HI(e);function e(n){return n&&n.type===t}}function HI(t){return e;function e(n,r,i){return!!(B7t(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function L7t(){return!0}function B7t(t){return t!==null&&typeof t=="object"&&"type"in t}const m_e=[],F7t=!0,_j=!1,g_e="skip";function tG(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=V_(i),o=r?-1:1;a(t,void 0,[])();function a(l,c,u){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=m_e,g,y,b;if((!e||s(l,c,u[u.length-1]||void 0))&&(p=$7t(n(l,u)),p[0]===_j))return p;if("children"in l&&l.children){const w=l;if(w.children&&p[0]!==g_e)for(y=(r?w.children.length:-1)+o,b=u.concat(w);y>-1&&y<w.children.length;){const S=w.children[y];if(g=a(S,y,b)(),g[0]===_j)return g;y=typeof g[1]=="number"?g[1]:y+o}}return p}}}function $7t(t){return Array.isArray(t)?t:typeof t=="number"?[F7t,t]:t==null?m_e:[t]}function W_(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),tG(t,s,a,i);function a(l,c){const u=c[c.length-1],h=u?u.children.indexOf(l):void 0;return o(l,h,u)}}const Tj={}.hasOwnProperty,j7t={};function z7t(t,e){const n=e||j7t,r=new Map,i=new Map,s=new Map,o={..._7t,...n.handlers},a={all:c,applyData:U7t,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:H7t,wrap:W7t};return W_(t,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const h=u.type==="definition"?r:i,d=String(u.identifier).toUpperCase();h.has(d)||h.set(d,u)}}),a;function l(u,h){const d=u.type,p=a.handlers[d];if(Tj.call(a.handlers,d)&&p)return p(a,u,h);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in u){const{children:y,...b}=u,w=tp(b);return w.children=a.all(u),w}return tp(u)}return(a.options.unknownHandler||V7t)(a,u,h)}function c(u){const h=[];if("children"in u){const d=u.children;let p=-1;for(;++p<d.length;){const g=a.one(d[p],u);if(g){if(p&&d[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=toe(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=toe(y.value))}Array.isArray(g)?h.push(...g):h.push(g)}}}return h}}function H7t(t,e){t.position&&(e.position=WCe(t))}function U7t(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,tp(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function V7t(t,e){const n=e.data||{},r="value"in e&&!(Tj.call(n,"hProperties")||Tj.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function W7t(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:` 917`});++r<t.length;)r&&n.push({type:"text",value:` 918`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:` 919`}),n}function toe(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function noe(t,e){const n=z7t(t,e),r=n.one(t,void 0),i=D7t(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:` 920`},i),s}function q7t(t,e){return t&&"run"in t?async function(n,r){const i=noe(n,{file:r,...e});await t.run(i,r)}:function(n,r){return noe(n,{file:r,...t||e})}}function roe(t){if(t)throw t}var wR,ioe;function G7t(){if(ioe)return wR;ioe=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):e.call(c)==="[object Array]"},s=function(c){if(!c||e.call(c)!=="[object Object]")return!1;var u=t.call(c,"constructor"),h=c.constructor&&c.constructor.prototype&&t.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!h)return!1;var d;for(d in c);return typeof d>"u"||t.call(c,d)},o=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},a=function(c,u){if(u==="__proto__")if(t.call(c,u)){if(r)return r(c,u).value}else return;return c[u]};return wR=function l(){var c,u,h,d,p,g,y=arguments[0],b=1,w=arguments.length,S=!1;for(typeof y=="boolean"&&(S=y,y=arguments[1]||{},b=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});b<w;++b)if(c=arguments[b],c!=null)for(u in c)h=a(y,u),d=a(c,u),y!==d&&(S&&d&&(s(d)||(p=i(d)))?(p?(p=!1,g=h&&i(h)?h:[]):g=h&&s(h)?h:{},o(y,{name:u,newValue:l(S,g,d)})):typeof d<"u"&&o(y,{name:u,newValue:d}));return y},wR}var K7t=G7t();const SR=zc(K7t);function Ej(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
vendor: 14,368 bytes, line 920
920return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Y7t(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...c){const u=t[++s];let h=-1;if(l){o(l);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,u?Q7t(u,a)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function Q7t(t,e){let n;return r;function r(...o){const a=t.length>o.length;let l;a&&o.push(i);try{l=t.apply(this,o)}catch(c){const u=c;if(a&&n)throw u;return i(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,e(o,...a))}function s(o){i(null,o)}}const yf={basename:X7t,dirname:J7t,extname:Z7t,join:ePt,sep:"/"};function X7t(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');q_(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let o=-1,a=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(t.codePointAt(i)===e.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=t.length),t.slice(n,r)}function J7t(t){if(q_(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function Z7t(t){q_(t);let e=t.length,n=-1,r=0,i=-1,s=0,o;for(;e--;){const a=t.codePointAt(e);if(a===47){if(o){r=e+1;break}continue}n<0&&(o=!0,n=e+1),a===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function ePt(...t){let e=-1,n;for(;++e<t.length;)q_(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":tPt(n)}function tPt(t){q_(t);const e=t.codePointAt(0)===47;let n=nPt(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function nPt(t,e){let n="",r=0,i=-1,s=0,o=-1,a,l;for(;++o<=t.length;){if(o<t.length)a=t.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,o):n=t.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function q_(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const rPt={cwd:iPt};function iPt(){return"/"}function Aj(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function sPt(t){if(typeof t=="string")t=new URL(t);else if(!Aj(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return oPt(t)}function oPt(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const kR=["history","path","basename","stem","extname","dirname"];class y_e{constructor(e){let n;e?Aj(e)?n={path:e}:typeof e=="string"||aPt(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":rPt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<kR.length;){const s=kR[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)kR.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?yf.basename(this.path):void 0}set basename(e){_R(e,"basename"),CR(e,"basename"),this.path=yf.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?yf.dirname(this.path):void 0}set dirname(e){soe(this.basename,"dirname"),this.path=yf.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?yf.extname(this.path):void 0}set extname(e){if(CR(e,"extname"),soe(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yf.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Aj(e)&&(e=sPt(e)),_R(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?yf.basename(this.path,this.extname):void 0}set stem(e){_R(e,"stem"),CR(e,"stem"),this.path=yf.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new xl(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function CR(t,e){if(t&&t.includes(yf.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+yf.sep+"`")}function _R(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function soe(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function aPt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const lPt=function(t){const r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},cPt={}.hasOwnProperty;class nG extends lPt{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Y7t()}copy(){const e=new nG;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(SR(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(AR("data",this.frozen),this.namespace[e]=n,this):cPt.call(this.namespace,e)&&this.namespace[e]||void 0:e?(AR("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=EE(e),r=this.parser||this.Parser;return TR("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),TR("process",this.parser||this.Parser),ER("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const a=EE(e),l=r.parse(a);r.run(l,a,function(u,h,d){if(u||!h||!d)return c(u);const p=h,g=r.stringify(p,d);dPt(g)?d.value=g:d.result=g,c(u,d)});function c(u,h){u||!h?o(u):s?s(h):n(void 0,h)}}}processSync(e){let n=!1,r;return this.freeze(),TR("processSync",this.parser||this.Parser),ER("processSync",this.compiler||this.Compiler),this.process(e,i),aoe("processSync","process",n),r;function i(s,o){n=!0,roe(s),r=o}}run(e,n,r){ooe(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){const l=EE(n);i.run(e,l,c);function c(u,h,d){const p=h||e;u?a(u):o?o(p):r(void 0,p,d)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),aoe("runSync","run",r),i;function s(o,a){roe(o),i=a,r=!0}}stringify(e,n){this.freeze();const r=EE(n),i=this.compiler||this.Compiler;return ER("stringify",i),ooe(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(AR("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?a(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...h]=c;l(u,h)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(i.settings=SR(!0,i.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const h=c[u];s(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let h=-1,d=-1;for(;++h<r.length;)if(r[h][0]===c){d=h;break}if(d===-1)r.push([c,...u]);else if(u.length>0){let[p,...g]=u;const y=r[d][1];Ej(y)&&Ej(p)&&(p=SR(!0,y,p)),r[d]=[c,p,...g]}}}}const uPt=new nG().freeze();function TR(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function ER(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function AR(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ooe(t){if(!Ej(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function aoe(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function EE(t){return hPt(t)?t:new y_e(t)}function hPt(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function dPt(t){return typeof t=="string"||fPt(t)}function fPt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const pPt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",loe=[],coe={allowDangerousHtml:!0},mPt=/^(https?|ircs?|mailto|xmpp)$/i,gPt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yPt(t){const e=bPt(t),n=vPt(t);return xPt(e.runSync(e.parse(n),n),t)}function bPt(t){const e=t.rehypePlugins||loe,n=t.remarkPlugins||loe,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...coe}:coe;return uPt().use(Z8t).use(n).use(q7t,r).use(e)}function vPt(t){const e=t.children||"",n=new y_e;return typeof e=="string"&&(n.value=e),n}function xPt(t,e){const n=e.allowedElements,r=e.allowElement,i=e.components,s=e.disallowedElements,o=e.skipHtml,a=e.unwrapDisallowed,l=e.urlTransform||wPt;for(const u of gPt)Object.hasOwn(e,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+pPt+u.id,void 0);return e.className&&(t={type:"element",tagName:"div",properties:{className:e.className},children:t.type==="root"?t.children:[t]}),W_(t,c),L6t(t,{Fragment:x.Fragment,components:i,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function c(u,h,d){if(u.type==="raw"&&d&&typeof h=="number")return o?d.children.splice(h,1):d.children[h]={type:"text",value:u.value},h;if(u.type==="element"){let p;for(p in bR)if(Object.hasOwn(bR,p)&&Object.hasOwn(u.properties,p)){const g=u.properties[p],y=bR[p];(y===null||y.includes(u.tagName))&&(u.properties[p]=l(String(g||""),p,u))}}if(u.type==="element"){let p=n?!n.includes(u.tagName):s?s.includes(u.tagName):!1;if(!p&&r&&typeof h=="number"&&(p=!r(u,h,d)),p&&d&&typeof h=="number")return a&&u.children?d.children.splice(h,1,...u.children):d.children.splice(h,1),h}}}function wPt(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||r!==-1&&e>r||mPt.test(t.slice(0,e))?t:""}function uoe(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function SPt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function kPt(t,e,n){const i=V_((n||{}).ignore||[]),s=CPt(e);let o=-1;for(;++o<s.length;)tG(t,"text",a);function a(c,u){let h=-1,d;for(;++h<u.length;){const p=u[h],g=d?d.children:void 0;if(i(p,g?g.indexOf(p):void 0,d))return;d=p}if(d)return l(c,u)}function l(c,u){const h=u[u.length-1],d=s[o][0],p=s[o][1];let g=0;const b=h.children.indexOf(c);let w=!1,S=[];d.lastIndex=0;let T=d.exec(c.value);for(;T;){const D=T.index,E={index:T.index,input:T.input,stack:[...u,c]};let O=p(...T,E);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?d.lastIndex=D+1:(g!==D&&S.push({type:"text",value:c.value.slice(g,D)}),Array.isArray(O)?S.push(...O):O&&S.push(O),g=D+T[0].length,w=!0),!d.global)break;T=d.exec(c.value)}return w?(g<c.value.length&&S.push({type:"text",value:c.value.slice(g)}),h.children.splice(b,1,...S)):S=[c],b+S.length}}function CPt(t){const e=[];
vendor: 4,319 bytes, lines 920-921
920if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([_Pt(i[0]),TPt(i[1])])}return e}function _Pt(t){return typeof t=="string"?new RegExp(SPt(t),"g"):t}function TPt(t){return typeof t=="function"?t:function(){return t}}const PR="phrasing",OR=["autolink","link","image","label"];function EPt(){return{transforms:[NPt],enter:{literalAutolink:PPt,literalAutolinkEmail:IR,literalAutolinkHttp:IR,literalAutolinkWww:IR},exit:{literalAutolink:MPt,literalAutolinkEmail:DPt,literalAutolinkHttp:OPt,literalAutolinkWww:IPt}}}function APt(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:PR,notInConstruct:OR},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:PR,notInConstruct:OR},{character:":",before:"[ps]",after:"\\/",inConstruct:PR,notInConstruct:OR}]}}function PPt(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function IR(t){this.config.enter.autolinkProtocol.call(this,t)}function OPt(t){this.config.exit.autolinkProtocol.call(this,t)}function IPt(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function DPt(t){this.config.exit.autolinkEmail.call(this,t)}function MPt(t){this.exit(t)}function NPt(t){kPt(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,RPt],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,LPt]],{ignore:["link","linkReference"]})}function RPt(t,e,n,r,i){let s="";if(!b_e(i)||(/^w/i.test(e)&&(n=e+n,e="",s="http://"),!BPt(n)))return!1;const o=FPt(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:s+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function LPt(t,e,n,r){return!b_e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function BPt(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function FPt(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const i=uoe(t,"(");let s=uoe(t,")");for(;r!==-1&&i>s;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[t,n]}function b_e(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||Eb(n)||$I(n))&&(!e||n!==47)}v_e.peek=GPt;function $Pt(){this.buffer()}function jPt(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function zPt(){this.buffer()}function HPt(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function UPt(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Od(this.sliceSerialize(t)).toLowerCase(),n.label=e}function VPt(t){this.exit(t)}function WPt(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Od(this.sliceSerialize(t)).toLowerCase(),n.label=e}function qPt(t){this.exit(t)}function GPt(){return"["}function v_e(t,e,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return s+=i.move(n.safe(n.associationId(t),{after:"]",before:s})),a(),o(),s+=i.move("]"),s}function KPt(){return{enter:{gfmFootnoteCallString:$Pt,gfmFootnoteCall:jPt,gfmFootnoteDefinitionLabelString:zPt,gfmFootnoteDefinition:HPt},exit:{gfmFootnoteCallString:UPt,gfmFootnoteCall:VPt,gfmFootnoteDefinitionLabelString:WPt,gfmFootnoteDefinition:qPt}}}function YPt(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:v_e},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,o){const a=s.createTracker(o);let l=a.move("[^");const c=s.enter("footnoteDefinition"),u=s.enter("label");return l+=a.move(s.safe(s.associationId(r),{before:l,after:"]"})),u(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((e?` 921`:" ")+s.indentLines(s.containerFlow(r,a.current()),e?x_e:QPt))),c(),l}}function QPt(t,e,n){return e===0?t:x_e(t,e,n)}function x_e(t,e,n){return(n?"":" ")+t}const XPt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];w_e.peek=nOt;
vendor: 12,442 bytes, lines 921-933
921function JPt(){return{canContainEols:["delete"],enter:{strikethrough:eOt},exit:{strikethrough:tOt}}}function ZPt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:XPt}],handlers:{delete:w_e}}}function eOt(t){this.enter({type:"delete",children:[]},t)}function tOt(t){this.exit(t)}function w_e(t,e,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(t,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}function nOt(){return"~"}function rOt(t){return t.length}function iOt(t,e){const n=e||{},r=(n.align||[]).concat(),i=n.stringLength||rOt,s=[],o=[],a=[],l=[];let c=0,u=-1;for(;++u<t.length;){const y=[],b=[];let w=-1;for(t[u].length>c&&(c=t[u].length);++w<t[u].length;){const S=sOt(t[u][w]);if(n.alignDelimiters!==!1){const T=i(S);b[w]=T,(l[w]===void 0||T>l[w])&&(l[w]=T)}y.push(S)}o[u]=y,a[u]=b}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<c;)s[h]=hoe(r[h]);else{const y=hoe(r);for(;++h<c;)s[h]=y}h=-1;const d=[],p=[];for(;++h<c;){const y=s[h];let b="",w="";y===99?(b=":",w=":"):y===108?b=":":y===114&&(w=":");let S=n.alignDelimiters===!1?1:Math.max(1,l[h]-b.length-w.length);const T=b+"-".repeat(S)+w;n.alignDelimiters!==!1&&(S=b.length+S+w.length,S>l[h]&&(l[h]=S),p[h]=S),d[h]=T}o.splice(1,0,d),a.splice(1,0,p),u=-1;const g=[];for(;++u<o.length;){const y=o[u],b=a[u];h=-1;const w=[];for(;++h<c;){const S=y[h]||"";let T="",D="";if(n.alignDelimiters!==!1){const E=l[h]-(b[h]||0),O=s[h];O===114?T=" ".repeat(E):O===99?E%2?(T=" ".repeat(E/2+.5),D=" ".repeat(E/2-.5)):(T=" ".repeat(E/2),D=T):D=" ".repeat(E)}n.delimiterStart!==!1&&!h&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&S==="")&&(n.delimiterStart!==!1||h)&&w.push(" "),n.alignDelimiters!==!1&&w.push(T),w.push(S),n.alignDelimiters!==!1&&w.push(D),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||h!==c-1)&&w.push("|")}g.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return g.join(` 922`)}function sOt(t){return t==null?"":String(t)}function hoe(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}const doe={}.hasOwnProperty;function S_e(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const a=r.handlers;if(i&&doe.call(i,t)){const l=String(i[t]);o=doe.call(a,l)?a[l]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function oOt(t,e,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(t,s.current()),aOt);return i(),o}function aOt(t,e,n){return">"+(n?"":" ")+t}function lOt(t,e){return foe(t,e.inConstruct,!0)&&!foe(t,e.notInConstruct,!1)}function foe(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function poe(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 923`&&lOt(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\ 924`}function k_e(t,e){const n=String(t);let r=n.indexOf(e),i=r,s=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+e.length,r=n.indexOf(e,i);return o}function cOt(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function uOt(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function hOt(t,e,n,r){const i=uOt(n),s=t.value||"",o=i==="`"?"GraveAccent":"Tilde";if(cOt(t,n)){const h=n.enter("codeIndented"),d=n.indentLines(s,dOt);return h(),d}const a=n.createTracker(r),l=i.repeat(Math.max(k_e(s,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(t.lang){const h=n.enter(`codeFencedLang${o}`);u+=a.move(n.safe(t.lang,{before:u,after:" ",encode:["`"],...a.current()})),h()}if(t.lang&&t.meta){const h=n.enter(`codeFencedMeta${o}`);u+=a.move(" "),u+=a.move(n.safe(t.meta,{before:u,after:` 925`,encode:["`"],...a.current()})),h()}return u+=a.move(` 926`),s&&(u+=a.move(s+` 927`)),u+=a.move(l),c(),u}function dOt(t,e,n){return(n?"":" ")+t}function rG(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function fOt(t,e,n,r){const i=rG(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":` 928`,...l.current()}))),a(),t.title&&(a=n.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),o(),c}function pOt(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function _C(t){return"&#x"+t.toString(16).toUpperCase()+";"}function vP(t,e,n){const r=hw(t),i=hw(e);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}C_e.peek=mOt;function C_e(t,e,n,r){const i=pOt(n),s=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i);let l=o.move(n.containerPhrasing(t,{after:i,before:a,...o.current()}));const c=l.charCodeAt(0),u=vP(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=_C(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=vP(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+_C(h));const p=o.move(i);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function mOt(t,e,n){return n.options.emphasis||"*"}function gOt(t,e){let n=!1;return W_(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,_j}),!!((!t.depth||t.depth<3)&&Kq(t)&&(e.options.setext||n))}function yOt(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(r);if(gOt(t,n)){const u=n.enter("headingSetext"),h=n.enter("phrasing"),d=n.containerPhrasing(t,{...s.current(),before:` 929`,after:` 930`});return h(),u(),d+` 931`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(` 932`))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(t,{before:"# ",after:` 933`,...s.current()});return/^[\t ]/.test(c)&&(c=_C(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),a(),c}__e.peek=bOt;function __e(t){return t.value||""}function bOt(){return"<"}T_e.peek=vOt;function T_e(t,e,n,r){const i=rG(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(t.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":")",...l.current()}))),a(),t.title&&(a=n.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),o(),c}function vOt(){return"!"}E_e.peek=xOt;function E_e(t,e,n,r){const i=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(t.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return o(),n.stack=u,s(),i==="full"||!c||c!==h?l+=a.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function xOt(){return"!"}A_e.peek=wOt;function A_e(t,e,n){let r=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],a=n.compilePattern(o);let l;if(o.atBreak)for(;l=a.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function wOt(){return"`"}function P_e(t,e){const n=Kq(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}O_e.peek=SOt;function O_e(t,e,n,r){const i=rG(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,l;if(P_e(t,n)){const u=n.stack;n.stack=[],a=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(t,{before:h,after:">",...o.current()})),h+=o.move(">"),a(),n.stack=u,h}a=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(t,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(t.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(t.url,{before:c,after:t.title?" ":")",...o.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(t.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),a(),c}function SOt(t,e,n){return P_e(t,n)?"<":"["}I_e.peek=kOt;function I_e(t,e,n,r){const i=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(t,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return o(),n.stack=u,s(),i==="full"||!c||c!==h?l+=a.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function kOt(){return"["}function iG(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function COt(t){const e=iG(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _Ot(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function D_e(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function TOt(t,e,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?_Ot(n):iG(n);const a=t.ordered?o==="."?")":".":COt(n);let l=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const u=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),D_e(n)===o&&u){let h=-1;for(;++h<t.children.length;){const d=t.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;const c=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}function EOt(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function AOt(t,e,n,r){const i=EOt(n);let s=n.bulletCurrent||iG(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>
vendor: 5,702 bytes, lines 933-935
933-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,a.current()),u);return l(),c;function u(h,d,p){return d?(p?"":" ".repeat(o))+h:(p?s:s+" ".repeat(o-s.length))+h}}function POt(t,e,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,r);return s(),i(),o}const OOt=V_(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function IOt(t,e,n,r){return(t.children.some(function(o){return OOt(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function DOt(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}M_e.peek=MOt;function M_e(t,e,n,r){const i=DOt(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let l=o.move(n.containerPhrasing(t,{after:i,before:a,...o.current()}));const c=l.charCodeAt(0),u=vP(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=_C(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=vP(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+_C(h));const p=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function MOt(t,e,n){return n.options.strong||"*"}function NOt(t,e,n,r){return n.safe(t.value,r)}function ROt(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function LOt(t,e,n){const r=(D_e(n)+(n.options.ruleSpaces?" ":"")).repeat(ROt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const N_e={blockquote:oOt,break:poe,code:hOt,definition:fOt,emphasis:C_e,hardBreak:poe,heading:yOt,html:__e,image:T_e,imageReference:E_e,inlineCode:A_e,link:O_e,linkReference:I_e,list:TOt,listItem:AOt,paragraph:POt,root:IOt,strong:M_e,text:NOt,thematicBreak:LOt};function BOt(){return{enter:{table:FOt,tableData:moe,tableHeader:moe,tableRow:jOt},exit:{codeText:zOt,table:$Ot,tableData:DR,tableHeader:DR,tableRow:DR}}}function FOt(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function $Ot(t){this.exit(t),this.data.inTable=void 0}function jOt(t){this.enter({type:"tableRow",children:[]},t)}function DR(t){this.exit(t)}function moe(t){this.enter({type:"tableCell",children:[]},t)}function zOt(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,HOt));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function HOt(t,e){return e==="|"?e:t}function UOt(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 934`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:l,tableRow:a}};function o(p,g,y,b){return c(u(p,y,b),p.align)}function a(p,g,y,b){const w=h(p,y,b),S=c([w]);return S.slice(0,S.indexOf(` 935`))}function l(p,g,y,b){const w=y.enter("tableCell"),S=y.enter("phrasing"),T=y.containerPhrasing(p,{...b,before:s,after:s});return S(),w(),T}function c(p,g){return iOt(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function u(p,g,y){const b=p.children;let w=-1;const S=[],T=g.enter("table");for(;++w<b.length;)S[w]=h(b[w],g,y);return T(),S}function h(p,g,y){const b=p.children;let w=-1;const S=[],T=g.enter("tableRow");for(;++w<b.length;)S[w]=l(b[w],p,g,y);return T(),S}function d(p,g,y){let b=N_e.inlineCode(p,g,y);return y.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function VOt(){return{exit:{taskListCheckValueChecked:goe,taskListCheckValueUnchecked:goe,paragraph:qOt}}}function WOt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:GOt}}}function goe(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function qOt(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function GOt(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=N_e.listItem(t,e,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function KOt(){return[EPt(),KPt(),JPt(),BOt(),VOt()]}function YOt(t){return{extensions:[APt(),YPt(t),ZPt(),UOt(t),WOt()]}}const QOt={tokenize:nIt,partial:!0},R_e={tokenize:rIt,partial:!0},L_e={tokenize:iIt,partial:!0},B_e={tokenize:sIt,partial:!0},XOt={tokenize:oIt,partial:!0},F_e={name:"wwwAutolink",tokenize:eIt,previous:j_e},$_e={name:"protocolAutolink",tokenize:tIt,previous:z_e},ym={name:"emailAutolink",tokenize:ZOt,previous:H_e},kp={};function JOt(){return{text:kp}}let Z1=48;
vendor: 9,407 bytes, line 935
935for(;Z1<123;)kp[Z1]=ym,Z1++,Z1===58?Z1=65:Z1===91&&(Z1=97);kp[43]=ym;kp[45]=ym;kp[46]=ym;kp[95]=ym;kp[72]=[ym,$_e];kp[104]=[ym,$_e];kp[87]=[ym,F_e];kp[119]=[ym,F_e];function ZOt(t,e,n){const r=this;let i,s;return o;function o(h){return!Pj(h)||!H_e.call(r,r.previous)||sG(r.events)?n(h):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(h))}function a(h){return Pj(h)?(t.consume(h),a):h===64?(t.consume(h),l):n(h)}function l(h){return h===46?t.check(XOt,u,c)(h):h===45||h===95||hl(h)?(s=!0,t.consume(h),l):u(h)}function c(h){return t.consume(h),i=!0,l}function u(h){return s&&i&&Rl(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(h)):n(h)}}function eIt(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!j_e.call(r,r.previous)||sG(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(QOt,t.attempt(R_e,t.attempt(L_e,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function tIt(t,e,n){const r=this;let i="",s=!1;return o;function o(h){return(h===72||h===104)&&z_e.call(r,r.previous)&&!sG(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),t.consume(h),a):n(h)}function a(h){if(Rl(h)&&i.length<5)return i+=String.fromCodePoint(h),t.consume(h),a;if(h===58){const d=i.toLowerCase();if(d==="http"||d==="https")return t.consume(h),l}return n(h)}function l(h){return h===47?(t.consume(h),s?c:(s=!0,l)):n(h)}function c(h){return h===null||yP(h)||hs(h)||Eb(h)||$I(h)?n(h):t.attempt(R_e,t.attempt(L_e,u),n)(h)}function u(h){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(h)}}function nIt(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function rIt(t,e,n){let r,i,s;return o;function o(c){return c===46||c===95?t.check(B_e,l,a)(c):c===null||hs(c)||Eb(c)||c!==45&&$I(c)?l(c):(s=!0,t.consume(c),o)}function a(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function l(c){return i||r||!s?n(c):e(c)}}function iIt(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(B_e,e,s)(o):o===null||hs(o)||Eb(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}function sIt(t,e,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(t.consume(a),r):a===38?(t.consume(a),s):a===93?(t.consume(a),i):a===60||a===null||hs(a)||Eb(a)?e(a):n(a)}function i(a){return a===null||a===40||a===91||hs(a)||Eb(a)?e(a):r(a)}function s(a){return Rl(a)?o(a):n(a)}function o(a){return a===59?(t.consume(a),r):Rl(a)?(t.consume(a),o):n(a)}}function oIt(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return hl(s)?n(s):e(s)}}function j_e(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||hs(t)}function z_e(t){return!Rl(t)}function H_e(t){return!(t===47||Pj(t))}function Pj(t){return t===43||t===45||t===46||t===95||hl(t)}function sG(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const aIt={tokenize:mIt,partial:!0};function lIt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:dIt,continuation:{tokenize:fIt},exit:pIt}},text:{91:{name:"gfmFootnoteCall",tokenize:hIt},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:cIt,resolveTo:uIt}}}}function cIt(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const c=Od(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function uIt(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...a),t}function hIt(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return a;function a(h){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(t.enter("gfmFootnoteCallMarker"),t.consume(h),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(h){if(s>999||h===93&&!o||h===null||h===91||hs(h))return n(h);if(h===93){t.exit("chunkString");const d=t.exit("gfmFootnoteCallString");return i.includes(Od(r.sliceSerialize(d)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(h)}return hs(h)||(o=!0),s++,t.consume(h),h===92?u:c}function u(h){return h===91||h===92||h===93?(t.consume(h),s++,c):c(h)}}function dIt(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!a||g===null||g===91||hs(g))return n(g);if(g===93){t.exit("chunkString");const y=t.exit("gfmFootnoteDefinitionLabelString");return s=Od(r.sliceSerialize(y)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),d}return hs(g)||(a=!0),o++,t.consume(g),g===92?h:u}function h(g){return g===91||g===92||g===93?(t.consume(g),o++,u):u(g)}function d(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),i.includes(s)||i.push(s),ei(t,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return e(g)}}function fIt(t,e,n){return t.check(U_,e,t.attempt(aIt,e,n))}function pIt(t){t.exit("gfmFootnoteDefinition")}function mIt(t,e,n){const r=this;return ei(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function gIt(t){let n=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},h={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},d=[["enter",u,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",h,a]],p=a.parser.constructs.insideSpan.null;p&&Iu(d,d.length,0,jI(p,o.slice(c+1,l),a)),Iu(d,d.length,0,[["exit",h,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",u,a]]),Iu(o,c-1,l-c+3,d),l=c+d.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const c=this.previous,u=this.events;let h=0;return d;function d(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const y=hw(c);if(g===126)return h>1?l(g):(o.consume(g),h++,p);if(h<2&&!n)return l(g);const b=o.exit("strikethroughSequenceTemporary"),w=hw(g);return b._open=!w||w===2&&!!y,b._close=!y||y===2&&!!w,a(g)}}}class yIt{constructor(){this.map=[]}add(e,n,r){bIt(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];
vendor: 7,472 bytes, line 935
935r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const s of i)e.push(s);i=r.pop()}this.map.length=0}}function bIt(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function vIt(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function xIt(){return{flow:{null:{name:"table",tokenize:wIt,resolveAll:SIt}}}}function wIt(t,e,n){const r=this;let i=0,s=0,o;return a;function a(H){let K=r.events.length-1;for(;K>-1;){const te=r.events[K][1].type;if(te==="lineEnding"||te==="linePrefix")K--;else break}const Z=K>-1?r.events[K][1].type:null,oe=Z==="tableHead"||Z==="tableRow"?O:l;return oe===O&&r.parser.lazy[r.now().line]?n(H):oe(H)}function l(H){return t.enter("tableHead"),t.enter("tableRow"),c(H)}function c(H){return H===124||(o=!0,s+=1),u(H)}function u(H){return H===null?n(H):Pn(H)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),p):n(H):si(H)?ei(t,u,"whitespace")(H):(s+=1,o&&(o=!1,i+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),o=!0,u):(t.enter("data"),h(H)))}function h(H){return H===null||H===124||hs(H)?(t.exit("data"),u(H)):(t.consume(H),H===92?d:h)}function d(H){return H===92||H===124?(t.consume(H),h):h(H)}function p(H){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(H):(t.enter("tableDelimiterRow"),o=!1,si(H)?ei(t,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):g(H))}function g(H){return H===45||H===58?b(H):H===124?(o=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),y):E(H)}function y(H){return si(H)?ei(t,b,"whitespace")(H):b(H)}function b(H){return H===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),w):H===45?(s+=1,w(H)):H===null||Pn(H)?D(H):E(H)}function w(H){return H===45?(t.enter("tableDelimiterFiller"),S(H)):E(H)}function S(H){return H===45?(t.consume(H),S):H===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),T):(t.exit("tableDelimiterFiller"),T(H))}function T(H){return si(H)?ei(t,D,"whitespace")(H):D(H)}function D(H){return H===124?g(H):H===null||Pn(H)?!o||i!==s?E(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(H)):E(H)}function E(H){return n(H)}function O(H){return t.enter("tableRow"),P(H)}function P(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),P):H===null||Pn(H)?(t.exit("tableRow"),e(H)):si(H)?ei(t,P,"whitespace")(H):(t.enter("data"),$(H))}function $(H){return H===null||H===124||hs(H)?(t.exit("data"),P(H)):(t.consume(H),H===92?W:$)}function W(H){return H===92||H===124?(t.consume(H),$):$(H)}}function SIt(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,c,u,h;const d=new yIt;for(;++n<t.length;){const p=t[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(yoe(d,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,e]])),i=g.type==="tableDelimiterRow"?2:u?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=AE(d,e,s,i,void 0,h),s=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],h=AE(d,e,s,i,void 0,h)),s=o,o=[s[1],n,0,0])):g.type==="tableHead"?(a=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],h=AE(d,e,s,i,n,h)):o[1]!==0&&(h=AE(d,e,o,i,n,h)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&yoe(d,e,l,c,u),d.consume(e.events),n=-1;++n<e.events.length;){const p=e.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=vIt(e.events,n))}return t}function AE(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},f2(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const l=f2(e.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const c=f2(e.events,n[2]),u=f2(e.events,n[3]),h={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(n[2],0,[["enter",h,e]]),r!==2){const d=e.events[n[2]],p=e.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;t.add(g,y,[])}}t.add(n[3]+1,0,[["exit",h,e]])}return i!==void 0&&(s.end=Object.assign({},f2(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function yoe(t,e,n,r,i){const s=[],o=f2(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}function f2(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const kIt={name:"tasklistCheck",tokenize:_It};function CIt(){return{text:{91:kIt}}}function _It(t,e,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),s)}function s(l){return hs(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(l)}function a(l){return Pn(l)?e(l):si(l)?t.check({tokenize:TIt},e,n)(l):n(l)}}function TIt(t,e,n){return ei(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function EIt(t){return XCe([JOt(),lIt(),gIt(t),xIt(),CIt()])}const AIt={};function PIt(t){const e=this,n=t||AIt,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(EIt(n)),s.push(KOt()),o.push(YOt(n))}function OIt(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:s},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:a,mathText:o,mathTextData:a}};function t(l){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function e(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c;const h=u.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function s(l){this.enter({type:"inlineMath",value:"",data:{hName:"
935code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function o(l){const c=this.resume(),u=this.stack[this.stack.length-1];u.type,this.exit(l),u.value=c,u.data.hChildren.push({type:"text",value:c})}function a(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function IIt(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 936`,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(s,o,a,l){const c=s.value||"",u=a.createTracker(l),h="$".repeat(Math.max(k_e(c,"$")+1,2)),d=a.enter("mathFlow");let p=u.move(h);if(s.meta){const g=a.enter("mathFlowMeta");p+=u.move(a.safe(s.meta,{after:` 937`,before:p,encode:["$"],...u.current()})),g()}return p+=u.move(` 938`),c&&(p+=u.move(c+` 939`)),p+=u.move(h),d(),p}function r(s,o,a){let l=s.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++h<a.unsafe.length;){const d=a.unsafe[h];if(!d.atBreak)continue;const p=a.compilePattern(d);let g;for(;g=p.exec(l);){let y=g.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(g.index+1)}}return u+l+u}function i(){return"$"}}const DIt={tokenize:MIt,concrete:!0,name:"mathFlow"},boe={tokenize:NIt,partial:!0};function MIt(t,e,n){const r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return a;function a(S){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),l(S)}function l(S){return S===36?(t.consume(S),o++,l):o<2?n(S):(t.exit("mathFlowFenceSequence"),ei(t,c,"whitespace")(S))}function c(S){return S===null||Pn(S)?h(S):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),u(S))}function u(S){return S===null||Pn(S)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),h(S)):S===36?n(S):(t.consume(S),u)}function h(S){return t.exit("mathFlowFence"),r.interrupt?e(S):t.attempt(boe,d,b)(S)}function d(S){return t.attempt({tokenize:w,partial:!0},b,p)(S)}function p(S){return(s?ei(t,g,"linePrefix",s+1):g)(S)}function g(S){return S===null?b(S):Pn(S)?t.attempt(boe,d,b)(S):(t.enter("mathFlowValue"),y(S))}function y(S){return S===null||Pn(S)?(t.exit("mathFlowValue"),g(S)):(t.consume(S),y)}function b(S){return t.exit("mathFlow"),e(S)}function w(S,T,D){let E=0;return ei(S,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(W){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),P(W)}function P(W){return W===36?(E++,S.consume(W),P):E<o?D(W):(S.exit("mathFlowFenceSequence"),ei(S,$,"whitespace")(W))}function $(W){return W===null||Pn(W)?(S.exit("mathFlowFence"),T(W)):D(W)}}}function NIt(t,e,n){const r=this;return i;function i(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}function RIt(t){let n=(t||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:LIt,previous:BIt,name:"mathText"};function r(i,s,o){let a=0,l,c;return u;function u(y){return i.enter("mathText"),i.enter("mathTextSequence"),h(y)}function h(y){return y===36?(i.consume(y),a++,h):a<2&&!n?o(y):(i.exit("mathTextSequence"),d(y))}function d(y){return y===null?o(y):y===36?(c=i.enter("mathTextSequence"),l=0,g(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),d):Pn(y)?(i.enter("lineEnding"),i.consume(y),i.exit("lineEnding"),d):(i.enter("mathTextData"),p(y))}function p(y){return y===null||y===32||y===36||Pn(y)?(i.exit("mathTextData"),d(y)):(i.consume(y),p)}function g(y){return y===36?(i.consume(y),l++,g):l===a?(i.exit("mathTextSequence"),i.exit("mathText"),s(y)):(c.type="mathTextData",p(y))}}}function LIt(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[n][1].type="mathTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="mathTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function BIt(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function FIt(t){return{flow:{36:DIt},text:{36:RIt(t)}}}class xu{constructor(e,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=n,this.end=r}static range(e,n){return n?!e||!e.loc||!n.loc||e.loc.lexer!==n.loc.lexer?null:new xu(e.loc.lexer,e.loc.start,n.loc.end):e&&e.loc}}class Ch{constructor(e,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=n}range(e,n){return new Ch(n,xu.range(this,e))}}class Pt{constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+e,i,s,o=n&&n.loc;if(o&&o.start<=o.end){var a=o.lexer.input;i=o.start,s=o.end,i===a.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=a.slice(i,s).replace(/[^]/g,"$&̲"),c;i>15?c="â¦"+a.slice(i-15,i):c=a.slice(0,i);var u;s+15<a.length?u=a.slice(s,s+15)+"â¦":u=a.slice(s),r+=c+l+u}var h=new Error(r);return h.name="ParseError",h.__proto__=Pt.prototype,h.position=i,i!=null&&s!=null&&(h.length=s-i),h.rawMessage=e,h}}Pt.prototype.__proto__=Error.prototype;var $It=function(e,n){return e.indexOf(n)!==-1}
vendor: 6,578 bytes, line 939
939,jIt=function(e,n){return e===void 0?n:e},zIt=/([A-Z])/g,HIt=function(e){return e.replace(zIt,"-$1").toLowerCase()},UIt={"&":"&",">":">","<":"<",'"':""","'":"'"},VIt=/[&><"']/g;function WIt(t){return String(t).replace(VIt,e=>UIt[e])}var U_e=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},qIt=function(e){var n=U_e(e);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},GIt=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},KIt=function(e){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},zn={contains:$It,deflt:jIt,escape:WIt,hyphenate:HIt,getBaseElem:U_e,isCharacterBox:qIt,protocolFromUrl:KIt},ek={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function YIt(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class oG{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var n in ek)if(ek.hasOwnProperty(n)){var r=ek[n];this[n]=e[n]!==void 0?r.processor?r.processor(e[n]):e[n]:YIt(r)}}reportNonstrict(e,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(e,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Pt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+e+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+e+"]"))}}useStrictBehavior(e,n,r){var i=this.strict;if(typeof i=="function")try{i=i(e,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var n=zn.protocolFromUrl(e.url);if(n==null)return!1;e.protocol=n}var r=typeof this.trust=="function"?this.trust(e):this.trust;return!!r}}class Km{constructor(e,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=n,this.cramped=r}sup(){return _f[QIt[this.id]]}sub(){return _f[XIt[this.id]]}fracNum(){return _f[JIt[this.id]]}fracDen(){return _f[ZIt[this.id]]}cramp(){return _f[e9t[this.id]]}text(){return _f[t9t[this.id]]}isTight(){return this.size>=2}}var aG=0,xP=1,yx=2,U0=3,TC=4,gh=5,dw=6,jl=7,_f=[new Km(aG,0,!1),new Km(xP,0,!0),new Km(yx,1,!1),new Km(U0,1,!0),new Km(TC,2,!1),new Km(gh,2,!0),new Km(dw,3,!1),new Km(jl,3,!0)],QIt=[TC,gh,TC,gh,dw,jl,dw,jl],XIt=[gh,gh,gh,gh,jl,jl,jl,jl],JIt=[yx,U0,TC,gh,dw,jl,dw,jl],ZIt=[U0,U0,gh,gh,jl,jl,jl,jl],e9t=[xP,xP,U0,U0,gh,gh,jl,jl],t9t=[aG,xP,yx,U0,yx,U0,yx,U0],Qn={DISPLAY:_f[aG],TEXT:_f[yx],SCRIPT:_f[TC],SCRIPTSCRIPT:_f[dw]},Oj=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function n9t(t){for(var e=0;e<Oj.length;e++)for(var n=Oj[e],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(t>=i[0]&&t<=i[1])return n.name}return null}var NA=[];
vendor: 4,415 bytes, lines 939-990
939Oj.forEach(t=>t.blocks.forEach(e=>NA.push(...e)));function V_e(t){for(var e=0;e<NA.length;e+=2)if(t>=NA[e]&&t<=NA[e+1])return!0;return!1}var $v=80,r9t=function(e,n){return"M95,"+(622+e+n)+` 940c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 941c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 942c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 943s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 944c69,-144,104.5,-217.7,106.5,-221 945l`+e/2.075+" -"+e+` 946c5.3,-9.3,12,-14,20,-14 947H400000v`+(40+e)+`H845.2724 948s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 949c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 950M`+(834+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},i9t=function(e,n){return"M263,"+(601+e+n)+`c0.7,0,18,39.7,52,119 951c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 952c340,-704.7,510.7,-1060.3,512,-1067 953l`+e/2.084+" -"+e+` 954c4.7,-7.3,11,-11,19,-11 955H40000v`+(40+e)+`H1012.3 956s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 957c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 958s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 959c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 960M`+(1001+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},s9t=function(e,n){return"M983 "+(10+e+n)+` 961l`+e/3.13+" -"+e+` 962c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` 963H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 964s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 965c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 966c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 967c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 968c53.7,-170.3,84.5,-266.8,92.5,-289.5z 969M`+(1001+e)+" "+n+"h400000v"+(40+e)+"h-400000z"},o9t=function(e,n){return"M424,"+(2398+e+n)+` 970c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 971c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 972s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 973s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 974l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 975v`+(40+e)+`H1014.6 976s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 977c-2,6,-10,9,-24,9 978c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+n+` 979h400000v`+(40+e)+"h-400000z"},a9t=function(e,n){return"M473,"+(2713+e+n)+` 980c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` 981c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 982s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 983c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 984c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 985s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 986606zM`+(1001+e)+" "+n+"h400000v"+(40+e)+"H1017.7z"},l9t=function(e){var n=e/2;return"M400000 "+e+" H0 L"+n+" 0 l65 45 L145 "+(e-80)+" H400000z"},c9t=function(e,n,r){var i=r-54-n-e;return"M702 "+(e+n)+"H400000"+(40+e)+` 987H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 988h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 989c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 990219 661 l218 661zM702 `+n+"H400000v"+(40+e)+"H742z"},u9t=function(e,n,r){n=1e3*n;var i="";switch(e){case"sqrtMain":i=r9t(n,$v);break;case"sqrtSize1":i=i9t(n,$v);break;case"sqrtSize2":i=s9t(n,$v);break;case"sqrtSize3":i=o9t(n,$v);break;case"sqrtSize4":i=a9t(n,$v);break;case"sqrtTall":i=c9t(n,$v,r)}return i},h9t=function(e,n){switch(e){case"â":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"â£":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"â¥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"â":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"â¢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"â¥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"âª":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"â":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"â":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},voe
vendor: 15,381 bytes, lines 990-1165
990={doubleleftarrow:`M262 157 991l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 992 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 993 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 994c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 995 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 996-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 997-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 998m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 999-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 1000 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 1001-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 1002-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 1003-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 1004c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 1005-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 1006 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 1007-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 1008c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 1009 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1010 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 1011 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 1012-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 1013 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 1014 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 1015 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 1016-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 1017H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 1018 435 0h399565z`,leftgroupunder:`M400000 262 1019H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 1020 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 1021-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 1022-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 1023-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 1024 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 1025-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 1026-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 1027m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 1028 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1029 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 1030-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 1031 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 1032-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 1033v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 1034-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 1035-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 1036 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 1037M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 1038M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 1039-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 1040c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 1041 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 1042M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 1043c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 1044-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 1045 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 1046 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 1047c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 1048 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 1049 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 1050-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 1051-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 1052m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 105360.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 1054-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 1055m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 1056c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 1057-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 1058m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 105985.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 1060-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 1061m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 1062c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 1063-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 1064 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 1065 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 1066-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 1067-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 1068 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 1069-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 1070s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 1071c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 1072 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 1073-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 1074 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 1075 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 1076-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 1077-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 1078 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 1079-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 1080 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 1081m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 1082 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 1083-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 1084-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 1085 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 1086 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 1087-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 1088m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 1089 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 1090-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 1091 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z 1092M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1093 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 1094-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 1095-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 1096 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 1097-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 1098-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 1099-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 1100 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 1101c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 1102 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 1103 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 1104-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 1105 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 1106-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 1107 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 1108 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 1109-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 1110-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 1111 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 1112c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 1113 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 1114-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 1115 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 1116 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 1117 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 1118-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 1119 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 1120 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 1121 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 11223.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 112310.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 1124-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 1125-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 1126H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 1127c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 1128c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 1129-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 1130-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 1131-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 1132-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 1133-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 1134-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 1135-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 1136c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 1137c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 1138s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 1139121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 1140s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 1141c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 1142M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 1143-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 114413.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 1145-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 1146-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 1147-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 1148151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 1149c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 1150c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 1151c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 1152c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 1153M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 1154c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 1155-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 1156c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 1157M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 1158c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 11591c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 1160-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 1161M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 1162c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 1163-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 1164c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 1165M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 3,204 bytes, lines 1165-1193
1165d9t=function(e,n){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 1166H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z 1167M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 1168c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 1169c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 1170c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 1171c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z 1172M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 1173c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 1174c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z 1175MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z 1176MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z 1177M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z 1178M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 1179c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 1180-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 1181949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 1182c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 1183-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 1184l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 1185-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 118663,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 1187c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` 1188c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 1189c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 1190c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 1191c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 1192l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 1193-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class G_{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return zn.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){for(var e="",n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e}toText(){var e=n=>n.toText();return this.children.map(e).join("")}}var zf
vendor: 57,629 bytes, line 1193
1193={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 11,023 bytes, line 1193
1193PE={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},xoe={Ã
:"A",Ã:"D",Ã:"o",Ã¥:"a",ð:"d",þ:"o",Ð:"A",Ð:"B",Ð:"B",Ð:"F",Ð:"A",Ð:"E",Ð:"K",Ð:"3",Ð:"N",Ð:"N",Ð:"K",Ð:"N",Ð:"M",Ð:"H",Ð:"O",Ð:"N",Ð :"P",С:"C",Т:"T",У:"y",Ф:"O",Ð¥:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Ð:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",Ñ:"p",Ñ:"c",Ñ:"o",Ñ:"y",Ñ:"b",Ñ
:"x",Ñ:"n",Ñ:"n",Ñ:"w",Ñ:"w",Ñ:"a",Ñ:"m",Ñ:"a",Ñ:"e",Ñ:"m",Ñ:"r"};function W_e(t,e){zf[t]=e}function lG(t,e,n){if(!zf[e])throw new Error("Font metrics not found for font: "+e+".");var r=t.charCodeAt(0),i=zf[e][r];if(!i&&t[0]in xoe&&(r=xoe[t[0]].charCodeAt(0),i=zf[e][r]),!i&&n==="text"&&V_e(r)&&(i=zf[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var MR={};function f9t(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!MR[e]){var n=MR[e]={cssEmPerMu:PE.quad[e]/18};for(var r in PE)PE.hasOwnProperty(r)&&(n[r]=PE[r][e])}return MR[e]}var p9t=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],woe=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Soe=function(e,n){return n.size<2?e:p9t[e-1][n.size-1]};class m0{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||m0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=woe[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return new m0(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Soe(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:woe[e-1]})}havingBaseStyle(e){e=e||this.style.text();var n=Soe(m0.BASESIZE,e);return this.size===n&&this.textSize===m0.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==m0.BASESIZE?["sizing","reset-size"+this.size,"size"+m0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=f9t(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}m0.BASESIZE=6;var Ij={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},m9t={ex:!0,em:!0,mu:!0},q_e=function(e){return typeof e!="string"&&(e=e.unit),e in Ij||e in m9t||e==="ex"},ro=function(e,n){var r;if(e.unit in Ij)r=Ij[e.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(e.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,e.unit==="ex")r=i.fontMetrics().xHeight;else if(e.unit==="em")r=i.fontMetrics().quad;else throw new Pt("Invalid unit: '"+e.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(e.number*r,n.maxSize)},Vt=function(e){return+e.toFixed(4)+"em"},n1=function(e){return e.filter(n=>n).join(" ")},G_e=function(e,n,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},K_e=function(e){var n=document.createElement(e);n.className=n1(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},g9t=/[\s"'>/=\x00-\x1f]/,Y_e=function(e){var n="<"+e;this.classes.length&&(n+=' class="'+zn.escape(n1(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=zn.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+zn.escape(r)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(g9t.test(s))throw new Pt("Invalid attribute name '"+s+"'");n+=" "+s+'="'+zn.escape(this.attributes[s])+'"'}n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+e+">",n};class K_{constructor(e,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,G_e.call(this,e,r,i),this.children=n||[]}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return zn.contains(this.classes,e)}toNode(){return K_e.call(this,"span")}toMarkup(){return Y_e.call(this,"span")}}class cG{constructor(e,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,G_e.call(this,n,i),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return zn.contains(this.classes,e)}toNode(){return K_e.call(this,"a")}toMarkup(){return Y_e.call(this,"a")}}class y9t{constructor(e,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return zn.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);return e}toMarkup(){var e='<img src="'+zn.escape(this.src)+'"'+(' alt="'+zn.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=zn.hyphenate(r)+":"+this.style[r]+";");return n&&(e+=' style="'+zn.escape(n)+'"'),e+="'/>",e}}var b9t={î:"ıÌ",ï:"ıÌ",Ã:"ıÌ",ì:"ıÌ"};class Mh{constructor(e,n,r,i,s,o,a,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=n||0,this.depth=r||0,this.italic=i||0,this.skew=s||0,this.width=o||0,this.classes=a||[],this.style=l||{},this.maxFontSize=0;var c=n9t(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=b9t[this.text])}hasClass(e){return zn.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Vt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=n1(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(e),n):e}toMarkup(){var e=!1,n="<span";this.classes.length&&(e=!0,n+=' class="',n+=zn.escape(n1(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=zn.hyphenate(i)+":"+this.style[i]+";");r&&(e=!0,n+=' style="'+zn.escape(r)+'"');var s=zn.escape(this.text);return e?(n+=">",n+=s,n+="</span>",n):s}}class sm{constructor(e,n){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=n||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+zn.escape(this.attributes[n])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>",e}}class r1{constructor(e,n){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=n}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",voe[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+zn.escape(this.alternate)+'"/>':'<path d="'+zn.escape(voe[this.pathName])+'"/>'}}class Dj{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var e="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+zn.escape(this.attributes[n])+'"');return e+="/>",e}}function koe(t){if(t instanceof Mh)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function v9t(t){if(t instanceof K_)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var x9t={bin:1,close:1,inner:1,open:1,punct:1,rel:1},w9t={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ks={math:{},text:{}};function N(t,e,n,r,i,s){ks[t][i]={font:e,group:n,replace:r},s&&r&&(ks[t][r]=ks[t][i])}
1193var j="math",yt="text",J="main",de="ams",Ys="accent-token",hn="bin",Ql="close",Yw="inner",Yn="mathord",Ko="op-token",Fu="open",UI="punct",me="rel",bm="spacing",Ee="textord";N(j,J,me,"â¡","\\equiv",!0);N(j,J,me,"âº","\\prec",!0);N(j,J,me,"â»","\\succ",!0);N(j,J,me,"â¼","\\sim",!0);N(j,J,me,"â¥","\\perp");N(j,J,me,"⪯","\\preceq",!0);N(j,J,me,"⪰","\\succeq",!0);N(j,J,me,"â","\\simeq",!0);N(j,J,me,"â£","\\mid",!0);N(j,J,me,"âª","\\ll",!0);N(j,J,me,"â«","\\gg",!0);N(j,J,me,"â","\\asymp",!0);N(j,J,me,"â¥","\\parallel");N(j,J,me,"â","\\bowtie",!0);N(j,J,me,"â£","\\smile",!0);N(j,J,me,"â","\\sqsubseteq",!0);N(j,J,me,"â","\\sqsupseteq",!0);N(j,J,me,"â","\\doteq",!0);N(j,J,me,"â¢","\\frown",!0);N(j,J,me,"â","\\ni",!0);N(j,J,me,"â","\\propto",!0);N(j,J,me,"â¢","\\vdash",!0);N(j,J,me,"â£","\\dashv",!0);N(j,J,me,"â","\\owns");N(j,J,UI,".","\\ldotp");N(j,J,UI,"â
","\\cdotp");N(j,J,Ee,"#","\\#");N(yt,J,Ee,"#","\\#");N(j,J,Ee,"&","\\&");N(yt,J,Ee,"&","\\&");N(j,J,Ee,"âµ","\\aleph",!0);N(j,J,Ee,"â","\\forall",!0);N(j,J,Ee,"â","\\hbar",!0);N(j,J,Ee,"â","\\exists",!0);N(j,J,Ee,"â","\\nabla",!0);N(j,J,Ee,"â","\\flat",!0);N(j,J,Ee,"â","\\ell",!0);N(j,J,Ee,"â®","\\natural",!0);N(j,J,Ee,"â£","\\clubsuit",!0);N(j,J,Ee,"â","\\wp",!0);N(j,J,Ee,"â¯","\\sharp",!0);N(j,J,Ee,"â¢","\\diamondsuit",!0);N(j,J,Ee,"â","\\Re",!0);N(j,J,Ee,"â¡","\\heartsuit",!0);N(j,J,Ee,"â","\\Im",!0);N(j,J,Ee,"â ","\\spadesuit",!0);N(j,J,Ee,"§","\\S",!0);N(yt,J,Ee,"§","\\S");N(j,J,Ee,"¶","\\P",!0);N(yt,J,Ee,"¶","\\P");N(j,J,Ee,"â ","\\dag");N(yt,J,Ee,"â ","\\dag");N(yt,J,Ee,"â ","\\textdagger");N(j,J,Ee,"â¡","\\ddag");N(yt,J,Ee,"â¡","\\ddag");N(yt,J,Ee,"â¡","\\textdaggerdbl");N(j,J,Ql,"â±","\\rmoustache",!0);N(j,J,Fu,"â°","\\lmoustache",!0);N(j,J,Ql,"â¯","\\rgroup",!0);N(j,J,Fu,"â®","\\lgroup",!0);N(j,J,hn,"â","\\mp",!0);N(j,J,hn,"â","\\ominus",!0);N(j,J,hn,"â","\\uplus",!0);N(j,J,hn,"â","\\sqcap",!0);N(j,J,hn,"â","\\ast");N(j,J,hn,"â","\\sqcup",!0);N(j,J,hn,"â¯","\\bigcirc",!0);N(j,J,hn,"â","\\bullet",!0);N(j,J,hn,"â¡","\\ddagger");N(j,J,hn,"â","\\wr",!0);N(j,J,hn,"⨿","\\amalg");N(j,J,hn,"&","\\And");N(j,J,me,"âµ","\\longleftarrow",!0);N(j,J,me,"â","\\Leftarrow",!0);N(j,J,me,"â¸","\\Longleftarrow",!0);N(j,J,me,"â¶","\\longrightarrow",!0);N(j,J,me,"â","\\Rightarrow",!0);N(j,J,me,"â¹","\\Longrightarrow",!0);N(j,J,me,"â","\\leftrightarrow",!0);N(j,J,me,"â·","\\longleftrightarrow",!0);N(j,J,me,"â","\\Leftrightarrow",!0);N(j,J,me,"âº","\\Longleftrightarrow",!0);N(j,J,me,"â¦","\\mapsto",!0);N(j,J,me,"â¼","\\longmapsto",!0);N(j,J,me,"â","\\nearrow",!0);N(j,J,me,"â©","\\hookleftarrow",!0);N(j,J,me,"âª","\\hookrightarrow",!0);N(j,J,me,"â","\\searrow",!0);N(j,J,me,"â¼","\\leftharpoonup",!0);N(j,J,me,"â","\\rightharpoonup",!0);N(j,J,me,"â","\\swarrow",!0);N(j,J,me,"â½","\\leftharpoondown",!0);N(j,J,me,"â","\\rightharpoondown",!0);N(j,J,me,"â","\\nwarrow",!0);N(j,J,me,"â","\\rightleftharpoons",!0);N(j,de,me,"â®","\\nless",!0);N(j,de,me,"î","\\@nleqslant");N(j,de,me,"î","\\@nleqq");N(j,de,me,"âª","\\lneq",!0);N(j,de,me,"â¨","\\lneqq",!0);N(j,de,me,"î","\\@lvertneqq");N(j,de,me,"â¦","\\lnsim",!0);N(j,de,me,"âª","\\lnapprox",!0);N(j,de,me,"â","\\nprec",!0);N(j,de,me,"â ","\\npreceq",!0);N(j,de,me,"â¨","\\precnsim",!0);N(j,de,me,"⪹","\\precnapprox",!0);N(j,de,me,"â","\\nsim",!0);N(j,de,me,"î","\\@nshortmid");N(j,de,me,"â¤","\\nmid",!0);N(j,de,me,"â¬","\\nvdash",!0);N(j,de,me,"â","\\nvDash",!0);N(j,de,me,"âª","\\ntriangleleft");N(j,de,me,"â¬","\\ntrianglelefteq",!0);N(j,de,me,"â","\\subsetneq",!0);N(j,de,me,"î","\\@varsubsetneq");N(j,de,me,"â«","\\subsetneqq",!0);N(j,de,me,"î","\\@varsubsetneqq");N(j,de,me,"â¯","\\ngtr",!0);N(j,de,me,"î","\\@ngeqslant");N(j,de,me,"î","\\@ngeqq");N(j,de,me,"âª","\\gneq",!0);N(j,de,me,"â©","\\gneqq",!0);N(j,de,me,"î","\\@gvertneqq");N(j,de,me,"â§","\\gnsim",!0);N(j,de,me,"âª","\\gnapprox",!0);N(j,de,me,"â","\\nsucc",!0);N(j,de,me,"â¡","\\nsucceq",!0);N(j,de,me,"â©","\\succnsim",!0);N(j,de,me,"⪺","\\succnapprox",!0);N(j,de,me,"â","\\ncong",!0);N(j,de,me,"î","\\@nshortparallel");N(j,de,me,"â¦","\\nparallel",!0);N(j,de,me,"â¯","\\nVDash",!0);N(j,de,me,"â«","\\ntriangleright");N(j,de,me,"â","\\ntrianglerighteq",!0);N(j,de,me,"î","\\@nsupseteqq");N(j,de,me,"â","\\supsetneq",!0);N(j,de,me,"î","\\@varsupsetneq");N(j,de,me,"â«","\\supsetneqq",!0);N(j,de,me,"î","\\@varsupsetneqq");N(j,de,me,"â®","\\nVdash",!0);N(j,de,me,"⪵","\\precneqq",!0);N(j,de,me,"⪶","\\succneqq",!0);
1193N(j,de,me,"î","\\@nsubseteqq");N(j,de,hn,"â´","\\unlhd");N(j,de,hn,"âµ","\\unrhd");N(j,de,me,"â","\\nleftarrow",!0);N(j,de,me,"â","\\nrightarrow",!0);N(j,de,me,"â","\\nLeftarrow",!0);N(j,de,me,"â","\\nRightarrow",!0);N(j,de,me,"â®","\\nleftrightarrow",!0);N(j,de,me,"â","\\nLeftrightarrow",!0);N(j,de,me,"â³","\\vartriangle");N(j,de,Ee,"â","\\hslash");N(j,de,Ee,"â½","\\triangledown");N(j,de,Ee,"â","\\lozenge");N(j,de,Ee,"â","\\circledS");N(j,de,Ee,"®","\\circledR");N(yt,de,Ee,"®","\\circledR");N(j,de,Ee,"â¡","\\measuredangle",!0);N(j,de,Ee,"â","\\nexists");N(j,de,Ee,"â§","\\mho");N(j,de,Ee,"â²","\\Finv",!0);N(j,de,Ee,"â
","\\Game",!0);N(j,de,Ee,"âµ","\\backprime");N(j,de,Ee,"â²","\\blacktriangle");N(j,de,Ee,"â¼","\\blacktriangledown");N(j,de,Ee,"â ","\\blacksquare");N(j,de,Ee,"â§«","\\blacklozenge");N(j,de,Ee,"â
","\\bigstar");N(j,de,Ee,"â¢","\\sphericalangle",!0);N(j,de,Ee,"â","\\complement",!0);N(j,de,Ee,"ð","\\eth",!0);N(yt,J,Ee,"ð","ð");N(j,de,Ee,"â±","\\diagup");N(j,de,Ee,"â²","\\diagdown");N(j,de,Ee,"â¡","\\square");N(j,de,Ee,"â¡","\\Box");N(j,de,Ee,"â","\\Diamond");N(j,de,Ee,"Â¥","\\yen",!0);N(yt,de,Ee,"Â¥","\\yen",!0);N(j,de,Ee,"â","\\checkmark",!0);N(yt,de,Ee,"â","\\checkmark");N(j,de,Ee,"â¶","\\beth",!0);N(j,de,Ee,"â¸","\\daleth",!0);N(j,de,Ee,"â·","\\gimel",!0);N(j,de,Ee,"Ï","\\digamma",!0);N(j,de,Ee,"ϰ","\\varkappa");N(j,de,Fu,"â","\\@ulcorner",!0);N(j,de,Ql,"â","\\@urcorner",!0);N(j,de,Fu,"â","\\@llcorner",!0);N(j,de,Ql,"â","\\@lrcorner",!0);N(j,de,me,"â¦","\\leqq",!0);N(j,de,me,"⩽","\\leqslant",!0);N(j,de,me,"âª","\\eqslantless",!0);N(j,de,me,"â²","\\lesssim",!0);N(j,de,me,"âª
","\\lessapprox",!0);N(j,de,me,"â","\\approxeq",!0);N(j,de,hn,"â","\\lessdot");N(j,de,me,"â","\\lll",!0);N(j,de,me,"â¶","\\lessgtr",!0);N(j,de,me,"â","\\lesseqgtr",!0);N(j,de,me,"âª","\\lesseqqgtr",!0);N(j,de,me,"â","\\doteqdot");N(j,de,me,"â","\\risingdotseq",!0);N(j,de,me,"â","\\fallingdotseq",!0);N(j,de,me,"â½","\\backsim",!0);N(j,de,me,"â","\\backsimeq",!0);N(j,de,me,"â«
","\\subseteqq",!0);N(j,de,me,"â","\\Subset",!0);N(j,de,me,"â","\\sqsubset",!0);N(j,de,me,"â¼","\\preccurlyeq",!0);N(j,de,me,"â","\\curlyeqprec",!0);N(j,de,me,"â¾","\\precsim",!0);N(j,de,me,"⪷","\\precapprox",!0);N(j,de,me,"â²","\\vartriangleleft");N(j,de,me,"â´","\\trianglelefteq");N(j,de,me,"â¨","\\vDash",!0);N(j,de,me,"âª","\\Vvdash",!0);N(j,de,me,"â£","\\smallsmile");N(j,de,me,"â¢","\\smallfrown");N(j,de,me,"â","\\bumpeq",!0);N(j,de,me,"â","\\Bumpeq",!0);N(j,de,me,"â§","\\geqq",!0);N(j,de,me,"⩾","\\geqslant",!0);N(j,de,me,"âª","\\eqslantgtr",!0);N(j,de,me,"â³","\\gtrsim",!0);N(j,de,me,"âª","\\gtrapprox",!0);N(j,de,hn,"â","\\gtrdot");N(j,de,me,"â","\\ggg",!0);N(j,de,me,"â·","\\gtrless",!0);N(j,de,me,"â","\\gtreqless",!0);N(j,de,me,"âª","\\gtreqqless",!0);N(j,de,me,"â","\\eqcirc",!0);N(j,de,me,"â","\\circeq",!0);N(j,de,me,"â","\\triangleq",!0);N(j,de,me,"â¼","\\thicksim");N(j,de,me,"â","\\thickapprox");N(j,de,me,"â«","\\supseteqq",!0);N(j,de,me,"â","\\Supset",!0);N(j,de,me,"â","\\sqsupset",!0);N(j,de,me,"â½","\\succcurlyeq",!0);N(j,de,me,"â","\\curlyeqsucc",!0);N(j,de,me,"â¿","\\succsim",!0);N(j,de,me,"⪸","\\succapprox",!0);N(j,de,me,"â³","\\vartriangleright");N(j,de,me,"âµ","\\trianglerighteq");N(j,de,me,"â©","\\Vdash",!0);N(j,de,me,"â£","\\shortmid");N(j,de,me,"â¥","\\shortparallel");N(j,de,me,"â¬","\\between",!0);N(j,de,me,"â","\\pitchfork",!0);N(j,de,me,"â","\\varpropto");N(j,de,me,"â","\\blacktriangleleft");N(j,de,me,"â´","\\therefore",!0);N(j,de,me,"â","\\backepsilon");N(j,de,me,"â¶","\\blacktriangleright");N(j,de,me,"âµ","\\because",!0);N(j,de,me,"â","\\llless");N(j,de,me,"â","\\gggtr");N(j,de,hn,"â²","\\lhd");N(j,de,hn,"â³","\\rhd");N(j,de,me,"â","\\eqsim",!0);N(j,J,me,"â","\\Join");N(j,de,me,"â","\\Doteq",!0);N(j,de,hn,"â","\\dotplus",!0);N(j,de,hn,"â","\\smallsetminus");N(j,de,hn,"â","\\Cap",!0);N(j,de,hn,"â","\\Cup",!0);N(j,de,hn,"â©","\\doublebarwedge",!0);N(j,de,hn,"â","\\boxminus",!0);N(j,de,hn,"â","\\boxplus",!0);
1193N(j,de,hn,"â","\\divideontimes",!0);N(j,de,hn,"â","\\ltimes",!0);N(j,de,hn,"â","\\rtimes",!0);N(j,de,hn,"â","\\leftthreetimes",!0);N(j,de,hn,"â","\\rightthreetimes",!0);N(j,de,hn,"â","\\curlywedge",!0);N(j,de,hn,"â","\\curlyvee",!0);N(j,de,hn,"â","\\circleddash",!0);N(j,de,hn,"â","\\circledast",!0);N(j,de,hn,"â
","\\centerdot");N(j,de,hn,"âº","\\intercal",!0);N(j,de,hn,"â","\\doublecap");N(j,de,hn,"â","\\doublecup");N(j,de,hn,"â ","\\boxtimes",!0);N(j,de,me,"â¢","\\dashrightarrow",!0);N(j,de,me,"â ","\\dashleftarrow",!0);N(j,de,me,"â","\\leftleftarrows",!0);N(j,de,me,"â","\\leftrightarrows",!0);N(j,de,me,"â","\\Lleftarrow",!0);N(j,de,me,"â","\\twoheadleftarrow",!0);N(j,de,me,"â¢","\\leftarrowtail",!0);N(j,de,me,"â«","\\looparrowleft",!0);N(j,de,me,"â","\\leftrightharpoons",!0);N(j,de,me,"â¶","\\curvearrowleft",!0);N(j,de,me,"âº","\\circlearrowleft",!0);N(j,de,me,"â°","\\Lsh",!0);N(j,de,me,"â","\\upuparrows",!0);N(j,de,me,"â¿","\\upharpoonleft",!0);N(j,de,me,"â","\\downharpoonleft",!0);N(j,J,me,"â¶","\\origof",!0);N(j,J,me,"â·","\\imageof",!0);N(j,de,me,"â¸","\\multimap",!0);N(j,de,me,"â","\\leftrightsquigarrow",!0);N(j,de,me,"â","\\rightrightarrows",!0);N(j,de,me,"â","\\rightleftarrows",!0);N(j,de,me,"â ","\\twoheadrightarrow",!0);N(j,de,me,"â£","\\rightarrowtail",!0);N(j,de,me,"â¬","\\looparrowright",!0);N(j,de,me,"â·","\\curvearrowright",!0);N(j,de,me,"â»","\\circlearrowright",!0);N(j,de,me,"â±","\\Rsh",!0);N(j,de,me,"â","\\downdownarrows",!0);N(j,de,me,"â¾","\\upharpoonright",!0);N(j,de,me,"â","\\downharpoonright",!0);N(j,de,me,"â","\\rightsquigarrow",!0);N(j,de,me,"â","\\leadsto");N(j,de,me,"â","\\Rrightarrow",!0);N(j,de,me,"â¾","\\restriction");N(j,J,Ee,"â","`");N(j,J,Ee,"$","\\$");N(yt,J,Ee,"$","\\$");N(yt,J,Ee,"$","\\textdollar");N(j,J,Ee,"%","\\%");N(yt,J,Ee,"%","\\%");N(j,J,Ee,"_","\\_");N(yt,J,Ee,"_","\\_");N(yt,J,Ee,"_","\\textunderscore");N(j,J,Ee,"â ","\\angle",!0);N(j,J,Ee,"â","\\infty",!0);N(j,J,Ee,"â²","\\prime");N(j,J,Ee,"â³","\\triangle");N(j,J,Ee,"Î","\\Gamma",!0);N(j,J,Ee,"Î","\\Delta",!0);N(j,J,Ee,"Î","\\Theta",!0);N(j,J,Ee,"Î","\\Lambda",!0);N(j,J,Ee,"Î","\\Xi",!0);N(j,J,Ee,"Î ","\\Pi",!0);N(j,J,Ee,"Σ","\\Sigma",!0);N(j,J,Ee,"Î¥","\\Upsilon",!0);N(j,J,Ee,"Φ","\\Phi",!0);N(j,J,Ee,"Ψ","\\Psi",!0);N(j,J,Ee,"Ω","\\Omega",!0);N(j,J,Ee,"A","Î");N(j,J,Ee,"B","Î");N(j,J,Ee,"E","Î");N(j,J,Ee,"Z","Î");N(j,J,Ee,"H","Î");N(j,J,Ee,"I","Î");N(j,J,Ee,"K","Î");N(j,J,Ee,"M","Î");N(j,J,Ee,"N","Î");N(j,J,Ee,"O","Î");N(j,J,Ee,"P","Ρ");N(j,J,Ee,"T","Τ");N(j,J,Ee,"X","Χ");N(j,J,Ee,"¬","\\neg",!0);N(j,J,Ee,"¬","\\lnot");N(j,J,Ee,"â¤","\\top");N(j,J,Ee,"â¥","\\bot");N(j,J,Ee,"â
","\\emptyset");N(j,de,Ee,"â
","\\varnothing");N(j,J,Yn,"α","\\alpha",!0);N(j,J,Yn,"β","\\beta",!0);N(j,J,Yn,"γ","\\gamma",!0);N(j,J,Yn,"δ","\\delta",!0);N(j,J,Yn,"ϵ","\\epsilon",!0);N(j,J,Yn,"ζ","\\zeta",!0);N(j,J,Yn,"η","\\eta",!0);N(j,J,Yn,"θ","\\theta",!0);N(j,J,Yn,"ι","\\iota",!0);N(j,J,Yn,"κ","\\kappa",!0);N(j,J,Yn,"λ","\\lambda",!0);N(j,J,Yn,"μ","\\mu",!0);N(j,J,Yn,"ν","\\nu",!0);N(j,J,Yn,"ξ","\\xi",!0);N(j,J,Yn,"ο","\\omicron",!0);N(j,J,Yn,"Ï","\\pi",!0);N(j,J,Yn,"Ï","\\rho",!0);N(j,J,Yn,"Ï","\\sigma",!0);N(j,J,Yn,"Ï","\\tau",!0);N(j,J,Yn,"Ï
","\\upsilon",!0);N(j,J,Yn,"Ï","\\phi",!0);N(j,J,Yn,"Ï","\\chi",!0);N(j,J,Yn,"Ï","\\psi",!0);N(j,J,Yn,"Ï","\\omega",!0);N(j,J,Yn,"ε","\\varepsilon",!0);N(j,J,Yn,"Ï","\\vartheta",!0);N(j,J,Yn,"Ï","\\varpi",!0);N(j,J,Yn,"ϱ","\\varrho",!0);N(j,J,Yn,"Ï","\\varsigma",!0);N(j,J,Yn,"Ï","\\varphi",!0);N(j,J,hn,"â","*",!0);N(j,J,hn,"+","+");N(j,J,hn,"â","-",!0);N(j,J,hn,"â
","\\cdot",!0);N(j,J,hn,"â","\\circ",!0);N(j,J,hn,"÷","\\div",!0);N(j,J,hn,"±","\\pm",!0);N(j,J,hn,"Ã","\\times",!0);N(j,J,hn,"â©","\\cap",!0);N(j,J,hn,"âª","\\cup",!0);N(j,J,hn,"â","\\setminus",!0);N(j,J,hn,"â§","\\land");N(j,J,hn,"â¨","\\lor");N(j,J,hn,"â§","\\wedge",!0);N(j,J,hn,"â¨","\\vee",!0);N(j,J,Ee,"â","\\surd");N(j,J,Fu,"â¨","\\langle",!0);N(j,J,Fu,"â£","\\lvert");N(j,J,Fu,"â¥","\\lVert");N(j,J,Ql,"?","?");N(j,J,Ql,"!","!");N(j,J,Ql,"â©","\\rangle",!0);N(j,J,Ql,"â£","\\rvert");N(j,J,Ql,"â¥","\\rVert");N(j,J,me,"=","=");N(j,J,me,":",":");N(j,J,me,"â","\\approx",!0);N(j,J,me,"â
","\\cong",!0);N(j,J,me,"â¥","\\ge");N(j,J,me,"â¥","\\geq",!0);N(j,J,me,"â","\\gets");N(j,J,me,">","\\gt",!0);N(j,J,me,"â","\\in",!0);N(j,J,me,"î ","\\@not");N(j,J,me,"â","\\subset",!0);N(j,J,me,"â","\\supset",!0);N(j,J,me,"â","\\subseteq",!0);N(j,J,me,"â","\\supseteq",!0);N(j,de,me,"â","\\nsubseteq",!0);N(j,de,me,"â","\\nsupseteq",!0);N(j,J,me,"â¨","\\models");N(j,J,me,"â","\\leftarrow",!0);N(j,J,me,"â¤","\\le");N(j,J,me,"â¤","\\leq",!0);N(j,J,me,"<","\\lt",!0);N(j,J,me,"â","\\rightarrow",!0);N(j,J,me,"â","\\to");N(j,de,me,"â±","\\ngeq",!0);N(j,de,me,"â°","\\nleq",!0);N(j,J,bm," ","\\ ");N(j,J,bm," ","\\space");N(j,J,bm," ","\\nobreakspace");N(yt,J,bm," ","\\ ");N(yt,J,bm," "," ");N(yt,J,bm," ","\\space");N(yt,J,bm," ","\\nobreakspace");N(j,J,bm,null,"\\nobreak");N(j,J,bm,null,"\\allowbreak");N(j,J,UI,",",",");N(j,J,UI,";",";");N(j,de,hn,"â¼","\\barwedge",!0);N(j,de,hn,"â»","\\veebar",!0);N(j,J,hn,"â","\\odot",!0);N(j,J,hn,"â","\\oplus",!0);N(j,J,hn,"â","\\otimes",!0);N(j,J,Ee,"â","\\partial",!0);N(j,J,hn,"â","\\oslash",!0);N(j,de,hn,"â","\\circledcirc",!0);N(j,de,hn,"â¡","\\boxdot",!0);
vendor: 5,437 bytes, line 1193
1193N(j,J,hn,"â³","\\bigtriangleup");N(j,J,hn,"â½","\\bigtriangledown");N(j,J,hn,"â ","\\dagger");N(j,J,hn,"â","\\diamond");N(j,J,hn,"â","\\star");N(j,J,hn,"â","\\triangleleft");N(j,J,hn,"â¹","\\triangleright");N(j,J,Fu,"{","\\{");N(yt,J,Ee,"{","\\{");N(yt,J,Ee,"{","\\textbraceleft");N(j,J,Ql,"}","\\}");N(yt,J,Ee,"}","\\}");N(yt,J,Ee,"}","\\textbraceright");N(j,J,Fu,"{","\\lbrace");N(j,J,Ql,"}","\\rbrace");N(j,J,Fu,"[","\\lbrack",!0);N(yt,J,Ee,"[","\\lbrack",!0);N(j,J,Ql,"]","\\rbrack",!0);N(yt,J,Ee,"]","\\rbrack",!0);N(j,J,Fu,"(","\\lparen",!0);N(j,J,Ql,")","\\rparen",!0);N(yt,J,Ee,"<","\\textless",!0);N(yt,J,Ee,">","\\textgreater",!0);N(j,J,Fu,"â","\\lfloor",!0);N(j,J,Ql,"â","\\rfloor",!0);N(j,J,Fu,"â","\\lceil",!0);N(j,J,Ql,"â","\\rceil",!0);N(j,J,Ee,"\\","\\backslash");N(j,J,Ee,"â£","|");N(j,J,Ee,"â£","\\vert");N(yt,J,Ee,"|","\\textbar",!0);N(j,J,Ee,"â¥","\\|");N(j,J,Ee,"â¥","\\Vert");N(yt,J,Ee,"â¥","\\textbardbl");N(yt,J,Ee,"~","\\textasciitilde");N(yt,J,Ee,"\\","\\textbackslash");N(yt,J,Ee,"^","\\textasciicircum");N(j,J,me,"â","\\uparrow",!0);N(j,J,me,"â","\\Uparrow",!0);N(j,J,me,"â","\\downarrow",!0);N(j,J,me,"â","\\Downarrow",!0);N(j,J,me,"â","\\updownarrow",!0);N(j,J,me,"â","\\Updownarrow",!0);N(j,J,Ko,"â","\\coprod");N(j,J,Ko,"â","\\bigvee");N(j,J,Ko,"â","\\bigwedge");N(j,J,Ko,"â¨","\\biguplus");N(j,J,Ko,"â","\\bigcap");N(j,J,Ko,"â","\\bigcup");N(j,J,Ko,"â«","\\int");N(j,J,Ko,"â«","\\intop");N(j,J,Ko,"â¬","\\iint");N(j,J,Ko,"â","\\iiint");N(j,J,Ko,"â","\\prod");N(j,J,Ko,"â","\\sum");N(j,J,Ko,"â¨","\\bigotimes");N(j,J,Ko,"â¨","\\bigoplus");N(j,J,Ko,"â¨","\\bigodot");N(j,J,Ko,"â®","\\oint");N(j,J,Ko,"â¯","\\oiint");N(j,J,Ko,"â°","\\oiiint");N(j,J,Ko,"â¨","\\bigsqcup");N(j,J,Ko,"â«","\\smallint");N(yt,J,Yw,"â¦","\\textellipsis");N(j,J,Yw,"â¦","\\mathellipsis");N(yt,J,Yw,"â¦","\\ldots",!0);N(j,J,Yw,"â¦","\\ldots",!0);N(j,J,Yw,"â¯","\\@cdots",!0);N(j,J,Yw,"â±","\\ddots",!0);N(j,J,Ee,"â®","\\varvdots");N(yt,J,Ee,"â®","\\varvdots");N(j,J,Ys,"Ë","\\acute");N(j,J,Ys,"Ë","\\grave");N(j,J,Ys,"¨","\\ddot");N(j,J,Ys,"~","\\tilde");N(j,J,Ys,"Ë","\\bar");N(j,J,Ys,"Ë","\\breve");N(j,J,Ys,"Ë","\\check");N(j,J,Ys,"^","\\hat");N(j,J,Ys,"â","\\vec");N(j,J,Ys,"Ë","\\dot");N(j,J,Ys,"Ë","\\mathring");N(j,J,Yn,"î±","\\@imath");N(j,J,Yn,"î·","\\@jmath");N(j,J,Ee,"ı","ı");N(j,J,Ee,"È·","È·");N(yt,J,Ee,"ı","\\i",!0);N(yt,J,Ee,"È·","\\j",!0);N(yt,J,Ee,"Ã","\\ss",!0);N(yt,J,Ee,"æ","\\ae",!0);N(yt,J,Ee,"Å","\\oe",!0);N(yt,J,Ee,"ø","\\o",!0);N(yt,J,Ee,"Ã","\\AE",!0);N(yt,J,Ee,"Å","\\OE",!0);N(yt,J,Ee,"Ã","\\O",!0);N(yt,J,Ys,"Ë","\\'");N(yt,J,Ys,"Ë","\\`");N(yt,J,Ys,"Ë","\\^");N(yt,J,Ys,"Ë","\\~");N(yt,J,Ys,"Ë","\\=");N(yt,J,Ys,"Ë","\\u");N(yt,J,Ys,"Ë","\\.");N(yt,J,Ys,"¸","\\c");N(yt,J,Ys,"Ë","\\r");N(yt,J,Ys,"Ë","\\v");N(yt,J,Ys,"¨",'\\"');N(yt,J,Ys,"Ë","\\H");N(yt,J,Ys,"â¯","\\textcircled");var Q_e={"--":!0,"---":!0,"``":!0,"''":!0};N(yt,J,Ee,"â","--",!0);N(yt,J,Ee,"â","\\textendash");N(yt,J,Ee,"â","---",!0);N(yt,J,Ee,"â","\\textemdash");N(yt,J,Ee,"â","`",!0);N(yt,J,Ee,"â","\\textquoteleft");N(yt,J,Ee,"â","'",!0);N(yt,J,Ee,"â","\\textquoteright");N(yt,J,Ee,"â","``",!0);N(yt,J,Ee,"â","\\textquotedblleft");N(yt,J,Ee,"â","''",!0);N(yt,J,Ee,"â","\\textquotedblright");N(j,J,Ee,"°","\\degree",!0);N(yt,J,Ee,"°","\\degree");N(yt,J,Ee,"°","\\textdegree",!0);N(j,J,Ee,"£","\\pounds");N(j,J,Ee,"£","\\mathsterling",!0);N(yt,J,Ee,"£","\\pounds");N(yt,J,Ee,"£","\\textsterling",!0);N(j,de,Ee,"â ","\\maltese");N(yt,de,Ee,"â ","\\maltese");var Coe='0123456789/@."';for(var NR=0;NR<Coe.length;NR++){var _oe=Coe.charAt(NR);N(j,J,Ee,_oe,_oe)}var Toe='0123456789!@*()-=+";:?/.,';for(var RR=0;RR<Toe.length;RR++){var Eoe=Toe.charAt(RR);N(yt,J,Ee,Eoe,Eoe)}var wP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var LR=0;LR<wP.length;LR++){var OE=wP.charAt(LR);N(j,J,Yn,OE,OE),N(yt,J,Ee,OE,OE)}N(j,de,Ee,"C","â");N(yt,de,Ee,"C","â");N(j,de,Ee,"H","â");N(yt,de,Ee,"H","â");N(j,de,Ee,"N","â");N(yt,de,Ee,"N","â");N(j,de,Ee,"P","â");N(yt,de,Ee,"P","â");N(j,de,Ee,"Q","â");N(yt,de,Ee,"Q","â");N(j,de,Ee,"R","â");N(yt,de,Ee,"R","â");N(j,de,Ee,"Z","â¤");N(yt,de,Ee,"Z","â¤");N(j,J,Yn,"h","â");N(yt,J,Yn,"h","â");var mr="";for(var Pl=0;Pl<wP.length;Pl++){var ho=wP.charAt(Pl);mr=String.fromCharCode(55349,56320+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56372+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56424+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56580+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56684+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56736+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56788+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56840+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56944+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),Pl<26&&(mr=String.fromCharCode(55349,56632+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr),mr=String.fromCharCode(55349,56476+Pl),N(j,J,Yn,ho,mr),N(yt,J,Ee,ho,mr))}mr="ð";N(j,J,Yn,"k",mr);N(yt,J,Ee,"k",mr);for(var ey=0;ey<10;ey++){var Ym=ey.toString();mr=String.fromCharCode(55349,57294+ey),N(j,J,Yn,Ym,mr),N(yt,J,Ee,Ym,mr),mr=String.fromCharCode(55349,57314+ey),N(j,J,Yn,Ym,mr),N(yt,J,Ee,Ym,mr),mr=String.fromCharCode(55349,57324+e
vendor: 3,741 bytes, line 1193
1193y),N(j,J,Yn,Ym,mr),N(yt,J,Ee,Ym,mr),mr=String.fromCharCode(55349,57334+ey),N(j,J,Yn,Ym,mr),N(yt,J,Ee,Ym,mr)}var Mj="ÃÃþ";for(var BR=0;BR<Mj.length;BR++){var IE=Mj.charAt(BR);N(j,J,Yn,IE,IE),N(yt,J,Ee,IE,IE)}var DE=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Aoe=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],S9t=function(e,n){var r=e.charCodeAt(0),i=e.charCodeAt(1),s=(r-55296)*1024+(i-56320)+65536,o=n==="math"?0:1;if(119808<=s&&s<120484){var a=Math.floor((s-119808)/26);return[DE[a][2],DE[a][o]]}else if(120782<=s&&s<=120831){var l=Math.floor((s-120782)/10);return[Aoe[l][2],Aoe[l][o]]}else{if(s===120485||s===120486)return[DE[0][2],DE[0][o]];if(120486<s&&s<120782)return["",""];throw new Pt("Unsupported character: "+e)}},VI=function(e,n,r){return ks[r][e]&&ks[r][e].replace&&(e=ks[r][e].replace),{value:e,metrics:lG(e,n,r)}},fd=function(e,n,r,i,s){var o=VI(e,n,r),a=o.metrics;e=o.value;var l;if(a){var c=a.italic;(r==="text"||i&&i.font==="mathit")&&(c=0),l=new Mh(e,a.height,a.depth,c,a.skew,a.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+n+"' and mode '"+r+"'")),l=new Mh(e,0,0,0,0,0,s);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var u=i.getColor();u&&(l.style.color=u)}return l},k9t=function(e,n,r,i){return i===void 0&&(i=[]),r.font==="boldsymbol"&&VI(e,"Main-Bold",n).metrics?fd(e,"Main-Bold",n,r,i.concat(["mathbf"])):e==="\\"||ks[n][e].font==="main"?fd(e,"Main-Regular",n,r,i):fd(e,"AMS-Regular",n,r,i.concat(["amsrm"]))},C9t=function(e,n,r,i,s){return s!=="textord"&&VI(e,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},_9t=function(e,n,r){var i=e.mode,s=e.text,o=["mord"],a=i==="math"||i==="text"&&n.font,l=a?n.font:n.fontFamily,c="",u="";if(s.charCodeAt(0)===55349&&([c,u]=S9t(s,i)),c.length>0)return fd(s,c,i,n,o.concat(u));if(l){var h,d;if(l==="boldsymbol"){var p=C9t(s,i,n,o,r);h=p.fontName,d=[p.fontClass]}else a?(h=Z_e[l].fontName,d=[l]):(h=ME(l,n.fontWeight,n.fontShape),d=[l,n.fontWeight,n.fontShape]);if(VI(s,h,i).metrics)return fd(s,h,i,n,o.concat(d));if(Q_e.hasOwnProperty(s)&&h.slice(0,10)==="Typewriter"){for(var g=[],y=0;y<s.length;y++)g.push(fd(s[y],h,i,n,o.concat(d)));return J_e(g)}}if(r==="mathord")return fd(s,"Math-Italic",i,n,o.concat(["mathnormal"]));if(r==="textord"){var b=ks[i][s]&&ks[i][s].font;if(b==="ams"){var w=ME("amsrm",n.fontWeight,n.fontShape);return fd(s,w,i,n,o.concat("amsrm",n.fontWeight,n.fontShape))}else if(b==="main"||!b){var S=ME("textrm",n.fontWeight,n.fontShape);return fd(s,S,i,n,o.concat(n.fontWeight,n.fontShape))}else{var T=ME(b,n.fontWeight,n.fontShape);return fd(s,T,i,n,o.concat(T,n.fontWeight,n.fontShape))}}
vendor: 9,099 bytes, line 1193
1193else throw new Error("unexpected type: "+r+" in makeOrd")},T9t=(t,e)=>{if(n1(t.classes)!==n1(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var n=t.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},E9t=t=>{for(var e=0;e<t.length-1;e++){var n=t[e],r=t[e+1];n instanceof Mh&&r instanceof Mh&&T9t(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,t.splice(e+1,1),e--)}return t},uG=function(e){for(var n=0,r=0,i=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>n&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=n,e.depth=r,e.maxFontSize=i},dc=function(e,n,r,i){var s=new K_(e,n,r,i);return uG(s),s},X_e=(t,e,n,r)=>new K_(t,e,n,r),A9t=function(e,n,r){var i=dc([e],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Vt(i.height),i.maxFontSize=1,i},P9t=function(e,n,r,i){var s=new cG(e,n,r,i);return uG(s),s},J_e=function(e){var n=new G_(e);return uG(n),n},O9t=function(e,n){return e instanceof G_?dc([],[e],n):e},I9t=function(e){if(e.positionType==="individualShift"){for(var n=e.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,s=i,o=1;o<n.length;o++){var a=-n[o].shift-s-n[o].elem.depth,l=a-(n[o-1].elem.height+n[o-1].elem.depth);s=s+a,r.push({type:"kern",size:l}),r.push(n[o])}return{children:r,depth:i}}var c;if(e.positionType==="top"){for(var u=e.positionData,h=0;h<e.children.length;h++){var d=e.children[h];u-=d.type==="kern"?d.size:d.elem.height+d.elem.depth}c=u}else if(e.positionType==="bottom")c=-e.positionData;else{var p=e.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")c=-p.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")c=-p.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:c}},D9t=function(e,n){for(var{children:r,depth:i}=I9t(e),s=0,o=0;o<r.length;o++){var a=r[o];if(a.type==="elem"){var l=a.elem;s=Math.max(s,l.maxFontSize,l.height)}}s+=2;var c=dc(["pstrut"],[]);c.style.height=Vt(s);for(var u=[],h=i,d=i,p=i,g=0;g<r.length;g++){var y=r[g];if(y.type==="kern")p+=y.size;else{var b=y.elem,w=y.wrapperClasses||[],S=y.wrapperStyle||{},T=dc(w,[c,b],void 0,S);T.style.top=Vt(-s-p-b.depth),y.marginLeft&&(T.style.marginLeft=y.marginLeft),y.marginRight&&(T.style.marginRight=y.marginRight),u.push(T),p+=b.height+b.depth}h=Math.min(h,p),d=Math.max(d,p)}var D=dc(["vlist"],u);D.style.height=Vt(d);var E;if(h<0){var O=dc([],[]),P=dc(["vlist"],[O]);P.style.height=Vt(-h);var $=dc(["vlist-s"],[new Mh("â")]);E=[dc(["vlist-r"],[D,$]),dc(["vlist-r"],[P])]}else E=[dc(["vlist-r"],[D])];var W=dc(["vlist-t"],E);return E.length===2&&W.classes.push("vlist-t2"),W.height=d,W.depth=-h,W},M9t=(t,e)=>{var n=dc(["mspace"],[],e),r=ro(t,e);return n.style.marginRight=Vt(r),n},ME=function(e,n,r){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var s;return n==="textbf"&&r==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",i+"-"+s},Z_e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},eTe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},N9t=function(e,n){var[r,i,s]=eTe[e],o=new r1(r),a=new sm([o],{width:Vt(i),height:Vt(s),style:"width:"+Vt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),l=X_e(["overlay"],[a],n);return l.height=s,l.style.height=Vt(s),l.style.width=Vt(i),l},We={fontMap:Z_e,makeSymbol:fd,mathsym:k9t,makeSpan:dc,makeSvgSpan:X_e,makeLineSpan:A9t,makeAnchor:P9t,makeFragment:J_e,wrapFragment:O9t,makeVList:D9t,makeOrd:_9t,makeGlue:M9t,staticSvg:N9t,svgData:eTe,tryCombineChars:E9t},eo={number:3,unit:"mu"},ty={number:4,unit:"mu"},Jp={number:5,unit:"mu"},R9t={mord:{mop:eo,mbin:ty,mrel:Jp,minner:eo},mop:{mord:eo,mop:eo,mrel:Jp,minner:eo},mbin:{mord:ty,mop:ty,mopen:ty,minner:ty},mrel:{mord:Jp,mop:Jp,mopen:Jp,minner:Jp},mopen:{},mclose:{mop:eo,mbin:ty,mrel:Jp,minner:eo},mpunct:{mord:eo,mop:eo,mrel:Jp,mopen:eo,mclose:eo,mpunct:eo,minner:eo},minner:{mord:eo,mop:eo,mbin:ty,mrel:Jp,mopen:eo,mpunct:eo,minner:eo}},L9t={mord:{mop:eo},mop:{mord:eo,mop:eo},mbin:{},mrel:{},mopen:{},mclose:{mop:eo},mpunct:{},minner:{mop:eo}},tTe={},SP={},kP={};function en(t){for(var{type:e,names:n,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=t,a={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)tTe[n[l]]=a;e&&(s&&(SP[e]=s),o&&(kP[e]=o))}function Hb(t){var{type:e,htmlBuilder:n,mathmlBuilder:r}=t;en({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var CP=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},_o=function(e){return e.type==="ordgroup"?e.body:[e]},om=We.makeSpan,B9t=["leftmost","mbin","mopen","mrel","mop","mpunct"],F9t=["rightmost","mrel","mclose","mpunct"],$9t={display:Qn.DISPLAY,text:Qn.TEXT,script:Qn.SCRIPT,scriptscript:Qn.SCRIPTSCRIPT},j9t={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ua=function(e,n,r,i){i===void 0&&(i=[null,null]);for(var s=[],o=0;o<e.length;o++){var a=Si(e[o],n);if(a instanceof G_){var l=a.children;s.push(...l)}else s.push(a)}if(We.tryCombineChars(s),!r)return s;var c=n;if(e.length===1){var u=e[0];u.type==="sizing"?c=n.havingSize(u.size):u.type==="styling"&&(c=n.havingStyle($9t[u.style]))}var h=om([i[0]||"leftmost"],[],n),d=om([i[1]||"rightmost"],[],n),p=r==="root";return Poe(s,(g,y)=>{var b=y.classes[0],w=g.classes[0];b==="mbin"&&zn.contains(F9t,w)?y.classes[0]="mord":w==="mbin"&&zn.contains(B9t,b)&&(g.classes[0]="mord")},{node:h},d,p),Poe(s,(g,y)=>{var b=Nj(y),w=Nj(g),S=b&&w?g.hasClass("mtight")?L9t[b][w]:R9t[b][w]:null;if(S)return We.makeGlue(S,c)},{node:h},d,p),s},Poe=function t(e,n,r,i,s){i&&e.push(i);for(var o=0;o<e.length;o++){var a=e[o],l=nTe(a);if(l){t(l.children,n,r,null,s);continue}var c=!a.hasClass("mspace");if(c){var u=n(a,r.node);u&&(r.insertAfter?r.insertAfter(u):(e.unshift(u),o++))}c?r.node=a:s&&a.hasClass("newline")&&(r.node=om(["leftmost"])),r.insertAfter=(h=>d=>{e.splice(h+1,0,d),o++})(o)}i&&e.pop()},nTe=function(e){return e instanceof G_||e instanceof cG||e instanceof K_&&e.hasClass("enclosing")?e:null},z9t=function t(e,n){var r=nTe(e);if(r){var i=r.children;if(i.length){if(n==="right")return t(i[i.length-1],"right");if(n==="left")return t(i[0],"left")}}return e},Nj=function(e,n){return e?(n&&(e=z9t(e,n)),j9t[e.classes[0]]||null):null},EC=function(e,n){var r=["nulldelimiter"].concat(e.baseSizingClasses());return om(n.concat(r))},Si=function(e,n,r){if(!e)return om();if(SP[e.type]){var i=SP[e.type](e,n);if(r&&n.size!==r.size){i=om(n.sizingClasses(r),[i],n);var s=n.sizeMultiplier/r.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Pt("Got group of unknown type: '"+e.type+"'")};function NE(t,e){var n=om(["base"],t,e),r=om(["strut"]);return r.style.height=Vt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Vt(-n.depth)),n.children.unshift(r),n}function Rj(t,e){var n=null;t.length===1&&t[0].type==="tag"&&(n=t[0].tag,t=t[0].body);var r=ua(t,e,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var s=[],o=[],a=0;a<r.length;a++)if(o.push(r[a]),r[a].hasClass("mbin")||r[a].hasClass("mrel")||r[a].hasClass("allowbreak")){for(var l=!1;a<r.length-1&&r[a+1].hasClass("mspace")&&!r[a+1].hasClass("newline");)a++,o.push(r[a]),r[a].hasClass("nobreak")&&(l=!0);l||(s.push(NE(o,e)),o=[])}else r[a].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(NE(o,e)),o=[]),s.push(r[a]));o.length>0&&s.push(NE(o,e));var c;n?(c=NE(ua(n,e,!0)),c.classes=["tag"],s.push(c)):i&&s.push(i);var u=om(["katex-html"],s);if(u.setAttribute("aria-hidden","true"),c){var h=c.children[0];h.style.height=Vt(u.height+u.depth),u.depth&&(h.style.verticalAlign=Vt(-u.depth))}return u}function rTe(t){return new G_(t)}
vendor: 6,914 bytes, line 1193
1193class ku{constructor(e,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(e,n){this.attributes[e]=n}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);this.classes.length>0&&(e.className=n1(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Hf&&this.children[r+1]instanceof Hf){for(var i=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Hf;)i+=this.children[++r].toText();e.appendChild(new Hf(i).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="',e+=zn.escape(this.attributes[n]),e+='"');this.classes.length>0&&(e+=' class ="'+zn.escape(n1(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Hf{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return zn.escape(this.toText())}toText(){return this.text}}class H9t{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="â":e>=.1666&&e<=.1667?this.character="â":e>=.2222&&e<=.2223?this.character="â
":e>=.2777&&e<=.2778?this.character="â
â":e>=-.05556&&e<=-.05555?this.character="ââ£":e>=-.1667&&e<=-.1666?this.character="ââ£":e>=-.2223&&e<=-.2222?this.character="ââ£":e>=-.2778&&e<=-.2777?this.character="â
â£":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Vt(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Vt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Ct={MathNode:ku,TextNode:Hf,SpaceNode:H9t,newDocumentFragment:rTe},Nh=function(e,n,r){return ks[n][e]&&ks[n][e].replace&&e.charCodeAt(0)!==55349&&!(Q_e.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=ks[n][e].replace),new Ct.TextNode(e)},hG=function(e){return e.length===1?e[0]:new Ct.MathNode("mrow",e)},dG=function(e,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var s=e.text;if(zn.contains(["\\imath","\\jmath"],s))return null;ks[i][s]&&ks[i][s].replace&&(s=ks[i][s].replace);var o=We.fontMap[r].fontName;return lG(s,o,i)?We.fontMap[r].variant:null};function FR(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Hf&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var n=t.children[0];return n instanceof Hf&&n.text===","}else return!1}var Wc=function(e,n,r){if(e.length===1){var i=ds(e[0],n);return r&&i instanceof ku&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],o,a=0;a<e.length;a++){var l=ds(e[a],n);if(l instanceof ku&&o instanceof ku){if(l.type==="mtext"&&o.type==="mtext"&&l.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...l.children);continue}else if(l.type==="mn"&&o.type==="mn"){o.children.push(...l.children);continue}else if(FR(l)&&o.type==="mn"){o.children.push(...l.children);continue}else if(l.type==="mn"&&FR(o))l.children=[...o.children,...l.children],s.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(o.type==="mn"||FR(o))){var c=l.children[0];c instanceof ku&&c.type==="mn"&&(c.children=[...o.children,...c.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var u=o.children[0];if(u instanceof Hf&&u.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof Hf&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),s.pop())}}}s.push(l),o=l}return s},i1=function(e,n,r){return hG(Wc(e,n,r))},ds=function(e,n){if(!e)return new Ct.MathNode("mrow");if(kP[e.type]){var r=kP[e.type](e,n);return r}else throw new Pt("Got group of unknown type: '"+e.type+"'")};function Ooe(t,e,n,r,i){var s=Wc(t,n),o;s.length===1&&s[0]instanceof ku&&zn.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new Ct.MathNode("mrow",s);var a=new Ct.MathNode("annotation",[new Ct.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var l=new Ct.MathNode("semantics",[o,a]),c=new Ct.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return We.makeSpan([u],[c])}var iTe=function(e){return new m0({style:e.displayMode?Qn.DISPLAY:Qn.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},sTe=function(e,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),e=We.makeSpan(r,[e])}return e},U9t=function(e,n,r){var i=iTe(r),s;if(r.output==="mathml")return Ooe(e,n,i,r.displayMode,!0);if(r.output==="html"){var o=Rj(e,i);s=We.makeSpan(["katex"],[o])}else{var a=Ooe(e,n,i,r.displayMode,!1),l=Rj(e,i);s=We.makeSpan(["katex"],[a,l])}return sTe(s,r)},V9t=function(e,n,r){var i=iTe(r),s=Rj(e,i),o=We.makeSpan(["katex"],[s]);return sTe(o,r)},W9t={widehat:"^",widecheck:"Ë",widetilde:"~",utilde:"~",overleftarrow:"â",underleftarrow:"â",xleftarrow:"â",overrightarrow:"â",underrightarrow:"â",xrightarrow:"â",underbrace:"â",overbrace:"â",overgroup:"â ",undergroup:"â¡",overleftrightarrow:"â",underleftrightarrow:"â",xleftrightarrow:"â",Overrightarrow:"â",xRightarrow:"â",overleftharpoon:"â¼",xleftharpoonup:"â¼",overrightharpoon:"â",xrightharpoonup:"â",xLeftarrow:"â",xLeftrightarrow:"â",xhookleftarrow:"â©",xhookrightarrow:"âª",xma
vendor: 75,020 bytes, lines 1193-1194
1193psto:"â¦",xrightharpoondown:"â",xleftharpoondown:"â½",xrightleftharpoons:"â",xleftrightharpoons:"â",xtwoheadleftarrow:"â",xtwoheadrightarrow:"â ",xlongequal:"=",xtofrom:"â",xrightleftarrows:"â",xrightequilibrium:"â",xleftequilibrium:"â","\\cdrightarrow":"â","\\cdleftarrow":"â","\\cdlongequal":"="},q9t=function(e){var n=new Ct.MathNode("mo",[new Ct.TextNode(W9t[e.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},G9t={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},K9t=function(e){return e.type==="ordgroup"?e.body.length:1},Y9t=function(e,n){function r(){var a=4e5,l=e.label.slice(1);if(zn.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=e,u=K9t(c.base),h,d,p;if(u>5)l==="widehat"||l==="widecheck"?(h=420,a=2364,p=.42,d=l+"4"):(h=312,a=2340,p=.34,d="tilde4");else{var g=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],p=[0,.24,.3,.3,.36,.42][g],d=l+g):(a=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],p=[0,.26,.286,.3,.306,.34][g],d="tilde"+g)}var y=new r1(d),b=new sm([y],{width:"100%",height:Vt(p),viewBox:"0 0 "+a+" "+h,preserveAspectRatio:"none"});return{span:We.makeSvgSpan([],[b],n),minWidth:0,height:p}}else{var w=[],S=G9t[l],[T,D,E]=S,O=E/1e3,P=T.length,$,W;if(P===1){var H=S[3];$=["hide-tail"],W=[H]}else if(P===2)$=["halfarrow-left","halfarrow-right"],W=["xMinYMin","xMaxYMin"];else if(P===3)$=["brace-left","brace-center","brace-right"],W=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support 1194 `+P+" children.");for(var K=0;K<P;K++){var Z=new r1(T[K]),oe=new sm([Z],{width:"400em",height:Vt(O),viewBox:"0 0 "+a+" "+E,preserveAspectRatio:W[K]+" slice"}),te=We.makeSvgSpan([$[K]],[oe],n);if(P===1)return{span:te,minWidth:D,height:O};te.style.height=Vt(O),w.push(te)}return{span:We.makeSpan(["stretchy"],w,n),minWidth:D,height:O}}}var{span:i,minWidth:s,height:o}=r();return i.height=o,i.style.height=Vt(o),s>0&&(i.style.minWidth=Vt(s)),i},Q9t=function(e,n,r,i,s){var o,a=e.height+e.depth+r+i;if(/fbox|color|angl/.test(n)){if(o=We.makeSpan(["stretchy",n],[],s),n==="fbox"){var l=s.color&&s.getColor();l&&(o.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new Dj({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new Dj({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new sm(c,{width:"100%",height:Vt(a)});o=We.makeSvgSpan([],[u],s)}return o.height=a,o.style.height=Vt(a),o},am={encloseSpan:Q9t,mathMLnode:q9t,svgSpan:Y9t};function Gr(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function fG(t){var e=WI(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function WI(t){return t&&(t.type==="atom"||w9t.hasOwnProperty(t.type))?t:null}var pG=(t,e)=>{var n,r,i;t&&t.type==="supsub"?(r=Gr(t.base,"accent"),n=r.base,t.base=n,i=v9t(Si(t,e)),t.base=r):(r=Gr(t,"accent"),n=r.base);var s=Si(n,e.havingCrampedStyle()),o=r.isShifty&&zn.isCharacterBox(n),a=0;if(o){var l=zn.getBaseElem(n),c=Si(l,e.havingCrampedStyle());a=koe(c).skew}var u=r.label==="\\c",h=u?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),d;if(r.isStretchy)d=am.svgSpan(r,e),d=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+Vt(2*a)+")",marginLeft:Vt(2*a)}:void 0}]},e);else{var p,g;r.label==="\\vec"?(p=We.staticSvg("vec",e),g=We.svgData.vec[1]):(p=We.makeOrd({mode:r.mode,text:r.label},e,"textord"),p=koe(p),p.italic=0,g=p.width,u&&(h+=p.depth)),d=We.makeSpan(["accent-body"],[p]);var y=r.label==="\\textcircled";y&&(d.classes.push("accent-full"),h=s.height);var b=a;y||(b-=g/2),d.style.left=Vt(b),r.label==="\\textcircled"&&(d.style.top=".2em"),d=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:d}]},e)}var w=We.makeSpan(["mord","accent"],[d],e);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},oTe=(t,e)=>{var n=t.isStretchy?am.mathMLnode(t.label):new Ct.MathNode("mo",[Nh(t.label,t.mode)]),r=new Ct.MathNode("mover",[ds(t.base,e),n]);return r.setAttribute("accent","true"),r},X9t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));en({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var n=CP(e[0]),r=!X9t.test(t.funcName),i=!r||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:pG,mathmlBuilder:oTe});en({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],r=t.parser.mode;return r==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:pG,mathmlBuilder:oTe});en({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(t,e)=>{var n=Si(t.base,e),r=am.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,s=We.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},e);return We.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(t,e)=>{var n=am.mathMLnode(t.label),r=new Ct.MathNode("munder",[ds(t.base,e),n]);return r.setAttribute("accentunder","true"),r}});var RE=t=>{var e=new Ct.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};en({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:r,funcName:i}=t;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:n[0]}},htmlBuilder(t,e){var n=e.style,r=e.havingStyle(n.sup()),i=We.wrapFragment(Si(t.body,r,e),e),s=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var o;t.below&&(r=e.havingStyle(n.sub()),o=We.wrapFragment(Si(t.below,r,e),e),o.classes.push(s+"-arrow-pad"));var a=am.svgSpan(t,e),l=-e.fontMetrics().axisHeight+.5*a.height,c=-e.fontMetrics().axisHeight-.5*a.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(o){var h=-e.fontMetrics().axisHeight+o.height+.5*a.height+.111;u=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:a,shift:l},{type:"elem",elem:o,shift:h}]},e)}else u=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:a,shift:l}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),We.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var n=am.mathMLnode(t.label);n.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(t.body){var i=RE(ds(t.body,e));if(t.below){var s=RE(ds(t.below,e));r=new Ct.MathNode("munderover",[n,s,i])}else r=new Ct.MathNode("mover",[n,i])}else if(t.below){var o=RE(ds(t.below,e));r=new Ct.MathNode("munder",[n,o])}else r=RE(),r=new Ct.MathNode("mover",[n,r]);return r}});var J9t=We.makeSpan;function aTe(t,e){var n=ua(t.body,e,!0);return J9t([t.mclass],n,e)}function lTe(t,e){var n,r=Wc(t.body,e);return t.mclass==="minner"?n=new Ct.MathNode("mpadded",r):t.mclass==="mord"?t.isCharacterBox?(n=r[0],n.type="mi"):n=new Ct.MathNode("mi",r):(t.isCharacterBox?(n=r[0],n.type="mo"):n=new Ct.MathNode("mo",r),t.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):t.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):t.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}en({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:_o(i),isCharacterBox:zn.isCharacterBox(i)}},htmlBuilder:aTe,mathmlBuilder:lTe});var qI=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};en({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:n}=t;return{type:"mclass",mode:n.mode,mclass:qI(e[0]),body:_o(e[1]),isCharacterBox:zn.isCharacterBox(e[1])}}});en({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:n,funcName:r}=t,i=e[1],s=e[0],o;r!=="\\stackrel"?o=qI(i):o="mrel";var a={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:_o(i)},l={type:"supsub",mode:s.mode,base:a,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:zn.isCharacterBox(l)}},htmlBuilder:aTe,mathmlBuilder:lTe});en({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:qI(e[0]),body:_o(e[0])}},htmlBuilder(t,e){var n=ua(t.body,e,!0),r=We.makeSpan([t.mclass],n,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(t,e){var n=Wc(t.body,e),r=new Ct.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Z9t={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ioe=()=>({type:"styling",body:[],mode:"math",style:"display"}),Doe=t=>t.type==="textord"&&t.text==="@",eDt=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function tDt(t,e,n){var r=Z9t[t];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[s],[]),a=n.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,a]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function nDt(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var n=t.fetch().text;if(n==="&"||n==="\\\\")t.consume();else if(n==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Pt("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var r=[],i=[r],s=0;s<e.length;s++){for(var o=e[s],a=Ioe(),l=0;l<o.length;l++)if(!Doe(o[l]))a.body.push(o[l]);else{r.push(a),l+=1;var c=fG(o[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var h=0;h<2;h++){for(var d=!0,p=l+1;p<o.length;p++){if(eDt(o[p],c)){d=!1,l=p;break}if(Doe(o[p]))throw new Pt("Missing a "+c+" character to complete a CD arrow.",o[p]);u[h].body.push(o[p])}if(d)throw new Pt("Missing a "+c+" character to complete a CD arrow.",o[l])}else throw new Pt('Expected one of "<>AV=|." after @',o[l]);var g=tDt(c,u,t),y={type:"styling",body:[g],mode:"math",style:"display"};r.push(y),a=Ioe()}s%2===0?r.push(a):r.shift(),r=[],i.push(r)}t.gullet.endGroup(),t.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}en({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),r=We.wrapFragment(Si(t.label,n,e),e);return r.classes.push("cd-label-"+t.side),r.style.bottom=Vt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(t,e){var n=new Ct.MathNode("mrow",[ds(t.label,e)]);return n=new Ct.MathNode("mpadded",[n]),n.setAttribute("width","0"),t.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ct.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});en({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=We.wrapFragment(Si(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(t,e){return new Ct.MathNode("mrow",[ds(t.fragment,e)])}});en({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:n}=t,r=Gr(e[0],"ordgroup"),i=r.body,s="",o=0;o<i.length;o++){var a=Gr(i[o],"textord");s+=a.text}var l=parseInt(s),c;if(isNaN(l))throw new Pt("\\@char has non-numeric argument "+s);if(l<0||l>=1114111)throw new Pt("\\@char with invalid code point "+s);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var cTe=(t,e)=>{var n=ua(t.body,e.withColor(t.color),!1);return We.makeFragment(n)},uTe=(t,e)=>{var n=Wc(t.body,e.withColor(t.color)),r=new Ct.MathNode("mstyle",n);return r.setAttribute("mathcolor",t.color),r};en({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,r=Gr(e[0],"color-token").color,i=e[1];return{type:"color",mode:n.mode,color:r,body:_o(i)}},htmlBuilder:cTe,mathmlBuilder:uTe});en({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:r}=t,i=Gr(e[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var s=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:s}},htmlBuilder:cTe,mathmlBuilder:uTe});en({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:r}=t,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:i&&Gr(i,"size").value}},htmlBuilder(t,e){var n=We.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=Vt(ro(t.size,e)))),n},mathmlBuilder(t,e){var n=new Ct.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",Vt(ro(t.size,e)))),n}});var Lj={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},hTe=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Pt("Expected a control sequence",t);return e},rDt=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},dTe=(t,e,n,r)=>{var i=t.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,i,r)};en({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var r=e.fetch();if(Lj[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Lj[r.text]),Gr(e.parseFunction(),"internal");throw new Pt("Invalid token after macro prefix",r)}});en({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=e.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Pt("Expected a control sequence",r);for(var s=0,o,a=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),a[s].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Pt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new Pt('Argument number "'+r.text+'" out of order');s++,a.push([])}else{if(r.text==="EOF")throw new Pt("Expected a macro definition");a[s].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:s,delimiters:a},n===Lj[n]),{type:"internal",mode:e.mode}}});en({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=hTe(e.gullet.popToken());e.gullet.consumeSpaces();var i=rDt(e);return dTe(e,r,i,n==="\\\\globallet"),{type:"internal",mode:e.mode}}});en({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=hTe(e.gullet.popToken()),i=e.gullet.popToken(),s=e.gullet.popToken();return dTe(e,r,s,n==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var u4=function(e,n,r){var i=ks.math[e]&&ks.math[e].replace,s=lG(i||e,n,r);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+n+".");return s},mG=function(e,n,r,i){var s=r.havingBaseStyle(n),o=We.makeSpan(i.concat(s.sizingClasses(r)),[e],r),a=s.sizeMultiplier/r.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=s.sizeMultiplier,o},fTe=function(e,n,r){var i=n.havingBaseStyle(r),s=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Vt(s),e.height-=s,e.depth+=s},iDt=function(e,n,r,i,s,o){var a=We.makeSymbol(e,"Main-Regular",s,i),l=mG(a,n,i,o);return r&&fTe(l,i,n),l},sDt=function(e,n,r,i){return We.makeSymbol(e,"Size"+n+"-Regular",r,i)},pTe=function(e,n,r,i,s,o){var a=sDt(e,n,s,i),l=mG(We.makeSpan(["delimsizing","size"+n],[a],i),Qn.TEXT,i,o);return r&&fTe(l,i,Qn.TEXT),l},$R=function(e,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=We.makeSpan(["delimsizinginner",i],[We.makeSpan([],[We.makeSymbol(e,n,r)])]);return{type:"elem",elem:s}},jR=function(e,n,r){var i=zf["Size4-Regular"][e.charCodeAt(0)]?zf["Size4-Regular"][e.charCodeAt(0)][4]:zf["Size1-Regular"][e.charCodeAt(0)][4],s=new r1("inner",h9t(e,Math.round(1e3*n))),o=new sm([s],{width:Vt(i),height:Vt(n),style:"width:"+Vt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),a=We.makeSvgSpan([],[o],r);return a.height=n,a.style.height=Vt(n),a.style.width=Vt(i),{type:"elem",elem:a}},Bj=.008,LE={type:"kern",size:-1*Bj},oDt=["|","\\lvert","\\rvert","\\vert"],aDt=["\\|","\\lVert","\\rVert","\\Vert"],mTe=function(e,n,r,i,s,o){var a,l,c,u,h="",d=0;a=c=u=e,l=null;var p="Size1-Regular";e==="\\uparrow"?c=u="â":e==="\\Uparrow"?c=u="â":e==="\\downarrow"?a=c="â":e==="\\Downarrow"?a=c="â":e==="\\updownarrow"?(a="\\uparrow",c="â",u="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",c="â",u="\\Downarrow"):zn.contains(oDt,e)?(c="â£",h="vert",d=333):zn.contains(aDt,e)?(c="â¥",h="doublevert",d=556):e==="["||e==="\\lbrack"?(a="â¡",c="â¢",u="â£",p="Size4-Regular",h="lbrack",d=667):e==="]"||e==="\\rbrack"?(a="â¤",c="â¥",u="â¦",p="Size4-Regular",h="rbrack",d=667):e==="\\lfloor"||e==="â"?(c=a="â¢",u="â£",p="Size4-Regular",h="lfloor",d=667):e==="\\lceil"||e==="â"?(a="â¡",c=u="â¢",p="Size4-Regular",h="lceil",d=667):e==="\\rfloor"||e==="â"?(c=a="â¥",u="â¦",p="Size4-Regular",h="rfloor",d=667):e==="\\rceil"||e==="â"?(a="â¤",c=u="â¥",p="Size4-Regular",h="rceil",d=667):e==="("||e==="\\lparen"?(a="â",c="â",u="â",p="Size4-Regular",h="lparen",d=875):e===")"||e==="\\rparen"?(a="â",c="â",u="â ",p="Size4-Regular",h="rparen",d=875):e==="\\{"||e==="\\lbrace"?(a="â§",l="â¨",u="â©",c="âª",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="â«",l="â¬",u="â",c="âª",p="Size4-Regular"):e==="\\lgroup"||e==="â®"?(a="â§",u="â©",c="âª",p="Size4-Regular"):e==="\\rgroup"||e==="â¯"?(a="â«",u="â",c="âª",p="Size4-Regular"):e==="\\lmoustache"||e==="â°"?(a="â§",u="â",c="âª",p="Size4-Regular"):(e==="\\rmoustache"||e==="â±")&&(a="â«",u="â©",c="âª",p="Size4-Regular");var g=u4(a,p,s),y=g.height+g.depth,b=u4(c,p,s),w=b.height+b.depth,S=u4(u,p,s),T=S.height+S.depth,D=0,E=1;if(l!==null){var O=u4(l,p,s);D=O.height+O.depth,E=2}var P=y+T+D,$=Math.max(0,Math.ceil((n-P)/(E*w))),W=P+$*E*w,H=i.fontMetrics().axisHeight;r&&(H*=i.sizeMultiplier);var K=W/2-H,Z=[];if(h.length>0){var oe=W-y-T,te=Math.round(W*1e3),re=d9t(h,Math.round(oe*1e3)),Y=new r1(h,re),z=(d/1e3).toFixed(3)+"em",U=(te/1e3).toFixed(3)+"em",G=new sm([Y],{width:z,height:U,viewBox:"0 0 "+d+" "+te}),B=We.makeSvgSpan([],[G],i);B.height=te/1e3,B.style.width=z,B.style.height=U,Z.push({type:"elem",elem:B})}else{if(Z.push($R(u,p,s)),Z.push(LE),l===null){var Q=W-y-T+2*Bj;Z.push(jR(c,Q,i))}else{var ie=(W-y-T-D)/2+2*Bj;Z.push(jR(c,ie,i)),Z.push(LE),Z.push($R(l,p,s)),Z.push(LE),Z.push(jR(c,ie,i))}Z.push(LE),Z.push($R(a,p,s))}var q=i.havingBaseStyle(Qn.TEXT),fe=We.makeVList({positionType:"bottom",positionData:K,children:Z},q);return mG(We.makeSpan(["delimsizing","mult"],[fe],q),Qn.TEXT,i,o)},zR=80,HR=.08,UR=function(e,n,r,i,s){var o=u9t(e,i,r),a=new r1(e,o),l=new sm([a],{width:"400em",height:Vt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return We.makeSvgSpan(["hide-tail"],[l],s)},lDt=function(e,n){var r=n.havingBaseSizing(),i=vTe("\\surd",e*r.sizeMultiplier,bTe,r),s=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),a,l=0,c=0,u=0,h;return i.type==="small"?(u=1e3+1e3*o+zR,e<1?s=1:e<1.4&&(s=.7),l=(1+o+HR)/s,c=(1+o)/s,a=UR("sqrtMain",l,u,o,n),a.style.minWidth="0.853em",h=.833/s):i.type==="large"?(u=(1e3+zR)*tk[i.size],c=(tk[i.size]+o)/s,l=(tk[i.size]+o+HR)/s,a=UR("sqrtSize"+i.size,l,u,o,n),a.style.minWidth="1.02em",h=1/s):(l=e+o+HR,c=e+o,u=Math.floor(1e3*e+o)+zR,a=UR("sqrtTall",l,u,o,n),a.style.minWidth="0.742em",h=1.056),a.height=c,a.style.height=Vt(l),{span:a,advanceWidth:h,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*s}},gTe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","\\surd"],cDt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±"],yTe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],tk=[0,1.2,1.8,2.4,3],uDt=function(e,n,r,i,s){if(e==="<"||e==="\\lt"||e==="â¨"?e="\\langle":(e===">"||e==="\\gt"||e==="â©")&&(e="\\rangle"),zn.contains(gTe,e)||zn.contains(yTe,e))return pTe(e,n,!1,r,i,s);if(zn.contains(cDt,e))return mTe(e,tk[n],!1,r,i,s);throw new Pt("Illegal delimiter: '"+e+"'")},hDt=[{type:"small",style:Qn.SCRIPTSCRIPT},{type:"small",style:Qn.SCRIPT},{type:"small",style:Qn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],dDt=[{type:"small",style:Qn.SCRIPTSCRIPT},{type:"small",style:Qn.SCRIPT},{type:"small",style:Qn.TEXT},{type:"stack"}],bTe=[{type:"small",style:Qn.SCRIPTSCRIPT},{type:"small",style:Qn.SCRIPT},{type:"small",style:Qn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fDt=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},vTe=function(e,n,r,i){for(var s=Math.min(2,3-i.style.size),o=s;o<r.length&&r[o].type!=="stack";o++){var a=u4(e,fDt(r[o]),"math"),l=a.height+a.depth;if(r[o].type==="small"){var c=i.havingBaseStyle(r[o].style);l*=c.sizeMultiplier}if(l>n)return r[o]}return r[r.length-1]},xTe=function(e,n,r,i,s,o){e==="<"||e==="\\lt"||e==="â¨"?e="\\langle":(e===">"||e==="\\gt"||e==="â©")&&(e="\\rangle");var a;zn.contains(yTe,e)?a=hDt:zn.contains(gTe,e)?a=bTe:a=dDt;var l=vTe(e,n,a,i);return l.type==="small"?iDt(e,l.style,r,i,s,o):l.type==="large"?pTe(e,l.size,r,i,s,o):mTe(e,n,r,i,s,o)},pDt=function(e,n,r,i,s,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-a,r+a),h=Math.max(u/500*l,2*u-c);return xTe(e,h,!0,i,s,o)},V0={sqrtImage:lDt,sizedDelim:uDt,sizeToMaxHeight:tk,customSizedDelim:xTe,leftRightDelim:pDt},Moe={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},mDt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","<",">","\\langle","â¨","\\rangle","â©","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function GI(t,e){var n=WI(t);if(n&&zn.contains(mDt,n.text))return n;throw n?new Pt("Invalid delimiter '"+n.text+"' after '"+e.funcName+"'",t):new Pt("Invalid delimiter type '"+t.type+"'",t)}en({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var n=GI(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Moe[t.funcName].size,mclass:Moe[t.funcName].mclass,delim:n.text}},htmlBuilder:(t,e)=>t.delim==="."?We.makeSpan([t.mclass]):V0.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Nh(t.delim,t.mode));var n=new Ct.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Vt(V0.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Noe(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}en({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=t.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Pt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:GI(e[0],t).text,color:n}}});en({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=GI(e[0],t),r=t.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=Gr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(t,e)=>{Noe(t);for(var n=ua(t.body,e,!0,["mopen","mclose"]),r=0,i=0,s=!1,o=0;o<n.length;o++)n[o].isMiddle?s=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i));r*=e.sizeMultiplier,i*=e.sizeMultiplier;var a;if(t.left==="."?a=EC(e,["mopen"]):a=V0.leftRightDelim(t.left,r,i,e,t.mode,["mopen"]),n.unshift(a),s)for(var l=1;l<n.length;l++){var c=n[l],u=c.isMiddle;u&&(n[l]=V0.leftRightDelim(u.delim,r,i,u.options,t.mode,[]))}var h;if(t.right===".")h=EC(e,["mclose"]);else{var d=t.rightColor?e.withColor(t.rightColor):e;h=V0.leftRightDelim(t.right,r,i,d,t.mode,["mclose"])}return n.push(h),We.makeSpan(["minner"],n,e)},mathmlBuilder:(t,e)=>{Noe(t);var n=Wc(t.body,e);if(t.left!=="."){var r=new Ct.MathNode("mo",[Nh(t.left,t.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(t.right!=="."){var i=new Ct.MathNode("mo",[Nh(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),n.push(i)}return hG(n)}});en({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=GI(e[0],t);if(!t.parser.leftrightDepth)throw new Pt("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if(t.delim===".")n=EC(e,[]);else{n=V0.sizedDelim(t.delim,1,e,t.mode,[]);var r={delim:t.delim,options:e};n.isMiddle=r}return n},mathmlBuilder:(t,e)=>{var n=t.delim==="\\vert"||t.delim==="|"?Nh("|","text"):Nh(t.delim,t.mode),r=new Ct.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var gG=(t,e)=>{var n=We.wrapFragment(Si(t.body,e),e),r=t.label.slice(1),i=e.sizeMultiplier,s,o=0,a=zn.isCharacterBox(t.body);if(r==="sout")s=We.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/i,o=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=ro({number:.6,unit:"pt"},e),c=ro({number:.35,unit:"ex"},e),u=e.havingBaseSizing();i=i/u.sizeMultiplier;var h=n.height+n.depth+l+c;n.style.paddingLeft=Vt(h/2+l);var d=Math.floor(1e3*h*i),p=l9t(d),g=new sm([new r1("phase",p)],{width:"400em",height:Vt(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});s=We.makeSvgSpan(["hide-tail"],[g],e),s.style.height=Vt(h),o=n.depth+l+c}else{/cancel/.test(r)?a||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var y=0,b=0,w=0;/box/.test(r)?(w=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),y=e.fontMetrics().fboxsep+(r==="colorbox"?0:w),b=y):r==="angl"?(w=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),y=4*w,b=Math.max(0,.25-n.depth)):(y=a?.2:0,b=y),s=am.encloseSpan(n,r,y,b,e),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=Vt(w)):r==="angl"&&w!==.049&&(s.style.borderTopWidth=Vt(w),s.style.borderRightWidth=Vt(w)),o=n.depth+b,t.backgroundColor&&(s.style.backgroundColor=t.backgroundColor,t.borderColor&&(s.style.borderColor=t.borderColor))}var S;if(t.backgroundColor)S=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:n,shift:0}]},e);else{var T=/cancel|phase/.test(r)?["svg-align"]:[];S=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:T}]},e)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!a?We.makeSpan(["mord","cancel-lap"],[S],e):We.makeSpan(["mord"],[S],e)},yG=(t,e)=>{var n=0,r=new Ct.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ds(t.body,e)]);switch(t.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&r.setAttribute("mathbackground",t.backgroundColor),r};en({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:r,funcName:i}=t,s=Gr(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,body:o}},htmlBuilder:gG,mathmlBuilder:yG});en({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:r,funcName:i}=t,s=Gr(e[0],"color-token").color,o=Gr(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:s,body:a}},htmlBuilder:gG,mathmlBuilder:yG});en({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}});en({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:gG,mathmlBuilder:yG});en({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var wTe={};function Cp(t){for(var{type:e,names:n,props:r,handler:i,htmlBuilder:s,mathmlBuilder:o}=t,a={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)wTe[n[l]]=a;s&&(SP[e]=s),o&&(kP[e]=o)}var STe={};function se(t,e){STe[t]=e}function Roe(t){var e=[];t.consumeSpaces();var n=t.fetch().text;for(n==="\\relax"&&(t.consume(),t.consumeSpaces(),n=t.fetch().text);n==="\\hline"||n==="\\hdashline";)t.consume(),e.push(n==="\\hdashline"),t.consumeSpaces(),n=t.fetch().text;return e}var KI=t=>{var e=t.parser.settings;if(!e.displayMode)throw new Pt("{"+t.envName+"} can be used only in display mode.")};function bG(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function k1(t,e,n){var{hskipBeforeAndAfter:r,addJot:i,cols:s,arraystretch:o,colSeparationType:a,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:h,leqno:d}=e;if(t.gullet.beginGroup(),c||t.gullet.macros.set("\\cr","\\\\\\relax"),!o){var p=t.gullet.expandMacroAsText("\\arraystretch");if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new Pt("Invalid \\arraystretch: "+p)}t.gullet.beginGroup();var g=[],y=[g],b=[],w=[],S=l!=null?[]:void 0;function T(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function D(){S&&(t.gullet.macros.get("\\df@tag")?(S.push(t.subparse([new Ch("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),w.push(Roe(t));;){var E=t.parseExpression(!1,c?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),E={type:"ordgroup",mode:t.mode,body:E},n&&(E={type:"styling",mode:t.mode,style:n,body:[E]}),g.push(E);var O=t.fetch().text;if(O==="&"){if(h&&g.length===h){if(c||a)throw new Pt("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(O==="\\end"){D(),g.length===1&&E.type==="styling"&&E.body[0].body.length===0&&(y.length>1||!u)&&y.pop(),w.length<y.length+1&&w.push([]);break}else if(O==="\\\\"){t.consume();var P=void 0;t.gullet.future().text!==" "&&(P=t.parseSizeGroup(!0)),b.push(P?P.value:null),D(),w.push(Roe(t)),g=[],y.push(g),T()}else throw new Pt("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:o,body:y,cols:s,rowGaps:b,hskipBeforeAndAfter:r,hLinesBeforeRow:w,colSeparationType:a,tags:S,leqno:d}}function vG(t){return t.slice(0,1)==="d"?"display":"text"}var _p=function(e,n){var r,i,s=e.body.length,o=e.hLinesBeforeRow,a=0,l=new Array(s),c=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),h=1/n.fontMetrics().ptPerEm,d=5*h;if(e.colSeparationType&&e.colSeparationType==="small"){var p=n.havingStyle(Qn.SCRIPT).sizeMultiplier;d=.2778*(p/n.sizeMultiplier)}var g=e.colSeparationType==="CD"?ro({number:3,unit:"ex"},n):12*h,y=3*h,b=e.arraystretch*g,w=.7*b,S=.3*b,T=0;function D(Wn){for(var nr=0;nr<Wn.length;++nr)nr>0&&(T+=.25),c.push({pos:T,isDashed:Wn[nr]})}for(D(o[0]),r=0;r<e.body.length;++r){var E=e.body[r],O=w,P=S;a<E.length&&(a=E.length);var $=new Array(E.length);for(i=0;i<E.length;++i){var W=Si(E[i],n);P<W.depth&&(P=W.depth),O<W.height&&(O=W.height),$[i]=W}var H=e.rowGaps[r],K=0;H&&(K=ro(H,n),K>0&&(K+=S,P<K&&(P=K),K=0)),e.addJot&&(P+=y),$.height=O,$.depth=P,T+=O,$.pos=T,T+=P+K,l[r]=$,D(o[r+1])}var Z=T/2+n.fontMetrics().axisHeight,oe=e.cols||[],te=[],re,Y,z=[];if(e.tags&&e.tags.some(Wn=>Wn))for(r=0;r<s;++r){var U=l[r],G=U.pos-Z,B=e.tags[r],Q=void 0;B===!0?Q=We.makeSpan(["eqn-num"],[],n):B===!1?Q=We.makeSpan([],[],n):Q=We.makeSpan([],ua(B,n,!0),n),Q.depth=U.depth,Q.height=U.height,z.push({type:"elem",elem:Q,shift:G})}for(i=0,Y=0;i<a||Y<oe.length;++i,++Y){for(var ie=oe[Y]||{},q=!0;ie.type==="separator";){if(q||(re=We.makeSpan(["arraycolsep"],[]),re.style.width=Vt(n.fontMetrics().doubleRuleSep),te.push(re)),ie.separator==="|"||ie.separator===":"){var fe=ie.separator==="|"?"solid":"dashed",ke=We.makeSpan(["vertical-separator"],[],n);ke.style.height=Vt(T),ke.style.borderRightWidth=Vt(u),ke.style.borderRightStyle=fe,ke.style.margin="0 "+Vt(-u/2);var Be=T-Z;Be&&(ke.style.verticalAlign=Vt(-Be)),te.push(ke)}else throw new Pt("Invalid separator type: "+ie.separator);Y++,ie=oe[Y]||{},q=!1}if(!(i>=a)){var Qe=void 0;(i>0||e.hskipBeforeAndAfter)&&(Qe=zn.deflt(ie.pregap,d),Qe!==0&&(re=We.makeSpan(["arraycolsep"],[]),re.style.width=Vt(Qe),te.push(re)));var ft=[];for(r=0;r<s;++r){var Ne=l[r],rt=Ne[i];if(rt){var Mt=Ne.pos-Z;rt.depth=Ne.depth,rt.height=Ne.height,ft.push({type:"elem",elem:rt,shift:Mt})}}ft=We.makeVList({positionType:"individualShift",children:ft},n),ft=We.makeSpan(["col-align-"+(ie.align||"c")],[ft]),te.push(ft),(i<a-1||e.hskipBeforeAndAfter)&&(Qe=zn.deflt(ie.postgap,d),Qe!==0&&(re=We.makeSpan(["arraycolsep"],[]),re.style.width=Vt(Qe),te.push(re)))}}if(l=We.makeSpan(["mtable"],te),c.length>0){for(var it=We.makeLineSpan("hline",n,u),Rt=We.makeLineSpan("hdashline",n,u),xt=[{type:"elem",elem:l,shift:0}];c.length>0;){var Nn=c.pop(),Hn=Nn.pos-Z;Nn.isDashed?xt.push({type:"elem",elem:Rt,shift:Hn}):xt.push({type:"elem",elem:it,shift:Hn})}l=We.makeVList({positionType:"individualShift",children:xt},n)}if(z.length===0)return We.makeSpan(["mord"],[l],n);var $n=We.makeVList({positionType:"individualShift",children:z},n);return $n=We.makeSpan(["tag"],[$n],n),We.makeFragment([l,$n])},gDt={c:"center ",l:"left ",r:"right "},Tp=function(e,n){for(var r=[],i=new Ct.MathNode("mtd",[],["mtr-glue"]),s=new Ct.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var a=e.body[o],l=[],c=0;c<a.length;c++)l.push(new Ct.MathNode("mtd",[ds(a[c],n)]));e.tags&&e.tags[o]&&(l.unshift(i),l.push(i),e.leqno?l.unshift(s):l.push(s)),r.push(new Ct.MathNode("mtr",l))}var u=new Ct.MathNode("mtable",r),h=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",Vt(h));var d="",p="";if(e.cols&&e.cols.length>0){var g=e.cols,y="",b=!1,w=0,S=g.length;g[0].type==="separator"&&(d+="top ",w=1),g[g.length-1].type==="separator"&&(d+="bottom ",S-=1);for(var T=w;T<S;T++)g[T].type==="align"?(p+=gDt[g[T].align],b&&(y+="none "),b=!0):g[T].type==="separator"&&b&&(y+=g[T].separator==="|"?"solid ":"dashed ",b=!1);u.setAttribute("columnalign",p.trim()),/[sd]/.test(y)&&u.setAttribute("columnlines",y.trim())}if(e.colSeparationType==="align"){for(var D=e.cols||[],E="",O=1;O<D.length;O++)E+=O%2?"0em ":"1em ";u.setAttribute("columnspacing",E.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var P="",$=e.hLinesBeforeRow;d+=$[0].length>0?"left ":"",d+=$[$.length-1].length>0?"right ":"";for(var W=1;W<$.length-1;W++)P+=$[W].length===0?"none ":$[W][0]?"dashed ":"solid ";return/[sd]/.test(P)&&u.setAttribute("rowlines",P.trim()),d!==""&&(u=new Ct.MathNode("menclose",[u]),u.setAttribute("notation",d.trim())),e.arraystretch&&e.arraystretch<1&&(u=new Ct.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},kTe=function(e,n){e.envName.indexOf("ed")===-1&&KI(e);var r=[],i=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=k1(e.parser,{cols:r,addJot:!0,autoTag:s?void 0:bG(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",h=0;h<n[0].body.length;h++){var d=Gr(n[0].body[h],"textord");u+=d.text}a=Number(u),l=a*2}var p=!l;o.body.forEach(function(w){for(var S=1;S<w.length;S+=2){var T=Gr(w[S],"styling"),D=Gr(T.body[0],"ordgroup");D.body.unshift(c)}if(p)l<w.length&&(l=w.length);else{var E=w.length/2;if(a<E)throw new Pt("Too many math in a row: "+("expected "+a+", but got "+E),w[0])}});for(var g=0;g<l;++g){var y="r",b=0;g%2===1?y="l":g>0&&p&&(b=1),r[g]={type:"align",align:y,pregap:b,postgap:0}}return o.colSeparationType=p?"align":"alignat",o};Cp({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=WI(e[0]),r=n?[e[0]]:Gr(e[0],"ordgroup").body,i=r.map(function(o){var a=fG(o),l=a.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Pt("Unknown column alignment: "+l,o)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return k1(t.parser,s,vG(t.envName))},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Pt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var s=k1(t.parser,r,vG(t.envName)),o=Math.max(0,...s.body.map(a=>a.length));return s.cols=new Array(o).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},n=k1(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=WI(e[0]),r=n?[e[0]]:Gr(e[0],"ordgroup").body,i=r.map(function(o){var a=fG(o),l=a.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Pt("Unknown column alignment: "+l,o)});if(i.length>1)throw new Pt("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=k1(t.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new Pt("{subarray} can contain only one column");return s},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=k1(t.parser,e,vG(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:kTe,htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){zn.contains(["gather","gather*"],t.envName)&&KI(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:bG(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return k1(t.parser,e,"display")},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:kTe,htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){KI(t);var e={autoTag:bG(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return k1(t.parser,e,"display")},htmlBuilder:_p,mathmlBuilder:Tp});Cp({type:"array",names:["CD"],props:{numArgs:0},handler(t){return KI(t),nDt(t.parser)},htmlBuilder:_p,mathmlBuilder:Tp});se("\\nonumber","\\gdef\\@eqnsw{0}");se("\\notag","\\nonumber");en({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Pt(t.funcName+" valid only within array environment")}});var Loe=wTe;en({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];if(i.type!=="ordgroup")throw new Pt("Invalid environment name",i);for(var s="",o=0;o<i.body.length;++o)s+=Gr(i.body[o],"textord").text;if(r==="\\begin"){if(!Loe.hasOwnProperty(s))throw new Pt("No such environment: "+s,i);var a=Loe[s],{args:l,optArgs:c}=n.parseArguments("\\begin{"+s+"}",a),u={mode:n.mode,envName:s,parser:n},h=a.handler(u,l,c);n.expect("\\end",!1);var d=n.nextToken,p=Gr(n.parseFunction(),"environment");if(p.name!==s)throw new Pt("Mismatch: \\begin{"+s+"} matched by \\end{"+p.name+"}",d);return h}return{type:"environment",mode:n.mode,name:s,nameGroup:i}}});var CTe=(t,e)=>{var n=t.font,r=e.withFont(n);return Si(t.body,r)},_Te=(t,e)=>{var n=t.font,r=e.withFont(n);return ds(t.body,r)},Boe={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};en({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=CP(e[0]),s=r;return s in Boe&&(s=Boe[s]),{type:"font",mode:n.mode,font:s.slice(1),body:i}},htmlBuilder:CTe,mathmlBuilder:_Te});en({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,r=e[0],i=zn.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:qI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});en({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,breakOnTokenText:i}=t,{mode:s}=n,o=n.parseExpression(!0,i),a="math"+r.slice(1);return{type:"font",mode:s,font:a,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:CTe,mathmlBuilder:_Te});var TTe=(t,e)=>{var n=e;return t==="display"?n=n.id>=Qn.SCRIPT.id?n.text():Qn.DISPLAY:t==="text"&&n.size===Qn.DISPLAY.size?n=Qn.TEXT:t==="script"?n=Qn.SCRIPT:t==="scriptscript"&&(n=Qn.SCRIPTSCRIPT),n},xG=(t,e)=>{var n=TTe(t.size,e.style),r=n.fracNum(),i=n.fracDen(),s;s=e.havingStyle(r);var o=Si(t.numer,s,e);if(t.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;o.height=o.height<a?a:o.height,o.depth=o.depth<l?l:o.depth}s=e.havingStyle(i);var c=Si(t.denom,s,e),u,h,d;t.hasBarLine?(t.barSize?(h=ro(t.barSize,e),u=We.makeLineSpan("frac-line",e,h)):u=We.makeLineSpan("frac-line",e),h=u.height,d=u.height):(u=null,h=0,d=e.fontMetrics().defaultRuleThickness);var p,g,y;n.size===Qn.DISPLAY.size||t.size==="display"?(p=e.fontMetrics().num1,h>0?g=3*d:g=7*d,y=e.fontMetrics().denom1):(h>0?(p=e.fontMetrics().num2,g=d):(p=e.fontMetrics().num3,g=3*d),y=e.fontMetrics().denom2);var b;if(u){var S=e.fontMetrics().axisHeight;p-o.depth-(S+.5*h)<g&&(p+=g-(p-o.depth-(S+.5*h))),S-.5*h-(c.height-y)<g&&(y+=g-(S-.5*h-(c.height-y)));var T=-(S-.5*h);b=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:y},{type:"elem",elem:u,shift:T},{type:"elem",elem:o,shift:-p}]},e)}else{var w=p-o.depth-(c.height-y);w<g&&(p+=.5*(g-w),y+=.5*(g-w)),b=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:y},{type:"elem",elem:o,shift:-p}]},e)}s=e.havingStyle(n),b.height*=s.sizeMultiplier/e.sizeMultiplier,b.depth*=s.sizeMultiplier/e.sizeMultiplier;var D;n.size===Qn.DISPLAY.size?D=e.fontMetrics().delim1:n.size===Qn.SCRIPTSCRIPT.size?D=e.havingStyle(Qn.SCRIPT).fontMetrics().delim2:D=e.fontMetrics().delim2;var E,O;return t.leftDelim==null?E=EC(e,["mopen"]):E=V0.customSizedDelim(t.leftDelim,D,!0,e.havingStyle(n),t.mode,["mopen"]),t.continued?O=We.makeSpan([]):t.rightDelim==null?O=EC(e,["mclose"]):O=V0.customSizedDelim(t.rightDelim,D,!0,e.havingStyle(n),t.mode,["mclose"]),We.makeSpan(["mord"].concat(s.sizingClasses(e)),[E,We.makeSpan(["mfrac"],[b]),O],e)},wG=(t,e)=>{var n=new Ct.MathNode("mfrac",[ds(t.numer,e),ds(t.denom,e)]);if(!t.hasBarLine)n.setAttribute("linethickness","0px");else if(t.barSize){var r=ro(t.barSize,e);n.setAttribute("linethickness",Vt(r))}var i=TTe(t.size,e.style);if(i.size!==e.style.size){n=new Ct.MathNode("mstyle",[n]);var s=i.size===Qn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",s),n.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var o=[];if(t.leftDelim!=null){var a=new Ct.MathNode("mo",[new Ct.TextNode(t.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),o.push(a)}if(o.push(n),t.rightDelim!=null){var l=new Ct.MathNode("mo",[new Ct.TextNode(t.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return hG(o)}return n};en({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],s=e[1],o,a=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,a="(",l=")";break;case"\\\\bracefrac":o=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:s,hasBarLine:o,leftDelim:a,rightDelim:l,size:c,barSize:null}},htmlBuilder:xG,mathmlBuilder:wG});en({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],s=e[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});en({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:n,token:r}=t,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:r}}});var Foe=["display","text","script","scriptscript"],$oe=function(e){var n=null;return e.length>0&&(n=e,n=n==="."?null:n),n};en({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:n}=t,r=e[4],i=e[5],s=CP(e[0]),o=s.type==="atom"&&s.family==="open"?$oe(s.text):null,a=CP(e[1]),l=a.type==="atom"&&a.family==="close"?$oe(a.text):null,c=Gr(e[2],"size"),u,h=null;c.isBlank?u=!0:(h=c.value,u=h.number>0);var d="auto",p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var g=Gr(p.body[0],"textord");d=Foe[Number(g.text)]}}else p=Gr(p,"textord"),d=Foe[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:h,leftDelim:o,rightDelim:l,size:d}},htmlBuilder:xG,mathmlBuilder:wG});en({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:r,token:i}=t;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Gr(e[0],"size").value,token:i}}});en({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],s=GIt(Gr(e[1],"infix").size),o=e[2],a=s.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:a,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:xG,mathmlBuilder:wG});var ETe=(t,e)=>{var n=e.style,r,i;t.type==="supsub"?(r=t.sup?Si(t.sup,e.havingStyle(n.sup()),e):Si(t.sub,e.havingStyle(n.sub()),e),i=Gr(t.base,"horizBrace")):i=Gr(t,"horizBrace");var s=Si(i.base,e.havingBaseStyle(Qn.DISPLAY)),o=am.svgSpan(i,e),a;if(i.isOver?(a=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=We.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),r){var l=We.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e);i.isOver?a=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):a=We.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return We.makeSpan(["mord",i.isOver?"mover":"munder"],[a],e)},yDt=(t,e)=>{var n=am.mathMLnode(t.label);return new Ct.MathNode(t.isOver?"mover":"munder",[ds(t.base,e),n])};en({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:ETe,mathmlBuilder:yDt});en({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[1],i=Gr(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:_o(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=ua(t.body,e,!1);return We.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=i1(t.body,e);return n instanceof ku||(n=new ku("mrow",[n])),n.setAttribute("href",t.href),n}});en({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=Gr(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<r.length;s++){var o=r[s];o==="~"&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var a={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:_o(a)}}});en({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:n}=t;return{type:"hbox",mode:n.mode,body:_o(e[0])}},htmlBuilder(t,e){var n=ua(t.body,e,!1);return We.makeFragment(n)},mathmlBuilder(t,e){return new Ct.MathNode("mrow",Wc(t.body,e))}});en({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,token:i}=t,s=Gr(e[0],"raw").string,o=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a,l={};switch(r){case"\\htmlClass":l.class=s,a={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,a={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,a={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var c=s.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(h.length!==2)throw new Pt("Error parsing key-value for \\htmlData");l["data-"+h[0].trim()]=h[1].trim()}a={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(a)?{type:"html",mode:n.mode,attributes:l,body:_o(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(t,e)=>{var n=ua(t.body,e,!1),r=["enclosing"];t.attributes.class&&r.push(...t.attributes.class.trim().split(/\s+/));var i=We.makeSpan(r,n,e);for(var s in t.attributes)s!=="class"&&t.attributes.hasOwnProperty(s)&&i.setAttribute(s,t.attributes[s]);return i},mathmlBuilder:(t,e)=>i1(t.body,e)});en({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"htmlmathml",mode:n.mode,html:_o(e[0]),mathml:_o(e[1])}},htmlBuilder:(t,e)=>{var n=ua(t.html,e,!1);return We.makeFragment(n)},mathmlBuilder:(t,e)=>i1(t.mathml,e)});var VR=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!n)throw new Pt("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!q_e(r))throw new Pt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};en({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:r}=t,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},a="";if(n[0])for(var l=Gr(n[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(h.length===2){var d=h[1].trim();switch(h[0].trim()){case"alt":a=d;break;case"width":i=VR(d);break;case"height":s=VR(d);break;case"totalheight":o=VR(d);break;default:throw new Pt("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=Gr(e[0],"url").url;return a===""&&(a=p,a=a.replace(/^.*[\\/]/,""),a=a.substring(0,a.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:a,width:i,height:s,totalheight:o,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var n=ro(t.height,e),r=0;t.totalheight.number>0&&(r=ro(t.totalheight,e)-n);var i=0;t.width.number>0&&(i=ro(t.width,e));var s={height:Vt(n+r)};i>0&&(s.width=Vt(i)),r>0&&(s.verticalAlign=Vt(-r));var o=new y9t(t.src,t.alt,s);return o.height=n,o.depth=r,o},mathmlBuilder:(t,e)=>{var n=new Ct.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var r=ro(t.height,e),i=0;if(t.totalheight.number>0&&(i=ro(t.totalheight,e)-r,n.setAttribute("valign",Vt(-i))),n.setAttribute("height",Vt(r+i)),t.width.number>0){var s=ro(t.width,e);n.setAttribute("width",Vt(s))}return n.setAttribute("src",t.src),n}});en({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,i=Gr(e[0],"size");if(n.settings.strict){var s=r[1]==="m",o=i.value.unit==="mu";s?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(t,e){return We.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var n=ro(t.dimension,e);return new Ct.SpaceNode(n)}});en({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(t,e)=>{var n;t.alignment==="clap"?(n=We.makeSpan([],[Si(t.body,e)]),n=We.makeSpan(["inner"],[n],e)):n=We.makeSpan(["inner"],[Si(t.body,e)]);var r=We.makeSpan(["fix"],[]),i=We.makeSpan([t.alignment],[n,r],e),s=We.makeSpan(["strut"]);return s.style.height=Vt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Vt(-i.depth)),i.children.unshift(s),i=We.makeSpan(["thinbox"],[i],e),We.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var n=new Ct.MathNode("mpadded",[ds(t.body,e)]);if(t.alignment!=="rlap"){var r=t.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});en({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:r}=t,i=r.mode;r.switchMode("math");var s=n==="\\("?"\\)":"$",o=r.parseExpression(!1,s);return r.expect(s),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});en({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Pt("Mismatched "+t.funcName)}});var joe=(t,e)=>{switch(e.style.size){case Qn.DISPLAY.size:return t.display;case Qn.TEXT.size:return t.text;case Qn.SCRIPT.size:return t.script;case Qn.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};en({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"mathchoice",mode:n.mode,display:_o(e[0]),text:_o(e[1]),script:_o(e[2]),scriptscript:_o(e[3])}},htmlBuilder:(t,e)=>{var n=joe(t,e),r=ua(n,e,!1);return We.makeFragment(r)},mathmlBuilder:(t,e)=>{var n=joe(t,e);return i1(n,e)}});var ATe=(t,e,n,r,i,s,o)=>{t=We.makeSpan([],[t]);var a=n&&zn.isCharacterBox(n),l,c;if(e){var u=Si(e,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var h=Si(n,r.havingStyle(i.sub()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}var d;if(c&&l){var p=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+o;d=We.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Vt(-s)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Vt(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var g=t.height-o;d=We.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Vt(-s)},{type:"kern",size:l.kern},{type:"elem",elem:t}]},r)}else if(c){var y=t.depth+o;d=We.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Vt(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return t;var b=[d];if(l&&s!==0&&!a){var w=We.makeSpan(["mspace"],[],r);w.style.marginRight=Vt(s),b.unshift(w)}return We.makeSpan(["mop","op-limits"],b,r)},PTe=["\\smallint"],Qw=(t,e)=>{var n,r,i=!1,s;t.type==="supsub"?(n=t.sup,r=t.sub,s=Gr(t.base,"op"),i=!0):s=Gr(t,"op");var o=e.style,a=!1;o.size===Qn.DISPLAY.size&&s.symbol&&!zn.contains(PTe,s.name)&&(a=!0);var l;if(s.symbol){var c=a?"Size2-Regular":"Size1-Regular",u="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(u=s.name.slice(1),s.name=u==="oiint"?"\\iint":"\\iiint"),l=We.makeSymbol(s.name,c,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),u.length>0){var h=l.italic,d=We.staticSvg(u+"Size"+(a?"2":"1"),e);l=We.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:d,shift:a?.08:0}]},e),s.name="\\"+u,l.classes.unshift("mop"),l.italic=h}}else if(s.body){var p=ua(s.body,e,!0);p.length===1&&p[0]instanceof Mh?(l=p[0],l.classes[0]="mop"):l=We.makeSpan(["mop"],p,e)}else{for(var g=[],y=1;y<s.name.length;y++)g.push(We.mathsym(s.name[y],s.mode,e));l=We.makeSpan(["mop"],g,e)}var b=0,w=0;return(l instanceof Mh||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(b=(l.height-l.depth)/2-e.fontMetrics().axisHeight,w=l.italic),i?ATe(l,n,r,e,o,w,b):(b&&(l.style.position="relative",l.style.top=Vt(b)),l)},Y_=(t,e)=>{var n;if(t.symbol)n=new ku("mo",[Nh(t.name,t.mode)]),zn.contains(PTe,t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new ku("mo",Wc(t.body,e));else{n=new ku("mi",[new Hf(t.name.slice(1))]);var r=new ku("mo",[Nh("â¡","text")]);t.parentIsSupSub?n=new ku("mrow",[n,r]):n=rTe([n,r])}return n},bDt={"â":"\\prod","â":"\\coprod","â":"\\sum","â":"\\bigwedge","â":"\\bigvee","â":"\\bigcap","â":"\\bigcup","â¨":"\\bigodot","â¨":"\\bigoplus","â¨":"\\bigotimes","â¨":"\\biguplus","â¨":"\\bigsqcup"};en({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","â","â","â","â","â","â","â","â¨","â¨","â¨","â¨","â¨"],props:{numArgs:0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=r;return i.length===1&&(i=bDt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Qw,mathmlBuilder:Y_});en({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:_o(r)}},htmlBuilder:Qw,mathmlBuilder:Y_});var vDt={"â«":"\\int","â¬":"\\iint","â":"\\iiint","â®":"\\oint","â¯":"\\oiint","â°":"\\oiiint"};en({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Qw,mathmlBuilder:Y_});en({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Qw,mathmlBuilder:Y_});en({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","â«","â¬","â","â®","â¯","â°"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,r=n;return r.length===1&&(r=vDt[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Qw,mathmlBuilder:Y_});var OTe=(t,e)=>{var n,r,i=!1,s;t.type==="supsub"?(n=t.sup,r=t.sub,s=Gr(t.base,"operatorname"),i=!0):s=Gr(t,"operatorname");var o;if(s.body.length>0){for(var a=s.body.map(h=>{var d=h.text;return typeof d=="string"?{type:"textord",mode:h.mode,text:d}:h}),l=ua(a,e.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Mh&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=We.makeSpan(["mop"],l,e)}else o=We.makeSpan(["mop"],[],e);return i?ATe(o,n,r,e,e.style,0,0):o},xDt=(t,e)=>{for(var n=Wc(t.body,e.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var s=n[i];if(!(s instanceof Ct.SpaceNode))if(s instanceof Ct.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof Ct.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var a=n.map(u=>u.toText()).join("");n=[new Ct.TextNode(a)]}var l=new Ct.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new Ct.MathNode("mo",[Nh("â¡","text")]);return t.parentIsSupSub?new Ct.MathNode("mrow",[l,c]):Ct.newDocumentFragment([l,c])};en({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"operatorname",mode:n.mode,body:_o(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:OTe,mathmlBuilder:xDt});se("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Hb({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?We.makeFragment(ua(t.body,e,!1)):We.makeSpan(["mord"],ua(t.body,e,!0),e)},mathmlBuilder(t,e){return i1(t.body,e,!0)}});en({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:n}=t,r=e[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(t,e){var n=Si(t.body,e.havingCrampedStyle()),r=We.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,s=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return We.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(t,e){var n=new Ct.MathNode("mo",[new Ct.TextNode("â¾")]);n.setAttribute("stretchy","true");var r=new Ct.MathNode("mover",[ds(t.body,e),n]);return r.setAttribute("accent","true"),r}});en({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"phantom",mode:n.mode,body:_o(r)}},htmlBuilder:(t,e)=>{var n=ua(t.body,e.withPhantom(),!1);return We.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=Wc(t.body,e);return new Ct.MathNode("mphantom",n)}});en({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=We.makeSpan([],[Si(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e),We.makeSpan(["mord"],[n],e)},mathmlBuilder:(t,e)=>{var n=Wc(_o(t.body),e),r=new Ct.MathNode("mphantom",n),i=new Ct.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});en({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=We.makeSpan(["inner"],[Si(t.body,e.withPhantom())]),r=We.makeSpan(["fix"],[]);return We.makeSpan(["mord","rlap"],[n,r],e)},mathmlBuilder:(t,e)=>{var n=Wc(_o(t.body),e),r=new Ct.MathNode("mphantom",n),i=new Ct.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});en({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,r=Gr(e[0],"size").value,i=e[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(t,e){var n=Si(t.body,e),r=ro(t.dy,e);return We.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new Ct.MathNode("mpadded",[ds(t.body,e)]),r=t.dy.number+t.dy.unit;return n.setAttribute("voffset",r),n}});en({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});en({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,n){var{parser:r}=t,i=n[0],s=Gr(e[0],"size"),o=Gr(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Gr(i,"size").value,width:s.value,height:o.value}},htmlBuilder(t,e){var n=We.makeSpan(["mord","rule"],[],e),r=ro(t.width,e),i=ro(t.height,e),s=t.shift?ro(t.shift,e):0;return n.style.borderRightWidth=Vt(r),n.style.borderTopWidth=Vt(i),n.style.bottom=Vt(s),n.width=r,n.height=i+s,n.depth=-s,n.maxFontSize=i*1.125*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=ro(t.width,e),r=ro(t.height,e),i=t.shift?ro(t.shift,e):0,s=e.color&&e.getColor()||"black",o=new Ct.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",Vt(n)),o.setAttribute("height",Vt(r));var a=new Ct.MathNode("mpadded",[o]);return i>=0?a.setAttribute("height",Vt(i)):(a.setAttribute("height",Vt(i)),a.setAttribute("depth",Vt
vendor: 16,477 bytes, lines 1194-1198
1194(-i))),a.setAttribute("voffset",Vt(i)),a}});function ITe(t,e,n){for(var r=ua(t,e,!1),i=e.sizeMultiplier/n.sizeMultiplier,s=0;s<r.length;s++){var o=r[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[s].classes,e.sizingClasses(n)):r[s].classes[o+1]==="reset-size"+e.size&&(r[s].classes[o+1]="reset-size"+n.size),r[s].height*=i,r[s].depth*=i}return We.makeFragment(r)}var zoe=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],wDt=(t,e)=>{var n=e.havingSize(t.size);return ITe(t.body,n,e)};en({type:"sizing",names:zoe,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:r,parser:i}=t,s=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:zoe.indexOf(r)+1,body:s}},htmlBuilder:wDt,mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),r=Wc(t.body,n),i=new Ct.MathNode("mstyle",r);return i.setAttribute("mathsize",Vt(n.sizeMultiplier)),i}});en({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:r}=t,i=!1,s=!1,o=n[0]&&Gr(n[0],"ordgroup");if(o)for(var a="",l=0;l<o.body.length;++l){var c=o.body[l];if(a=c.text,a==="t")i=!0;else if(a==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var u=e[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:s}},htmlBuilder:(t,e)=>{var n=We.makeSpan([],[Si(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(t.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var s=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e);return We.makeSpan(["mord"],[s],e)},mathmlBuilder:(t,e)=>{var n=new Ct.MathNode("mpadded",[ds(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}});en({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:r}=t,i=n[0],s=e[0];return{type:"sqrt",mode:r.mode,body:s,index:i}},htmlBuilder(t,e){var n=Si(t.body,e.havingCrampedStyle());n.height===0&&(n.height=e.fontMetrics().xHeight),n=We.wrapFragment(n,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,s=i;e.style.id<Qn.TEXT.id&&(s=e.fontMetrics().xHeight);var o=i+s/4,a=n.height+n.depth+o+i,{span:l,ruleWidth:c,advanceWidth:u}=V0.sqrtImage(a,e),h=l.height-c;h>n.height+n.depth+o&&(o=(o+h-n.height-n.depth)/2);var d=l.height-n.height-o-c;n.style.paddingLeft=Vt(u);var p=We.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:c}]},e);if(t.index){var g=e.havingStyle(Qn.SCRIPTSCRIPT),y=Si(t.index,g,e),b=.6*(p.height-p.depth),w=We.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:y}]},e),S=We.makeSpan(["root"],[w]);return We.makeSpan(["mord","sqrt"],[S,p],e)}else return We.makeSpan(["mord","sqrt"],[p],e)},mathmlBuilder(t,e){var{body:n,index:r}=t;return r?new Ct.MathNode("mroot",[ds(n,e),ds(r,e)]):new Ct.MathNode("msqrt",[ds(n,e)])}});var Hoe={display:Qn.DISPLAY,text:Qn.TEXT,script:Qn.SCRIPT,scriptscript:Qn.SCRIPTSCRIPT};en({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:n,funcName:r,parser:i}=t,s=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:s}},htmlBuilder(t,e){var n=Hoe[t.style],r=e.havingStyle(n).withFont("");return ITe(t.body,r,e)},mathmlBuilder(t,e){var n=Hoe[t.style],r=e.havingStyle(n),i=Wc(t.body,r),s=new Ct.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=o[t.style];return s.setAttribute("scriptlevel",a[0]),s.setAttribute("displaystyle",a[1]),s}});var SDt=function(e,n){var r=e.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Qn.DISPLAY.size||r.alwaysHandleSupSub);return i?Qw:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(n.style.size===Qn.DISPLAY.size||r.limits);return s?OTe:null}else{if(r.type==="accent")return zn.isCharacterBox(r.base)?pG:null;if(r.type==="horizBrace"){var o=!e.sub;return o===r.isOver?ETe:null}else return null}else return null};Hb({type:"supsub",htmlBuilder(t,e){var n=SDt(t,e);if(n)return n(t,e);var{base:r,sup:i,sub:s}=t,o=Si(r,e),a,l,c=e.fontMetrics(),u=0,h=0,d=r&&zn.isCharacterBox(r);if(i){var p=e.havingStyle(e.style.sup());a=Si(i,p,e),d||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(s){var g=e.havingStyle(e.style.sub());l=Si(s,g,e),d||(h=o.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var y;e.style===Qn.DISPLAY?y=c.sup1:e.style.cramped?y=c.sup3:y=c.sup2;var b=e.sizeMultiplier,w=Vt(.5/c.ptPerEm/b),S=null;if(l){var T=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(o instanceof Mh||T)&&(S=Vt(-o.italic))}var D;if(a&&l){u=Math.max(u,y,a.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var E=c.defaultRuleThickness,O=4*E;if(u-a.depth-(l.height-h)<O){h=O-(u-a.depth)+l.height;var P=.8*c.xHeight-(u-a.depth);P>0&&(u+=P,h-=P)}var $=[{type:"elem",elem:l,shift:h,marginRight:w,marginLeft:S},{type:"elem",elem:a,shift:-u,marginRight:w}];D=We.makeVList({positionType:"individualShift",children:$},e)}else if(l){h=Math.max(h,c.sub1,l.height-.8*c.xHeight);var W=[{type:"elem",elem:l,marginLeft:S,marginRight:w}];D=We.makeVList({positionType:"shift",positionData:h,children:W},e)}else if(a)u=Math.max(u,y,a.depth+.25*c.xHeight),D=We.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:a,marginRight:w}]},e);else throw new Error("supsub must have either sup or sub.");var H=Nj(o,"right")||"mord";return We.makeSpan([H],[o,We.makeSpan(["msupsub"],[D])],e)},mathmlBuilder(t,e){var n=!1,r,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(n=!0,r=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var s=[ds(t.base,e)];t.sub&&s.push(ds(t.sub,e)),t.sup&&s.push(ds(t.sup,e));var o;if(n)o=r?"mover":"munder";else if(t.sub)if(t.sup){var c=t.base;c&&c.type==="op"&&c.limits&&e.style===Qn.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(e.style===Qn.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Qn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Qn.DISPLAY)?o="munder":o="msub"}else{var a=t.base;a&&a.type==="op"&&a.limits&&(e.style===Qn.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===Qn.DISPLAY)?o="mover":o="msup"}return new Ct.MathNode(o,s)}});Hb({type:"atom",htmlBuilder(t,e){return We.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var n=new Ct.MathNode("mo",[Nh(t.text,t.mode)]);if(t.family==="bin"){var r=dG(t,e);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else t.family==="punct"?n.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&n.setAttribute("stretchy","false");return n}});var DTe={mi:"italic",mn:"normal",mtext:"normal"};Hb({type:"mathord",htmlBuilder(t,e){return We.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var n=new Ct.MathNode("mi",[Nh(t.text,t.mode,e)]),r=dG(t,e)||"italic";return r!==DTe[n.type]&&n.setAttribute("mathvariant",r),n}});Hb({type:"textord",htmlBuilder(t,e){return We.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var n=Nh(t.text,t.mode,e),r=dG(t,e)||"normal",i;return t.mode==="text"?i=new Ct.MathNode("mtext",[n]):/[0-9]/.test(t.text)?i=new Ct.MathNode("mn",[n]):t.text==="\\prime"?i=new Ct.MathNode("mo",[n]):i=new Ct.MathNode("mi",[n]),r!==DTe[i.type]&&i.setAttribute("mathvariant",r),i}});var WR={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},qR={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Hb({type:"spacing",htmlBuilder(t,e){if(qR.hasOwnProperty(t.text)){var n=qR[t.text].className||"";if(t.mode==="text"){var r=We.makeOrd(t,e,"textord");return r.classes.push(n),r}else return We.makeSpan(["mspace",n],[We.mathsym(t.text,t.mode,e)],e)}else{if(WR.hasOwnProperty(t.text))return We.makeSpan(["mspace",WR[t.text]],[],e);throw new Pt('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var n;if(qR.hasOwnProperty(t.text))n=new Ct.MathNode("mtext",[new Ct.TextNode(" ")]);else{if(WR.hasOwnProperty(t.text))return new Ct.MathNode("mspace");throw new Pt('Unknown type of space "'+t.text+'"')}return n}});var Uoe=()=>{var t=new Ct.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};Hb({type:"tag",mathmlBuilder(t,e){var n=new Ct.MathNode("mtable",[new Ct.MathNode("mtr",[Uoe(),new Ct.MathNode("mtd",[i1(t.body,e)]),Uoe(),new Ct.MathNode("mtd",[i1(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var Voe={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Woe={"\\textbf":"textbf","\\textmd":"textmd"},kDt={"\\textit":"textit","\\textup":"textup"},qoe=(t,e)=>{var n=t.font;if(n){if(Voe[n])return e.withTextFontFamily(Voe[n]);if(Woe[n])return e.withTextFontWeight(Woe[n]);if(n==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(kDt[n])};en({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"text",mode:n.mode,body:_o(i),font:r}},htmlBuilder(t,e){var n=qoe(t,e),r=ua(t.body,n,!0);return We.makeSpan(["mord","text"],r,n)},mathmlBuilder(t,e){var n=qoe(t,e);return i1(t.body,n)}});en({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Si(t.body,e),r=We.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,s=We.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},e);return We.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(t,e){var n=new Ct.MathNode("mo",[new Ct.TextNode("â¾")]);n.setAttribute("stretchy","true");var r=new Ct.MathNode("munder",[ds(t.body,e),n]);return r.setAttribute("accentunder","true"),r}});en({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Si(t.body,e),r=e.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return We.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){return new Ct.MathNode("mpadded",[ds(t.body,e)],["vcenter"])}});en({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,n){throw new Pt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=Goe(t),r=[],i=e.havingStyle(e.style.text()),s=0;s<n.length;s++){var o=n[s];o==="~"&&(o="\\textasciitilde"),r.push(We.makeSymbol(o,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return We.makeSpan(["mord","text"].concat(i.sizingClasses(e)),We.tryCombineChars(r),i)},mathmlBuilder(t,e){var n=new Ct.TextNode(Goe(t)),r=new Ct.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Goe=t=>t.body.replace(/ /g,t.star?"â£":" "),_g=tTe,MTe=`[ \r 1195 ]`,CDt="\\\\[a-zA-Z@]+",_Dt="\\\\[^\uD800-\uDFFF]",TDt="("+CDt+")"+MTe+"*",EDt=`\\\\( 1196|[ \r ]+ 1197?)[ \r ]*`,Fj="[Ì-ͯ]",ADt=new RegExp(Fj+"+$"),PDt="("+MTe+"+)|"+(EDt+"|")+"([!-\\[\\]-â§âª-í¿ï¤-ï¿¿]"+(Fj+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fj+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+TDt)+("|"+_Dt+")");class Koe{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(PDt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new Ch("EOF",new xu(this,n,n));var r=this.tokenRegex.exec(e);if(r===null||r.index!==n)throw new Pt("Unexpected character: '"+e[n]+"'",new Ch(e[n],new xu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=e.indexOf(` 1198`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ch(i,new xu(this,n,this.tokenRegex.lastIndex))}}class ODt{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Pt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}}var IDt=STe;se("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});se("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});se("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});se("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});se("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});se("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");se("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Yoe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};se("\\char",function(t){var e=t.popToken(),n,r="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Pt("\\char` missing argument");r=e.text.charCodeAt(0)}else n=10;if(n){if(r=Yoe[e.text],r==null||r>=n)throw new Pt("Invalid base-"+n+" digit "+e.text);for(var i;(i=Yoe[t.future().text])!=null&&i<n;)r*=n,r+=i,t.popToken()}return"\\@char{"+r+"}"});var SG=(t,e,n,r)=>{var i=t.consumeArg().tokens;if(i.length!==1)throw new Pt("\\newcommand's first argument must be a macro name");var s=i[0].text,o=t.isDefined(s);if(o&&!e)throw new Pt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!n)throw new Pt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var a=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Pt("Invalid number of arguments: "+l);a=parseInt(l),i=t.consumeArg().tokens}return o&&r||t.macros.set(s,{tokens:i,numArgs:a}),""};se("\\newcommand",t=>SG(t,!1,!0,!1));se("\\renewcommand",t=>SG(t,!0,!1,!1));se("\\providecommand",t=>SG(t,!0,!0,!0));se("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""});se("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""});se("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),_g[n],ks.math[n],ks.text[n]),""});se("\\bgroup","{");se("\\egroup","}");
vendor: 6,692 bytes, line 1198
1198se("~","\\nobreakspace");se("\\lq","`");se("\\rq","'");se("\\aa","\\r a");se("\\AA","\\r A");se("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");se("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");se("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");se("â¬","\\mathscr{B}");se("â°","\\mathscr{E}");se("â±","\\mathscr{F}");se("â","\\mathscr{H}");se("â","\\mathscr{I}");se("â","\\mathscr{L}");se("â³","\\mathscr{M}");se("â","\\mathscr{R}");se("â","\\mathfrak{C}");se("â","\\mathfrak{H}");se("â¨","\\mathfrak{Z}");se("\\Bbbk","\\Bbb{k}");se("·","\\cdotp");se("\\llap","\\mathllap{\\textrm{#1}}");se("\\rlap","\\mathrlap{\\textrm{#1}}");se("\\clap","\\mathclap{\\textrm{#1}}");se("\\mathstrut","\\vphantom{(}");se("\\underbar","\\underline{\\text{#1}}");se("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');se("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`â }}");se("\\ne","\\neq");se("â ","\\neq");se("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`â}}");se("â","\\notin");se("â","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`â}}");se("â","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`â}}");se("â","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`â}}");se("â","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`â}}");se("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`â}}");se("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`â}}");se("â","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`â}}");se("â","\\perp");se("â¼","\\mathclose{!\\mkern-0.8mu!}");se("â","\\notni");se("â","\\ulcorner");se("â","\\urcorner");se("â","\\llcorner");se("â","\\lrcorner");se("©","\\copyright");se("®","\\textregistered");se("ï¸","\\textregistered");se("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');se("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');se("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');se("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');se("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");se("â®","\\vdots");se("\\varGamma","\\mathit{\\Gamma}");se("\\varDelta","\\mathit{\\Delta}");se("\\varTheta","\\mathit{\\Theta}");se("\\varLambda","\\mathit{\\Lambda}");se("\\varXi","\\mathit{\\Xi}");se("\\varPi","\\mathit{\\Pi}");se("\\varSigma","\\mathit{\\Sigma}");se("\\varUpsilon","\\mathit{\\Upsilon}");se("\\varPhi","\\mathit{\\Phi}");se("\\varPsi","\\mathit{\\Psi}");se("\\varOmega","\\mathit{\\Omega}");se("\\substack","\\begin{subarray}{c}#1\\end{subarray}");se("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");se("\\boxed","\\fbox{$\\displaystyle{#1}$}");se("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");se("\\implies","\\DOTSB\\;\\Longrightarrow\\;");se("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");se("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");se("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Qoe={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};se("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Qoe?e=Qoe[n]:(n.slice(0,4)==="\\not"||n in ks.math&&zn.contains(["bin","rel"],ks.math[n].group))&&(e="\\dotsb"),e});var kG={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};se("\\dotso",function(t){var e=t.future().text;return e in kG?"\\ldots\\,":"\\ldots"});se("\\dotsc",function(t){var e=t.future().text;return e in kG&&e!==","?"\\ldots\\,":"\\ldots"});se("\\cdots",function(t){var e=t.future().text;return e in kG?"\\@cdots\\,":"\\@cdots"});se("\\dotsb","\\cdots");se("\\dotsm","\\cdots");se("\\dotsi","\\!\\cdots");se("\\dotsx","\\ldots\\,");se("\\DOTSI","\\relax");se("\\DOTSB","\\relax");se("\\DOTSX","\\relax");se("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");se("\\,","\\tmspace+{3mu}{.1667em}");se("\\thinspace","\\,");se("\\>","\\mskip{4mu}");se("\\:","\\tmspace+{4mu}{.2222em}");se("\\medspace","\\:");se("\\;","\\tmspace+{5mu}{.2777em}");se("\\thickspace","\\;");se("\\!","\\tmspace-{3mu}{.1667em}");se("\\negthinspace","\\!");se("\\negmedspace","\\tmspace-{4mu}{.2222em}");se("\\negthickspace","\\tmspace-{5mu}{.277em}");se("\\enspace","\\kern.5em ");se("\\enskip","\\hskip.5em\\relax");se("\\quad","\\hskip1em\\relax");se("\\qquad","\\hskip2em\\relax");se("\\tag","\\@ifstar\\tag@literal\\tag@paren");se("\\tag@paren","\\tag@literal{({#1})}");se("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new Pt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});se("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");se("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");se("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");se("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");se("\\newline","\\\\\\relax");se("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var NTe=Vt(zf["Main-Regular"][84][1]-.7*zf["Main-Regular"][65][1]);se("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+NTe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");se("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+NTe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");
1198se("\\hspace","\\@ifstar\\@hspacer\\@hspace");se("\\@hspace","\\hskip #1\\relax");se("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");se("\\ordinarycolon",":");se("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");se("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');se("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');se("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');se("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');se("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');se("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');se("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');se("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');se("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');se("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');se("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');se("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');se("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');se("â·","\\dblcolon");se("â¹","\\eqcolon");se("â","\\coloneqq");se("â","\\eqqcolon");se("â©´","\\Coloneqq");se("\\ratio","\\vcentcolon");se("\\coloncolon","\\dblcolon");se("\\colonequals","\\coloneqq");se("\\coloncolonequals","\\Coloneqq");se("\\equalscolon","\\eqqcolon");se("\\equalscoloncolon","\\Eqqcolon");se("\\colonminus","\\coloneq");se("\\coloncolonminus","\\Coloneq");se("\\minuscolon","\\eqcolon");se("\\minuscoloncolon","\\Eqcolon");se("\\coloncolonapprox","\\Colonapprox");se("\\coloncolonsim","\\Colonsim");se("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");se("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");se("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");se("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");se("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`â}}");se("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");se("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");se("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");se("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");se("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");se("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");se("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");se("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");se("\\gvertneqq","\\html@mathml{\\@gvertneqq}{â©}");se("\\lvertneqq","\\html@mathml{\\@lvertneqq}{â¨}");se("\\ngeqq","\\html@mathml{\\@ngeqq}{â±}");se("\\ngeqslant","\\html@mathml{\\@ngeqslant}{â±}");se("\\nleqq","\\html@mathml{\\@nleqq}{â°}");se("\\nleqslant","\\html@mathml{\\@nleqslant}{â°}");se("\\nshortmid","\\html@mathml{\\@nshortmid}{â¤}");se("\\nshortparallel","\\html@mathml{\\@nshortparallel}{â¦}");se("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{â}");se("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{â}");se("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{â}");se("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{â«}");se("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{â}");se("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{â«}");se("\\imath","\\html@mathml{\\@imath}{ı}");se("\\jmath","\\html@mathml{\\@jmath}{È·}");se("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`â¦}}");se("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`â§}}");se("â¦","\\llbracket");se("â§","\\rrbracket");se("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
1198{\\mathopen{\\char`â¦}}");se("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`â¦}}");se("â¦","\\lBrace");se("â¦","\\rBrace");se("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");se("⦵","\\minuso");se("\\darr","\\downarrow");se("\\dArr","\\Downarrow");se("\\Darr","\\Downarrow");se("\\lang","\\langle");se("\\rang","\\rangle");se("\\uarr","\\uparrow");se("\\uArr","\\Uparrow");se("\\Uarr","\\Uparrow");se("\\N","\\mathbb{N}");se("\\R","\\mathbb{R}");se("\\Z","\\mathbb{Z}");se("\\alef","\\aleph");se("\\alefsym","\\aleph");se("\\Alpha","\\mathrm{A}");se("\\Beta","\\mathrm{B}");se("\\bull","\\bullet");se("\\Chi","\\mathrm{X}");se("\\clubs","\\clubsuit");se("\\cnums","\\mathbb{C}");se("\\Complex","\\mathbb{C}");se("\\Dagger","\\ddagger");se("\\diamonds","\\diamondsuit");se("\\empty","\\emptyset");se("\\Epsilon","\\mathrm{E}");se("\\Eta","\\mathrm{H}");se("\\exist","\\exists");se("\\harr","\\leftrightarrow");se("\\hArr","\\Leftrightarrow");se("\\Harr","\\Leftrightarrow");se("\\hearts","\\heartsuit");se("\\image","\\Im");se("\\infin","\\infty");se("\\Iota","\\mathrm{I}");se("\\isin","\\in");se("\\Kappa","\\mathrm{K}");se("\\larr","\\leftarrow");se("\\lArr","\\Leftarrow");se("\\Larr","\\Leftarrow");se("\\lrarr","\\leftrightarrow");se("\\lrArr","\\Leftrightarrow");se("\\Lrarr","\\Leftrightarrow");se("\\Mu","\\mathrm{M}");se("\\natnums","\\mathbb{N}");se("\\Nu","\\mathrm{N}");se("\\Omicron","\\mathrm{O}");se("\\plusmn","\\pm");se("\\rarr","\\rightarrow");se("\\rArr","\\Rightarrow");se("\\Rarr","\\Rightarrow");se("\\real","\\Re");se("\\reals","\\mathbb{R}");se("\\Reals","\\mathbb{R}");se("\\Rho","\\mathrm{P}");se("\\sdot","\\cdot");se("\\sect","\\S");se("\\spades","\\spadesuit");se("\\sub","\\subset");se("\\sube","\\subseteq");se("\\supe","\\supseteq");se("\\Tau","\\mathrm{T}");se("\\thetasym","\\vartheta");se("\\weierp","\\wp");se("\\Zeta","\\mathrm{Z}");se("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");se("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");se("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");se("\\bra","\\mathinner{\\langle{#1}|}");se("\\ket","\\mathinner{|{#1}\\rangle}");se("\\braket","\\mathinner{\\langle{#1}\\rangle}");se("\\Bra","\\left\\langle#1\\right|");se("\\Ket","\\left|#1\\right\\rangle");var RTe=t=>e=>{var n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),a=e.macros.get("\\|");e.macros.beginGroup();var l=h=>d=>{t&&(d.macros.set("|",o),i.length&&d.macros.set("\\|",a));var p=h;if(!h&&i.length){var g=d.future();g.text==="|"&&(d.popToken(),p=!0)}return{tokens:p?i:r,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var c=e.consumeArg().tokens,u=e.expandTokens([...s,...c,...n]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};se("\\bra@ket",RTe(!1));se("\\bra@set",RTe(!0));se("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");se("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");se("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");se("\\angln","{\\angl n}");se("\\blue","\\textcolor{##6495ed}{#1}");se("\\orange","\\textcolor{##ffa500}{#1}");se("\\pink","\\textcolor{##ff00af}{#1}");se("\\red","\\textcolor{##df0030}{#1}");se("\\green","\\textcolor{##28ae7b}{#1}");se("\\gray","\\textcolor{gray}{#1}");se("\\purple","\\textcolor{##9d38bd}{#1}");se("\\blueA","\\textcolor{##ccfaff}{#1}");se("\\blueB","\\textcolor{##80f6ff}{#1}");se("\\blueC","\\textcolor{##63d9ea}{#1}");se("\\blueD","\\textcolor{##11accd}{#1}");se("\\blueE","\\textcolor{##0c7f99}{#1}");se("\\tealA","\\textcolor{##94fff5}{#1}");se("\\tealB","\\textcolor{##26edd5}{#1}");se("\\tealC","\\textcolor{##01d1c1}{#1}");se("\\tealD","\\textcolor{##01a995}{#1}");se("\\tealE","\\textcolor{##208170}{#1}");se("\\greenA","\\textcolor{##b6ffb0}{#1}");se("\\greenB","\\textcolor{##8af281}{#1}");se("\\greenC","\\textcolor{##74cf70}{#1}");se("\\greenD","\\textcolor{##1fab54}{#1}");se("\\greenE","\\textcolor{##0d923f}{#1}");se("\\goldA","\\textcolor{##ffd0a9}{#1}");se("\\goldB","\\textcolor{##ffbb71}{#1}");se("\\goldC","\\textcolor{##ff9c39}{#1}");se("\\goldD","\\textcolor{##e07d10}{#1}");se("\\goldE","\\textcolor{##a75a05}{#1}");se("\\redA","\\textcolor{##fca9a9}{#1}");se("\\redB","\\textcolor{##ff8482}{#1}");se("\\redC","\\textcolor{##f9685d}{#1}");se("\\redD","\\textcolor{##e84d39}{#1}");
vendor: 9,693 bytes, line 1198
1198se("\\redE","\\textcolor{##bc2612}{#1}");se("\\maroonA","\\textcolor{##ffbde0}{#1}");se("\\maroonB","\\textcolor{##ff92c6}{#1}");se("\\maroonC","\\textcolor{##ed5fa6}{#1}");se("\\maroonD","\\textcolor{##ca337c}{#1}");se("\\maroonE","\\textcolor{##9e034e}{#1}");se("\\purpleA","\\textcolor{##ddd7ff}{#1}");se("\\purpleB","\\textcolor{##c6b9fc}{#1}");se("\\purpleC","\\textcolor{##aa87ff}{#1}");se("\\purpleD","\\textcolor{##7854ab}{#1}");se("\\purpleE","\\textcolor{##543b78}{#1}");se("\\mintA","\\textcolor{##f5f9e8}{#1}");se("\\mintB","\\textcolor{##edf2df}{#1}");se("\\mintC","\\textcolor{##e0e5cc}{#1}");se("\\grayA","\\textcolor{##f6f7f7}{#1}");se("\\grayB","\\textcolor{##f0f1f2}{#1}");se("\\grayC","\\textcolor{##e3e5e6}{#1}");se("\\grayD","\\textcolor{##d6d8da}{#1}");se("\\grayE","\\textcolor{##babec2}{#1}");se("\\grayF","\\textcolor{##888d93}{#1}");se("\\grayG","\\textcolor{##626569}{#1}");se("\\grayH","\\textcolor{##3b3e40}{#1}");se("\\grayI","\\textcolor{##21242c}{#1}");se("\\kaBlue","\\textcolor{##314453}{#1}");se("\\kaGreen","\\textcolor{##71B307}{#1}");var LTe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class DDt{constructor(e,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(e),this.macros=new ODt(IDt,n.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Koe(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var n,r,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Ch("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),s,o=0,a=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new Pt("Extra }",s)}else if(s.text==="EOF")throw new Pt("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",s);if(e&&r)if((o===0||o===1&&e[a]==="{")&&s.text===e[a]){if(++a,a===e.length){n.splice(-a,a);break}}else a=0}while(o!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:s}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new Pt("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var s=this.popToken();if(r[i]!==s.text)throw new Pt("Use of the macro doesn't match its definition",s)}}for(var o=[],a=0;a<e;a++)o.push(this.consumeArg(n&&n[a+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Pt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Pt("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var s=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var a=s.length-1;a>=0;--a){var l=s[a];if(l.text==="#"){if(a===0)throw new Pt("Incomplete placeholder at end of macro body",l);if(l=s[--a],l.text==="#")s.splice(a+1,1);else if(/^[1-9]$/.test(l.text))s.splice(a,2,...o[+l.text-1]);else throw new Pt("Not a valid argument number",l)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ch(e)]):void 0}expandTokens(e){var n=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(r=>r.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var s=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var a=new Koe(i,this.settings),l=[],c=a.lex();c.text!=="EOF";)l.push(c),c=a.lex();l.reverse();var u={tokens:l,numArgs:s};return u}return i}isDefined(e){return this.macros.has(e)||_g.hasOwnProperty(e)||ks.math.hasOwnProperty(e)||ks.text.hasOwnProperty(e)||LTe.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:_g.hasOwnProperty(e)&&!_g[e].primitive}}var Xoe=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,BE=Object.freeze({"â":"+","â":"-","â":"=","â":"(","â":")","â":"0","â":"1","â":"2","â":"3","â":"4","â
":"5","â":"6","â":"7","â":"8","â":"9","â":"a","â":"e","â":"h","áµ¢":"i","â±¼":"j","â":"k","â":"l","â":"m","â":"n","â":"o","â":"p","áµ£":"r","â":"s","â":"t","ᵤ":"u","áµ¥":"v","â":"x","ᵦ":"β","áµ§":"γ","ᵨ":"Ï","ᵩ":"Ï","ᵪ":"Ï","âº":"+","â»":"-","â¼":"=","â½":"(","â¾":")","â°":"0","¹":"1","²":"2","³":"3","â´":"4","âµ":"5","â¶":"6","â·":"7","â¸":"8","â¹":"9","á´¬":"A","á´®":"B","á´°":"D","á´±":"E","á´³":"G","á´´":"H","á´µ":"I","á´¶":"J","á´·":"K","á´¸":"L","á´¹":"M","á´º":"N","á´¼":"O","á´¾":"P","á´¿":"R","áµ":"T","áµ":"U","â±½":"V","áµ":"W","áµ":"a","áµ":"b","á¶":"c","áµ":"d","áµ":"e","á¶ ":"f","áµ":"g",ʰ:"h","â±":"i",ʲ:"j","áµ":"k",Ë¡:"l","áµ":"m",â¿:"n","áµ":"o","áµ":"p",ʳ:"r",Ë¢:"s","áµ":"t","áµ":"u","áµ":"v",Ê·:"w",Ë£:"x",ʸ:"y","á¶»":"z","áµ":"β","áµ":"γ","áµ":"δ","áµ ":"Ï","ᵡ":"Ï","á¶¿":"θ"}),GR={"Ì":{text:"\\'",math:"\\acute"},"Ì":{text:"\\`",math:"\\grave"},"Ì":{text:'\\"',math:"\\ddot"},"Ì":{text:"\\~",math:"\\tilde"},"Ì":{text:"\\=",math:"\\bar"},"Ì":{text:"\\u",math:"\\breve"},"Ì":{text:"\\v",math:"\\check"},"Ì":{text:"\\^",math:"\\hat"},"Ì":{text:"\\.",math:"\\dot"},"Ì":{text:"\\r",math:"\\mathring"},"Ì":{text:"\\H"},"̧":{text:"\\c"}},Joe={á:"aÌ",à :"aÌ",ä:"aÌ",Ç:"aÌÌ",ã:"aÌ",Ä:"aÌ",Ä:"aÌ",ắ:"aÌÌ",ằ:"aÌÌ",ẵ:"aÌÌ",Ç:"aÌ",â:"aÌ",ấ:"aÌÌ",ầ:"aÌÌ",ẫ:"aÌÌ",ȧ:"aÌ",Ç¡:"aÌÌ",Ã¥:"aÌ",Ç»:"aÌÌ",á¸:"bÌ",Ä:"cÌ",á¸:"çÌ",Ä:"cÌ",Ä:"cÌ",Ä:"cÌ",ç:"ç",Ä:"dÌ",á¸:"dÌ",á¸:"ḑ",é:"eÌ",è:"eÌ",ë:"eÌ",ẽ:"eÌ",Ä:"eÌ",á¸:"eÌÌ",á¸:"eÌÌ",Ä:"eÌ",á¸:"ȩÌ",Ä:"eÌ",ê:"eÌ",ế:"eÌÌ",á»:"eÌÌ",á»
:"eÌÌ",Ä:"eÌ",È©:"ȩ",á¸:"fÌ",ǵ:"gÌ",ḡ:"gÌ",Ä:"gÌ",ǧ:"gÌ",Ä:"gÌ",Ä¡:"gÌ",Ä£:"ģ",ḧ:"hÌ",È:"hÌ",Ä¥:"hÌ",ḣ:"hÌ",ḩ:"ḩ",Ã:"iÌ",ì:"iÌ",ï:"iÌ",ḯ:"iÌÌ",Ä©:"iÌ",Ä«:"iÌ",Ä:"iÌ",Ç:"iÌ",î:"iÌ",ǰ:"jÌ",ĵ:"jÌ",ḱ:"kÌ",Ç©:"kÌ",Ä·:"ķ",ĺ:"lÌ",ľ:"lÌ",ļ:"ļ",ḿ:"mÌ",á¹:"mÌ",Å:"nÌ",ǹ:"nÌ",ñ:"nÌ",Å:"nÌ",á¹
:"nÌ",Å:"ņ",ó:"oÌ",ò:"oÌ",ö:"oÌ",È«:"oÌÌ",õ:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",È:"oÌÌ",Å:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",Å:"oÌ",Ç:"oÌ",ô:"oÌ",á»:"oÌÌ",á»:"oÌÌ",á»:"oÌÌ",ȯ:"oÌ",ȱ:"oÌÌ",Å:"oÌ",á¹:"pÌ",á¹:"pÌ",Å:"rÌ",Å:"rÌ",á¹:"rÌ",Å:"ŗ",Å:"sÌ",á¹¥:"sÌÌ",Å¡:"sÌ",á¹§:"sÌÌ",Å:"sÌ",ṡ:"sÌ",Å:"ş",áº:"tÌ",Å¥:"tÌ",ṫ:"tÌ",Å£:"ţ",ú:"uÌ",ù:"uÌ",ü:"uÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Å©:"uÌ",á¹¹:"uÌÌ",Å«:"uÌ",á¹»:"uÌÌ",Å:"uÌ",Ç:"uÌ",û:"uÌ",ů:"uÌ",ű:"uÌ",á¹½:"vÌ",áº:"wÌ",áº:"wÌ",áº
:"wÌ",ŵ:"wÌ",áº:"wÌ",áº:"wÌ",áº:"xÌ",áº:"xÌ",ý:"yÌ",ỳ:"yÌ",ÿ:"yÌ",ỹ:"yÌ",ȳ:"yÌ",Å·:"yÌ",áº:"yÌ",áº:"yÌ",ź:"zÌ",ž:"zÌ",áº:"zÌ",ż:"zÌ",Ã:"AÌ",Ã:"AÌ",Ã:"AÌ",Ç:"AÌÌ",Ã:"AÌ",Ä:"AÌ",Ä:"AÌ",Ắ:"AÌÌ",Ằ:"AÌÌ",Ẵ:"AÌÌ",Ç:"AÌ",Ã:"AÌ",Ấ:"AÌÌ",Ầ:"AÌÌ",Ẫ:"AÌÌ",Ȧ:"AÌ",Ç :"AÌÌ",Ã
:"AÌ",Ǻ:"AÌÌ",á¸:"BÌ",Ä:"CÌ",á¸:"ÇÌ",Ä:"CÌ",Ä:"CÌ",Ä:"CÌ",Ã:"Ç",Ä:"DÌ",á¸:"DÌ",á¸:"Ḑ",Ã:"EÌ",Ã:"EÌ",Ã:"EÌ",Ẽ:"EÌ",Ä:"EÌ",á¸:"EÌÌ",á¸:"EÌÌ",Ä:"EÌ",á¸:"ȨÌ",Ä:"EÌ",Ã:"EÌ",Ế:"EÌÌ",á»:"EÌÌ",á»:"EÌÌ",Ä:"EÌ",Ȩ:"Ȩ",á¸:"FÌ",Ç´:"GÌ",Ḡ:"GÌ",Ä:"GÌ",Ǧ:"GÌ",Ä:"GÌ",Ä :"GÌ",Ä¢:"Ģ",Ḧ:"HÌ",È:"HÌ",Ĥ:"HÌ",Ḣ:"HÌ",Ḩ:"Ḩ",Ã:"IÌ",Ã:"IÌ",Ã:"IÌ",Ḯ:"IÌÌ",Ĩ:"IÌ",Ī:"IÌ",Ĭ:"IÌ",Ç:"IÌ",Ã:"IÌ",İ:"IÌ",Ä´:"JÌ",Ḱ:"KÌ",Ǩ:"KÌ",Ķ:"Ķ",Ĺ:"LÌ",Ľ:"LÌ",Ä»:"Ļ",Ḿ:"MÌ",á¹:"MÌ",Å:"NÌ",Ǹ:"NÌ",Ã:"NÌ",Å:"NÌ",á¹:"NÌ",Å
:"Ņ",Ã:"OÌ",Ã:"OÌ",Ã:"OÌ",Ȫ:"OÌÌ",Ã:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Ȭ:"OÌÌ",Å:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Å:"OÌ",Ç:"OÌ",Ã:"OÌ",á»:"OÌÌ",á»:"OÌÌ",á»:"OÌÌ",È®:"OÌ",Ȱ:"OÌÌ",Å:"OÌ",á¹:"PÌ",á¹:"PÌ",Å:"RÌ",Å:"RÌ",á¹:"RÌ",Å:"Ŗ",Å:"SÌ",Ṥ:"SÌÌ",Å :"SÌ",Ṧ:"SÌÌ",Å:"SÌ",á¹ :"SÌ",Å:"Ş",Ť:"TÌ",Ṫ:"TÌ",Å¢:"Ţ",Ã:"UÌ",Ã:"UÌ",Ã:"UÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ũ:"UÌ",Ṹ:"UÌÌ",Ū:"UÌ",Ṻ:"UÌÌ",Ŭ:"UÌ",Ç:"UÌ",Ã:"UÌ",Å®:"UÌ",Ű:"UÌ",á¹¼:"VÌ",áº:"WÌ",áº:"WÌ",áº:"WÌ",Å´:"WÌ",áº:"WÌ",áº:"XÌ",áº:"XÌ",Ã:"YÌ",Ỳ:"YÌ",Ÿ:"YÌ",Ỹ:"YÌ",Ȳ
vendor: 4,604 bytes, line 1198
1198:"YÌ",Ŷ:"YÌ",áº:"YÌ",Ź:"ZÌ",Ž:"ZÌ",áº:"ZÌ",Å»:"ZÌ",ά:"αÌ",á½°:"αÌ",á¾±:"αÌ",á¾°:"αÌ",Î:"εÌ",á½²:"εÌ",ή:"ηÌ",á½´:"ηÌ",ί:"ιÌ",á½¶:"ιÌ",Ï:"ιÌ",Î:"ιÌÌ",á¿:"ιÌÌ",á¿:"ιÌ",á¿:"ιÌ",Ï:"οÌ",ὸ:"οÌ",Ï:"Ï
Ì",ὺ:"Ï
Ì",Ï:"Ï
Ì",ΰ:"Ï
ÌÌ",á¿¢:"Ï
ÌÌ",á¿¡:"Ï
Ì",á¿ :"Ï
Ì",Ï:"ÏÌ",á½¼:"ÏÌ",Î:"Î¥Ì",Ὺ:"Î¥Ì",Ϋ:"Î¥Ì",á¿©:"Î¥Ì",Ῠ:"Î¥Ì",Î:"ΩÌ",Ὼ:"ΩÌ"};let BTe=class FTe{constructor(e,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new DDt(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new Pt("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Ch("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(e,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(FTe.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||e&&_g[i.text]&&_g[i.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;r.push(s)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var n=-1,r,i=0;i<e.length;i++)if(e[i].type==="infix"){if(n!==-1)throw new Pt("only one infix operator per group",e[i].token);n=i,r=e[i].replaceWith}if(n!==-1&&r){var s,o,a=e.slice(0,n),l=e.slice(n+1);a.length===1&&a[0].type==="ordgroup"?s=a[0]:s={type:"ordgroup",mode:this.mode,body:a},l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l};var c;return r==="\\\\abovefrac"?c=this.callFunction(r,[s,e[n],o],[]):c=this.callFunction(r,[s,o],[]),[c]}else return e}handleSupSubscript(e){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i=this.parseGroup(e);if(!i)throw new Pt("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(e){for(var n=[],r=0;r<e.length;r++)n.push({type:"textord",mode:"text",text:e[r]});var i={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(e){var n=this.parseGroup("atom",e);if(this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var o=s.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new Pt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(r)throw new Pt("Double superscript",s);r=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new Pt("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(r)throw new Pt("Double superscript",s);var a={type:"textord",mode:this.mode,text:"\\prime"},l=[a];for(this.consume();this.fetch().text==="'";)l.push(a),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(BE[s.text]){var c=Xoe.test(s.text),u=[];for(u.push(new Ch(BE[s.text])),this.consume();;){var h=this.fetch().text;if(!BE[h]||Xoe.test(h)!==c)break;u.unshift(new Ch(BE[h])),this.consume()}var d=this.subparse(u);c?i={type:"ordgroup",mode:"math",body:d}:r={type:"ordgroup",mode:"math",body:d}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(e,n){var r=this.fetch(),i=r.text,s=_g[i];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new Pt("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!s.allowedInText)throw new Pt("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&s.allowedInMath===!1)throw new Pt("Can't use function '"+i+"' in math mode",r);var{args:o,optArgs:a}=this.parseArguments(i,s);return this.callFunction(i,o,a,r,e)}callFunction(e,n,r,i,s){var o={funcName:e,parser:this,token:i,breakOnTokenText:s},a=_g[e];
vendor: 6,393 bytes, lines 1198-1199
1198if(a&&a.handler)return a.handler(o,n,r);throw new Pt("No function handler for "+e)}parseArguments(e,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],s=[],o=0;o<r;o++){var a=n.argTypes&&n.argTypes[o],l=o<n.numOptionalArgs;(n.primitive&&a==null||n.type==="sqrt"&&o===1&&s[0]==null)&&(a="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",a,l);if(l)s.push(c);else if(c!=null)i.push(c);else throw new Pt("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(e,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",r);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(r)throw new Pt("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new Pt("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Pt("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,n){for(var r=this.fetch(),i=r,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)i=o,s+=i.text,this.consume();if(s==="")throw new Pt("Invalid "+n+": '"+r.text+"'",r);return r.range(i,s)}parseColorGroup(e){var n=this.parseStringGroup("color",e);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Pt("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var n,r=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",e),!n)return null;!e&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Pt("Invalid size: '"+n.text+"'",n);var s={number:+(i[1]+i[2]),unit:i[3]};if(!q_e(s))throw new Pt("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,n){var r=this.gullet.scanArgument(e);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:r.loc,body:s};return n&&this.switchMode(i),o}parseGroup(e,n){var r=this.fetch(),i=r.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var o=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:xu.range(r,l),body:a,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,e)||this.parseSymbol(),s==null&&i[0]==="\\"&&!LTe.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Pt("Undefined control sequence: "+i,r);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(e){for(var n=e.length-1,r=0;r<n;++r){var i=e[r],s=i.text;s==="-"&&e[r+1].text==="-"&&(r+1<n&&e[r+2].text==="-"?(e.splice(r,3,{type:"textord",mode:"text",loc:xu.range(i,e[r+2]),text:"---"}),n-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:xu.range(i,e[r+1]),text:"--"}),n-=1)),(s==="'"||s==="`")&&e[r+1].text===s&&(e.splice(r,2,{type:"textord",mode:"text",loc:xu.range(i,e[r+1]),text:s+s}),n-=1)}}parseSymbol(){var e=this.fetch(),n=e.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Pt(`\\verb assertion failed -- 1199 please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}Joe.hasOwnProperty(n[0])&&!ks[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',e),n=Joe[n[0]]+n.slice(1));var s=ADt.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(ks[this.mode][n]){this.settings.strict&&this.mode==="math"&&Mj.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var a=ks[this.mode][n].group,l=xu.range(e),c;if(x9t.hasOwnProperty(a)){var u=a;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:a,mode:this.mode,loc:l,text:n};o=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(V_e(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:xu.range(e),text:n};else return null;if(this.consume(),s)for(var h=0;h<s[0].length;h++){var d=s[0][h];if(!GR[d])throw new Pt("Unknown accent ' "+d+"'",e);var p=GR[d][this.mode]||GR[d].text;if(!p)throw new Pt("Accent "+d+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:xu.range(e),label:p,isStretchy:!1,isShifty:!0,base:o}}return o}};BTe.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var CG=function(e,n){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new BTe(e,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Pt("\\tag works only in display equations");
1199i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new Ch("\\df@tag")])}]}return i},_G=function(e,n,r){n.textContent="";var i=YI(e,r).toNode();n.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),_G=function(){throw new Pt("KaTeX doesn't work in quirks mode.")});var $Te=function(e,n){var r=YI(e,n).toMarkup();return r},jTe=function(e,n){var r=new oG(n);return CG(e,r)},zTe=function(e,n,r){if(r.throwOnError||!(e instanceof Pt))throw e;var i=We.makeSpan(["katex-error"],[new Mh(n)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+r.errorColor),i},YI=function(e,n){var r=new oG(n);try{var i=CG(e,r);return U9t(i,e,r)}catch(s){return zTe(s,e,r)}},HTe=function(e,n){var r=new oG(n);try{var i=CG(e,r);return V9t(i,e,r)}catch(s){return zTe(s,e,r)}},UTe="0.16.21",VTe={Span:K_,Anchor:cG,SymbolNode:Mh,SvgNode:sm,PathNode:r1,LineNode:Dj},$j={version:UTe,render:_G,renderToString:$Te,ParseError:Pt,SETTINGS_SCHEMA:ek,__parse:jTe,__renderToDomTree:YI,__renderToHTMLTree:HTe,__setFontMetrics:W_e,__defineSymbol:N,__defineFunction:en,__defineMacro:se,__domTree:VTe};const MDt=Object.freeze(Object.defineProperty({__proto__:null,ParseError:Pt,SETTINGS_SCHEMA:ek,__defineFunction:en,__defineMacro:se,__defineSymbol:N,__domTree:VTe,__parse:jTe,__renderToDomTree:YI,__renderToHTMLTree:HTe,__setFontMetrics:W_e,default:$j,get render(){return _G},renderToString:$Te,version:UTe},Symbol.toStringTag,{value:"Module"})),NDt={};function RDt(t){const e=this,n=t||NDt,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(FIt(n)),s.push(OIt()),o.push(IIt(n))}const C1=function(t){if(t==null)return FDt;if(typeof t=="string")return BDt(t);if(typeof t=="object")return LDt(t);if(typeof t=="function")return TG(t);throw new Error("Expected function, string, or array as `test`")};function LDt(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=C1(t[n]);return TG(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function BDt(t){return TG(e);function e(n){return n.tagName===t}}function TG(t){return e;function e(n,r,i){return!!($Dt(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function FDt(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function $Dt(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const jDt=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,zDt=/^[a-zA-Z]:\\/;function HDt(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return zDt.test(t)?!1:jDt.test(t)}const UDt=["http","https"],VDt=["nofollow"],WDt={};function qDt(t){const e=t||WDt,n=e.protocols||UDt,r=C1(e.test);return function(i){W_(i,"element",function(s,o,a){if(s.tagName==="a"&&typeof s.properties.href=="string"&&r(s,o,a)){const l=s.properties.href;if(HDt(l)?n.includes(l.slice(0,l.indexOf(":"))):l.startsWith("//")){const c=m3(e.content,s),u=c&&!Array.isArray(c)?[c]:c,h=m3(e.rel,s)||VDt,d=typeof h=="string"?wj(h):h,p=m3(e.target,s),g=m3(e.properties,s);if(g&&Object.assign(s.properties,tp(g)),d.length>0&&(s.properties.rel=[...d]),p&&(s.properties.target=p),u){const y=m3(e.contentProperties,s)||{};s.children.push({type:"element",tagName:"span",properties:tp(y),children:tp(u)})}}}})}}function m3(t,e){return typeof t=="function"?t(e):t}const Zoe=/[#.]/g;function GDt(t,e){const n=t||"",r={};let i=0,s,o;for(;i<n.length;){Zoe.lastIndex=i;const a=Zoe.exec(n),l=n.slice(i,a?a.index:n.length);l&&(s?s==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,i+=l.length),a&&(s=a[0],i++)}return{type:"element",tagName:o||e||"div",properties:r,children:[]}}function WTe(t,e,n){const r=n?XDt(n):void 0;function i(s,o,...a){let l;if(s==null){l={type:"root",children:[]};const c=o;a.unshift(c)}else{l=GDt(s,e);const c=l.tagName.toLowerCase(),u=r?r.get(c):void 0;if(l.tagName=u||c,KDt(o))a.unshift(o);else for(const[h,d]of Object.entries(o))YDt(t,l.properties,h,d)}for(const c of a)jj(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function KDt(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;
vendor: 12,080 bytes, lines 1199-1202
1199if(typeof t.type!="string")return!1;const e=t,n=Object.keys(t);for(const r of n){const i=e[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in t&&Array.isArray(t.children))}function YDt(t,e,n,r){const i=Vq(t,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=wj(r):i.commaSeparated?s=Ese(r):i.commaOrSpaceSeparated?s=wj(Ese(r).join(" ")):s=eae(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?QDt(r):String(r);if(Array.isArray(s)){const o=[];for(const a of s)o.push(eae(i,i.property,a));s=o}i.property==="className"&&Array.isArray(e.className)&&(s=e.className.concat(s)),e[i.property]=s}}function jj(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)jj(t,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?jj(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function eae(t,e,n){if(typeof n=="string"){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(n===""||kC(n)===kC(e)))return!0}return n}function QDt(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}function XDt(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}const JDt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],qTe=WTe(BI,"div"),GTe=WTe(Gw,"g",JDt),Uf={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ZDt(t,e){return KTe(t,{})||{type:"root",children:[]}}function KTe(t,e){const n=eMt(t,e);return n&&e.afterTransform&&e.afterTransform(t,n),n}function eMt(t,e){switch(t.nodeType){case 1:return iMt(t,e);case 3:return nMt(t);case 8:return rMt(t);case 9:return tae(t,e);case 10:return tMt();case 11:return tae(t,e);default:return}}function tae(t,e){return{type:"root",children:YTe(t,e)}}function tMt(){return{type:"doctype"}}function nMt(t){return{type:"text",value:t.nodeValue||""}}function rMt(t){return{type:"comment",value:t.nodeValue||""}}function iMt(t,e){const n=t.namespaceURI,r=n===Uf.svg?GTe:qTe,i=n===Uf.html?t.tagName.toLowerCase():t.tagName,s=n===Uf.html&&i==="template"?t.content:t,o=t.getAttributeNames(),a={};let l=-1;for(;++l<o.length;)a[o[l]]=t.getAttribute(o[l])||"";return r(i,a,YTe(s,e))}function YTe(t,e){const n=t.childNodes,r=[];let i=-1;for(;++i<n.length;){const s=KTe(n[i],e);s!==void 0&&r.push(s)}return r}new DOMParser;function sMt(t,e){const n=oMt(t);return ZDt(n)}function oMt(t){const e=document.createElement("template");return e.innerHTML=t,e.content}const nae=function(t,e,n){const r=V_(n);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(r(t.children[e],e,t))return t.children[e]},rae=/\n/g,iae=/[\t ]+/g,zj=C1("br"),sae=C1(pMt),aMt=C1("p"),oae=C1("tr"),lMt=C1(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",fMt,mMt]),QTe=C1(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function cMt(t,e){const n=e||{},r="children"in t?t.children:[],i=QTe(t),s=ZTe(t,{whitespace:n.whitespace||"normal"}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...JTe(t,{breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...XTe(r[a],t,{whitespace:s,breakBefore:a?void 0:i,breakAfter:a<r.length-1?zj(r[a+1]):i}));const l=[];let c;for(a=-1;++a<o.length;){const u=o[a];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(` 1200`.repeat(c)||" "),c=-1,l.push(u))}return l.join("")}function XTe(t,e,n){return t.type==="element"?uMt(t,e,n):t.type==="text"?n.whitespace==="normal"?JTe(t,n):hMt(t):[]}function uMt(t,e,n){const r=ZTe(t,n),i=t.children||[];let s=-1,o=[];if(lMt(t))return o;let a,l;for(zj(t)||oae(t)&&nae(e,t,oae)?l=` 1201`:aMt(t)?(a=2,l=2):QTe(t)&&(a=1,l=1);++s<i.length;)o=o.concat(XTe(i[s],t,{whitespace:r,breakBefore:s?void 0:a,breakAfter:s<i.length-1?zj(i[s+1]):l}));return sae(t)&&nae(e,t,sae)&&o.push(" "),a&&o.unshift(a),l&&o.push(l),o}function JTe(t,e){const n=String(t.value),r=[],i=[];let s=0;for(;s<=n.length;){rae.lastIndex=s;const l=rae.exec(n),c=l&&"index"in l?l.index:n.length;r.push(dMt(n.slice(s,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?e.breakBefore:!0,c===n.length?e.breakAfter:!0)),s=c+1}let o=-1,a;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),a=void 0):r[o]?(typeof a=="number"&&i.push(a),i.push(r[o]),a=0):(o===0||o===r.length-1)&&i.push(0);return i}function hMt(t){return[String(t.value)]}function dMt(t,e,n){const r=[];let i=0,s;for(;i<t.length;){iae.lastIndex=i;const o=iae.exec(t);s=o?o.index:t.length,!i&&!s&&o&&!e&&r.push(""),i!==s&&r.push(t.slice(i,s)),i=o?s+o[0].length:s}return i!==s&&!n&&r.push(""),r.join(" ")}function ZTe(t,e){if(t.type==="element"){const n=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function fMt(t){return!!(t.properties||{}).hidden}function pMt(t){return t.tagName==="td"||t.tagName==="th"}function mMt(t){return t.tagName==="dialog"&&!(t.properties||{}).open}const gMt={},yMt=[];function bMt(t){const e=t||gMt;return function(n,r){tG(n,"element",function(i,s){const o=Array.isArray(i.properties.className)?i.properties.className:yMt,a=o.includes("language-math"),l=o.includes("math-display"),c=o.includes("math-inline");let u=l;if(!a&&!l&&!c)return;let h=s[s.length-1],d=i;if(i.tagName==="code"&&a&&h&&h.type==="element"&&h.tagName==="pre"&&(d=h,h=s[s.length-2],u=!0),!h)return;const p=cMt(d,{whitespace:"pre"});let g;try{g=$j.renderToString(p,{...e,displayMode:u,throwOnError:!0})}catch(b){const w=b,S=w.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...s,i],cause:w,place:i.position,ruleId:S,source:"rehype-katex"});try{g=$j.renderToString(p,{...e,displayMode:u,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(e.errorColor||"#cc0000"),title:String(b)},children:[{type:"text",value:p}]}]}}typeof g=="string"&&(g=sMt(g).children);const y=h.children.indexOf(d);return h.children.splice(y,1,...g),g_e})}}function vMt(t){const e=String(t),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=e.length){let o=0;for(;;){let a=n[o];if(a===void 0){const l=aae(e,n[o-1]);a=l===-1?e.length+1:l+1,n[o]=a}if(a>s)return{line:o+1,column:s-(o>0?n[o-1]:0)+1,offset:s};o++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const a=n[n.length-1],l=aae(e,a),c=l===-1?e.length+1:l+1;if(a===c)break;n.push(c)}const o=(s.line>1?n[s.line-2]:0)+s.column-1;if(o<n[s.line-1])return o}}}function aae(t,e){const n=t.indexOf("\r",e),r=t.indexOf(` 1202`,e);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const e5e={}.hasOwnProperty,xMt=Object.prototype;function wMt(t,e){const n=e||{};return EG({file:n.file||void 0,location:!1,schema:n.space==="svg"?Gw:BI,verbose:n.verbose||!1},t)}function EG(t,e){let n;switch(e.nodeName){case"#comment":{const r=e;return n={type:"comment",value:r.data},RA(t,r,n),n}case"#document":case"#document-fragment":{const r=e,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:t5e(t,e.childNodes),data:{quirksMode:i}},t.file&&t.location){const s=String(t.file),o=vMt(s),a=o.toPoint(0),l=o.toPoint(s.length);n.position={start:a,end:l}}return n}case"#documentType":{const r=e;return n={type:"doctype"},RA(t,r,n),n}case"#text":{const r=e;return n={type:"text",value:r.value},RA(t,r,n),n}default:return n=SMt(t,e),n}}function t5e(t,e){let n=-1;const r=[];for(;++n<e.length;){const i=EG(t,e[n]);r.push(i)}return r}function SMt(t,e){const n=t.schema;t.schema=e.namespaceURI===Uf.svg?Gw:BI;let r=-1;const i={};for(;++r<e.attrs.length;){const a=e.attrs[r],l=(a.prefix?a.prefix+":":"")+a.name;e5e.call(xMt,l)||(i[l]=a.value)}const o=(t.schema.space==="svg"?GTe:qTe)(e.tagName,i,t5e(t,e.childNodes));if(RA(t,e,o),o.tagName==="template"){const a=e,l=a.sourceCodeLocation,c=l&&l.startTag&&B2(l.startTag),u=l&&l.endTag&&B2(l.endTag),h=EG(t,a.content);c&&u&&t.file&&(h.position={start:c.end,end:u.start}),o.content=h}return t.schema=n,o}function RA(t,e,n){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){const r=kMt(t,n,e.sourceCodeLocation);r&&(t.location=!0,n.position=r)}}function kMt(t,e,n){const r=B2(n);if(e.type==="element"){const i=e.children[e.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),t.verbose){const s={};let o;if(n.attrs)for(o in n.attrs)e5e.call(n.attrs,o)&&(s[Vq(t.schema,o).property]=B2(n.attrs[o]));n.startTag;const a=B2(n.startTag),l=n.endTag?B2(n.endTag):void 0,c={opening:a};l&&(c.closing=l),c.properties=s,e.data={position:c}}}return r}function B2(t){const e=lae({line:t.startLine,column:t.startCol,offset:t.startOffset}),n=lae({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||n?{start:e,end:n}:void 0}function lae(t){return t.line&&t.column?t:void 0}class Q_{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}}Q_.prototype.property={};Q_.prototype.normal={};Q_.prototype.space=null;function n5e(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new Q_(n,r,e)}function Hj(t){return t.toLowerCase()}class Fh{constructor(e,n){this.property=e,this.attribute=n}}Fh.prototype.space=null;Fh.prototype.boolean=!1;Fh.prototype.booleanish=!1;Fh.prototype.overloadedBoolean=!1;Fh.prototype.number=!1;Fh.prototype.commaSeparated=!1;Fh.prototype.spaceSeparated=!1;Fh.prototype.commaOrSpaceSeparated=!1;Fh.prototype.mustUseProperty=!1;Fh.prototype.defined=!1;let CMt=0;const jr=Ub(),Lo=Ub(),r5e=Ub(),Dt=Ub(),bs=Ub(),bx=Ub(),pu=Ub();function Ub(){return 2**++CMt}const Uj=Object.freeze(Object.defineProperty({__proto__:null,boolean:jr,booleanish:Lo,commaOrSpaceSeparated:pu,commaSeparated:bx,number:Dt,overloadedBoolean:r5e,spaceSeparated:bs},Symbol.toStringTag,{value:"Module"})),KR=Object.keys(Uj);class AG extends Fh{constructor(e,n,r,i){let s=-1;if(super(e,n),cae(this,"space",i),typeof r=="number")for(;++s<KR.length;){const o=KR[s];cae(this,KR[s],(r&Uj[o])===Uj[o])}}}AG.prototype.defined=!0;function cae(t,e,n){n&&(t[e]=n)}const _Mt={}.hasOwnProperty;function Xw(t){const e={},n={};let r;for(r in t.properties)if(_Mt.call(t.properties,r)){const i=t.properties[r],s=new AG(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Hj(r)]=r,n[Hj(s.attribute)]=r}return new Q_(e,n,t.space)}
vendor: 4,292 bytes, line 1202
1202const i5e=Xw({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),s5e=Xw({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function o5e(t,e){return e in t?t[e]:e}function a5e(t,e){return o5e(t,e.toLowerCase())}const l5e=Xw({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:a5e,properties:{xmlns:null,xmlnsXLink:null}}),c5e=Xw({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Lo,ariaAutoComplete:null,ariaBusy:Lo,ariaChecked:Lo,ariaColCount:Dt,ariaColIndex:Dt,ariaColSpan:Dt,ariaControls:bs,ariaCurrent:null,ariaDescribedBy:bs,ariaDetails:null,ariaDisabled:Lo,ariaDropEffect:bs,ariaErrorMessage:null,ariaExpanded:Lo,ariaFlowTo:bs,ariaGrabbed:Lo,ariaHasPopup:null,ariaHidden:Lo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bs,ariaLevel:Dt,ariaLive:null,ariaModal:Lo,ariaMultiLine:Lo,ariaMultiSelectable:Lo,ariaOrientation:null,ariaOwns:bs,ariaPlaceholder:null,ariaPosInSet:Dt,ariaPressed:Lo,ariaReadOnly:Lo,ariaRelevant:null,ariaRequired:Lo,ariaRoleDescription:bs,ariaRowCount:Dt,ariaRowIndex:Dt,ariaRowSpan:Dt,ariaSelected:Lo,ariaSetSize:Dt,ariaSort:null,ariaValueMax:Dt,ariaValueMin:Dt,ariaValueNow:Dt,ariaValueText:null,role:null}}),TMt=Xw({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a5e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bx,acceptCharset:bs,accessKey:bs,action:null,allow:null,allowFullScreen:jr,allowPaymentRequest:jr,allowUserMedia:jr,alt:null,as:null,async:jr,autoCapitalize:null,autoComplete:bs,autoFocus:jr,autoPlay:jr,blocking:bs,capture:null,charSet:null,checked:jr,cite:null,className:bs,cols:Dt,colSpan:null,content:null,contentEditable:Lo,controls:jr,controlsList:bs,coords:Dt|bx,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jr,defer:jr,dir:null,dirName:null,disabled:jr,download:r5e,draggable:Lo,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jr,formTarget:null,headers:bs,height:Dt,hidden:jr,high:Dt,href:null,hrefLang:null,htmlFor:bs,httpEquiv:bs,id:null,imageSizes:null,imageSrcSet:null,inert:jr,inputMode:null,integrity:null,is:null,isMap:jr,itemId:null,itemProp:bs,itemRef:bs,itemScope:jr,itemType:bs,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jr,low:Dt,manifest:null,max:null,maxLength:Dt,media:null,method:null,min:null,minLength:Dt,multiple:jr,muted:jr,name:null,nonce:null,noModule:jr,noValidate:jr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:jr,optimum:Dt,pattern:null,ping:bs,placeholder:null,playsInl
1202ine:jr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jr,referrerPolicy:null,rel:bs,required:jr,reversed:jr,rows:Dt,rowSpan:Dt,sandbox:bs,scope:null,scoped:jr,seamless:jr,selected:jr,shadowRootClonable:jr,shadowRootDelegatesFocus:jr,shadowRootMode:null,shape:null,size:Dt,sizes:null,slot:null,span:Dt,spellCheck:Lo,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Dt,step:null,style:null,tabIndex:Dt,target:null,title:null,translate:null,type:null,typeMustMatch:jr,useMap:null,value:Lo,width:Dt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bs,axis:null,background:null,bgColor:null,border:Dt,borderColor:null,bottomMargin:Dt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jr,declare:jr,event:null,face:null,frame:null,frameBorder:null,hSpace:Dt,leftMargin:Dt,link:null,longDesc:null,lowSrc:null,marginHeight:Dt,marginWidth:Dt,noResize:jr,noHref:jr,noShade:jr,noWrap:jr,object:null,profile:null,prompt:null,rev:null,rightMargin:Dt,rules:null,scheme:null,scrolling:Lo,standby:null,summary:null,text:null,topMargin:Dt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Dt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jr,disableRemotePlayback:jr,prefix:null,property:null,results:Dt,security:null,unselectable:null}}),EMt=Xw({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1202-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:o5e,properties:{about:pu,accentHeight:Dt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Dt,amplitude:Dt,arabicForm:null,ascent:Dt,attributeName:null,attributeType:null,azimuth:Dt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Dt,by:null,calcMode:null,capHeight:Dt,className:bs,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Dt,diffuseConstant:Dt,direction:null,display:null,dur:null,divisor:Dt,dominantBaseline:null,download:jr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Dt,enableBackground:null,end:null,event:null,exponent:Dt,externalResourcesRequired:null,fill:null,fillOpacity:Dt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bx,g2:bx,glyphName:bx,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Dt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Dt,horizOriginX:Dt,horizOriginY:Dt,id:null,ideographic:Dt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Dt,k:Dt,k1:Dt,k2:Dt,k3:Dt,k4:Dt,kernelMatrix:pu,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Dt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Dt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,844 bytes, line 1202
1202Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Dt,overlineThickness:Dt,paintOrder:null,panose1:null,path:null,pathLength:Dt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bs,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Dt,pointsAtY:Dt,pointsAtZ:Dt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pu,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pu,rev:pu,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pu,requiredFeatures:pu,requiredFonts:pu,requiredFormats:pu,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Dt,specularExponent:Dt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Dt,strikethroughThickness:Dt,string:null,stroke:null,strokeDashArray:pu,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Dt,strokeOpacity:Dt,strokeWidth:null,style:null,surfaceScale:Dt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pu,tabIndex:Dt,tableValues:null,target:null,targetX:Dt,targetY:Dt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pu,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Dt,underlineThickness:Dt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Dt,values:null,vAlphabetic:Dt,vMathematical:Dt,vectorEffect:null,vHanging:Dt,vIdeographic:Dt,version:null,vertAdvY:Dt,vertOriginX:Dt,vertOriginY:Dt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Dt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),AMt=/^data[-\w.:]+$/i,uae=/-[a-z]/g,PMt=/[A-Z]/g;function OMt(t,e){const n=Hj(e);let r=e,i=Fh;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AMt.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(uae,DMt);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!uae.test(s)){let o=s.replace(PMt,IMt);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=AG}return new i(r,e)}function IMt(t){return"-"+t.toLowerCase()}function DMt(t){return t.charAt(1).toUpperCase()}const MMt=n5e([s5e,i5e,l5e,c5e,TMt],"html"),u5e=n5e([s5e,i5e,l5e,c5e,EMt],"svg"),NMt={},RMt={}.hasOwnProperty,h5e=S_e("type",{handlers:{root:BMt,element:HMt,text:jMt,comment:zMt,doctype:$Mt}});function LMt(t,e){const r=(e||NMt).space;return h5e(t,r==="svg"?u5e:MMt)}function BMt(t,e){const n={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=PG(t.children,n,e),Jw(t,n),n}function FMt(t,e){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=PG(t.children,n,e),Jw(t,n),n}function $Mt(t){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Jw(t,e),e}function jMt(t){const e={nodeName:"#text",value:t.value,parentNode:null};return Jw(t,e),e}function zMt(t){const e={nodeName:"#comment",data:t.value,parentNode:null};return Jw(t,e),e}function HMt(t,e){const n=e;let r=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=u5e);const i=[];let s;if(t.properties){for(s in t.properties)if(s!=="children"&&RMt.call(t.properties,s)){const l=UMt(r,s,t.properties[s]);l&&i.push(l)}}const o=r.space,a={nodeName:t.tagName,tagName:t.tagName,attrs:i,namespaceURI:Uf[o],childNodes:[],parentNode:null};return a.childNodes=PG(t.children,a,r),Jw(t,a),t.tagName==="template"&&t.content&&(a.content=FMt(t.content,r)),a}function UMt(t,e,n){const r=OMt(t,e);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?NCe(n):UCe(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=i.name.indexOf(":");s<0?i.prefix="":(i.name=i.name.slice(s+1),i.prefix=r.attribute.slice(0,s)),i.namespace=Uf[r.space]}return i}function PG(t,e,n){let r=-1;const i=[];if(t)for(;++r<t.length;){const s=h5e(t[r],n);s.parentNode=e,i.push(s)}return i}function Jw(t,e){const n=t.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,e.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const VMt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","
1202image","img","input","keygen","link","meta","param","source","track","wbr"],WMt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),zs="�";var ae;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(ae||(ae={}));const ac={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function d5e(t){return t>=55296&&t<=57343}function qMt(t){return t>=56320&&t<=57343}function GMt(t,e){return(t-55296)*1024+9216+e}function f5e(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function p5e(t){return t>=64976&&t<=65007||WMt.has(t)}var et;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.n
vendor: 4,321 bytes, line 1202
1202oncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(et||(et={}));const KMt=65536;class YMt{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=KMt,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,n){const{line:r,col:i,offset:s}=this,o=i+n,a=s+n;return{code:e,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(qMt(n))return this.pos++,this._addGap(),GMt(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ae.EOF;return this._err(et.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,n){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,n){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const n=this.pos+e;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ae.EOF;const r=this.html.charCodeAt(n);return r===ae.CARRIAGE_RETURN?ae.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ae.EOF;let e=this.html.charCodeAt(this.pos);return e===ae.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ae.LINE_FEED):e===ae.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,d5e(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===ae.LINE_FEED||e===ae.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){f5e(e)?this._err(et.controlCharacterInInputStream):p5e(e)&&this._err(et.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Zr;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(Zr||(Zr={}));function m5e(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}const g5e=new Uint16Array('
vendor: 16,129 bytes, line 1202
1202áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 1202
1202ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 1202
1202astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
1202'.split("").map(t=>t.charCodeAt(0))),QMt=new Uint16Array("Èaglq ��\x1BÉ�\0\0�p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(t=>t.charCodeAt(0)));var YR;const XMt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),JMt=(YR=String.fromCodePoint)!==null&&YR!==void 0?YR:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function ZMt(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=XMt.get(t))!==null&&e!==void 0?e:t}var Ea;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Ea||(Ea={}));const eNt=32;var Tg;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Tg||(Tg={}));function Vj(t){return t>=Ea.ZERO&&t<=Ea.NINE}function tNt(t){return t>=Ea.UPPER_A&&t<=Ea.UPPER_F||t>=Ea.LOWER_A&&t<=Ea.LOWER_F}function nNt(t){return t>=Ea.UPPER_A&&t<=Ea.UPPER_Z||t>=Ea.LOWER_A&&t<=Ea.LOWER_Z||Vj(t)}function rNt(t){return t===Ea.EQUALS||nNt(t)}
vendor: 6,381 bytes, line 1202
1202var ka;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(ka||(ka={}));var E0;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(E0||(E0={}));class y5e{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=ka.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=E0.Strict}startEntity(e){this.decodeMode=e,this.state=ka.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case ka.EntityStart:return e.charCodeAt(n)===Ea.NUM?(this.state=ka.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=ka.NamedEntity,this.stateNamedEntity(e,n));case ka.NumericStart:return this.stateNumericStart(e,n);case ka.NumericDecimal:return this.stateNumericDecimal(e,n);case ka.NumericHex:return this.stateNumericHex(e,n);case ka.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|eNt)===Ea.LOWER_X?(this.state=ka.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=ka.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+parseInt(e.substr(n,s),i),this.consumed+=s}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(Vj(i)||tNt(i))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(Vj(i))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ea.SEMI)this.consumed+=1;else if(this.decodeMode===E0.Strict)return 0;return this.emitCodePoint(ZMt(this.result),this.consumed),this.errors&&(e!==Ea.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Tg.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const o=e.charCodeAt(n);if(this.treeIndex=iNt(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===E0.Attribute&&(s===0||rNt(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Tg.VALUE_LENGTH)>>14,s!==0){if(o===Ea.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==E0.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&Tg.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~Tg.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case ka.NamedEntity:return this.result!==0&&(this.decodeMode!==E0.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ka.NumericDecimal:return this.emitNumericEntity(0,2);case ka.NumericHex:return this.emitNumericEntity(0,3);case ka.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ka.EntityStart:return 0}}}function b5e(t){let e="";const n=new y5e(t,r=>e+=JMt(r));return function(i,s){let o=0,a=0;for(;(a=i.indexOf("&",a))>=0;){e+=i.slice(o,a),n.startEntity(s);const c=n.write(i,a+1);if(c<0){o=a+n.end();break}o=a+c,a=c===0?o+1:o}const l=e+i.slice(o);return e="",l}}function iNt(t,e,n,r){const i=(e&Tg.BRANCH_LENGTH)>>7,s=e&Tg.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const l=r-s;return l<0||l>=i?-1:t[n+l]-1}let o=n,a=o+i-1;for(;o<=a;){const l=o+a>>>1,c=t[l];if(c<r)o=l+1;else if(c>r)a=l-1;else return t[l+i]}return-1}b5e(g5e);b5e(QMt);var bt;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(bt||(bt={}));var nb;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(nb||(nb={}));var ch;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(ch||(ch={}));var Ve;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="str
1202ike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(Ve||(Ve={}));var I;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(I||(I={}));const sNt=new Map([[Ve.A,I.A],[Ve.ADDRESS,I.ADDRESS],[Ve.ANNOTATION_XML,I.ANNOTATION_XML],[Ve.APPLET,I.APPLET],[Ve.AREA,I.AREA],[Ve.ARTICLE,I.ARTICLE],[Ve.ASIDE,I.ASIDE],[Ve.B,I.B],[Ve.BASE,I.BASE],[Ve.BASEFONT,I.BASEFONT],[Ve.BGSOUND,I.BGSOUND],[Ve.BIG,I.BIG],[Ve.BLOCKQUOTE,I.BLOCKQUOTE],[Ve.BODY,I.BODY],[Ve.BR,I.BR],[Ve.BUTTON,I.BUTTON],[Ve.CAPTION,I.CAPTION],[Ve.CENTER,I.CENTER],[Ve.CODE,I.CODE],[Ve.COL,I.COL],[Ve.COLGROUP,I.COLGROUP],[Ve.DD,I.DD],[Ve.DESC,I.DESC],[Ve.DETAILS,I.DETAILS],[Ve.DIALOG,I.DIALOG],[Ve.DIR,I.DIR],[Ve.DIV,I.DIV],[Ve.DL,I.DL],[Ve.DT,I.DT],[Ve.EM,I.EM],[Ve.EMBED,I.EMBED],[Ve.FIELDSET,I.FIELDSET],[Ve.FIGCAPTION,I.FIGCAPTION],[Ve.FIGURE,I.FIGURE],[Ve.FONT,I.FONT],[Ve.FOOTER,I.FOOTER],[Ve.FOREIGN_OBJECT,I.FOREIGN_OBJECT],[Ve.FORM,I.FORM],[Ve.FRAME,I.FRAME],[Ve.FRAMESET,I.FRAMESET],[Ve.H1,I.H1],[Ve.H2,I.H2],[Ve.H3,I.H3],[Ve.H4,I.H4],[Ve.H5,I.H5],[Ve.H6,I.H6],[Ve.HEAD,I.HEAD],[Ve.HEADER,I.HEADER],[Ve.HGROUP,I.HGROUP],[Ve.HR,I.HR],[Ve.HTML,I.HTML],[Ve.I,I.I],[Ve.IMG,I.IMG],[Ve.IMAGE,I.IMAGE],[Ve.INPUT,I.INPUT],[Ve.IFRAME,I.IFRAME],[Ve.KEYGEN,I.KEYGEN],[Ve.LABEL,I.LABEL],[Ve.LI,I.LI],[Ve.LINK,I.LINK],[Ve.LISTING,I.LISTING],[Ve.MAIN,I.MAIN],[Ve.MALIGNMARK,I.MALIGNMARK],[Ve.MARQUEE,I.MARQUEE],[Ve.MATH,I.MATH],[Ve.MENU,I.MENU],[Ve.META,I.META],[Ve.MGLYPH,I.MGLYPH],[Ve.MI,I.MI],[Ve.MO,I.MO],[Ve.MN,I.MN],[Ve.MS,I.MS],[Ve.MTEXT,I.MTEXT],[Ve.NAV,I.NAV],[Ve.NOBR,I.NOBR],[Ve.NOFRAMES,I.NOFRAMES],[Ve.NOEMBED,I.NOEMBED],[Ve.NOSCRIPT,I.NOSCRIPT],[Ve.OBJECT,I.OBJECT],[Ve.OL,I.OL],[Ve.OPTGROUP,I.OPTGROUP],[Ve.OPTION,I.OPTION],[Ve.P,I.P],[Ve.PARAM,I.PARAM],[Ve.PLAINTEXT,I.PLAINTEXT],[Ve.PRE,I.PRE],[Ve.RB,I.RB],[Ve.RP,I.RP],[Ve.RT,I.RT],[Ve.RTC,I.RTC],[Ve.RUBY,I.RUBY],[Ve.S,I.S],[Ve.SCRIPT,I.SCRIPT],[Ve.SEARCH,I.SEARCH],[Ve.SECTION,I.SECTION],[Ve.SELECT,I.SELECT],[Ve.SOURCE,I.SOURCE],[Ve.SMALL,I.SMALL],[Ve.SPAN,I.SPAN],[Ve.STRIKE,I.STRIKE],[Ve.STRONG,I.STRONG],[Ve.STYLE,I.STYLE],[Ve.SUB,I.SUB],[Ve.SUMMARY,I.SUMMARY],[Ve.SUP,I.SUP],[Ve.TABLE,I.TABLE],[Ve.TBODY,I.TBODY],[Ve.TEMPLATE,I.TEMPLATE],[Ve.TEXTAREA,I.TEXTAREA],[Ve.TFOOT,I.TFOOT],[Ve.TD,I.TD],[Ve.TH,I.TH],[Ve.THEAD,I.THEAD],[Ve.TITLE,I.TITLE],[Ve.TR,I.TR],[Ve.TRACK,I.TRACK],[Ve.TT,I.TT],[Ve.U,I.U],[Ve.UL,I.UL],[Ve.SVG,I.SVG],[Ve.VAR,I.VAR
vendor: 120,676 bytes, line 1202
1202],[Ve.WBR,I.WBR],[Ve.XMP,I.XMP]]);function Zw(t){var e;return(e=sNt.get(t))!==null&&e!==void 0?e:I.UNKNOWN}const kt=I,oNt={[bt.HTML]:new Set([kt.ADDRESS,kt.APPLET,kt.AREA,kt.ARTICLE,kt.ASIDE,kt.BASE,kt.BASEFONT,kt.BGSOUND,kt.BLOCKQUOTE,kt.BODY,kt.BR,kt.BUTTON,kt.CAPTION,kt.CENTER,kt.COL,kt.COLGROUP,kt.DD,kt.DETAILS,kt.DIR,kt.DIV,kt.DL,kt.DT,kt.EMBED,kt.FIELDSET,kt.FIGCAPTION,kt.FIGURE,kt.FOOTER,kt.FORM,kt.FRAME,kt.FRAMESET,kt.H1,kt.H2,kt.H3,kt.H4,kt.H5,kt.H6,kt.HEAD,kt.HEADER,kt.HGROUP,kt.HR,kt.HTML,kt.IFRAME,kt.IMG,kt.INPUT,kt.LI,kt.LINK,kt.LISTING,kt.MAIN,kt.MARQUEE,kt.MENU,kt.META,kt.NAV,kt.NOEMBED,kt.NOFRAMES,kt.NOSCRIPT,kt.OBJECT,kt.OL,kt.P,kt.PARAM,kt.PLAINTEXT,kt.PRE,kt.SCRIPT,kt.SECTION,kt.SELECT,kt.SOURCE,kt.STYLE,kt.SUMMARY,kt.TABLE,kt.TBODY,kt.TD,kt.TEMPLATE,kt.TEXTAREA,kt.TFOOT,kt.TH,kt.THEAD,kt.TITLE,kt.TR,kt.TRACK,kt.UL,kt.WBR,kt.XMP]),[bt.MATHML]:new Set([kt.MI,kt.MO,kt.MN,kt.MS,kt.MTEXT,kt.ANNOTATION_XML]),[bt.SVG]:new Set([kt.TITLE,kt.FOREIGN_OBJECT,kt.DESC]),[bt.XLINK]:new Set,[bt.XML]:new Set,[bt.XMLNS]:new Set},Wj=new Set([kt.H1,kt.H2,kt.H3,kt.H4,kt.H5,kt.H6]);Ve.STYLE,Ve.SCRIPT,Ve.XMP,Ve.IFRAME,Ve.NOEMBED,Ve.NOFRAMES,Ve.PLAINTEXT;var ue;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ue||(ue={}));const ko={DATA:ue.DATA,RCDATA:ue.RCDATA,RAWTEXT:ue.RAWTEXT,SCRIPT_DATA:ue.SCRIPT_DATA,PLAINTEXT:ue.PLAINTEXT,CDATA_SECTION:ue.CDATA_SECTION};function aNt(t){return t>=ae.DIGIT_0&&t<=ae.DIGIT_9}function h4(t){return t>=ae.LATIN_CAPITAL_A&&t<=ae.LATIN_CAPITAL_Z}function lNt(t){return t>=ae.LATIN_SMALL_A&&t<=ae.LATIN_SMALL_Z}function ig(t){return lNt(t)||h4(t)}function hae(t){return ig(t)||aNt(t)}function FE(t){return t+32}function v5e(t){return t===ae.SPACE||t===ae.LINE_FEED||t===ae.TABULATION||t===ae.FORM_FEED}function dae(t){return v5e(t)||t===ae.SOLIDUS||t===ae.GREATER_THAN_SIGN}function cNt(t){return t===ae.NULL?et.nullCharacterReference:t>1114111?et.characterReferenceOutsideUnicodeRange:d5e(t)?et.surrogateCharacterReference:p5e(t)?et.noncharacterCharacterReference:f5e(t)||t===ae.CARRIAGE_RETURN?et.controlCharacterReference:null}class uNt{constructor(e,n){this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ue.DATA,this.returnState=ue.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new YMt(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new y5e(g5e,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(et.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(et.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=cNt(r);i&&this._err(i,1)}}:void 0)}_err(e,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(e,n))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,n,r){this.active=!0,this.preprocessor.write(e,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let n=0;n<e;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,n){return this.preprocessor.startsWith(e,n)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Zr.START_TAG,tagName:"",tagID:I.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Zr.END_TAG,tagName:"",tagID:I.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Zr.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Zr.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,n;const r=this.currentToken;if(m5e(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(e=(n=r.location).attrs)!==null&&e!==void 0?e:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(et.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Zw(e.tagName),e.type===Zr.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(et.endTagWithAttributes),e.selfClosing&&this._err(et.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Zr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Zr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Zr.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Zr.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,n)}_emitCodePoint(e){const n=v5e(e)?Zr.WHITESPACE_CHARACTER:e===ae.NULL?Zr.NULL_CHARACTER:Zr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Zr.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ue.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?E0.Attribute:E0.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ue.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ue.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ue.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ue.DATA:{this._stateData(e);break}case ue.RCDATA:{this._stateRcdata(e);break}case ue.RAWTEXT:{this._stateRawtext(e);break}case ue.SCRIPT_DATA:{this._stateScriptData(e);break}case ue.PLAINTEXT:{this._statePlaintext(e);break}case ue.TAG_OPEN:{this._stateTagOpen(e);break}case ue.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case ue.TAG_NAME:{this._stateTagName(e);break}case ue.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case ue.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case ue.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case ue.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case ue.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case ue.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case ue.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case ue.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case ue.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case ue.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case ue.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case ue.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case ue.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case ue.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case ue.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case ue.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case ue.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case ue.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case ue.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case ue.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case ue.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case ue.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case ue.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case ue.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case ue.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case ue.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case ue.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case ue.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case ue.BOGUS_COMMENT:{this._stateBogusComment(e);break}case ue.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case ue.COMMENT_START:{this._stateCommentStart(e);break}case ue.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case ue.COMMENT:{this._stateComment(e);break}case ue.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case ue.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case ue.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case ue.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case ue.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case ue.COMMENT_END:{this._stateCommentEnd(e);break}case ue.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case ue.DOCTYPE:{this._stateDoctype(e);break}case ue.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case ue.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case ue.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case ue.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case ue.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case ue.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case ue.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case ue.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case ue.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case ue.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case ue.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case ue.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case ue.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case ue.CDATA_SECTION:{this._stateCdataSection(e);break}case ue.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case ue.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case ue.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ue.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case ae.LESS_THAN_SIGN:{this.state=ue.TAG_OPEN;break}case ae.AMPERSAND:{this._startCharacterReference();break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitCodePoint(e);break}case ae.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case ae.AMPERSAND:{this._startCharacterReference();break}case ae.LESS_THAN_SIGN:{this.state=ue.RCDATA_LESS_THAN_SIGN;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitChars(zs);break}case ae.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case ae.LESS_THAN_SIGN:{this.state=ue.RAWTEXT_LESS_THAN_SIGN;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitChars(zs);break}case ae.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_LESS_THAN_SIGN;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitChars(zs);break}case ae.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitChars(zs);break}case ae.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ig(e))this._createStartTagToken(),this.state=ue.TAG_NAME,this._stateTagName(e);else switch(e){case ae.EXCLAMATION_MARK:{this.state=ue.MARKUP_DECLARATION_OPEN;break}case ae.SOLIDUS:{this.state=ue.END_TAG_OPEN;break}case ae.QUESTION_MARK:{this._err(et.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ue.BOGUS_COMMENT,this._stateBogusComment(e);break}case ae.EOF:{this._err(et.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(et.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ue.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ig(e))this._createEndTagToken(),this.state=ue.TAG_NAME,this._stateTagName(e);else switch(e){case ae.GREATER_THAN_SIGN:{this._err(et.missingEndTagName),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(et.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ue.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this.state=ue.BEFORE_ATTRIBUTE_NAME;break}case ae.SOLIDUS:{this.state=ue.SELF_CLOSING_START_TAG;break}case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentTagToken();break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.tagName+=zs;break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(h4(e)?FE(e):e)}}_stateRcdataLessThanSign(e){e===ae.SOLIDUS?this.state=ue.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ue.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ig(e)?(this.state=ue.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=ue.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ue.BEFORE_ATTRIBUTE_NAME,!1;case ae.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ue.SELF_CLOSING_START_TAG,!1;case ae.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ue.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ue.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===ae.SOLIDUS?this.state=ue.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ue.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ig(e)?(this.state=ue.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=ue.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ue.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case ae.SOLIDUS:{this.state=ue.SCRIPT_DATA_END_TAG_OPEN;break}case ae.EXCLAMATION_MARK:{this.state=ue.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ue.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ig(e)?(this.state=ue.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=ue.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ue.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===ae.HYPHEN_MINUS?(this.state=ue.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ue.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===ae.HYPHEN_MINUS?(this.state=ue.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ue.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case ae.HYPHEN_MINUS:{this.state=ue.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitChars(zs);break}case ae.EOF:{this._err(et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case ae.HYPHEN_MINUS:{this.state=ue.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.state=ue.SCRIPT_DATA_ESCAPED,this._emitChars(zs);break}case ae.EOF:{this._err(et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ue.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case ae.HYPHEN_MINUS:{this._emitChars("-");break}case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ae.GREATER_THAN_SIGN:{this.state=ue.SCRIPT_DATA,this._emitChars(">");break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.state=ue.SCRIPT_DATA_ESCAPED,this._emitChars(zs);break}case ae.EOF:{this._err(et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ue.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===ae.SOLIDUS?this.state=ue.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ig(e)?(this._emitChars("<"),this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ue.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ig(e)?(this.state=ue.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=ue.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ue.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(ac.SCRIPT,!1)&&dae(this.preprocessor.peek(ac.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<ac.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ue.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case ae.HYPHEN_MINUS:{this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this._emitChars(zs);break}case ae.EOF:{this._err(et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case ae.HYPHEN_MINUS:{this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(zs);break}case ae.EOF:{this._err(et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case ae.HYPHEN_MINUS:{this._emitChars("-");break}case ae.LESS_THAN_SIGN:{this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ae.GREATER_THAN_SIGN:{this.state=ue.SCRIPT_DATA,this._emitChars(">");break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(zs);break}case ae.EOF:{this._err(et.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===ae.SOLIDUS?(this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(ac.SCRIPT,!1)&&dae(this.preprocessor.peek(ac.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<ac.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=ue.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ue.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.SOLIDUS:case ae.GREATER_THAN_SIGN:case ae.EOF:{this.state=ue.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case ae.EQUALS_SIGN:{this._err(et.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ue.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ue.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:case ae.SOLIDUS:case ae.GREATER_THAN_SIGN:case ae.EOF:{this._leaveAttrName(),this.state=ue.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case ae.EQUALS_SIGN:{this._leaveAttrName(),this.state=ue.BEFORE_ATTRIBUTE_VALUE;break}case ae.QUOTATION_MARK:case ae.APOSTROPHE:case ae.LESS_THAN_SIGN:{this._err(et.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.currentAttr.name+=zs;break}default:this.currentAttr.name+=String.fromCodePoint(h4(e)?FE(e):e)}}_stateAfterAttributeName(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.SOLIDUS:{this.state=ue.SELF_CLOSING_START_TAG;break}case ae.EQUALS_SIGN:{this.state=ue.BEFORE_ATTRIBUTE_VALUE;break}case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentTagToken();break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ue.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.QUOTATION_MARK:{this.state=ue.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{this.state=ue.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ae.GREATER_THAN_SIGN:{this._err(et.missingAttributeValue),this.state=ue.DATA,this.emitCurrentTagToken();break}default:this.state=ue.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case ae.QUOTATION_MARK:{this.state=ue.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ae.AMPERSAND:{this._startCharacterReference();break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.currentAttr.value+=zs;break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case ae.APOSTROPHE:{this.state=ue.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ae.AMPERSAND:{this._startCharacterReference();break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.currentAttr.value+=zs;break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this._leaveAttrValue(),this.state=ue.BEFORE_ATTRIBUTE_NAME;break}case ae.AMPERSAND:{this._startCharacterReference();break}case ae.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ue.DATA,this.emitCurrentTagToken();break}case ae.NULL:{this._err(et.unexpectedNullCharacter),this.currentAttr.value+=zs;break}case ae.QUOTATION_MARK:case ae.APOSTROPHE:case ae.LESS_THAN_SIGN:case ae.EQUALS_SIGN:case ae.GRAVE_ACCENT:{this._err(et.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this._leaveAttrValue(),this.state=ue.BEFORE_ATTRIBUTE_NAME;break}case ae.SOLIDUS:{this._leaveAttrValue(),this.state=ue.SELF_CLOSING_START_TAG;break}case ae.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ue.DATA,this.emitCurrentTagToken();break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:this._err(et.missingWhitespaceBetweenAttributes),this.state=ue.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case ae.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=ue.DATA,this.emitCurrentTagToken();break}case ae.EOF:{this._err(et.eofInTag),this._emitEOFToken();break}default:this._err(et.unexpectedSolidusInTag),this.state=ue.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const n=this.currentToken;switch(e){case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentComment(n);break}case ae.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.data+=zs;break}default:n.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(ac.DASH_DASH,!0)?(this._createCommentToken(ac.DASH_DASH.length+1),this.state=ue.COMMENT_START):this._consumeSequenceIfMatch(ac.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ac.DOCTYPE.length+1),this.state=ue.DOCTYPE):this._consumeSequenceIfMatch(ac.CDATA_START,!0)?this.inForeignNode?this.state=ue.CDATA_SECTION:(this._err(et.cdataInHtmlContent),this._createCommentToken(ac.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ue.BOGUS_COMMENT):this._ensureHibernation()||(this._err(et.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ue.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case ae.HYPHEN_MINUS:{this.state=ue.COMMENT_START_DASH;break}case ae.GREATER_THAN_SIGN:{this._err(et.abruptClosingOfEmptyComment),this.state=ue.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=ue.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const n=this.currentToken;switch(e){case ae.HYPHEN_MINUS:{this.state=ue.COMMENT_END;break}case ae.GREATER_THAN_SIGN:{this._err(et.abruptClosingOfEmptyComment),this.state=ue.DATA,this.emitCurrentComment(n);break}case ae.EOF:{this._err(et.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=ue.COMMENT,this._stateComment(e)}}_stateComment(e){const n=this.currentToken;switch(e){case ae.HYPHEN_MINUS:{this.state=ue.COMMENT_END_DASH;break}case ae.LESS_THAN_SIGN:{n.data+="<",this.state=ue.COMMENT_LESS_THAN_SIGN;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.data+=zs;break}case ae.EOF:{this._err(et.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const n=this.currentToken;switch(e){case ae.EXCLAMATION_MARK:{n.data+="!",this.state=ue.COMMENT_LESS_THAN_SIGN_BANG;break}case ae.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=ue.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===ae.HYPHEN_MINUS?this.state=ue.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ue.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===ae.HYPHEN_MINUS?this.state=ue.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ue.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==ae.GREATER_THAN_SIGN&&e!==ae.EOF&&this._err(et.nestedComment),this.state=ue.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const n=this.currentToken;switch(e){case ae.HYPHEN_MINUS:{this.state=ue.COMMENT_END;break}case ae.EOF:{this._err(et.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=ue.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const n=this.currentToken;switch(e){case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentComment(n);break}case ae.EXCLAMATION_MARK:{this.state=ue.COMMENT_END_BANG;break}case ae.HYPHEN_MINUS:{n.data+="-";break}case ae.EOF:{this._err(et.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=ue.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const n=this.currentToken;switch(e){case ae.HYPHEN_MINUS:{n.data+="--!",this.state=ue.COMMENT_END_DASH;break}case ae.GREATER_THAN_SIGN:{this._err(et.incorrectlyClosedComment),this.state=ue.DATA,this.emitCurrentComment(n);break}case ae.EOF:{this._err(et.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=ue.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this.state=ue.BEFORE_DOCTYPE_NAME;break}case ae.GREATER_THAN_SIGN:{this.state=ue.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case ae.EOF:{this._err(et.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingWhitespaceBeforeDoctypeName),this.state=ue.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(h4(e))this._createDoctypeToken(String.fromCharCode(FE(e))),this.state=ue.DOCTYPE_NAME;else switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.NULL:{this._err(et.unexpectedNullCharacter),this._createDoctypeToken(zs),this.state=ue.DOCTYPE_NAME;break}case ae.GREATER_THAN_SIGN:{this._err(et.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=ue.DOCTYPE_NAME}}_stateDoctypeName(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this.state=ue.AFTER_DOCTYPE_NAME;break}case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.name+=zs;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(h4(e)?FE(e):e)}}_stateAfterDoctypeName(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ac.PUBLIC,!1)?this.state=ue.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ac.SYSTEM,!1)?this.state=ue.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(et.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this.state=ue.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ae.QUOTATION_MARK:{this._err(et.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ue.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{this._err(et.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ue.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ae.GREATER_THAN_SIGN:{this._err(et.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.QUOTATION_MARK:{n.publicId="",this.state=ue.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{n.publicId="",this.state=ue.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ae.GREATER_THAN_SIGN:{this._err(et.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case ae.QUOTATION_MARK:{this.state=ue.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.publicId+=zs;break}case ae.GREATER_THAN_SIGN:{this._err(et.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case ae.APOSTROPHE:{this.state=ue.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.publicId+=zs;break}case ae.GREATER_THAN_SIGN:{this._err(et.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this.state=ue.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ae.GREATER_THAN_SIGN:{this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.QUOTATION_MARK:{this._err(et.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{this._err(et.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.QUOTATION_MARK:{n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:{this.state=ue.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ae.QUOTATION_MARK:{this._err(et.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{this._err(et.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ae.GREATER_THAN_SIGN:{this._err(et.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.QUOTATION_MARK:{n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ae.APOSTROPHE:{n.systemId="",this.state=ue.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ae.GREATER_THAN_SIGN:{this._err(et.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ue.DATA,this.emitCurrentDoctype(n);break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case ae.QUOTATION_MARK:{this.state=ue.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.systemId+=zs;break}case ae.GREATER_THAN_SIGN:{this._err(et.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case ae.APOSTROPHE:{this.state=ue.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ae.NULL:{this._err(et.unexpectedNullCharacter),n.systemId+=zs;break}case ae.GREATER_THAN_SIGN:{this._err(et.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case ae.SPACE:case ae.LINE_FEED:case ae.TABULATION:case ae.FORM_FEED:break;case ae.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.EOF:{this._err(et.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(et.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ue.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const n=this.currentToken;switch(e){case ae.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ue.DATA;break}case ae.NULL:{this._err(et.unexpectedNullCharacter);break}case ae.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case ae.RIGHT_SQUARE_BRACKET:{this.state=ue.CDATA_SECTION_BRACKET;break}case ae.EOF:{this._err(et.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===ae.RIGHT_SQUARE_BRACKET?this.state=ue.CDATA_SECTION_END:(this._emitChars("]"),this.state=ue.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case ae.GREATER_THAN_SIGN:{this.state=ue.DATA;break}case ae.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ue.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ae.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&hae(this.preprocessor.peek(1))?ue.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){hae(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===ae.SEMICOLON&&this._err(et.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const x5e=new Set([I.DD,I.DT,I.LI,I.OPTGROUP,I.OPTION,I.P,I.RB,I.RP,I.RT,I.RTC]),fae=new Set([...x5e,I.CAPTION,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]),_P=new Set([I.APPLET,I.CAPTION,I.HTML,I.MARQUEE,I.OBJECT,I.TABLE,I.TD,I.TEMPLATE,I.TH]),hNt=new Set([..._P,I.OL,I.UL]),dNt=new Set([..._P,I.BUTTON]),pae=new Set([I.ANNOTATION_XML,I.MI,I.MN,I.MO,I.MS,I.MTEXT]),mae=new Set([I.DESC,I.FOREIGN_OBJECT,I.TITLE]),fNt=new Set([I.TR,I.TEMPLATE,I.HTML]),pNt=new Set([I.TBODY,I.TFOOT,I.THEAD,I.TEMPLATE,I.HTML]),mNt=new Set([I.TABLE,I.TEMPLATE,I.HTML]),gNt=new Set([I.TD,I.TH]);class yNt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=I.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===I.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===bt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,n){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,n,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,n){const r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(e,n,r){const i=this._indexOf(e)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(e,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==bt.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(e){for(;this.stackTop>=e;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<e)}}popUntilElementPopped(e){const n=this._indexOf(e);this.shortenToLength(n<0?0:n)}popUntilPopped(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Wj,bt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(gNt,bt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,n){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(mNt,bt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(pNt,bt.HTML)}clearBackToTableRowContext(){this.clearBackTo(fNt,bt.HTML)}remove(e){const n=this._indexOf(e);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===I.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const n=this._indexOf(e)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===I.HTML}hasInDynamicScope(e,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case bt.HTML:{if(i===e)return!0;if(n.has(i))return!1;break}case bt.SVG:{if(mae.has(i))return!1;break}case bt.MATHML:{if(pae.has(i))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,_P)}hasInListItemScope(e){return this.hasInDynamicScope(e,hNt)}hasInButtonScope(e){return this.hasInDynamicScope(e,dNt)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case bt.HTML:{if(Wj.has(n))return!0;if(_P.has(n))return!1;break}case bt.SVG:{if(mae.has(n))return!1;break}case bt.MATHML:{if(pae.has(n))return!1;break}}}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===bt.HTML)switch(this.tagIDs[n]){case e:return!0;case I.TABLE:case I.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===bt.HTML)switch(this.tagIDs[e]){case I.TBODY:case I.THEAD:case I.TFOOT:return!0;case I.TABLE:case I.HTML:return!1}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===bt.HTML)switch(this.tagIDs[n]){case e:return!0;case I.OPTION:case I.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;x5e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;fae.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&fae.has(this.currentTagId);)this.pop()}}const QR=3;var Tf;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(Tf||(Tf={}));const gae={type:Tf.Marker};class bNt{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let a=0;a<this.entries.length;a++){const l=this.entries[a];if(l.type===Tf.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===o){const u=this.treeAdapter.getAttrList(c);u.length===i&&r.push({idx:a,attrs:u})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<QR)return;const n=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,n);if(r.length<QR)return;const i=new Map(n.map(o=>[o.name,o.value]));let s=0;for(let o=0;o<r.length;o++){const a=r[o];a.attrs.every(l=>i.get(l.name)===l.value)&&(s+=1,s>=QR&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(gae)}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.unshift({type:Tf.Element,element:e,token:n})}insertElementAfterBookmark(e,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Tf.Element,element:e,token:n})}removeEntry(e){const n=this.entries.indexOf(e);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const e=this.entries.indexOf(gae);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const n=this.entries.find(r=>r.type===Tf.Marker||this.treeAdapter.getTagName(r.element)===e);return n&&n.type===Tf.Element?n:null}getElementEntry(e){return this.entries.find(n=>n.type===Tf.Element&&n.element===e)}}const sg={createDocument(){return{nodeName:"#document",mode:ch.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,n,r){const i=t.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=e,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null};sg.appendChild(t,s)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(sg.isTextNode(n)){n.value+=e;return}}sg.appendChild(t,sg.createTextNode(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&sg.isTextNode(r)?r.value+=e:sg.insertBefore(t,sg.createTextNode(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},w5e="html",vNt="about:legacy-compat",xNt="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",S5e=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],wNt=[...S5e,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],SNt=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),k5e=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],kNt=[...k5e,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function yae(t,e){return e.some(n=>t.startsWith(n))}function CNt(t){return t.name===w5e&&t.publicId===null&&(t.systemId===null||t.systemId===vNt)}function _Nt(t){if(t.name!==w5e)return ch.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===xNt)return ch.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),SNt.has(n))return ch.QUIRKS;let r=e===null?wNt:S5e;if(yae(n,r))return ch.QUIRKS;if(r=e===null?k5e:kNt,yae(n,r))return ch.LIMITED_QUIRKS}return ch.NO_QUIRKS}const bae={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},TNt="definitionurl",ENt="definitionURL",ANt=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),PNt=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:bt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:bt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:bt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:bt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:bt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:bt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:bt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:bt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:bt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:bt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:bt.XMLNS}]]),ONt=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),INt=new Set([I.B,I.BIG,I.BLOCKQUOTE,I.BODY,I.BR,I.CENTER,I.CODE,I.DD,I.DIV,I.DL,I.DT,I.EM,I.EMBED,I.H1,I.H2,I.H3,I.H4,I.H5,I.H6,I.HEAD,I.HR,I.I,I.IMG,I.LI,I.LISTING,I.MENU,I.META,I.NOBR,I.OL,I.P,I.PRE,I.RUBY,I.S,I.SMALL,I.SPAN,I.STRONG,I.STRIKE,I.SUB,I.SUP,I.TABLE,I.TT,I.U,I.UL,I.VAR]);function DNt(t){const e=t.tagID;return e===I.FONT&&t.attrs.some(({name:r})=>r===nb.COLOR||r===nb.SIZE||r===nb.FACE)||INt.has(e)}function C5e(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===TNt){t.attrs[e].name=ENt;break}}function _5e(t){for(let e=0;e<t.attrs.length;e++){const n=ANt.get(t.attrs[e].name);n!=null&&(t.attrs[e].name=n)}}function OG(t){for(let e=0;e<t.attrs.length;e++){const n=PNt.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function MNt(t){const e=ONt.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=Zw(t.tagName))}function NNt(t,e){return e===bt.MATHML&&(t===I.MI||t===I.MO||t===I.MN||t===I.MS||t===I.MTEXT)}function RNt(t,e,n){if(e===bt.MATHML&&t===I.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===nb.ENCODING){const i=n[r].value.toLowerCase();return i===bae.TEXT_HTML||i===bae.APPLICATION_XML}}return e===bt.SVG&&(t===I.FOREIGN_OBJECT||t===I.DESC||t===I.TITLE)}function LNt(t,e,n,r){return(!r||r===bt.HTML)&&RNt(t,e,n)||(!r||r===bt.MATHML)&&NNt(t,e)}const BNt="hidden",FNt=8,$Nt=3;var ve;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(ve||(ve={}));const jNt={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},T5e=new Set([I.TABLE,I.TBODY,I.TFOOT,I.THEAD,I.TR]),vae={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:sg,onParseError:null};class xae{constructor(e,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=ve.INITIAL,this.originalInsertionMode=ve.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...vae,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new uNt(this.options,this),this.activeFormattingElements=new bNt(this.treeAdapter),this.fragmentContextID=r?Zw(this.treeAdapter.getTagName(r)):I.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new yNt(this.document,this.treeAdapter,this)}static parse(e,n){const r=new this(n);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,n){const r={...vae,...n};e??(e=r.treeAdapter.createElement(Ve.TEMPLATE,bt.HTML,[]));const i=r.treeAdapter.createElement("documentmock",bt.HTML,[]),s=new this(r,i,e);return s.fragmentContextID===I.TEMPLATE&&s.tmplInsertionModeStack.unshift(ve.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,n),n}_err(e,n,r){var i;if(!this.onParseError)return;const s=(i=e.location)!==null&&i!==void 0?i:jNt,o={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(o)}onItemPush(e,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,n)}onItemPop(e,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,e,this.openElements.current),n){let s,o;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,o=this.fragmentContextID):{current:s,currentTagId:o}=this.openElements,this._setContextModes(s,o)}}_setContextModes(e,n){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===bt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,e)}_switchToTextParsing(e,n){this._insertElement(e,bt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=ve.TEXT}switchToPlaintextParsing(){this.insertionMode=ve.TEXT,this.originalInsertionMode=ve.IN_BODY,this.tokenizer.state=ko.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Ve.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==bt.HTML))switch(this.fragmentContextID){case I.TITLE:case I.TEXTAREA:{this.tokenizer.state=ko.RCDATA;break}case I.STYLE:case I.XMP:case I.IFRAME:case I.NOEMBED:case I.NOFRAMES:case I.NOSCRIPT:{this.tokenizer.state=ko.RAWTEXT;break}case I.SCRIPT:{this.tokenizer.state=ko.SCRIPT_DATA;break}case I.PLAINTEXT:{this.tokenizer.state=ko.PLAINTEXT;break}}}_setDocumentType(e){const n=e.name||"",r=e.publicId||"",i=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),e.location){const o=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));o&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}}_attachElementToTree(e,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,e)}}_appendElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,n){const r=this.treeAdapter.createElement(e,bt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(e){const n=this.treeAdapter.createElement(e.tagName,bt.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Ve.HTML,bt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,I.HTML)}_appendCommentNode(e,n){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,e.chars,r):this.treeAdapter.insertText(n,e.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,e.chars)),!e.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,o=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:l,endCol:c,endOffset:u}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:c,endOffset:u})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(e),s=n.type===Zr.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,e.tagID===I.SVG&&this.treeAdapter.getTagName(n)===Ve.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===bt.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===I.MGLYPH||e.tagID===I.MALIGNMARK)&&!this._isIntegrationPoint(r,n,bt.HTML)}_processToken(e){switch(e.type){case Zr.CHARACTER:{this.onCharacter(e);break}case Zr.NULL_CHARACTER:{this.onNullCharacter(e);break}case Zr.COMMENT:{this.onComment(e);break}case Zr.DOCTYPE:{this.onDoctype(e);break}case Zr.START_TAG:{this._processStartTag(e);break}case Zr.END_TAG:{this.onEndTag(e);break}case Zr.EOF:{this.onEof(e);break}case Zr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return LNt(e,i,s,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Tf.Marker||this.openElements.contains(i.element)),r=n<0?e-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ve.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(I.P),this.openElements.popUntilTagNamePopped(I.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case I.TR:{this.insertionMode=ve.IN_ROW;return}case I.TBODY:case I.THEAD:case I.TFOOT:{this.insertionMode=ve.IN_TABLE_BODY;return}case I.CAPTION:{this.insertionMode=ve.IN_CAPTION;return}case I.COLGROUP:{this.insertionMode=ve.IN_COLUMN_GROUP;return}case I.TABLE:{this.insertionMode=ve.IN_TABLE;return}case I.BODY:{this.insertionMode=ve.IN_BODY;return}case I.FRAMESET:{this.insertionMode=ve.IN_FRAMESET;return}case I.SELECT:{this._resetInsertionModeForSelect(e);return}case I.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case I.HTML:{this.insertionMode=this.headElement?ve.AFTER_HEAD:ve.BEFORE_HEAD;return}case I.TD:case I.TH:{if(e>0){this.insertionMode=ve.IN_CELL;return}break}case I.HEAD:{if(e>0){this.insertionMode=ve.IN_HEAD;return}break}}this.insertionMode=ve.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===I.TEMPLATE)break;if(r===I.TABLE){this.insertionMode=ve.IN_SELECT_IN_TABLE;return}}this.insertionMode=ve.IN_SELECT}_isElementCausesFosterParenting(e){return T5e.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const n=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case I.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===bt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case I.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_isSpecialElement(e,n){const r=this.treeAdapter.getNamespaceURI(e);return oNt[r].has(n)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gLt(this,e);return}switch(this.insertionMode){case ve.INITIAL:{g3(this,e);break}case ve.BEFORE_HTML:{nk(this,e);break}case ve.BEFORE_HEAD:{rk(this,e);break}case ve.IN_HEAD:{ik(this,e);break}case ve.IN_HEAD_NO_SCRIPT:{sk(this,e);break}case ve.AFTER_HEAD:{ok(this,e);break}case ve.IN_BODY:case ve.IN_CAPTION:case ve.IN_CELL:case ve.IN_TEMPLATE:{A5e(this,e);break}case ve.TEXT:case ve.IN_SELECT:case ve.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case ve.IN_TABLE:case ve.IN_TABLE_BODY:case ve.IN_ROW:{XR(this,e);break}case ve.IN_TABLE_TEXT:{N5e(this,e);break}case ve.IN_COLUMN_GROUP:{TP(this,e);break}case ve.AFTER_BODY:{EP(this,e);break}case ve.AFTER_AFTER_BODY:{LA(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mLt(this,e);return}switch(this.insertionMode){case ve.INITIAL:{g3(this,e);break}case ve.BEFORE_HTML:{nk(this,e);break}case ve.BEFORE_HEAD:{rk(this,e);break}case ve.IN_HEAD:{ik(this,e);break}case ve.IN_HEAD_NO_SCRIPT:{sk(this,e);break}case ve.AFTER_HEAD:{ok(this,e);break}case ve.TEXT:{this._insertCharacters(e);break}case ve.IN_TABLE:case ve.IN_TABLE_BODY:case ve.IN_ROW:{XR(this,e);break}case ve.IN_COLUMN_GROUP:{TP(this,e);break}case ve.AFTER_BODY:{EP(this,e);break}case ve.AFTER_AFTER_BODY:{LA(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){qj(this,e);return}switch(this.insertionMode){case ve.INITIAL:case ve.BEFORE_HTML:case ve.BEFORE_HEAD:case ve.IN_HEAD:case ve.IN_HEAD_NO_SCRIPT:case ve.AFTER_HEAD:case ve.IN_BODY:case ve.IN_TABLE:case ve.IN_CAPTION:case ve.IN_COLUMN_GROUP:case ve.IN_TABLE_BODY:case ve.IN_ROW:case ve.IN_CELL:case ve.IN_SELECT:case ve.IN_SELECT_IN_TABLE:case ve.IN_TEMPLATE:case ve.IN_FRAMESET:case ve.AFTER_FRAMESET:{qj(this,e);break}case ve.IN_TABLE_TEXT:{y3(this,e);break}case ve.AFTER_BODY:{GNt(this,e);break}case ve.AFTER_AFTER_BODY:case ve.AFTER_AFTER_FRAMESET:{KNt(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ve.INITIAL:{YNt(this,e);break}case ve.BEFORE_HEAD:case ve.IN_HEAD:case ve.IN_HEAD_NO_SCRIPT:case ve.AFTER_HEAD:{this._err(e,et.misplacedDoctype);break}case ve.IN_TABLE_TEXT:{y3(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,et.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?yLt(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ve.INITIAL:{g3(this,e);break}case ve.BEFORE_HTML:{QNt(this,e);break}case ve.BEFORE_HEAD:{JNt(this,e);break}case ve.IN_HEAD:{Vd(this,e);break}case ve.IN_HEAD_NO_SCRIPT:{tRt(this,e);break}case ve.AFTER_HEAD:{rRt(this,e);break}case ve.IN_BODY:{wl(this,e);break}case ve.IN_TABLE:{fw(this,e);break}case ve.IN_TABLE_TEXT:{y3(this,e);break}case ve.IN_CAPTION:{ZRt(this,e);break}case ve.IN_COLUMN_GROUP:{MG(this,e);break}case ve.IN_TABLE_BODY:{JI(this,e);break}case ve.IN_ROW:{ZI(this,e);break}case ve.IN_CELL:{nLt(this,e);break}case ve.IN_SELECT:{B5e(this,e);break}case ve.IN_SELECT_IN_TABLE:{iLt(this,e);break}case ve.IN_TEMPLATE:{oLt(this,e);break}case ve.AFTER_BODY:{lLt(this,e);break}case ve.IN_FRAMESET:{cLt(this,e);break}case ve.AFTER_FRAMESET:{hLt(this,e);break}case ve.AFTER_AFTER_BODY:{fLt(this,e);break}case ve.AFTER_AFTER_FRAMESET:{pLt(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?bLt(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ve.INITIAL:{g3(this,e);break}case ve.BEFORE_HTML:{XNt(this,e);break}case ve.BEFORE_HEAD:{ZNt(this,e);break}case ve.IN_HEAD:{eRt(this,e);break}case ve.IN_HEAD_NO_SCRIPT:{nRt(this,e);break}case ve.AFTER_HEAD:{iRt(this,e);break}case ve.IN_BODY:{XI(this,e);break}case ve.TEXT:{URt(this,e);break}case ve.IN_TABLE:{AC(this,e);break}case ve.IN_TABLE_TEXT:{y3(this,e);break}case ve.IN_CAPTION:{eLt(this,e);break}case ve.IN_COLUMN_GROUP:{tLt(this,e);break}case ve.IN_TABLE_BODY:{Gj(this,e);break}case ve.IN_ROW:{L5e(this,e);break}case ve.IN_CELL:{rLt(this,e);break}case ve.IN_SELECT:{F5e(this,e);break}case ve.IN_SELECT_IN_TABLE:{sLt(this,e);break}case ve.IN_TEMPLATE:{aLt(this,e);break}case ve.AFTER_BODY:{j5e(this,e);break}case ve.IN_FRAMESET:{uLt(this,e);break}case ve.AFTER_FRAMESET:{dLt(this,e);break}case ve.AFTER_AFTER_BODY:{LA(this,e);break}}}onEof(e){switch(this.insertionMode){case ve.INITIAL:{g3(this,e);break}case ve.BEFORE_HTML:{nk(this,e);break}case ve.BEFORE_HEAD:{rk(this,e);break}case ve.IN_HEAD:{ik(this,e);break}case ve.IN_HEAD_NO_SCRIPT:{sk(this,e);break}case ve.AFTER_HEAD:{ok(this,e);break}case ve.IN_BODY:case ve.IN_TABLE:case ve.IN_CAPTION:case ve.IN_COLUMN_GROUP:case ve.IN_TABLE_BODY:case ve.IN_ROW:case ve.IN_CELL:case ve.IN_SELECT:case ve.IN_SELECT_IN_TABLE:{D5e(this,e);break}case ve.TEXT:{VRt(this,e);break}case ve.IN_TABLE_TEXT:{y3(this,e);break}case ve.IN_TEMPLATE:{$5e(this,e);break}case ve.AFTER_BODY:case ve.IN_FRAMESET:case ve.AFTER_FRAMESET:case ve.AFTER_AFTER_BODY:case ve.AFTER_AFTER_FRAMESET:{DG(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===ae.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case ve.IN_HEAD:case ve.IN_HEAD_NO_SCRIPT:case ve.AFTER_HEAD:case ve.TEXT:case ve.IN_COLUMN_GROUP:case ve.IN_SELECT:case ve.IN_SELECT_IN_TABLE:case ve.IN_FRAMESET:case ve.AFTER_FRAMESET:{this._insertCharacters(e);break}case ve.IN_BODY:case ve.IN_CAPTION:case ve.IN_CELL:case ve.IN_TEMPLATE:case ve.AFTER_BODY:case ve.AFTER_AFTER_BODY:case ve.AFTER_AFTER_FRAMESET:{E5e(this,e);break}case ve.IN_TABLE:case ve.IN_TABLE_BODY:case ve.IN_ROW:{XR(this,e);break}case ve.IN_TABLE_TEXT:{M5e(this,e);break}}}}function zNt(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):I5e(t,e),n}function HNt(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const i=t.openElements.items[r];if(i===e.element)break;t._isSpecialElement(i,t.openElements.tagIDs[r])&&(n=i)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(e)),n}function UNt(t,e,n){let r=e,i=t.openElements.getCommonAncestor(e);for(let s=0,o=i;o!==n;s++,o=i){i=t.openElements.getCommonAncestor(o);const a=t.activeFormattingElements.getElementEntry(o),l=a&&s>=$Nt;!a||l?(l&&t.activeFormattingElements.removeEntry(a),t.openElements.remove(o)):(o=VNt(t,a),r===e&&(t.activeFormattingElements.bookmark=a),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(o,r),r=o)}return r}function VNt(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function WNt(t,e,n){const r=t.treeAdapter.getTagName(e),i=Zw(r);if(t._isElementCausesFosterParenting(i))t._fosterParentElement(n);else{const s=t.treeAdapter.getNamespaceURI(e);i===I.TEMPLATE&&s===bt.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function qNt(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=t.treeAdapter.createElement(i.tagName,r,i.attrs);t._adoptNodes(e,s),t.treeAdapter.appendChild(e,s),t.activeFormattingElements.insertElementAfterBookmark(s,i),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,s,i.tagID)}function IG(t,e){for(let n=0;n<FNt;n++){const r=zNt(t,e);if(!r)break;const i=HNt(t,r);if(!i)break;t.activeFormattingElements.bookmark=r;const s=UNt(t,i,r.element),o=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(s),o&&WNt(t,o,s),qNt(t,i,r)}}function qj(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function GNt(t,e){t._appendCommentNode(e,t.openElements.items[0])}function KNt(t,e){t._appendCommentNode(e,t.document)}function DG(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const r=t.openElements.items[0],i=t.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(t._setEndLocation(r,e),t.openElements.stackTop>=1)){const s=t.openElements.items[1],o=t.treeAdapter.getNodeSourceCodeLocation(s);o&&!o.endTag&&t._setEndLocation(s,e)}}}}function YNt(t,e){t._setDocumentType(e);const n=e.forceQuirks?ch.QUIRKS:_Nt(e);CNt(e)||t._err(e,et.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=ve.BEFORE_HTML}function g3(t,e){t._err(e,et.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,ch.QUIRKS),t.insertionMode=ve.BEFORE_HTML,t._processToken(e)}function QNt(t,e){e.tagID===I.HTML?(t._insertElement(e,bt.HTML),t.insertionMode=ve.BEFORE_HEAD):nk(t,e)}function XNt(t,e){const n=e.tagID;(n===I.HTML||n===I.HEAD||n===I.BODY||n===I.BR)&&nk(t,e)}function nk(t,e){t._insertFakeRootElement(),t.insertionMode=ve.BEFORE_HEAD,t._processToken(e)}function JNt(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.HEAD:{t._insertElement(e,bt.HTML),t.headElement=t.openElements.current,t.insertionMode=ve.IN_HEAD;break}default:rk(t,e)}}function ZNt(t,e){const n=e.tagID;n===I.HEAD||n===I.BODY||n===I.HTML||n===I.BR?rk(t,e):t._err(e,et.endTagWithoutMatchingOpenElement)}function rk(t,e){t._insertFakeElement(Ve.HEAD,I.HEAD),t.headElement=t.openElements.current,t.insertionMode=ve.IN_HEAD,t._processToken(e)}function Vd(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:{t._appendElement(e,bt.HTML),e.ackSelfClosing=!0;break}case I.TITLE:{t._switchToTextParsing(e,ko.RCDATA);break}case I.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,ko.RAWTEXT):(t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_HEAD_NO_SCRIPT);break}case I.NOFRAMES:case I.STYLE:{t._switchToTextParsing(e,ko.RAWTEXT);break}case I.SCRIPT:{t._switchToTextParsing(e,ko.SCRIPT_DATA);break}case I.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=ve.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(ve.IN_TEMPLATE);break}case I.HEAD:{t._err(e,et.misplacedStartTagForHeadElement);break}default:ik(t,e)}}function eRt(t,e){switch(e.tagID){case I.HEAD:{t.openElements.pop(),t.insertionMode=ve.AFTER_HEAD;break}case I.BODY:case I.BR:case I.HTML:{ik(t,e);break}case I.TEMPLATE:{Vb(t,e);break}default:t._err(e,et.endTagWithoutMatchingOpenElement)}}function Vb(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==I.TEMPLATE&&t._err(e,et.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(I.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,et.endTagWithoutMatchingOpenElement)}function ik(t,e){t.openElements.pop(),t.insertionMode=ve.AFTER_HEAD,t._processToken(e)}function tRt(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.BASEFONT:case I.BGSOUND:case I.HEAD:case I.LINK:case I.META:case I.NOFRAMES:case I.STYLE:{Vd(t,e);break}case I.NOSCRIPT:{t._err(e,et.nestedNoscriptInHead);break}default:sk(t,e)}}function nRt(t,e){switch(e.tagID){case I.NOSCRIPT:{t.openElements.pop(),t.insertionMode=ve.IN_HEAD;break}case I.BR:{sk(t,e);break}default:t._err(e,et.endTagWithoutMatchingOpenElement)}}function sk(t,e){const n=e.type===Zr.EOF?et.openElementsLeftAfterEof:et.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=ve.IN_HEAD,t._processToken(e)}function rRt(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.BODY:{t._insertElement(e,bt.HTML),t.framesetOk=!1,t.insertionMode=ve.IN_BODY;break}case I.FRAMESET:{t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_FRAMESET;break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{t._err(e,et.abandonedHeadElementChild),t.openElements.push(t.headElement,I.HEAD),Vd(t,e),t.openElements.remove(t.headElement);break}case I.HEAD:{t._err(e,et.misplacedStartTagForHeadElement);break}default:ok(t,e)}}function iRt(t,e){switch(e.tagID){case I.BODY:case I.HTML:case I.BR:{ok(t,e);break}case I.TEMPLATE:{Vb(t,e);break}default:t._err(e,et.endTagWithoutMatchingOpenElement)}}function ok(t,e){t._insertFakeElement(Ve.BODY,I.BODY),t.insertionMode=ve.IN_BODY,QI(t,e)}function QI(t,e){switch(e.type){case Zr.CHARACTER:{A5e(t,e);break}case Zr.WHITESPACE_CHARACTER:{E5e(t,e);break}case Zr.COMMENT:{qj(t,e);break}case Zr.START_TAG:{wl(t,e);break}case Zr.END_TAG:{XI(t,e);break}case Zr.EOF:{D5e(t,e);break}}}function E5e(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function A5e(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function sRt(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function oRt(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function aRt(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_FRAMESET)}function lRt(t,e){t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._insertElement(e,bt.HTML)}function cRt(t,e){t.openElements.hasInButtonScope(I.P)&&t._closePElement(),Wj.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,bt.HTML)}function uRt(t,e){t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._insertElement(e,bt.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function hRt(t,e){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._insertElement(e,bt.HTML),n||(t.formElement=t.openElements.current))}function dRt(t,e){t.framesetOk=!1;const n=e.tagID;for(let r=t.openElements.stackTop;r>=0;r--){const i=t.openElements.tagIDs[r];if(n===I.LI&&i===I.LI||(n===I.DD||n===I.DT)&&(i===I.DD||i===I.DT)){t.openElements.generateImpliedEndTagsWithExclusion(i),t.openElements.popUntilTagNamePopped(i);break}if(i!==I.ADDRESS&&i!==I.DIV&&i!==I.P&&t._isSpecialElement(t.openElements.items[r],i))break}t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._insertElement(e,bt.HTML)}function fRt(t,e){t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._insertElement(e,bt.HTML),t.tokenizer.state=ko.PLAINTEXT}function pRt(t,e){t.openElements.hasInScope(I.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(I.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML),t.framesetOk=!1}function mRt(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(Ve.A);n&&(IG(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function gRt(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function yRt(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(I.NOBR)&&(IG(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,bt.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function bRt(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function vRt(t,e){t.treeAdapter.getDocumentMode(t.document)!==ch.QUIRKS&&t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._insertElement(e,bt.HTML),t.framesetOk=!1,t.insertionMode=ve.IN_TABLE}function P5e(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,bt.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function O5e(t){const e=m5e(t,nb.TYPE);return e!=null&&e.toLowerCase()===BNt}function xRt(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,bt.HTML),O5e(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function wRt(t,e){t._appendElement(e,bt.HTML),e.ackSelfClosing=!0}function SRt(t,e){t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._appendElement(e,bt.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function kRt(t,e){e.tagName=Ve.IMG,e.tagID=I.IMG,P5e(t,e)}function CRt(t,e){t._insertElement(e,bt.HTML),t.skipNextNewLine=!0,t.tokenizer.state=ko.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=ve.TEXT}function _Rt(t,e){t.openElements.hasInButtonScope(I.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,ko.RAWTEXT)}function TRt(t,e){t.framesetOk=!1,t._switchToTextParsing(e,ko.RAWTEXT)}function wae(t,e){t._switchToTextParsing(e,ko.RAWTEXT)}function ERt(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===ve.IN_TABLE||t.insertionMode===ve.IN_CAPTION||t.insertionMode===ve.IN_TABLE_BODY||t.insertionMode===ve.IN_ROW||t.insertionMode===ve.IN_CELL?ve.IN_SELECT_IN_TABLE:ve.IN_SELECT}function ARt(t,e){t.openElements.currentTagId===I.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML)}function PRt(t,e){t.openElements.hasInScope(I.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,bt.HTML)}function ORt(t,e){t.openElements.hasInScope(I.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(I.RTC),t._insertElement(e,bt.HTML)}function IRt(t,e){t._reconstructActiveFormattingElements(),C5e(e),OG(e),e.selfClosing?t._appendElement(e,bt.MATHML):t._insertElement(e,bt.MATHML),e.ackSelfClosing=!0}function DRt(t,e){t._reconstructActiveFormattingElements(),_5e(e),OG(e),e.selfClosing?t._appendElement(e,bt.SVG):t._insertElement(e,bt.SVG),e.ackSelfClosing=!0}function Sae(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,bt.HTML)}function wl(t,e){switch(e.tagID){case I.I:case I.S:case I.B:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.SMALL:case I.STRIKE:case I.STRONG:{gRt(t,e);break}case I.A:{mRt(t,e);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{cRt(t,e);break}case I.P:case I.DL:case I.OL:case I.UL:case I.DIV:case I.DIR:case I.NAV:case I.MAIN:case I.MENU:case I.ASIDE:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.DETAILS:case I.ADDRESS:case I.ARTICLE:case I.SEARCH:case I.SECTION:case I.SUMMARY:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{lRt(t,e);break}case I.LI:case I.DD:case I.DT:{dRt(t,e);break}case I.BR:case I.IMG:case I.WBR:case I.AREA:case I.EMBED:case I.KEYGEN:{P5e(t,e);break}case I.HR:{SRt(t,e);break}case I.RB:case I.RTC:{PRt(t,e);break}case I.RT:case I.RP:{ORt(t,e);break}case I.PRE:case I.LISTING:{uRt(t,e);break}case I.XMP:{_Rt(t,e);break}case I.SVG:{DRt(t,e);break}case I.HTML:{sRt(t,e);break}case I.BASE:case I.LINK:case I.META:case I.STYLE:case I.TITLE:case I.SCRIPT:case I.BGSOUND:case I.BASEFONT:case I.TEMPLATE:{Vd(t,e);break}case I.BODY:{oRt(t,e);break}case I.FORM:{hRt(t,e);break}case I.NOBR:{yRt(t,e);break}case I.MATH:{IRt(t,e);break}case I.TABLE:{vRt(t,e);break}case I.INPUT:{xRt(t,e);break}case I.PARAM:case I.TRACK:case I.SOURCE:{wRt(t,e);break}case I.IMAGE:{kRt(t,e);break}case I.BUTTON:{pRt(t,e);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{bRt(t,e);break}case I.IFRAME:{TRt(t,e);break}case I.SELECT:{ERt(t,e);break}case I.OPTION:case I.OPTGROUP:{ARt(t,e);break}case I.NOEMBED:case I.NOFRAMES:{wae(t,e);break}case I.FRAMESET:{aRt(t,e);break}case I.TEXTAREA:{CRt(t,e);break}case I.NOSCRIPT:{t.options.scriptingEnabled?wae(t,e):Sae(t,e);break}case I.PLAINTEXT:{fRt(t,e);break}case I.COL:case I.TH:case I.TD:case I.TR:case I.HEAD:case I.FRAME:case I.TBODY:case I.TFOOT:case I.THEAD:case I.CAPTION:case I.COLGROUP:break;default:Sae(t,e)}}function MRt(t,e){if(t.openElements.hasInScope(I.BODY)&&(t.insertionMode=ve.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}function NRt(t,e){t.openElements.hasInScope(I.BODY)&&(t.insertionMode=ve.AFTER_BODY,j5e(t,e))}function RRt(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function LRt(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(I.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(I.FORM):n&&t.openElements.remove(n))}function BRt(t){t.openElements.hasInButtonScope(I.P)||t._insertFakeElement(Ve.P,I.P),t._closePElement()}function FRt(t){t.openElements.hasInListItemScope(I.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(I.LI),t.openElements.popUntilTagNamePopped(I.LI))}function $Rt(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function jRt(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function zRt(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function HRt(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(Ve.BR,I.BR),t.openElements.pop(),t.framesetOk=!1}function I5e(t,e){const n=e.tagName,r=e.tagID;for(let i=t.openElements.stackTop;i>0;i--){const s=t.openElements.items[i],o=t.openElements.tagIDs[i];if(r===o&&(r!==I.UNKNOWN||t.treeAdapter.getTagName(s)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=i&&t.openElements.shortenToLength(i);break}if(t._isSpecialElement(s,o))break}}function XI(t,e){switch(e.tagID){case I.A:case I.B:case I.I:case I.S:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.NOBR:case I.SMALL:case I.STRIKE:case I.STRONG:{IG(t,e);break}case I.P:{BRt(t);break}case I.DL:case I.UL:case I.OL:case I.DIR:case I.DIV:case I.NAV:case I.PRE:case I.MAIN:case I.MENU:case I.ASIDE:case I.BUTTON:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.ADDRESS:case I.ARTICLE:case I.DETAILS:case I.SEARCH:case I.SECTION:case I.SUMMARY:case I.LISTING:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{RRt(t,e);break}case I.LI:{FRt(t);break}case I.DD:case I.DT:{$Rt(t,e);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{jRt(t);break}case I.BR:{HRt(t);break}case I.BODY:{MRt(t,e);break}case I.HTML:{NRt(t,e);break}case I.FORM:{LRt(t);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{zRt(t,e);break}case I.TEMPLATE:{Vb(t,e);break}default:I5e(t,e)}}function D5e(t,e){t.tmplInsertionModeStack.length>0?$5e(t,e):DG(t,e)}function URt(t,e){var n;e.tagID===I.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function VRt(t,e){t._err(e,et.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function XR(t,e){if(T5e.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=ve.IN_TABLE_TEXT,e.type){case Zr.CHARACTER:{N5e(t,e);break}case Zr.WHITESPACE_CHARACTER:{M5e(t,e);break}}else X_(t,e)}function WRt(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_CAPTION}function qRt(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_COLUMN_GROUP}function GRt(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(Ve.COLGROUP,I.COLGROUP),t.insertionMode=ve.IN_COLUMN_GROUP,MG(t,e)}function KRt(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_TABLE_BODY}function YRt(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(Ve.TBODY,I.TBODY),t.insertionMode=ve.IN_TABLE_BODY,JI(t,e)}function QRt(t,e){t.openElements.hasInTableScope(I.TABLE)&&(t.openElements.popUntilTagNamePopped(I.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function XRt(t,e){O5e(e)?t._appendElement(e,bt.HTML):X_(t,e),e.ackSelfClosing=!0}function JRt(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,bt.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function fw(t,e){switch(e.tagID){case I.TD:case I.TH:case I.TR:{YRt(t,e);break}case I.STYLE:case I.SCRIPT:case I.TEMPLATE:{Vd(t,e);break}case I.COL:{GRt(t,e);break}case I.FORM:{JRt(t,e);break}case I.TABLE:{QRt(t,e);break}case I.TBODY:case I.TFOOT:case I.THEAD:{KRt(t,e);break}case I.INPUT:{XRt(t,e);break}case I.CAPTION:{WRt(t,e);break}case I.COLGROUP:{qRt(t,e);break}default:X_(t,e)}}function AC(t,e){switch(e.tagID){case I.TABLE:{t.openElements.hasInTableScope(I.TABLE)&&(t.openElements.popUntilTagNamePopped(I.TABLE),t._resetInsertionMode());break}case I.TEMPLATE:{Vb(t,e);break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:case I.TBODY:case I.TD:case I.TFOOT:case I.TH:case I.THEAD:case I.TR:break;default:X_(t,e)}}function X_(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,QI(t,e),t.fosterParentingEnabled=n}function M5e(t,e){t.pendingCharacterTokens.push(e)}function N5e(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function y3(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)X_(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const R5e=new Set([I.CAPTION,I.COL,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]);function ZRt(t,e){const n=e.tagID;R5e.has(n)?t.openElements.hasInTableScope(I.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(I.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=ve.IN_TABLE,fw(t,e)):wl(t,e)}function eLt(t,e){const n=e.tagID;switch(n){case I.CAPTION:case I.TABLE:{t.openElements.hasInTableScope(I.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(I.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=ve.IN_TABLE,n===I.TABLE&&AC(t,e));break}case I.BODY:case I.COL:case I.COLGROUP:case I.HTML:case I.TBODY:case I.TD:case I.TFOOT:case I.TH:case I.THEAD:case I.TR:break;default:XI(t,e)}}function MG(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.COL:{t._appendElement(e,bt.HTML),e.ackSelfClosing=!0;break}case I.TEMPLATE:{Vd(t,e);break}default:TP(t,e)}}function tLt(t,e){switch(e.tagID){case I.COLGROUP:{t.openElements.currentTagId===I.COLGROUP&&(t.openElements.pop(),t.insertionMode=ve.IN_TABLE);break}case I.TEMPLATE:{Vb(t,e);break}case I.COL:break;default:TP(t,e)}}function TP(t,e){t.openElements.currentTagId===I.COLGROUP&&(t.openElements.pop(),t.insertionMode=ve.IN_TABLE,t._processToken(e))}function JI(t,e){switch(e.tagID){case I.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_ROW;break}case I.TH:case I.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(Ve.TR,I.TR),t.insertionMode=ve.IN_ROW,ZI(t,e);break}case I.CAPTION:case I.COL:case I.COLGROUP:case I.TBODY:case I.TFOOT:case I.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE,fw(t,e));break}default:fw(t,e)}}function Gj(t,e){const n=e.tagID;switch(e.tagID){case I.TBODY:case I.TFOOT:case I.THEAD:{t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE);break}case I.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE,AC(t,e));break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:case I.TD:case I.TH:case I.TR:break;default:AC(t,e)}}function ZI(t,e){switch(e.tagID){case I.TH:case I.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,bt.HTML),t.insertionMode=ve.IN_CELL,t.activeFormattingElements.insertMarker();break}case I.CAPTION:case I.COL:case I.COLGROUP:case I.TBODY:case I.TFOOT:case I.THEAD:case I.TR:{t.openElements.hasInTableScope(I.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE_BODY,JI(t,e));break}default:fw(t,e)}}function L5e(t,e){switch(e.tagID){case I.TR:{t.openElements.hasInTableScope(I.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE_BODY);break}case I.TABLE:{t.openElements.hasInTableScope(I.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE_BODY,Gj(t,e));break}case I.TBODY:case I.TFOOT:case I.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(I.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ve.IN_TABLE_BODY,Gj(t,e));break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:case I.TD:case I.TH:break;default:AC(t,e)}}function nLt(t,e){const n=e.tagID;R5e.has(n)?(t.openElements.hasInTableScope(I.TD)||t.openElements.hasInTableScope(I.TH))&&(t._closeTableCell(),ZI(t,e)):wl(t,e)}function rLt(t,e){const n=e.tagID;switch(n){case I.TD:case I.TH:{t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=ve.IN_ROW);break}case I.TABLE:case I.TBODY:case I.TFOOT:case I.THEAD:case I.TR:{t.openElements.hasInTableScope(n)&&(t._closeTableCell(),L5e(t,e));break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:break;default:XI(t,e)}}function B5e(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.OPTION:{t.openElements.currentTagId===I.OPTION&&t.openElements.pop(),t._insertElement(e,bt.HTML);break}case I.OPTGROUP:{t.openElements.currentTagId===I.OPTION&&t.openElements.pop(),t.openElements.currentTagId===I.OPTGROUP&&t.openElements.pop(),t._insertElement(e,bt.HTML);break}case I.HR:{t.openElements.currentTagId===I.OPTION&&t.openElements.pop(),t.openElements.currentTagId===I.OPTGROUP&&t.openElements.pop(),t._appendElement(e,bt.HTML),e.ackSelfClosing=!0;break}case I.INPUT:case I.KEYGEN:case I.TEXTAREA:case I.SELECT:{t.openElements.hasInSelectScope(I.SELECT)&&(t.openElements.popUntilTagNamePopped(I.SELECT),t._resetInsertionMode(),e.tagID!==I.SELECT&&t._processStartTag(e));break}case I.SCRIPT:case I.TEMPLATE:{Vd(t,e);break}}}function F5e(t,e){switch(e.tagID){case I.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===I.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===I.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===I.OPTGROUP&&t.openElements.pop();break}case I.OPTION:{t.openElements.currentTagId===I.OPTION&&t.openElements.pop();break}case I.SELECT:{t.openElements.hasInSelectScope(I.SELECT)&&(t.openElements.popUntilTagNamePopped(I.SELECT),t._resetInsertionMode());break}case I.TEMPLATE:{Vb(t,e);break}}}function iLt(t,e){const n=e.tagID;n===I.CAPTION||n===I.TABLE||n===I.TBODY||n===I.TFOOT||n===I.THEAD||n===I.TR||n===I.TD||n===I.TH?(t.openElements.popUntilTagNamePopped(I.SELECT),t._resetInsertionMode(),t._processStartTag(e)):B5e(t,e)}function sLt(t,e){const n=e.tagID;n===I.CAPTION||n===I.TABLE||n===I.TBODY||n===I.TFOOT||n===I.THEAD||n===I.TR||n===I.TD||n===I.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(I.SELECT),t._resetInsertionMode(),t.onEndTag(e)):F5e(t,e)}function oLt(t,e){switch(e.tagID){case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{Vd(t,e);break}case I.CAPTION:case I.COLGROUP:case I.TBODY:case I.TFOOT:case I.THEAD:{t.tmplInsertionModeStack[0]=ve.IN_TABLE,t.insertionMode=ve.IN_TABLE,fw(t,e);break}case I.COL:{t.tmplInsertionModeStack[0]=ve.IN_COLUMN_GROUP,t.insertionMode=ve.IN_COLUMN_GROUP,MG(t,e);break}case I.TR:{t.tmplInsertionModeStack[0]=ve.IN_TABLE_BODY,t.insertionMode=ve.IN_TABLE_BODY,JI(t,e);break}case I.TD:case I.TH:{t.tmplInsertionModeStack[0]=ve.IN_ROW,t.insertionMode=ve.IN_ROW,ZI(t,e);break}default:t.tmplInsertionModeStack[0]=ve.IN_BODY,t.insertionMode=ve.IN_BODY,wl(t,e)}}function aLt(t,e){e.tagID===I.TEMPLATE&&Vb(t,e)}function $5e(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(I.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):DG(t,e)}function lLt(t,e){e.tagID===I.HTML?wl(t,e):EP(t,e)}function j5e(t,e){var n;if(e.tagID===I.HTML){if(t.fragmentContext||(t.insertionMode=ve.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===I.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&t._setEndLocation(r,e)}}else EP(t,e)}function EP(t,e){t.insertionMode=ve.IN_BODY,QI(t,e)}function cLt(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.FRAMESET:{t._insertElement(e,bt.HTML);break}case I.FRAME:{t._appendElement(e,bt.HTML),e.ackSelfClosing=!0;break}case I.NOFRAMES:{Vd(t,e);break}}}function uLt(t,e){e.tagID===I.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==I.FRAMESET&&(t.insertionMode=ve.AFTER_FRAMESET))}function hLt(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.NOFRAMES:{Vd(t,e);break}}}function dLt(t,e){e.tagID===I.HTML&&(t.insertionMode=ve.AFTER_AFTER_FRAMESET)}function fLt(t,e){e.tagID===I.HTML?wl(t,e):LA(t,e)}function LA(t,e){t.insertionMode=ve.IN_BODY,QI(t,e)}function pLt(t,e){switch(e.tagID){case I.HTML:{wl(t,e);break}case I.NOFRAMES:{Vd(t,e);break}}}function mLt(t,e){e.chars=zs,t._insertCharacters(e)}function gLt(t,e){t._insertCharacters(e),t.framesetOk=!1}function z5e(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==bt.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function yLt(t,e){if(DNt(e))z5e(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===bt.MATHML?C5e(e):r===bt.SVG&&(MNt(e),_5e(e)),OG(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function bLt(t,e){if(e.tagID===I.P||e.tagID===I.BR){z5e(t),t._endTagOutsideForeignContent(e);return}for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===bt.HTML){t._endTagOutsideForeignContent(e);break}const i=t.treeAdapter.getTagName(r);if(i.toLowerCase()===e.tagName){e.tagName=i,t.openElements.shortenToLength(n);break}}}Ve.AREA,Ve.BASE,Ve.BASEFONT,Ve.BGSOUND,Ve.BR,Ve.COL,Ve.EMBED,Ve.FRAME,Ve.HR,Ve.IMG,Ve.INPUT,Ve.KEYGEN,Ve.LINK,Ve.META,Ve.PARAM,Ve.SOURCE,Ve.TRACK,Ve.WBR;const vLt=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,xLt=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),kae={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function H5e(t,e){const n=OLt(t),r=S_e("type",{handlers:{root:wLt,element:SLt,text:kLt,comment:V5e,doctype:CLt,raw:TLt},unknown:ELt}),i={parser:n?new xae(kae):xae.getFragmentParser(void 0,kae),handle(a){r(a,i)},stitches:!1,options:e||{}};r(t,i),eS(i,Sp());const s=n?i.parser.document:i.parser.getFragment(),o=wMt(s,{file:i.options.file});return i.stitches&&W_(o,"comment",function(a,l,c){const u=a;if(u.value.stitch&&c&&l!==void 0){const h=c.children;return h[l]=u.value.stitch,l}}),o.type==="root"&&o.children.length===1&&o.children[0].type===t.type?o.children[0]:o}function U5e(t,e){let n=-1;if(t)for(;++n<t.length;)e.handle(t[n])}function wLt(t,e){U5e(t.children,e)}function SLt(t,e){ALt(t,e),U5e(t.children,e),PLt(t,e)}function kLt(t,e){e.parser.tokenizer.state>4&&(e.parser.tokenizer.state=0);const n={type:Zr.CHARACTER,chars:t.value,location:J_(t)};eS(e,Sp(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function CLt(t,e){const n={type:Zr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:J_(t)};eS(e,Sp(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function _Lt(t,e){e.stitches=!0;const n=ILt(t);if("children"in t&&"children"in n){const r=H5e({type:"root",children:t.children},e.options);n.children=r.children}V5e({type:"comment",value:{stitch:n}},e)}function V5e(t,e){const n=t.value,r={type:Zr.COMMENT,data:n,location:J_(t)};eS(e,Sp(t)),e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)}function TLt(t,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,W5e(e,Sp(t)),e.parser.tokenizer.write(e.options.tagfilter?t.value.replace(vLt,"<$1$2"):t.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=e.parser.tokenizer._consume();e.parser.tokenizer._callState(n)}}function ELt(t,e){const n=t;if(e.options.passThrough&&e.options.passThrough.includes(n.type))_Lt(n,e);else{let r="";throw xLt.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function eS(t,e){W5e(t,e);const n=t.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=t.parser.tokenizer.preprocessor.line,n.location.endCol=t.parser.tokenizer.preprocessor.col+1,n.location.endOffset=t.parser.tokenizer.preprocessor.offset+1,t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)),t.parser.tokenizer.paused=!1,t.parser.tokenizer.inLoop=!1,t.parser.tokenizer.active=!1,t.parser.tokenizer.returnState=ko.DATA,t.parser.tokenizer.charRefCode=-1,t.parser.tokenizer.consumedAfterSnapshot=-1,t.parser.tokenizer.currentLocation=null,t.parser.tokenizer.currentCharacterToken=null,t.parser.tokenizer.currentToken=null,t.parser.tokenizer.currentAttr={name:"",value:""}}function W5e(t,e){if(e&&e.offset!==void 0){const n={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};t.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,t.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,t.parser.tokenizer.preprocessor.line=e.line,t.parser.tokenizer.currentLocation=n}}function ALt(t,e){const n=t.tagName.toLowerCase();if(e.parser.tokenizer.state===ko.PLAINTEXT)return;eS(e,Sp(t));const r=e.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Uf.html;i===Uf.html&&n==="svg"&&(i=Uf.svg);const s=LMt({...t,children:[]},{space:i===Uf.svg?"svg":"html"}),o={type:Zr.START_TAG,tagName:n,tagID:Zw(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:J_(t)};e.parser.currentToken=o,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=n}function PLt(t,e){const n=t.tagName.toLowerCase();if(!e.parser.tokenizer.inForeignNode&&VMt.includes(n)||e.parser.tokenizer.state===ko.PLAINTEXT)return;eS(e,FI(t));const r={type:Zr.END_TAG,tagName:n,tagID:Zw(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:J_(t)};e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken),n===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===ko.RCDATA||e.parser.tokenizer.state===ko.RAWTEXT||e.parser.tokenizer.state===ko.SCRIPT_DATA)&&(e.parser.tokenizer.state=ko.DATA)}function OLt(t){const e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName.toLowerCase()==="html"))}function J_(t){const e=Sp(t)||{line:void 0,column:void 0,offset:void 0},n=FI(t)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function ILt(t){return"children"in t?tp({...t,children:[]}):tp(t)}function DLt(t){return function(e,n){return H5e(e,{...t,file:n})}}const ny=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Cae={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ny,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ny],h2:[["className","sr-only"]],img:[...ny,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ny,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ny],table:[...ny],ul:[...ny,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},fg={}.hasOwnProperty;function MLt(t,e){let n={type:"root",children:[]};const r={schema:e?{...Cae,...e}:Cae,stack:[]},i=q5e(r,t);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function q5e(t,e){if(e&&typeof e=="object"){const n=e;switch(typeof n.type=="string"?n.type:""){case"comment":return NLt(t,n);case"doctype":return RLt(t,n);case"element":return LLt(t,n);case"root":return BLt(t,n);case"text":return FLt(t,n)}}}function NLt(t,e){if(t.schema.allowComments){const n=typeof e.value=="string"?e.value:"",r=n.indexOf("-->"),s={type:"comment",value:r<0?n:n.slice(0,r)};return Z_(s,e),s}}function RLt(t,e){if(t.schema.allowDoctypes){const n={type:"doctype"};return Z_(n,e),n}}function LLt(t,e){const n=typeof e.tagName=="string"?e.tagName:"";t.stack.push(n);const r=G5e(t,e.children),i=$Lt(t,e.properties);t.stack.pop();let s=!1;if(n&&n!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(n))&&(s=!0,t.schema.ancestors&&fg.call(t.schema.ancestors,n))){const a=t.schema.ancestors[n];let l=-1;for(s=!1;++l<a.length;)t.stack.includes(a[l])&&(s=!0)}if(!s)return t.schema.strip&&!t.schema.strip.includes(n)?r:void 0;const o={type:"element",tagName:n,properties:i,children:r};return Z_(o,e),o}function BLt(t,e){const r={type:"root",children:G5e(t,e.children)};return Z_(r,e),r}function FLt(t,e){const r={type:"text",value:typeof e.value=="string"?e.value:""};return Z_(r,e),r}function G5e(t,e){const n=[];if(Array.isArray(e)){const r=e;let i=-1;for(;++i<r.length;){const s=q5e(t,r[i]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function $Lt(t,e){const n=t.stack[t.stack.length-1],r=t.schema.attributes,i=t.schema.required,s=r&&fg.call(r,n)?r[n]:void 0,o=r&&fg.call(r,"*")?r["*"]:void 0,a=e&&typeof e=="object"?e:{},l={};let c;for(c in a)if(fg.call(a,c)){const u=a[c];let h=_ae(t,Tae(s,c),c,u);h==null&&(h=_ae(t,Tae(o,c),c,u)),h!=null&&(l[c]=h)}if(i&&fg.call(i,n)){const u=i[n];for(c in u)fg.call(u,c)&&!fg.call(l,c)&&(l[c]=u[c])}return l}function _ae(t,e,n,r){return e?Array.isArray(r)?jLt(t,e,n,r):K5e(t,e,n,r):void 0}function jLt(t,e,n,r){let i=-1;const s=[];for(;++i<r.length;){const o=K5e(t,e,n,r[i]);
1202(typeof o=="number"||typeof o=="string")&&s.push(o)}return s}function K5e(t,e,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&zLt(t,n,r)){if(typeof e=="object"&&e.length>1){let i=!1,s=0;for(;++s<e.length;){const o=e[s];if(o&&typeof o=="object"&&"flags"in o){if(o.test(String(r))){i=!0;break}}else if(o===r){i=!0;break}}if(!i)return}return t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(n)?t.schema.clobberPrefix+r:r}}function zLt(t,e,n){const r=t.schema.protocols&&fg.call(t.schema.protocols,e)?t.schema.protocols[e]:void 0;if(!r||r.length===0)return!0;const i=String(n),s=i.indexOf(":"),o=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/");if(s<0||l>-1&&s>l||o>-1&&s>o||a>-1&&s>a)return!0;let c=-1;for(;++c<r.length;){const u=r[c];if(s===u.length&&i.slice(0,u.length)===u)return!0}return!1}function Z_(t,e){const n=WCe(e);e.data&&(t.data=tp(e.data)),n&&(t.position=n)}function Tae(t,e){let n,r=-1;if(t)for(;++r<t.length;){const i=t[r],s=typeof i=="string"?i:i[0];if(s===e)return i;s==="data*"&&(n=i)}if(e.length>4&&e.slice(0,4).toLowerCase()==="data")return n}function HLt(t){return function(e){return MLt(e,t)}}function ULt(t,e){if(t==null)return{};var n,r,i=rO(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Kj(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 VLt(t){if(Array.isArray(t))return Kj(t)}function WLt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qLt(t,e){if(t){if(typeof t=="string")return Kj(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)?Kj(t,e):void 0}}function GLt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1203In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yj(t){return VLt(t)||WLt(t)||qLt(t)||GLt()}function Eae(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 F2(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Eae(Object(n),!0).forEach(function(r){vf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eae(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KLt(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 JR={};function YLt(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return JR[e]||(JR[e]=KLt(t)),JR[e]}function QLt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.filter(function(s){return s!=="token"}),i=YLt(r);return i.reduce(function(s,o){return F2(F2({},s),n[o])},e)}function Aae(t){return t.join(" ")}function XLt(t,e){var n=0;return function(r){return n+=1,r.map(function(i,s){return Y5e({node:i,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(n,"-").concat(s)})})}}function Y5e(t){var e=t.node,n=t.stylesheet,r=t.style,i=r===void 0?{}:r,s=t.useInlineStyles,o=t.key,a=e.properties,l=e.type,c=e.tagName,u=e.value;if(l==="text")return u;if(c){var h=XLt(n,s),d;if(!s)d=F2(F2({},a),{},{className:Aae(a.className)});else{var p=Object.keys(n).reduce(function(w,S){return S.split(".").forEach(function(T){w.includes(T)||w.push(T)}),w},[]),g=a.className&&a.className.includes("token")?["token"]:[],y=a.className&&g.concat(a.className.filter(function(w){return!p.includes(w)}));d=F2(F2({},a),{},{className:Aae(y)||void 0,style:QLt(a.className,Object.assign({},a.style,i),n)})}var b=h(e.children);return ii.createElement(c,Dd({key:o},d),b)}}const Q5e=function(t,e){var n=t.listLanguages();return n.indexOf(e)!==-1};var JLt=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Pae(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 Eg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 5,983 bytes, lines 1203-1208
1203e%2?Pae(Object(n),!0).forEach(function(r){vf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pae(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ZLt=/\n/g;function eBt(t){return t.match(ZLt)}function tBt(t){var e=t.lines,n=t.startingLineNumber,r=t.style;return e.map(function(i,s){var o=s+n;return ii.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,` 1204`))})}function nBt(t){var e=t.codeString,n=t.codeStyle,r=t.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,s=t.numberStyle,o=s===void 0?{}:s,a=t.startingLineNumber;return ii.createElement("code",{style:Object.assign({},n,i)},tBt({lines:e.replace(/\n$/,"").split(` 1205`),style:o,startingLineNumber:a}))}function rBt(t){return"".concat(t.toString().length,".25em")}function X5e(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 J5e(t,e,n){var r={display:"inline-block",minWidth:rBt(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof t=="function"?t(e):t,s=Eg(Eg({},r),i);return s}function BA(t){var e=t.children,n=t.lineNumber,r=t.lineNumberStyle,i=t.largestLineNumber,s=t.showInlineLineNumbers,o=t.lineProps,a=o===void 0?{}:o,l=t.className,c=l===void 0?[]:l,u=t.showLineNumbers,h=t.wrapLongLines,d=t.wrapLines,p=d===void 0?!1:d,g=p?Eg({},typeof a=="function"?a(n):a):{};if(g.className=g.className?[].concat(Yj(g.className.trim().split(/\s+/)),Yj(c)):c,n&&s){var y=J5e(r,n,i);e.unshift(X5e(n,y))}return h&u&&(g.style=Eg({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:e}}function Z5e(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(BA({children:[i],className:Yj(new Set(e))}));else if(i.children){var s=e.concat(i.properties.className);Z5e(i.children,s).forEach(function(o){return n.push(o)})}}return n}function iBt(t,e,n,r,i,s,o,a,l){var c,u=Z5e(t.value),h=[],d=-1,p=0;function g(E,O){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return BA({children:E,lineNumber:O,lineNumberStyle:a,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:P,showLineNumbers:r,wrapLongLines:l,wrapLines:e})}function y(E,O){if(r&&O&&i){var P=J5e(a,O,o);E.unshift(X5e(O,P))}return E}function b(E,O){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||P.length>0?g(E,O,P):y(E,O)}for(var w=function(){var O=u[p],P=O.children[0].value,$=eBt(P);if($){var W=P.split(` 1206`);W.forEach(function(H,K){var Z=r&&h.length+s,oe={type:"text",value:"".concat(H,` 1207`)};if(K===0){var te=u.slice(d+1,p).concat(BA({children:[oe],className:O.properties.className})),re=b(te,Z);h.push(re)}else if(K===W.length-1){var Y=u[p+1]&&u[p+1].children&&u[p+1].children[0],z={type:"text",value:"".concat(H)};if(Y){var U=BA({children:[z],className:O.properties.className});u.splice(p+1,0,U)}else{var G=[z],B=b(G,Z,O.properties.className);h.push(B)}}else{var Q=[oe],ie=b(Q,Z,O.properties.className);h.push(ie)}}),d=p}p++};p<u.length;)w();if(d!==u.length-1){var S=u.slice(d+1,u.length);if(S&&S.length){var T=r&&h.length+s,D=b(S,T);h.push(D)}}return e?h:(c=[]).concat.apply(c,h)}function sBt(t){var e=t.rows,n=t.stylesheet,r=t.useInlineStyles;return e.map(function(i,s){return Y5e({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(s)})})}function eEe(t){return t&&typeof t.highlightAuto<"u"}function oBt(t){var e=t.astGenerator,n=t.language,r=t.code,i=t.defaultCodeValue;if(eEe(e)){var s=Q5e(e,n);return n==="text"?{value:i,language:"text"}:s?e.highlight(n,r):e.highlightAuto(r)}try{return n&&n!=="text"?{value:e.highlight(r,n)}:{value:i}}catch{return{value:i}}}function aBt(t,e){return function(r){var i=r.language,s=r.children,o=r.style,a=o===void 0?e:o,l=r.customStyle,c=l===void 0?{}:l,u=r.codeTagProps,h=u===void 0?{className:i?"language-".concat(i):void 0,style:Eg(Eg({},a['code[class*="language-"]']),a['code[class*="language-'.concat(i,'"]')])}:u,d=r.useInlineStyles,p=d===void 0?!0:d,g=r.showLineNumbers,y=g===void 0?!1:g,b=r.showInlineLineNumbers,w=b===void 0?!0:b,S=r.startingLineNumber,T=S===void 0?1:S,D=r.lineNumberContainerStyle,E=r.lineNumberStyle,O=E===void 0?{}:E,P=r.wrapLines,$=r.wrapLongLines,W=$===void 0?!1:$,H=r.lineProps,K=H===void 0?{}:H,Z=r.renderer,oe=r.PreTag,te=oe===void 0?"pre":oe,re=r.CodeTag,Y=re===void 0?"code":re,z=r.code,U=z===void 0?(Array.isArray(s)?s[0]:s)||"":z,G=r.astGenerator,B=ULt(r,JLt);G=G||t;var Q=y?ii.createElement(nBt,{containerStyle:D,codeStyle:h.style||{},numberStyle:O,startingLineNumber:T,codeString:U}):null,ie=a.hljs||a['pre[class*="language-"]']||{backgroundColor:"#fff"},q=eEe(G)?"hljs":"prismjs",fe=p?Object.assign({},B,{style:Object.assign({},ie,c)}):Object.assign({},B,{className:B.className?"".concat(q," ").concat(B.className):q,style:Object.assign({},c)});if(W?h.style=Eg({whiteSpace:"pre-wrap"},h.style):h.style=Eg({whiteSpace:"pre"},h.style),!G)return ii.createElement(te,fe,Q,ii.createElement(Y,h,U));(P===void 0&&Z||W)&&(P=!0),Z=Z||sBt;var ke=[{type:"text",value:U}],Be=oBt({astGenerator:G,language:i,code:U,defaultCodeValue:ke});Be.language===null&&(Be.value=ke);var Qe=Be.value.length;Qe===1&&Be.value[0].type==="text"&&(Qe=Be.value[0].value.split(` 1208`).length);var ft=Qe+T,Ne=iBt(Be,P,K,y,w,T,ft,O,W);return ii.createElement(te,fe,ii.createElement(Y,h,!w&&Q,Z({rows:Ne,stylesheet:a,useInlineStyles:p})))}}function Oae(t,e,n,r,i,s,o){try{var a=t[s](o),l=a.value}catch(c){return void n(c)}a.done?e(l):Promise.resolve(l).then(r,i)}function tEe(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function o(l){Oae(s,r,i,o,a,"next",l)}
vendor: 5,891 bytes, line 1208
1208function a(l){Oae(s,r,i,o,a,"throw",l)}o(void 0)})}}function lBt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Iae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_de(r.key),r)}}function cBt(t,e,n){return e&&Iae(t.prototype,e),n&&Iae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function uBt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hBt(t,e){if(e&&(ip(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uBt(t)}function AP(t){return AP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},AP(t)}function dBt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ZA(t,e)}function Qj(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qj=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(Y,z,U){Y[z]=U.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(Y,z,U){return Object.defineProperty(Y,z,{value:U,enumerable:!0,configurable:!0,writable:!0}),Y[z]}try{c({},"")}catch{c=function(U,G,B){return U[G]=B}}function u(Y,z,U,G){var B=z&&z.prototype instanceof w?z:w,Q=Object.create(B.prototype),ie=new te(G||[]);return i(Q,"_invoke",{value:H(Y,U,ie)}),Q}function h(Y,z,U){try{return{type:"normal",arg:Y.call(z,U)}}catch(G){return{type:"throw",arg:G}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",g="executing",y="completed",b={};function w(){}function S(){}function T(){}var D={};c(D,o,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(re([])));O&&O!==n&&r.call(O,o)&&(D=O);var P=T.prototype=w.prototype=Object.create(D);function $(Y){["next","throw","return"].forEach(function(z){c(Y,z,function(U){return this._invoke(z,U)})})}function W(Y,z){function U(B,Q,ie,q){var fe=h(Y[B],Y,Q);if(fe.type!=="throw"){var ke=fe.arg,Be=ke.value;return Be&&ip(Be)=="object"&&r.call(Be,"__await")?z.resolve(Be.__await).then(function(Qe){U("next",Qe,ie,q)},function(Qe){U("throw",Qe,ie,q)}):z.resolve(Be).then(function(Qe){ke.value=Qe,ie(ke)},function(Qe){return U("throw",Qe,ie,q)})}q(fe.arg)}var G;i(this,"_invoke",{value:function(Q,ie){function q(){return new z(function(fe,ke){U(Q,ie,fe,ke)})}return G=G?G.then(q,q):q()}})}function H(Y,z,U){var G=d;return function(B,Q){if(G===g)throw Error("Generator is already running");if(G===y){if(B==="throw")throw Q;return{value:t,done:!0}}for(U.method=B,U.arg=Q;;){var ie=U.delegate;if(ie){var q=K(ie,U);if(q){if(q===b)continue;return q}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(G===d)throw G=y,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);G=g;var fe=h(Y,z,U);if(fe.type==="normal"){if(G=U.done?y:p,fe.arg===b)continue;return{value:fe.arg,done:U.done}}fe.type==="throw"&&(G=y,U.method="throw",U.arg=fe.arg)}}}function K(Y,z){var U=z.method,G=Y.iterator[U];if(G===t)return z.delegate=null,U==="throw"&&Y.iterator.return&&(z.method="return",z.arg=t,K(Y,z),z.method==="throw")||U!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+U+"' method")),b;var B=h(G,Y.iterator,z.arg);if(B.type==="throw")return z.method="throw",z.arg=B.arg,z.delegate=null,b;var Q=B.arg;return Q?Q.done?(z[Y.resultName]=Q.value,z.next=Y.nextLoc,z.method!=="return"&&(z.method="next",z.arg=t),z.delegate=null,b):Q:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,b)}function Z(Y){var z={tryLoc:Y[0]};1 in Y&&(z.catchLoc=Y[1]),2 in Y&&(z.finallyLoc=Y[2],z.afterLoc=Y[3]),this.tryEntries.push(z)}function oe(Y){var z=Y.completion||{};z.type="normal",delete z.arg,Y.completion=z}function te(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(Z,this),this.reset(!0)}function re(Y){if(Y||Y===""){var z=Y[o];if(z)return z.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var U=-1,G=function B(){for(;++U<Y.length;)if(r.call(Y,U))return B.value=Y[U],B.done=!1,B;return B.value=t,B.done=!0,B};return G.next=G}}throw new TypeError(ip(Y)+" is not iterable")}return S.prototype=T,i(P,"constructor",{value:T,configurable:!0}),i(T,"constructor",{value:S,configurable:!0}),S.displayName=c(T,l,"GeneratorFunction"),e.isGeneratorFunction=function(Y){var z=typeof Y=="function"&&Y.constructor;return!!z&&(z===S||(z.displayName||z.name)==="GeneratorFunction")},e.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,T):(Y.__proto__=T,c(Y,l,"GeneratorFunction")),Y.prototype=Object.create(P),Y},e.awrap=function(Y){return{__await:Y}},$(W.prototype),c(W.prototype,a,function(){return this}),e.AsyncIterator=W,e.async=function(Y,z,U,G,B){B===void 0&&(B=Promise);var Q=new W(u(Y,z,U,G),B);return e.isGeneratorFunction(z)?Q:Q.next().then(function(ie){return ie.done?ie.value:Q.next()})},$(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),e.keys=function(Y){var z=Object(Y),U=[];for(var G in z)U.push(G);return U.reverse(),function B(){for(;U.length;){var Q=U.pop();if(Q in z)return B.value=Q,B.done=!1,B}return B.done=!0,B}},e.values=re,te.prototype={constructor:te,reset:function(z){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
1208h(oe),!z)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=t)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var U=this;function G(ke,Be){return ie.type="throw",ie.arg=z,U.next=ke,Be&&(U.method="next",U.arg=t),!!Be}for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B],ie=Q.completion;if(Q.tryLoc==="root")return G("end");if(Q.tryLoc<=this.prev){var q=r.call(Q,"catchLoc"),fe=r.call(Q,"finallyLoc");if(q&&fe){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}else if(q){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0)}else{if(!fe)throw Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}}}},abrupt:function(z,U){for(var G=this.tryEntries.length-1;G>=0;--G){var B=this.tryEntries[G];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var Q=B;break}}Q&&(z==="break"||z==="continue")&&Q.tryLoc<=U&&U<=Q.finallyLoc&&(Q=null);var ie=Q?Q.completion:{};return ie.type=z,ie.arg=U,Q?(this.method="next",this.next=Q.finallyLoc,b):this.complete(ie)},complete:function(z,U){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&U&&(this.next=U),b},finish:function(z){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.finallyLoc===z)return this.complete(G.completion,G.afterLoc),oe(G),b}},catch:function(z){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.tryLoc===z){var B=G.completion;if(B.type==="throw"){var Q=B.arg;oe(G)}return Q}}throw Error("illegal catch attempt")},delegateYield:function(z,U,G){return this.delegate={iterator:re(z),resultName:U,nextLoc:G},this.method==="next"&&(this.arg=t),b}},e}function fBt(t,e,n){return e=AP(e),hBt(t,nEe()?Reflect.construct(e,n||[],AP(t).constructor):e.apply(t,n))}function nEe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nEe=function(){return!!t})()}const pBt=function(t){var e,n=t.loader,r=t.isLanguageRegistered,i=t.registerLanguage,s=t.languageLoaders,o=t.noAsyncLoadingLanguages,a=function(l){function c(){return lBt(this,c),fBt(this,c,arguments)}return dBt(c,l),cBt(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var h=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){h.forceUpdate()}),!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var h=this,d=this.props.language;d!=="text"&&c.loadLanguage(d).then(function(){return h.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(h){return c.isSupportedLanguage(h)?h:"text"}},{key:"render",value:function(){return ii.createElement(c.highlightInstance,Dd({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:function(){var u=tEe(Qj().mark(function d(p){var g;return Qj().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(g=s[p],typeof g!="function"){b.next=5;break}return b.abrupt("return",g(c.registerLanguage));case 5:throw new Error("Language ".concat(p," not supported"));case 6:case"end":return b.stop()}},d)}));function h(d){return u.apply(this,arguments)}return h}()},{key:"isSupportedLanguage",value:function(h){return c.isRegistered(h)||typeof s[h]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=n().then(function(h){c.astGenerator=h,i&&c.languages.forEac
vendor: 5,420 bytes, line 1208
1208h(function(d,p){return i(h,p,d)})}),c.astGeneratorPromise}}])}(ii.PureComponent);return e=a,vf(a,"astGenerator",null),vf(a,"highlightInstance",aBt(null,{})),vf(a,"astGeneratorPromise",null),vf(a,"languages",new Map),vf(a,"supportedLanguages",t.supportedLanguages||Object.keys(s||{})),vf(a,"isRegistered",function(l){if(o)return!0;if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");return e.astGenerator?r(e.astGenerator,l):e.languages.has(l)}),vf(a,"registerLanguage",function(l,c){if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");if(e.astGenerator)return i(e.astGenerator,l,c);e.languages.set(l,c)}),a};function Xj(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xj=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(Y,z,U){Y[z]=U.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(Y,z,U){return Object.defineProperty(Y,z,{value:U,enumerable:!0,configurable:!0,writable:!0}),Y[z]}try{c({},"")}catch{c=function(U,G,B){return U[G]=B}}function u(Y,z,U,G){var B=z&&z.prototype instanceof w?z:w,Q=Object.create(B.prototype),ie=new te(G||[]);return i(Q,"_invoke",{value:H(Y,U,ie)}),Q}function h(Y,z,U){try{return{type:"normal",arg:Y.call(z,U)}}catch(G){return{type:"throw",arg:G}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",g="executing",y="completed",b={};function w(){}function S(){}function T(){}var D={};c(D,o,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(re([])));O&&O!==n&&r.call(O,o)&&(D=O);var P=T.prototype=w.prototype=Object.create(D);function $(Y){["next","throw","return"].forEach(function(z){c(Y,z,function(U){return this._invoke(z,U)})})}function W(Y,z){function U(B,Q,ie,q){var fe=h(Y[B],Y,Q);if(fe.type!=="throw"){var ke=fe.arg,Be=ke.value;return Be&&ip(Be)=="object"&&r.call(Be,"__await")?z.resolve(Be.__await).then(function(Qe){U("next",Qe,ie,q)},function(Qe){U("throw",Qe,ie,q)}):z.resolve(Be).then(function(Qe){ke.value=Qe,ie(ke)},function(Qe){return U("throw",Qe,ie,q)})}q(fe.arg)}var G;i(this,"_invoke",{value:function(Q,ie){function q(){return new z(function(fe,ke){U(Q,ie,fe,ke)})}return G=G?G.then(q,q):q()}})}function H(Y,z,U){var G=d;return function(B,Q){if(G===g)throw Error("Generator is already running");if(G===y){if(B==="throw")throw Q;return{value:t,done:!0}}for(U.method=B,U.arg=Q;;){var ie=U.delegate;if(ie){var q=K(ie,U);if(q){if(q===b)continue;return q}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(G===d)throw G=y,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);G=g;var fe=h(Y,z,U);if(fe.type==="normal"){if(G=U.done?y:p,fe.arg===b)continue;return{value:fe.arg,done:U.done}}fe.type==="throw"&&(G=y,U.method="throw",U.arg=fe.arg)}}}function K(Y,z){var U=z.method,G=Y.iterator[U];if(G===t)return z.delegate=null,U==="throw"&&Y.iterator.return&&(z.method="return",z.arg=t,K(Y,z),z.method==="throw")||U!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+U+"' method")),b;var B=h(G,Y.iterator,z.arg);if(B.type==="throw")return z.method="throw",z.arg=B.arg,z.delegate=null,b;var Q=B.arg;return Q?Q.done?(z[Y.resultName]=Q.value,z.next=Y.nextLoc,z.method!=="return"&&(z.method="next",z.arg=t),z.delegate=null,b):Q:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,b)}function Z(Y){var z={tryLoc:Y[0]};1 in Y&&(z.catchLoc=Y[1]),2 in Y&&(z.finallyLoc=Y[2],z.afterLoc=Y[3]),this.tryEntries.push(z)}function oe(Y){var z=Y.completion||{};z.type="normal",delete z.arg,Y.completion=z}function te(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(Z,this),this.reset(!0)}function re(Y){if(Y||Y===""){var z=Y[o];if(z)return z.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var U=-1,G=function B(){for(;++U<Y.length;)if(r.call(Y,U))return B.value=Y[U],B.done=!1,B;return B.value=t,B.done=!0,B};return G.next=G}}throw new TypeError(ip(Y)+" is not iterable")}return S.prototype=T,i(P,"constructor",{value:T,configurable:!0}),i(T,"constructor",{value:S,configurable:!0}),S.displayName=c(T,l,"GeneratorFunction"),e.isGeneratorFunction=function(Y){var z=typeof Y=="function"&&Y.constructor;return!!z&&(z===S||(z.displayName||z.name)==="GeneratorFunction")},e.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,T):(Y.__proto__=T,c(Y,l,"GeneratorFunction")),Y.prototype=Object.create(P),Y},e.awrap=function(Y){return{__await:Y}},$(W.prototype),c(W.prototype,a,function(){return this}),e.AsyncIterator=W,e.async=function(Y,z,U,G,B){B===void 0&&(B=Promise);var Q=new W(u(Y,z,U,G),B);return e.isGeneratorFunction(z)?Q:Q.next().then(function(ie){return ie.done?ie.value:Q.next()})},$(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),e.keys=function(Y){var z=Object(Y),U=[];for(var G in z)U.push(G);return U.reverse(),function B(){for(;U.length;){var Q=U.pop();if(Q in z)return B.value=Q,B.done=!1,B}return B.done=!0,B}},e.values=re,te.prototype={constructor:te,reset:function(z){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
vendor: 5,771 bytes, line 1208
1208h(oe),!z)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=t)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var U=this;function G(ke,Be){return ie.type="throw",ie.arg=z,U.next=ke,Be&&(U.method="next",U.arg=t),!!Be}for(var B=this.tryEntries.length-1;B>=0;--B){var Q=this.tryEntries[B],ie=Q.completion;if(Q.tryLoc==="root")return G("end");if(Q.tryLoc<=this.prev){var q=r.call(Q,"catchLoc"),fe=r.call(Q,"finallyLoc");if(q&&fe){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}else if(q){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0)}else{if(!fe)throw Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}}}},abrupt:function(z,U){for(var G=this.tryEntries.length-1;G>=0;--G){var B=this.tryEntries[G];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var Q=B;break}}Q&&(z==="break"||z==="continue")&&Q.tryLoc<=U&&U<=Q.finallyLoc&&(Q=null);var ie=Q?Q.completion:{};return ie.type=z,ie.arg=U,Q?(this.method="next",this.next=Q.finallyLoc,b):this.complete(ie)},complete:function(z,U){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&U&&(this.next=U),b},finish:function(z){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.finallyLoc===z)return this.complete(G.completion,G.afterLoc),oe(G),b}},catch:function(z){for(var U=this.tryEntries.length-1;U>=0;--U){var G=this.tryEntries[U];if(G.tryLoc===z){var B=G.completion;if(B.type==="throw"){var Q=B.arg;oe(G)}return Q}}throw Error("illegal catch attempt")},delegateYield:function(z,U,G){return this.delegate={iterator:re(z),resultName:U,nextLoc:G},this.method==="next"&&(this.arg=t),b}},e}const Oe=function(t,e){return function(){var n=tEe(Xj().mark(function r(i){var s;return Xj().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e();case 2:s=a.sent,i(t,s.default||s);case 4:case"end":return a.stop()}},r)}));return function(r){return n.apply(this,arguments)}}()},mBt={oneC:Oe("oneC",function(){return ge(()=>import("./1c-B2pJTbM-.js").then(t=>t._),[])}),abnf:Oe("abnf",function(){return ge(()=>import("./abnf-DueLUNKd.js").then(t=>t.a),[])}),accesslog:Oe("accesslog",function(){return ge(()=>import("./accesslog-Cm2M4vsv.js").then(t=>t.a),[])}),actionscript:Oe("actionscript",function(){return ge(()=>import("./actionscript-Dj8Dhgv5.js").then(t=>t.a),[])}),ada:Oe("ada",function(){return ge(()=>import("./ada-BE_KY--L.js").then(t=>t.a),[])}),angelscript:Oe("angelscript",function(){return ge(()=>import("./angelscript-Dmp0bZuX.js").then(t=>t.a),[])}),apache:Oe("apache",function(){return ge(()=>import("./apache-SnPEKhgY.js").then(t=>t.a),[])}),applescript:Oe("applescript",function(){return ge(()=>import("./applescript-DDdbKZMo.js").then(t=>t.a),[])}),arcade:Oe("arcade",function(){return ge(()=>import("./arcade-BxNQOBBk.js").then(t=>t.a),[])}),arduino:Oe("arduino",function(){return ge(()=>import("./arduino-Cc7QWwXw.js").then(t=>t.a),[])}),armasm:Oe("armasm",function(){return ge(()=>import("./armasm-2Jc3ToVJ.js").then(t=>t.a),[])}),asciidoc:Oe("asciidoc",function(){return ge(()=>import("./asciidoc-DFYFtMjo.js").then(t=>t.a),[])}),aspectj:Oe("aspectj",function(){return ge(()=>import("./aspectj-Dom6WotI.js").then(t=>t.a),[])}),autohotkey:Oe("autohotkey",function(){return ge(()=>import("./autohotkey-Qq2483C-.js").then(t=>t.a),[])}),autoit:Oe("autoit",function(){return ge(()=>import("./autoit-CB1iRikO.js").then(t=>t.a),[])}),avrasm:Oe("avrasm",function(){return ge(()=>import("./avrasm-DBj25eGx.js").then(t=>t.a),[])}),awk:Oe("awk",function(){return ge(()=>import("./awk-Y7oyy2V9.js").then(t=>t.a),[])}),axapta:Oe("axapta",function(){return ge(()=>import("./axapta-l1p8rizK.js").then(t=>t.a),[])}),bash:Oe("bash",function(){return ge(()=>import("./bash-DGBInGRJ.js").then(t=>t.b),[])}),basic:Oe("basic",function(){return ge(()=>import("./basic-C1FEKKbh.js").then(t=>t.b),[])}),bnf:Oe("bnf",function(){return ge(()=>import("./bnf-BZmLARI1.js").then(t=>t.b),[])}),brainfuck:Oe("brainfuck",function(){return ge(()=>import("./brainfuck-DiVr2LNI.js").then(t=>t.b),[])}),cLike:Oe("cLike",function(){return ge(()=>import("./c-like-DIuSz4o4.js").then(t=>t.c),[])}),c:Oe("c",function(){return ge(()=>import("./c-B9l0lM3f.js").then(t=>t.c),[])}),cal:Oe("cal",function(){return ge(()=>import("./cal-CzboukUW.js").then(t=>t.c),[])}),capnproto:Oe("capnproto",function(){return ge(()=>import("./capnproto-CBn6npQp.js").then(t=>t.c),[])}),ceylon:Oe("ceylon",function(){return ge(()=>import("./ceylon-B1I22hgM.js").then(t=>t.c),[])}),clean:Oe("clean",function(){return ge(()=>import("./clean-B6OwL3y6.js").then(t=>t.c),[])}),clojureRepl:Oe("clojureRepl",function(){return ge(()=>import("./clojure-repl-D4ZmhlVx.js").then(t=>t.c),[])}),clojure:Oe("clojure",function(){return ge(()=>import("./clojure-qjXG7MDp.js").then(t=>t.c),[])}),cmake:Oe("cmake",function(){return ge(()=>import("./cmake-BL1bNbrb.js").then(t=>t.c),[])}),coffeescript:Oe("coffeescript",function(){return ge(()=>import("./coffeescript-D9ATm2eZ.js").then(t=>t.c),[])}),coq:Oe("coq",function(){return ge(()=>import("./coq-eBiKA-gE.js").then(t=>t.c),[])}),cos:Oe("cos",function(){return ge(()=>import("./cos-DBJ46YJi.js").then(t=>t.c),[])}),cpp:Oe("cpp",function(){return ge(()=>import("./cpp-DatRlyRb.js").then(t=>t.c),[])}),crmsh:Oe("crmsh",function(){return ge(()=>import("./crmsh-xqYU4wQQ.js").then(t=>t.c),[])}),crystal:Oe("crystal",function(){return ge(()=>import("./crystal-DABtu4eL.js").then(t=>t.c),[])}
1208),csharp:Oe("csharp",function(){return ge(()=>import("./csharp-D4n8_Sg0.js").then(t=>t.c),[])}),csp:Oe("csp",function(){return ge(()=>import("./csp-vP_Honz0.js").then(t=>t.c),[])}),css:Oe("css",function(){return ge(()=>import("./css-CmRWuuSE.js").then(t=>t.c),[])}),d:Oe("d",function(){return ge(()=>import("./d-C44k9sPu.js").then(t=>t.d),[])}),dart:Oe("dart",function(){return ge(()=>import("./dart-Ccc459WL.js").then(t=>t.d),[])}),delphi:Oe("delphi",function(){return ge(()=>import("./delphi-5WPKXeiZ.js").then(t=>t.d),[])}),diff:Oe("diff",function(){return ge(()=>import("./diff-gGYE4229.js").then(t=>t.d),[])}),django:Oe("django",function(){return ge(()=>import("./django-Nly3Rttu.js").then(t=>t.d),[])}),dns:Oe("dns",function(){return ge(()=>import("./dns-DrBCxIs9.js").then(t=>t.d),[])}),dockerfile:Oe("dockerfile",function(){return ge(()=>import("./dockerfile-DpzbFdUl.js").then(t=>t.d),[])}),dos:Oe("dos",function(){return ge(()=>import("./dos-ByBdGp4T.js").then(t=>t.d),[])}),dsconfig:Oe("dsconfig",function(){return ge(()=>import("./dsconfig-B2D3BBD4.js").then(t=>t.d),[])}),dts:Oe("dts",function(){return ge(()=>import("./dts-CH39kCuN.js").then(t=>t.d),[])}),dust:Oe("dust",function(){return ge(()=>import("./dust-DxdcNieq.js").then(t=>t.d),[])}),ebnf:Oe("ebnf",function(){return ge(()=>import("./ebnf-tSnDJ9QH.js").then(t=>t.e),[])}),elixir:Oe("elixir",function(){return ge(()=>import("./elixir-yJy1PSO5.js").then(t=>t.e),[])}),elm:Oe("elm",function(){return ge(()=>import("./elm-BtkiquE3.js").then(t=>t.e),[])}),erb:Oe("erb",function(){return ge(()=>import("./erb-BlQ4kqLQ.js").then(t=>t.e),[])}),erlangRepl:Oe("erlangRepl",function(){return ge(()=>import("./erlang-repl-ulkXxXNG.js").then(t=>t.e),[])}),erlang:Oe("erlang",function(){return ge(()=>import("./erlang-UwsQGiZM.js").then(t=>t.e),[])}),excel:Oe("excel",function(){return ge(()=>import("./excel-O4O8M3dB.js").then(t=>t.e),[])}),fix:Oe("fix",function(){return ge(()=>import("./fix-DzE4SFzK.js").then(t=>t.f),[])}),flix:Oe("flix",function(){return ge(()=>import("./flix-BrX4xFuI.js").then(t=>t.f),[])}),fortran:Oe("fortran",function(){return ge(()=>import("./fortran-D1H9QHi3.js").then(t=>t.f),[])}),fsharp:Oe("fsharp",function(){return ge(()=>import("./fsharp-CSogCHj3.js").then(t=>t.f),[])}),gams:Oe("gams",function(){return ge(()=>import("./gams-CIlurgYi.js").then(t=>t.g),[])}),gauss:Oe("gauss",function(){return ge(()=>import("./gauss-BstJI_c8.js").then(t=>t.g),[])}),gcode:Oe("gcode",function(){return ge(()=>import("./gcode-CaqFI3gT.js").then(t=>t.g),[])}),gherkin:Oe("gherkin",function(){return ge(()=>import("./gherkin-DjNJs3W0.js").then(t=>t.g),[])}),glsl:Oe("glsl",function(){return ge(()=>import("./glsl-BaQvPyRM.js").then(t=>t.g),[])}),gml:Oe("gml",function(){return ge(()=>import("./gml-Dtx4f5uk.js").then(t=>t.g),[])}),go:Oe("go",function(){return ge(()=>import("./go-D08YPvkY.js").then(t=>t.g),[])}),golo:Oe("golo",function(){return ge(()=>import("./golo-CYKHPKoe.js").then(t=>t.g),[])}),gradle:Oe("gradle",function(){return ge(()=>import("./gradle-B4Jca2yS.js").then(t=>t.g),[])}),groovy:Oe("groovy",function(){return ge(()=>import("./groovy-Ct2pRDrB.js").then(t=>t.g),[])}),haml:Oe("haml",function(){return ge(()=>import("./haml-nbjx4FWX.js").then(t=>t.h),[])}),handlebars:Oe("handlebars",function(){return ge(()=>import("./handlebars-D7d7BBnG.js").then(t=>t.h),[])}),haskell:Oe("haskell",function(){return ge(()=>import("./haskell-CaXayJDW.js").then(t=>t.h),[])}),haxe:Oe("haxe",function(){return ge(()=>import("./haxe-BGPh45yi.js").then(t=>t.h),[])}),hsp:Oe("hsp",function(){return ge(()=>import("./hsp-C2toDhb7.js").then(t=>t.h),[])}),htmlbars:Oe("htmlbars",function(){return ge(()=>import("./htmlbars-CMidga5L.js").then(t=>t.h),[])}),http:Oe("http",function(){return ge(()=>import("./http-DEYzWdBE.js").then(t=>t.h),[])}),hy:Oe("hy",function(){return ge(()=>import("./hy-DyJ4ut9V.js").then(t=>t.h),[])}),inform7:Oe("inform7",function(){return ge(()=>import("./inform7-r02Qeor7.js").then(t=>t.i),[])}),ini:Oe("ini",function(){return ge(()=>import("./ini-DLijE0g3.js").then(t=>t.i),[])}),irpf90:Oe("irpf90",function(){return ge(()=>import("./irpf90-BXEq3-nI.js").then(t=>t.i),[])}),isbl:Oe("isbl",function(){return ge(()=>import("./isbl-CZgI9nx9.js").then(t=>t.i),[])}),java:Oe("java",function(){return ge(()=>import("./java-hOtSqjmz.js").then(t=>t.j),[])}),javascript:Oe("javascript",function(){return ge(()=>import("./javascript-Cm9Yp3yo.js").then(t=>t.j),[])}),jbossCli:Oe("jbossCli",function(){return ge(()=>import("./jboss-cli-BhFnfZzu.js").then(t=>t.j),[])}),json:Oe("json",function(){return ge(()=>import("./json-CZBHMU8K.js").then(t=>t.j),[])}),juliaRepl:Oe("juliaRepl",function(){return ge(()=>import("./julia-repl-cvzC6Y1a.js").then(t=>t.j),[])}),julia:Oe("julia",function(){return ge(()=>import("./julia-C8mqM2fR.js").then(t=>t.j),[])}),kotlin:Oe("kotlin",function(){return ge(()=>import("./kotlin-BP25cN_7.js").then(t=>t.k),[])}),lasso:Oe("lasso",function(){return ge(()=>import("./lasso-DAbMgHn-.js").then(t=>t.l),[])}),latex:Oe("latex",function(){return ge(()=>import("./latex-xc9_b1Wn.js").then(t=>t.l),[])}),ldif:Oe("ldif",function(){return ge(()=>import("./ldif-DbEjmw-9.js").then(t=>t.l),[])}),leaf:Oe("leaf",function(){return ge(()=>import("./leaf-DZOseoHU.js").then(t=>t.l),[])}),less:Oe("less",function(){return ge(()=>import("./less-BQaF267o.js").then(t=>t.l),[])}),lisp:Oe("lisp",function(){return ge(()=>import("./lisp-AkAmvOU7.js").then(t=>t.l),[])}
1208),livecodeserver:Oe("livecodeserver",function(){return ge(()=>import("./livecodeserver-CLjkvy4g.js").then(t=>t.l),[])}),livescript:Oe("livescript",function(){return ge(()=>import("./livescript-BRjJZ8bI.js").then(t=>t.l),[])}),llvm:Oe("llvm",function(){return ge(()=>import("./llvm-TnXblJFY.js").then(t=>t.l),[])}),lsl:Oe("lsl",function(){return ge(()=>import("./lsl-CKC-n4Li.js").then(t=>t.l),[])}),lua:Oe("lua",function(){return ge(()=>import("./lua-BH50HkLv.js").then(t=>t.l),[])}),makefile:Oe("makefile",function(){return ge(()=>import("./makefile-PO_4u_oO.js").then(t=>t.m),[])}),markdown:Oe("markdown",function(){return ge(()=>import("./markdown-BJLjEEy0.js").then(t=>t.m),[])}),mathematica:Oe("mathematica",function(){return ge(()=>import("./mathematica-UXjsnczo.js").then(t=>t.m),[])}),matlab:Oe("matlab",function(){return ge(()=>import("./matlab-CKJndk-6.js").then(t=>t.m),[])}),maxima:Oe("maxima",function(){return ge(()=>import("./maxima-CzlDu1Iv.js").then(t=>t.m),[])}),mel:Oe("mel",function(){return ge(()=>import("./mel-C-Y5dIoB.js").then(t=>t.m),[])}),mercury:Oe("mercury",function(){return ge(()=>import("./mercury-BRXdD0CK.js").then(t=>t.m),[])}),mipsasm:Oe("mipsasm",function(){return ge(()=>import("./mipsasm-CWNYyZiL.js").then(t=>t.m),[])}),mizar:Oe("mizar",function(){return ge(()=>
1208import("./mizar-uK69Cqiu.js").then(t=>t.m),[])}),mojolicious:Oe("mojolicious",function(){return ge(()=>import("./mojolicious-C5XUkyLu.js").then(t=>t.m),[])}),monkey:Oe("monkey",function(){return ge(()=>import("./monkey-DTSpjBnq.js").then(t=>t.m),[])}),moonscript:Oe("moonscript",function(){return ge(()=>import("./moonscript-DTfszf7r.js").then(t=>t.m),[])}),n1ql:Oe("n1ql",function(){return ge(()=>import("./n1ql-D5uI3_UV.js").then(t=>t.n),[])}),nginx:Oe("nginx",function(){return ge(()=>import("./nginx-tYkwowr9.js").then(t=>t.n),[])}),nim:Oe("nim",function(){return ge(()=>import("./nim-BvQe-oFX.js").then(t=>t.n),[])}),nix:Oe("nix",function(){return ge(()=>import("./nix-Bkg-7Smz.js").then(t=>t.n),[])}),nodeRepl:Oe("nodeRepl",function(){return ge(()=>import("./node-repl-DcBQuHeD.js").then(t=>t.n),[])}),nsis:Oe("nsis",function(){return ge(()=>import("./nsis-gTjjXiOe.js").then(t=>t.n),[])}),objectivec:Oe("objectivec",function(){return ge(()=>import("./objectivec-BSzrS1VD.js").then(t=>t.o),[])}),ocaml:Oe("ocaml",function(){return ge(()=>import("./ocaml-CNah_VQj.js").then(t=>t.o),[])}),openscad:Oe("openscad",function(){return ge(()=>import("./openscad-DUjIEWxD.js").then(t=>t.o),[])}),oxygene:Oe("oxygene",function(){return ge(()=>import("./oxygene-ishVYxvt.js").then(t=>t.o),[])}),parser3:Oe("parser3",function(){return ge(()=>import("./parser3-CqBWD6BT.js").then(t=>t.p),[])}),perl:Oe("perl",function(){return ge(()=>import("./perl-9R3nY496.js").then(t=>t.p),[])}),pf:Oe("pf",function(){return ge(()=>import("./pf-vab1Ns0Y.js").then(t=>t.p),[])}),pgsql:Oe("pgsql",function(){return ge(()=>import("./pgsql-B7Y4lrct.js").then(t=>t.p),[])}),phpTemplate:Oe("phpTemplate",function(){return ge(()=>import("./php-template-VPVdM30l.js").then(t=>t.p),[])}),php:Oe("php",function(){return ge(()=>import("./php-DPEJo7mz.js").then(t=>t.p),[])}),plaintext:Oe("plaintext",function(){return ge(()=>import("./plaintext-D9IEHDpM.js").then(t=>t.p),[])}),pony:Oe("pony",function(){return ge(()=>import("./pony-MeuEpWSW.js").then(t=>t.p),[])}),powershell:Oe("powershell",function(){return ge(()=>import("./powershell-bWq6pKDH.js").then(t=>t.p),[])}),processing:Oe("processing",function(){return ge(()=>import("./processing-DMpq-FNP.js").then(t=>t.p),[])}),profile:Oe("profile",function(){return ge(()=>import("./profile-BonsLoPv.js").then(t=>t.p),[])}),prolog:Oe("prolog",function(){return ge(()=>import("./prolog-M80_hwyQ.js").then(t=>t.p),[])}),properties:Oe("properties",function(){return ge(()=>import("./properties-Cl_c9TKW.js").then(t=>t.p),[])}),protobuf:Oe("protobuf",function(){return ge(()=>import("./protobuf-BH6UV109.js").then(t=>t.p),[])}),puppet:Oe("puppet",function(){return ge(()=>import("./puppet-BDaT_zqM.js").then(t=>t.p),[])}),purebasic:Oe("purebasic",function(){return ge(()=>import("./purebasic-Do_OVfMk.js").then(t=>t.p),[])}),pythonRepl:Oe("pythonRepl",function(){return ge(()=>import("./python-repl-8bs6PPJq.js").then(t=>t.p),[])}),python:Oe("python",function(){return ge(()=>import("./python-B4gEPkFf.js").then(t=>t.p),[])}),q:Oe("q",function(){return ge(()=>import("./q-Bcob0DkV.js").then(t=>t.q),[])}),qml:Oe("qml",function(){return ge(()=>import("./qml-CkcP3dwa.js").then(t=>t.q),[])}),r:Oe("r",function(){return ge(()=>import("./r-es6T8TsX.js").then(t=>t.r),[])}),reasonml:Oe("reasonml",function(){return ge(()=>import("./reasonml-C--UQ80P.js").then(t=>t.r),[])}),rib:Oe("rib",function(){return ge(()=>import("./rib-C7PlxuDA.js").then(t=>t.r),[])}),roboconf:Oe("roboconf",function(){return ge(()=>import("./roboconf-BiHgH96E.js").then(t=>t.r),[])}),routeros:Oe("routeros",function(){return ge(()=>import("./routeros-DTTCh12p.js").then(t=>t.r),[])}),rsl:Oe("rsl",function(){return ge(()=>import("./rsl-D42qnOQg.js").then(t=>t.r),[])}),ruby:Oe("ruby",function(){return ge(()=>import("./ruby-BvDSIzWW.js").then(t=>t.r),[])}),ruleslanguage:Oe("ruleslanguage",function(){return ge(()=>import("./ruleslanguage-BM6JlWus.js").then(t=>t.r),[])}),rust:Oe("rust",function(){return ge(()=>import("./rust-D8fVjAwM.js").then(t=>t.r),[])}),sas:Oe("sas",function(){return ge(()=>import("./sas-DlEeQiAl.js").then(t=>t.s),[])}),scala:Oe("scala",function(){return ge(()=>import("./scala-BVTGCnEE.js").then(t=>t.s),[])}),scheme:Oe("scheme",function(){return ge(()=>import("./scheme-DkC4jcr2.js").then(t=>t.s),[])}),scilab:Oe("scilab",function(){return ge(()=>import("./scilab-B5HDOJrL.js").then(t=>t.s),[])}),scss:Oe("scss",function(){return ge(()=>import("./scss-CwLfborI.js").then(t=>t.s),[])}),shell:Oe("shell",function(){return ge(()=>import("./shell-RYlkkjYG.js").then(t=>t.s),[])}),smali:Oe("smali",function(){return ge(()=>import("./smali-BurXgTQj.js").then(t=>t.s),[])}),smalltalk:Oe("smalltalk",function(){return ge(()=>import("./smalltalk-BUnnIIuv.js").then(t=>t.s),[])}),sml:Oe("sml",function(){return ge(()=>import("./sml-CUKOwH-o.js").then(t=>t.s),[])}),sqf:Oe("sqf",function(){return ge(()=>import("./sqf-CCwwZeTZ.js").then(t=>t.s),[])}),sql:Oe("sql",function(){return ge(()=>import("./sql-ABTTWY64.js").then(t=>t.s),[])}),sqlMore:Oe("sqlMore",function(){return ge(()=>import("./sql_more-CQOiH2-i.js").then(t=>t.s),[])}),stan:Oe("stan",function(){return ge(()=>import("./stan-rNYCM6yO.js").then(t=>t.s),[])}),stata:Oe("stata",function(){return ge(()=>import("./stata-BUV6GyI4.js").then(t=>t.s),[])}),step21:Oe("step21",function(){return ge(()=>import("./step21-sOEo8pyG.js").then(t=>t.s),[])}),stylus:Oe("stylus",function(){return ge(()=>import("./stylus-DZV7ryuA.js").then(t=>t.s),[])}),subunit:Oe("subunit",function(){return ge(()=>import("./subunit-DFQ3dpo_.js").then(t=>t.s),[])}),swift:Oe("swift",function(){return ge(()=>import("./swift-Ejuy9Ro_.js").then(t=>t.s),[])}),taggerscript:Oe("taggerscript",function(){return ge(()=>import("./taggerscript-JH-IsJVb.js").then(t=>t.t),[])}),tap:Oe("tap",function(){return ge(()=>import("./tap-Bf0X6C44.js").then(t=>t.t),[])}),tcl:Oe("tcl",function(){return ge(()=>import("./tcl-BRmCXolz.js").then(t=>t.t),[])}),thrift:Oe("thrift",function(){return ge(()=>import("./thrift-DqieQBl_.js").then(t=>t.t),[])}),tp:Oe("tp",function(){return ge(()=>import("./tp-DZN6PMw4.js").then(t=>t.t),[])}),twig:Oe("twig",function(){return ge(()=>import("./twig-CHSOQ-9P.js").then(t=>t.t),[])}),typescript:Oe("typescript",function(){return ge(()=>import("./typescript-D8slNneG.js").then(t=>t.t),[])}),vala:Oe("vala",function(){return ge(()=>import("./vala-XmbOU3Kd.js").then(t=>t.v),[])}),vbnet:Oe("vbnet",function(){return ge(()=>
1208import("./vbnet-B9peKQXO.js").then(t=>t.v),[])}),vbscriptHtml:Oe("vbscriptHtml",function(){return ge(()=>import("./vbscript-html-09xl5YHI.js").then(t=>t.v),[])}),vbscript:Oe("vbscript",function(){return ge(()=>import("./vbscript-_2OImwfB.js").then(t=>t.v),[])}),verilog:Oe("verilog",function(){return ge(()=>import("./verilog-D19u_Hou.js").then(t=>t.v),[])}),vhdl:Oe("vhdl",function(){return ge(()=>import("./vhdl-BPji-k9v.js").then(t=>t.v),[])}),vim:Oe("vim",function(){return ge(()=>import("./vim-CEjQ2t-Z.js").then(t=>t.v),[])}),x86asm:Oe("x86asm",function(){return ge(()=>import("./x86asm-DTQw1pie.js").then(t=>t.x),[])}),xl:Oe("xl",function(){return ge(()=>import("./xl-CFmlnLqu.js").then(t=>t.x),[])}),xml:Oe("xml",function(){return ge(()=>import("./xml-CFZH0VQM.js").then(t=>t.x),[])}),xquery:Oe("xquery",function(){return ge(()=>import("./xquery-BSYRb7x9.js").then(t=>t.x),[])}),yaml:Oe("yaml",function(){return ge(()=>import("./yaml-1htgeN2g.js").then(t=>t.y),[])}),zephir:Oe("zephir",function(){return ge(()=>import("./zephir-5_OGFZUZ.js").then(t=>t.z),[])})},gBt=pBt({loader:function(){return ge(()=>import("./core-3eoWgpL_.js").then(e=>e.c),[]).then(function(e){return e.default||e})},isLanguageRegistered:function(e,n){return!!Q5e(e,n)},languageLoaders:mBt,registerLanguage:function(e,n,r){return e.registerLanguage(n,r)}}),yBt={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#abb2bf",background:"#282c34"},"hljs-comment":{color:"#5c6370",fontStyle:"italic"},"hljs-quote":{color:"#5c6370",fontStyle:"italic"},"hljs-doctag":{color:"#c678dd"},"hljs-keyword":{color:"#c678dd"},"hljs-formula":{color:"#c678dd"},"hljs-section":{color:"#e06c75"},"hljs-name":{color:"#e06c75"},"hljs-selector-tag":{color:"#e06c75"},"hljs-deletion":{color:"#e06c75"},"hljs-subst":{color:"#e06c75"},"hljs-literal":{color:"#56b6c2"},"hljs-string":{color:"#98c379"},"hljs-regexp":{color:"#98c379"},"hljs-addition":{color:"#98c379"},"hljs-attribute":{color:"#98c379"},"hljs-meta-string":{color:"#98c379"},"hljs-built_in":{color:"#e6c07b"},"hljs-class .hljs-title":{color:"#e6c07b"},"hljs-attr":{color:"#d19a66"},"hljs-variable":{color:"#d19a66"},"hljs-template-variable":{color:"#d19a66"},"hljs-type":{color:"#d19a66"},"hljs-selector-class":{color:"#d19a66"},"hljs-selector-attr":{color:"#d19a66"},"hljs-selector-pseudo":{color:"#d19a66"},"hljs-number":{color:"#d19a66"},"hljs-symbol":{color:"#61aeee"},"hljs-bullet":{color:"#61aeee"},"hljs-link":{color:"#61aeee",textDecoration:"underline"},"hljs-meta":{color:"#61aeee"},"hljs-selector-id":{color:"#61aeee"},"hljs-title":{color:"#61aeee"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},bBt={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#383a42",background:"#fafafa"},"hljs-comment":{color:"#a0a1a7",fontStyle:"italic"},"hljs-quote":{color:"#a0a1a7",fontStyle:"italic"},"hljs-doctag":{color:"#a626a4"},"hljs-keyword":{color:"#a626a4"},"hljs-formula":{color:"#a626a4"},"hljs-section":{color:"#e45649"},"hljs-name":{color:"#e45649"},"hljs-selector-tag":{color:"#e45649"},"hljs-deletion":{color:"#e45649"},"hljs-subst":{color:"#e45649"},"hljs-literal":{color:"#0184bb"},"hljs-string":{color:"#50a14f"},"hljs-regexp":{color:"#50a14f"},"hljs-addition":{color:"#50a14f"},"hljs-attribute":{color:"#50a14f"},"hljs-meta-string":{color:"#50a14f"},"hljs-built_in":{color:"#c18401"},"hljs-class .hljs-title":{color:"#c18401"},"hljs-attr":{color:"#986801"},"hljs-variable":{color:"#986801"},"hljs-template-variable":{color:"#986801"},"hljs-type":{color:"#986801"},"hljs-selector-class":{color:"#986801"},"hljs-selector-attr":{color:"#986801"},"hljs-selector-pseudo":{color:"#986801"},"hljs-number":{color:"#986801"},"hljs-symbol":{color:"#4078f2"},"hljs-bullet":{color:"#4078f2"},"hljs-link":{color:"#4078f2",textDecoration:"underline"},"hljs-meta":{color:"#4078f2"},"hljs-selector-id":{color:"#4078f2"},"hljs-title":{color:"#4078f2"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},vBt=_.lazy(()=>ge(()=>import("./index.es-BelR6n24.js"),[])),xBt=t=>URL.createObjectURL(new Blob([t],{type:"text/html"})),wBt=({children:t,isLoading:e=!1})=>{const n=_.useMemo(()=>
1208{if(e)return"about:blank";const i=new DOMParser().parseFromString(String(t),"text/html"),s=document.createElement("script");s.src=new URL("/js/iframeResizer.contentWindow.min.js",import.meta.url).href,i.body.appendChild(s);const o=`<!DOCTYPE html>${i.documentElement.innerHTML}`;return xBt(o)},[t,e]);return x.jsxs(l1,{variant:"outline",position:"relative",mt:2,minHeight:"12em",resize:"vertical",children:[x.jsx(Br,{position:"absolute",right:1,top:1,zIndex:50,as:"a",href:n,target:"_blank",rel:"noopener noreferrer","aria-label":"Open HTML Preview in New Window",title:"Open HTML Preview in New Window",icon:x.jsx(Cye,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost"}),x.jsx(c1,{mt:10,p:2,children:x.jsx(vBt,{checkOrigin:!1,src:n,style:{width:"1px",minWidth:"100%"},heightCalculationMethod:"max"})})]})},SBt=_.memo(wBt),kBt=({children:t})=>{const{onCopy:e,value:n,setValue:r}=BP(""),{info:i}=Eo(),s=_.useRef(null),o=String(t),a=_.useCallback(()=>{e(),i({title:"Copied to Clipboard",message:"Mermaid SVG diagram was copied to your clipboard."})},[e,i]);return _.useEffect(()=>{const l=s.current;if(!l)return;const c=`mermaid-diagram-${f1().toLowerCase()}`;vCe.render(c,o,l).then(({svg:u,bindFunctions:h})=>{r(u),l.innerHTML=u,h?.(l)}).catch(u=>{r(u),console.warn(`Error rendering mermaid diagram ${c}`,u)})},[s,o,r]),x.jsxs(l1,{variant:"outline",position:"relative",mt:2,minHeight:"12em",resize:"vertical",children:[x.jsx(Br,{position:"absolute",right:1,top:1,zIndex:50,"aria-label":"Copy Diagram to Clipboard",title:"Copy Diagram to Clipboard",icon:x.jsx(y_,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost",onClick:()=>a(),isDisabled:!n}),x.jsx(c1,{p:2,children:x.jsx("div",{ref:s})})]})},CBt=_.memo(kBt),_Bt=({children:t})=>{const{onCopy:e,value:n,setValue:r}=BP(""),{info:i}=Eo(),s=_.useRef(null),o=String(t),a=_.useCallback(()=>{e(),i({title:"Copied to Clipboard",message:"Nomnoml SVG diagram was copied to your clipboard."})},[e,i]);return _.useEffect(()=>{const l=s.current;if(!l)return;(async()=>{try{const h=await(await ge(()=>import("./nomnoml-Bm0Spa0_.js").then(p=>p.n),[])).renderSvg(o);r(h),l.innerHTML=h;const d=l.querySelector("svg");d&&(d.style.width="100%")}catch(u){r(u);const h="Error rendering Nomnoml diagram";l.innerHTML=h,console.warn("Error rendering nomnoml diagram",u)}})()},[s,o,r]),x.jsxs(l1,{variant:"outline",position:"relative",mt:2,minHeight:"12em",resize:"vertical",children:[x.jsx(Br,{position:"absolute",right:1,top:1,zIndex:50,"aria-label":"Copy Diagram to Clipboard",title:"Copy Diagram to Clipboard",icon:x.jsx(y_,{}),color:"gray.600",_dark:{color:"gray.300"},variant:"ghost",onClick:()=>a(),isDisabled:!n}),x.jsx(c1,{p:2,children:x.jsx("div",{ref:s})})]})},TBt=_.memo(_Bt),EBt=t=>{if(!t)return"text";switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"yml":return"yaml";case"objective":case"objective-c":return"objectivec";case"asm":case"assembly":return"armasm";case"sh":case"shell":return"bash";case"html":return"xml";default:return t}};function ABt({previewCode:t,isLoading:e,onPrompt:n,children:r,className:i="message-text"}){const s=ws(bBt,yBt);return x.jsx(yPt,{className:i,children:r,remarkPlugins:[PIt,[RDt,{singleDollarTextMath:!1}]],rehypePlugins:[DLt,HLt,[qDt,{target:"_blank"}],bMt],components:{code({className:o,children:a,...l}){const c=/language-{?(\w+)/.exec(o||""),u=String(a);if(!c&&!u.includes(` 1209`))return x.jsx("code",{className:"inline-code",...l,children:a});const h=c?c[1]:"text";let d=null;return(t===void 0||t===!0)&&(h==="html"?d=x.jsx(SBt,{children:Array.isArray(a)?a:[a],isLoading:e}):h==="mermaid"?d=x.jsx(CBt,{children:Array.isArray(a)?a:[a]}):h==="nomnoml"&&(d=x.jsx(TBt,{children:Array.isArray(a)?a:[a]}))),x.jsxs(x.Fragment,{children:[x.jsx(Sn,{fontSize:"0.9em",border:"1px",borderRadius:"5px",borderColor:"gray.200",bg:"gray.50",_dark:{bg:"gray.800",borderColor:"gray.600"},pb:1,children:x.jsx(gBt,{children:u,language:EBt(h),PreTag:p=>x.jsx(cxe,{...p,code:u,language:h,isLoading:e,onPrompt:n}),style:s,showLineNumbers:!0,showInlineLineNumbers:!0,wrapLines:!0,lineNumberStyle:{WebkitUserSelect:"none"},lineProps:{style:{display:"block"}}})}),d]})}}})}const PBt=_.memo(ABt);function OBt({onItemSelect:t}){const{settings:e,setSettings:n}=Ks(),{models:r}=pm(),[i,s]=_.useState(""),[o,a]=_.useState(""),{isTextToSpeechSupported:l}=x_(),{clearAudioQueue:c}=b1(),{providers:u}=v_();return Zye(()=>a(i),250,[i]),x.jsxs(x.Fragment,{children:[x.jsx(mP,{children:"Providers"}),x.jsx(gP,{title:"AI Providers",children:Object.entries(u).map(([h,d])=>
1209x.jsxs(os,{style:{paddingInline:"16px"},onClick:p=>{p.stopPropagation=!0,p.keepOpen=!0,n({...e,currentProvider:d})},children:[e.currentProvider.name===h?x.jsx(r7,{style:{marginRight:"0.6rem"}}):x.jsx("span",{style:{width:"1.6rem",display:"inline-block"}}),h]},h))}),x.jsx(mP,{children:"Models"}),x.jsxs(gP,{title:"Models",children:[x.jsx("div",{style:{maxHeight:"40dvh",overflowY:"auto"},children:r.filter(h=>Pme(h.id)).filter(h=>h.name.toLowerCase().includes(o.toLowerCase())).map(h=>x.jsxs(os,{onClick:()=>{t(h.id)},style:{paddingInline:"16px"},children:[e.model.id===h.id?x.jsx(r7,{style:{marginRight:"0.6rem"}}):x.jsx("span",{style:{paddingLeft:"1.6rem",display:"inline-block"}}),h.name]},h.id))}),x.jsx("div",{style:{paddingLeft:"0.75rem"},children:x.jsxs(Kf,{marginTop:2,children:[x.jsx(sO,{paddingLeft:3,pointerEvents:"none",children:x.jsx(YO,{})}),x.jsx(fl,{marginInline:2,marginBottom:1,type:"text",variant:"outline",placeholder:"Search models...",value:i,onChange:h=>{h.preventDefault(),s(h.target.value)}})]})})]}),l&&x.jsxs(x.Fragment,{children:[x.jsx(H0,{}),x.jsx(os,{icon:e.textToSpeech.announceMessages?x.jsx(QV,{style:{fontSize:"1.25rem"}}):x.jsx(Qye,{style:{fontSize:"1.25rem"}}),onClick:()=>{e.textToSpeech.announceMessages&&c(),n({...e,textToSpeech:{...e.textToSpeech,announceMessages:!e.textToSpeech.announceMessages}})},children:e.textToSpeech.announceMessages?"Text-to-Speech Enabled":"Text-to-Speech Disabled"})]})]})}function IBt({onItemSelect:t}){const{settings:e,setSettings:n}=Ks(),{models:r}=pm(),[i,s]=_.useState(""),[o,a]=_.useState(""),{providers:l}=v_();return Zye(()=>a(i),250,[i]),x.jsxs(x.Fragment,{children:[x.jsx(mP,{style:{textTransform:"none",fontWeight:"bold",fontSize:"0.9rem"},children:"Providers"}),x.jsx(gP,{title:"AI Providers",children:Object.entries(l).map(([c,u])=>x.jsxs(os,{style:{paddingInline:"16px"},onClick:h=>{h.stopPropagation=!0,h.keepOpen=!0,n({...e,currentProvider:u})},children:[e.currentProvider.name===c?x.jsx(r7,{style:{marginRight:"0.6rem"}}):x.jsx("span",{style:{width:"1.6rem",display:"inline-block"}}),c]},c))}),x.jsx(H0,{}),x.jsx(mP,{style:{textTransform:"none",fontWeight:"bold",fontSize:"0.90rem"},children:"Models"}),x.jsxs(gP,{title:"Models",children:[x.jsxs(Kf,{children:[x.jsx(sO,{paddingLeft:3,pointerEvents:"none",children:x.jsx(YO,{})}),x.jsx(fl,{marginInline:2,marginBottom:1,type:"text",variant:"outline",placeholder:"Search models...",value:i,onChange:c=>s(c.target.value)})]}),x.jsx("div",{style:{height:"40dvh",width:"60dvh",maxWidth:"27.5rem",overflowY:"auto"},children:r.filter(c=>Pme(c.id)).filter(c=>c.name.toLowerCase().includes(o.toLowerCase())).map(c=>x.jsxs(os,{onClick:()=>{t(c.id)},children:[e.model.id===c.id?x.jsx(r7,{style:{marginRight:"0.6rem"}}):x.jsx("span",{style:{width:"1.6rem",display:"inline-block"}}),c.name]},c.id))})]})]})}function NG(t){return gp()?x.jsx(OBt,{...t}):x.jsx(IBt,{...t})}function DBt({message:t,chatId:e,editing:n,onEditingChange:r,summaryText:i,heading:s,headingMenu:o,avatar:a,footer:l,isLoading:c,hidePreviews:u,onResubmitClick:h,onDeleteBeforeClick:d,onDeleteClick:p,onDeleteAfterClick:g,onPrompt:y,onRetryClick:b,hasMessagesAfter:w,disableFork:S,disableEdit:T}){const[,D]=JV(),{id:E,date:O,text:P,imageUrls:$}=t,{models:W}=pm(),{onCopy:H}=BP(P),{info:K,error:Z,progress:oe,closeToast:te}=Eo(),[re,Y]=_.useState(!1),{settings:z}=Ks(),[U,G]=_.useState(null),B=gp(),Q=_.useRef(null),ie=_.useRef(null),q=_.useMemo(wme,[]),[fe,ke]=_.useState(!1),[Be,Qe]=_.useState(""),{isOpen:ft,onToggle:Ne}=Id(),{clearAudioQueue:rt,addToAudioQueue:Mt}=b1(),{isTextToSpeechSupported:it,textToSpeech:Rt}=x_(),xt=t instanceof Fc,Nn=P.length>5e3||xt&&i&&P.length>i.length,Hn=(ie.current?.offsetHeight??0)>window.innerHeight*1.1,$n=!ft&&(i||Nn),Wn=!!(d||p||g)&&!T,{chat:nr}=lxe(),{user:Cn}=Lw(),Nr=_.useCallback(async()=>{if(!Cn){Z({title:"Failed to Share Message",message:"Can't share message because user is not logged in"});return}if(!nr){console.error("Chat not found");return}try{const{url:Zt}=await nr.shareSingleMessage(Cn,t.id);K({title:"Message Shared Successfully",message:"URL has been copied to clipboard"}),D(Zt)}catch(Zt){console.error(Zt),Z({title:"Failed to Share Message",message:"An error occurred while trying to share the message."})}},[t.id,Cn,nr,K,Z,D]),ki=()=>{_.startTransition(()=>{Ne()})};_.useEffect(()=>
1209{z.countTokens&&t.tokens().then(G).catch(console.warn)},[z.countTokens,t]),_.useEffect(()=>{!w&&!ft&&!(t instanceof Fc)&&ki()},[w]);const yr=_.useCallback(()=>{H(),K({title:"Copied to Clipboard",message:"Message text was copied to your clipboard."})},[H,K]),mt=_.useCallback(()=>{xd(P,"message.md","text/markdown"),K({title:"Downloaded",message:"Message was downloaded as a Markdown file"})},[K,P]),zt=_.useCallback(()=>{const Zt=ie.current;if(Zt)try{lXe(Zt).then(lt=>{xd(lt,"message.png","image/png"),K({title:"Downloaded",message:"Message was downloaded as an image file"})})}catch(lt){console.warn("Unable to download image",lt),Z({title:"Error Saving Message as Image",message:lt.message})}},[ie,K,Z]),ze=_.useCallback(()=>{if(ie.current){const Zt=ie.current.textContent;Zt&&(xd(Zt,"message.txt","text/plain"),K({title:"Downloaded",message:"Message was downloaded as text file"}))}},[ie,K]),tt=_.useCallback(async()=>{if(ie.current){const Zt=ie.current.textContent;if(Zt){let lt=!1;const Hr=()=>{ut.clearQueue(),lt=!0},Un=oe({title:"Downloading...",message:"Please wait while we prepare your audio download.",progressPercentage:0,handleClose:Hr}),xn=(await ge(async()=>{const{default:kr}=await import("./index-gb2MmW9d.js");return{default:kr}},[])).default,ut=xn(8);try{const kr=pF(Zt,500),di=kr.length,Kr=new Array(di);let Ao=0;const{backOff:oi}=await ge(async()=>{const{backOff:is}=await import("./backoff-i_7S-DGA.js").then(Ii=>Ii.b);return{backOff:is}},[]),Po=kr.map((is,Ii)=>ut(async()=>{await oi(async()=>{const Oo=await Rt(is,z.textToSpeech.voice,"tts-1-hd"),xe=await fetch(Oo).then(Fe=>Fe.blob());Kr[Ii]=xe,++Ao;const Se=Math.floor(Ao*100/di);oe({id:Un,title:"Downloading...",message:"Please wait while we prepare your audio download.",progressPercentage:Se,updateOnly:!0,handleClose:Hr})},{startingDelay:3*1e3})}));await Promise.all(Po);const Yo=new Blob(Kr,{type:Kr[0].type});lt||(xd(Yo,`${z.currentProvider.name}_message.${Yo.type.split("/")[1]}`,Yo.type),te(Un),K({title:"Downloaded",message:"Message was downloaded as Audio"}))}catch(kr){console.error(kr),te(Un),Z({title:"Error while downloading audio",message:kr.message}),ut.clearQueue()}}}},[te,Z,K,oe,z.currentProvider.name,z.textToSpeech.voice,Rt]),wt=_.useCallback(Zt=>{Q.current?.setAttribute("data-action",Zt.currentTarget.name)},[]),tn=DCe({onEscape:()=>{r(!1)},onMetaEnter(){const Zt=new Event("submit",{cancelable:!0,bubbles:!0});Q.current?.dispatchEvent(Zt)}}),ot=_.useCallback(Zt=>{Zt.preventDefault();const lt=Q.current?.getAttribute("data-action")||"save",Un=new FormData(Zt.currentTarget).get("text");if(typeof Un!="string")return;const xn=new Date;if(t instanceof Pu){const ut=new B4({date:xn,text:Un,model:t.model});t.addVersion(ut),t.switchVersion(ut.id),t.save(e).catch(kr=>{console.warn("Unable to update message",kr),Z({title:"Error Updating Message",message:kr.message})}).finally(()=>{r(!1),Q.current?.removeAttribute("data-action")})}else t.text=Un,t.date=xn,t.save(e).catch(ut=>{console.warn("Unable to update message",ut),Z({title:"Error Updating Message",message:ut.message})}).finally(()=>{r(!1),lt==="resubmit"&&h&&h(Un),Q.current?.removeAttribute("data-action")})},[t,h,e,Z,r]),jt=Zt=>{Qe(Zt),ke(!0)},_r=()=>ke(!1),fr=_.useCallback(async Zt=>{try{rt();const{voice:lt}=z.textToSpeech;pF(Zt,500).forEach(Un=>{Mt(Rt(Un,lt,"tts-1"))})}catch(lt){console.error(lt),Z({title:"Error while generating Audio",message:lt.message})}},[rt,z.textToSpeech,Mt,Rt,Z]),Rr=()=>{ie.current?.scrollIntoView({behavior:"smooth",block:"start"})};return x.jsx(Sn,{id:E,my:5,flex:1,onMouseEnter:()=>Y(!0),onMouseLeave:()=>Y(!1),children:x.jsxs(l1,{children:[x.jsx(nde,{p:0,pt:3,pb:2,pr:1,children:x.jsxs(qt,{justify:"space-between",align:"center",ml:5,mr:2,children:[x.jsxs(qt,{gap:3,children:[x.jsx(Sn,{children:a}),x.jsx(qt,{direction:"column",justify:"center",children:x.jsxs(qt,{h:"100%",align:"center",gap:2,children:[x.jsxs(qt,{direction:{base:"column",sm:"row"},align:{base:"flex-start",sm:"center"},justify:"space-between",w:"100%",gap:{base:0,sm:2},children:[x.jsx(Qf,{as:"h2",size:"xs",minW:"fit-content",children:s}),x.jsx(zr,{as:"span",fontSize:"xs",minW:"fit-content",color:"gray.500",_dark:{color:"gray.300"},children:x.jsx(bh,{as:Td,to:`/c/${e}#${E}`,children:tV(O,B)})})]}),o,!c&&z.countTokens&&!!U&&x.jsxs(r8,{size:"sm",variant:"outline",colorScheme:"gray",children:[gg(U)," Tokens"]})]})})]}),x.jsxs(qt,{align:"center",children:[re&&x.jsxs(qt,{display:{base:"none",md:"block"},children:[x.jsx(Br,{variant:"ghost",icon:x.jsx(Gte,{}),"aria-label":"Copy message to clipboard",title:"Copy message to clipboard",onClick:()=>yr()}),!T&&!n&&x.jsx(Br,{variant:"ghost",icon:x.jsx(uP,{}),"aria-label":"Edit message",title:"Edit message",onClick:()=>r(!n)}),!T&&p&&x.jsx(Br,{variant:"ghost",icon:x.jsx(ix,{}),"aria-label":"Delete message",title:"Delete message",onClick:()=>p()})]}
1209),x.jsx(qt,{children:x.jsxs(LI,{align:"end",isDisabled:c,children:[x.jsx(os,{onClick:yr,icon:x.jsx(Gte,{}),children:"Copy"}),x.jsxs(Q4,{label:"Export",icon:x.jsx(VV,{}),children:[x.jsx(os,{onClick:mt,children:"Export as Markdown"}),x.jsx(os,{onClick:ze,children:"Export as Text"}),it&&x.jsx(os,{onClick:tt,children:"Export as Audio"}),x.jsx(os,{onClick:zt,isDisabled:$n!==!1||n,children:"Export as Image"})]}),it&&x.jsx(os,{onClick:()=>fr(ie.current?.textContent??""),children:"Speak"}),!S&&x.jsx(DA,{to:`./fork/${E}`,target:"_blank",children:"Duplicate Chat until Message..."}),b&&x.jsxs(x.Fragment,{children:[x.jsx(H0,{}),x.jsx(Q4,{label:"Retry with...",children:x.jsx(NG,{onItemSelect:Zt=>{const lt=W.find(Hr=>Hr.id===Zt);lt&&b(lt)}})})]}),x.jsx(H0,{}),x.jsx(os,{onClick:()=>Nr(),icon:x.jsx(WV,{}),children:"Share Message"}),(!T||Wn)&&x.jsx(H0,{}),!T&&x.jsx(os,{onClick:()=>r(!n),icon:x.jsx(uP,{}),children:n?"Cancel Editing":"Edit"}),Wn&&x.jsx(x.Fragment,{children:p&&!d&&!g?x.jsx(os,{onClick:p,color:"red.400",icon:x.jsx(ix,{}),children:"Delete Message"}):x.jsxs(Q4,{label:"Delete",color:"red.400",icon:x.jsx(ix,{}),children:[d&&x.jsx(os,{onClick:d,color:"red.400",children:"Delete Messages Before"}),p&&x.jsx(os,{color:"red.400",onClick:p,children:"Delete Message"}),g&&x.jsx(os,{onClick:g,color:"red.400",children:"Delete Messages After"})]})})]})})]})]})}),x.jsx(c1,{p:0,children:x.jsxs(qt,{direction:"column",gap:3,children:[x.jsxs(Sn,{maxWidth:"100%",minH:"2em",overflow:"hidden",px:5,pb:2,children:[!n&&Nn&&ft?x.jsx(Yr,{size:"sm",variant:"ghost",onClick:()=>ki(),children:"Show Less"}):void 0,n?x.jsx("form",{onSubmit:ot,ref:Q,onKeyDown:tn,children:x.jsxs(Nu,{align:"end",children:[x.jsx(JC,{as:xCe,name:"text",minH:"unset",overflowY:"scroll",w:"100%",maxH:"30vh",resize:"vertical",minRows:1,defaultValue:P,autoFocus:!0}),x.jsxs(qt,{width:"100%",alignItems:"center",alignContent:"end",gap:2,mb:2,children:[x.jsx(Lfe,{}),!B&&x.jsx(zr,{fontSize:"sm",color:"gray",children:x.jsxs("span",{children:[x.jsx(bd,{children:q})," + ",x.jsx(bd,{children:"Enter"}),x.jsx("span",{children:"to save"})]})}),x.jsx(Yr,{size:"sm",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),x.jsxs(cm,{children:[t instanceof Go&&x.jsx(Yr,{size:"sm",variant:"outline",type:"submit",name:"resubmit",onClick:wt,children:"Re-Ask"}),x.jsx(Yr,{size:"sm",type:"submit",name:"save",onClick:wt,children:"Save"})]})]})]})}):x.jsxs(Sn,{children:[x.jsxs(Sn,{ref:ie,p:1,children:[$.map((Zt,lt)=>x.jsx(Sn,{children:x.jsx(VC,{src:Zt,alt:`Images# ${lt}`,margin:"auto",maxWidth:"100%",cursor:"pointer",onClick:()=>jt(Zt)})},`${E}-${lt}`)),x.jsx(PBt,{previewCode:!u&&!$n,isLoading:c,onPrompt:y,className:$n?"message-text message-text-blur":void 0,children:$n?i||P.slice(0,500).trim():P})]}),x.jsxs(qt,{w:"100%",justify:"space-between",align:"center",children:[x.jsx(Yr,{hidden:!Nn||n,size:"sm",variant:"ghost",onClick:()=>ki(),children:ft?"Show Less":"Show More..."}),x.jsx(qt,{}),x.jsx(qt,{justifyContent:"flex-end",children:Hn&&x.jsx(Br,{variant:"ghost",icon:x.jsx(Tlt,{}),ml:"auto","aria-label":"Scroll back to the top of the message",title:"Scroll Back To Top",onClick:()=>Rr()})}),x.jsx(Yr,{hidden:!!T||!xt,size:"sm",variant:"ghost",ml:"auto",onClick:()=>r(!0),children:x.jsx(zr,{fontSize:"xs",as:"em",children:"Edit to customize"})})]})]})]}),x.jsx(MCe,{isOpen:fe,onClose:_r,imageSrc:Be})]})}),l&&x.jsx(IH,{py:2,children:l})]})})}const _1=_.memo(DBt);function MBt(t){const{avatarUrl:e,name:n,...r}=t,i=e?x.jsx(kd,{size:"sm",src:e,title:n,showBorder:!0,borderColor:"gray.100",_dark:{borderColor:"gray.600"}}):x.jsx(kd,{size:"sm",bg:"gray.600",_dark:{bg:"gray.500"}});return x.jsx(_1,{...r,avatar:i,heading:n})}const NBt=_.memo(MBt),rEe={addendum:"addenda",corpus:"corpora",criterion:"criteria",curriculum:"curricula",genus:"genera",memorandum:"memoranda",opus:"opera",ovum:"ova",phenomenon:"phenomena",referendum:"referenda",alga:"algae",alumna:"alumnae",antenna:"antennae",formula:"formulae",larva:"larvae",nebula:"nebulae",vertebra:"vertebrae",analysis:"analyses",axis:"axes",diagnosis:"diagnoses",parenthesis:"parentheses",prognosis:"prognoses",synopsis:"synopses",thesis:"theses",neurosis:"neurose
1209s",appendix:"appendices",index:"indices",matrix:"matrices",ox:"oxen",sex:"sexes",alumnus:"alumni",bacillus:"bacilli",cactus:"cacti",fungus:"fungi",hippopotamus:"hippopotami",libretto:"libretti",modulus:"moduli",nucleus:"nuclei",octopus:"octopi",radius:"radii",stimulus:"stimuli",syllabus:"syllabi",cookie:"cookies",calorie:"calories",auntie:"aunties",movie:"movies",pie:"pies",rookie:"rookies",tie:"ties",zombie:"zombies",leaf:"leaves",loaf:"loaves",thief:"thieves",foot:"feet",goose:"geese",tooth:"teeth",beau:"beaux",chateau:"chateaux",tableau:"tableaux",bus:"buses",gas:"gases",circus:"circuses",crisis:"crises",virus:"viruses",database:"databases",excuse:"excuses",abuse:"abuses",avocado:"avocados",barracks:"barracks",child:"children",clothes:"clothes",echo:"echoes",embargo:"embargoes",epoch:"epochs",deer:"deer",halo:"halos",man:"men",woman:"women",mosquito:"mosquitoes",mouse:"mice",person:"people",quiz:"quizzes",rodeo:"rodeos",shoe:"shoes",sombrero:"sombreros",stomach:"stomachs",tornado:"tornados",tuxedo:"tuxedos",volcano:"volcanoes"},Dae={Comparative:"true¦bett1f0;arth0ew0in0;er",Superlative:"true¦earlier",PresentTense:"true¦bests,sounds",Condition:"true¦lest,unless",PastTense:"true¦began,came,d4had,kneel3l2m0sa4we1;ea0sg2;nt;eap0i0;ed;id",Participle:"true¦0:09;a06b01cZdXeat0fSgQhPoJprov0rHs7t6u4w1;ak0ithdra02o2r1;i02uY;k0v0;nd1pr04;ergoJoJ;ak0hHo3;e9h7lain,o6p5t4un3w1;o1um;rn;g,k;ol0reS;iQok0;ught,wn;ak0o1runk;ne,wn;en,wn;ewriNi1uJ;dd0s0;ut3ver1;do4se0t1;ak0h2;do2g1;roG;ne;ast0i7;iv0o1;ne,tt0;all0loBor1;bi3g2s1;ak0e0;iv0o9;dd0;ove,r1;a5eamt,iv0;hos0lu1;ng;e4i3lo2ui1;lt;wn;tt0;at0en,gun;r2w1;ak0ok0;is0;en",Gerund:"true¦accord0be0doin,go0result0stain0;ing",Expression:"true¦a0Yb0Uc0Sd0Oe0Mfarew0Lg0FhZjeez,lWmVnToOpLsJtIuFvEw7y0;a5e3i1u0;ck,p;k04p0;ee,pee;a0p,s;!h;!a,h,y;a5h2o1t0;af,f;rd up,w;atsoever,e1o0;a,ops;e,w;hoo,t;ery w06oi0L;gh,h0;! 0h,m;huh,oh;here nPsk,ut tut;h0ic;eesh,hh,it,oo;ff,h1l0ow,sst;ease,s,z;ew,ooey;h1i,mg,o0uch,w,y;h,o,ps;! 0h;hTmy go0wT;d,sh;a7evertheless,o0;!pe;eh,mm;ah,eh,m1ol0;!s;ao,fao;aCeBi9o2u0;h,mph,rra0zzC;h,y;l1o0;r6y9;la,y0;! 0;c1moCsmok0;es;ow;!p hip hoor0;ay;ck,e,llo,y;ha1i,lleluj0;ah;!ha;ah,ee4o1r0;eat scott,r;l1od0sh; grief,bye;ly;! whiz;ell;e0h,t cetera,ureka,ww,xcuse me;k,p;'oh,a0rat,uh;m0ng;mit,n0;!it;mon,o0;ngratulations,wabunga;a2oo1r0tw,ye;avo,r;!ya;h,m; 1h0ka,las,men,rgh,ye;!a,em,h,oy;la",Negative:"true¦n0;ever,o0;n,t",QuestionWord:"true¦how3wh0;at,e1ich,o0y;!m,se;n,re; come,'s",Reflexive:"true¦h4it5my5o1the0your2;ir1m1;ne3ur0;sel0;f,ves;er0im0;self",Plural:"true¦dick0gre0ones,records;ens","Unit|Noun":"true¦cEfDgChBinchAk9lb,m6newt5oz,p4qt,t1y0;ardEd;able1b0ea1sp;!l,sp;spo1;a,t,x;on9;!b,g,i1l,m,p0;h,s;!les;!b,elvin,g,m;!es;g,z;al,b;eet,oot,t;m,up0;!s",Value:"true¦a few",Imperative:"true¦bewa0come he0;re","Plural|Verb":"true¦leaves",Demonym:"true¦0:15;1:12;a0Vb0Oc0Dd0Ce08f07g04h02iYjVkTlPmLnIomHpEqatari,rCs7t5u4v3welAz2;am0Gimbabwe0;enezuel0ietnam0I;gAkrai1;aiwTex0hai,rinida0Ju2;ni0Prkmen;a5cotti4e3ingapoOlovak,oma0Spaniard,udRw2y0W;ede,iss;negal0Cr09;sh;mo0uT;o5us0Jw2;and0;a2eru0Fhilippi0Nortugu07uerto r0S;kist3lesti1na2raguay0;ma1;ani;ami00i2orweP;caragu0geri2;an,en;a3ex0Lo2;ngo0Drocc0;cedo1la2;gasy,y07;a4eb9i2;b2thua1;e0Cy0;o,t01;azakh,eny0o2uwaiI;re0;a2orda1;ma0Ap2;anO;celandic,nd4r2sraeli,ta01vo05;a2iB;ni0qi;i0oneU;aiAin2ondur0unO;di;amEe2hanai0reek,uatemal0;or2rm0;gi0;ilipino,ren8;cuadoVgyp4mira3ngli2sto1thiopi0urope0;shm0;ti;ti0;aPominUut3;a9h6o4roat3ub0ze2;ch;!i0;lom2ngol5;bi0;a6i2;le0n2;ese;lifor1m2na3;bo2eroo1;di0;angladeshi,el6o4r3ul2;gaE;azi9it;li2s1;vi0;aru2gi0;si0;fAl7merBngol0r5si0us2;sie,tr2;a2i0;li0;genti2me1;ne;ba1ge2;ri0;ni0;gh0r2;ic0;an",Organization:"true¦0:4Q;a3Tb3Bc2Od2He2Df27g1Zh1Ti1Pj1Nk1Ll1Gm12n0Po0Mp0Cqu0Br02sTtHuCv9w3xiaomi,y1;amaha,m1Bou1w1B;gov,tu3C;a4e2iki1orld trade organizati33;leaRped0O;lls fargo,st1;fie2Hinghou2R;l1rner br3U;gree3Jl street journ2Im1E;an halOeriz2Xisa,o1;dafo2Yl1;kswagMvo;b4kip,n2ps,s1;a tod3Aps;es3Mi1;lev3Fted natio3C;er,s; mobi32aco beRd bOe9gi frida3Lh3im horto3Amz,o1witt3D;shi49y1;ota,s r 05;e 1in lizzy;b3carpen3Jdaily ma3Dguess w2holli0s1w2;mashing pumpki35uprem0;ho;ea1lack eyed pe3Xyr0Q;ch bo3Dtl0;l2n3Qs1xas instrumen1U;co,la m1F;efoni0Kus;a8cientology,e5ieme2Ymirnoff,np,o3pice gir6quare0Ata1ubaru;rbuc1to34;ks;ny,undgard1;en;a2x pisto1;ls;g1Wrs;few2Minsbur31lesfor03msu2E;adiohead,b8e4o1yana3C;man empi1Xyal 1;b1dutch she4;ank;a3d 1max,vl20;bu1c2Ahot chili peppe2Ylobst2N;ll;ders dige1Ll madrid;c,s;ant3Aizn2Q;a8bs,e5fiz2Ihilip4i3r1;emier 1udenti1D;leagTo2K;nk floyd,zza hut; morrBs;psi2tro1uge0E;br33chi0Tn33;!co;lant2Un1yp16; 2ason27da2P;ld navy,pec,range juli2xf1;am;us;aAb9e6fl,h5i4o1sa,vid3wa;k2tre dame,vart1;is;ia;ke,ntendo,ss0QvZ;l,s;c,st1Otflix,w1; 1sweek;kids on the block,york0D;a,c;nd22s2t1;ional aca2Po,we0U;a,c02d0S;aDcdonalCe9i6lb,o3tv,y1;spa1;ce;b1Tnsanto,ody blu0t1;ley cr1or0T;ue;c2t1;as,subisO;helin,rosoft;dica2rcedes benz,talli1;ca;id,re;ds;cs milk,tt19z24;a3e1g,ittle caesa1P; ore09novo,x1;is,mark,us; 1bour party;pres0Dz boy;
1209atv,fc,kk,lm,m1od1O;art;iffy lu0Roy divisi0Jpmorgan1sa;! cha09;bm,hop,k3n1tv;g,te1;l,rpol;ea;a5ewlett pack1Vi3o1sbc,yundai;me dep1n1P;ot;tac1zbollah;hi;lliburt08sbro;eneral 6hq,ithub,l5mb,o2reen d0Ou1;cci,ns n ros0;ldman sachs,o1;dye1g0H;ar;axo smith kli04encoW;electr0Nm1;oto0Z;a5bi,c barcelo4da,edex,i2leetwood m03o1rito l0G;rd,xcY;at,fa,nancial1restoZ; tim0;na;cebook,nnie mae;b0Asa,u3xxon1; m1m1;ob0J;!rosceptics;aiml0De5isney,o4u1;nkin donu2po0Zran dur1;an;ts;j,w jon0;a,f lepp12ll,peche mode,r spieg02stiny's chi1;ld;aJbc,hFiDloudflaCnn,o3r1;aigsli5eedence clearwater reviv1ossra09;al;c7inba6l4m1o0Est09;ca2p1;aq;st;dplSg1;ate;se;a c1o chanQ;ola;re;a,sco1tigroup;! systems;ev2i1;ck fil a,na daily;r1y;on;d2pital o1rls jr;ne;bury,ill1;ac;aEbc,eBf9l5mw,ni,o1p,rexiteeU;ei3mbardiIston 1;glo1pizza;be;ng;o2ue c1;roV;ckbuster video,omingda1;le; g1g1;oodriL;cht2e ge0rkshire hathaw1;ay;el;cardi,idu,nana republ3s1xt5y5;f,kin robbi1;ns;ic;bYcTdidSerosmith,iRlKmEnheuser busDol,ppleAr6s4u3v2y1;er;is,on;di,todesk;hland o1sociated E;il;b3g2m1;co;os;ys; compu1be0;te1;rs;ch;c,d,erican3t1;!r1;ak; ex1;pre1;ss; 5catel2ta1;ir;! lu1;ce1;nt;jazeera,qae1;da;g,rbnb;as;/dc,a3er,tivision1;! blizz1;ard;demy of scienc0;es;ba",Possessive:"true¦its,my,our0thy;!s","Noun|Verb":"true¦0:9W;1:AA;2:96;3:A3;4:9R;5:A2;6:9K;7:8N;8:7L;9:A8;A:93;B:8D;C:8X;a9Ob8Qc7Id6Re6Gf5Sg5Hh55i4Xj4Uk4Rl4Em40n3Vo3Sp2Squ2Rr21s0Jt02u00vVwGyFzD;ip,oD;ne,om;awn,e6Fie68;aOeMhJiHoErD;ap,e9Oink2;nd0rDuC;kDry,sh5Hth;!shop;ck,nDpe,re,sh;!d,g;e86iD;p,sD;k,p0t2;aDed,lco8W;r,th0;it,lk,rEsDt4ve,x;h,te;!ehou1ra9;aGen5FiFoD;iDmAte,w;ce,d;be,ew,sA;cuum,l4B;pDr7;da5gra6Elo6A;aReQhrPiOoMrGuEwiDy5Z;n,st;nDrn;e,n7O;aGeFiEoDu6;t,ub2;bu5ck4Jgg0m,p;at,k,nd;ck,de,in,nsDp,v7J;f0i8R;ll,ne,p,r4Yss,t94uD;ch,r;ck,de,e,le,me,p,re;e5Wow,u6;ar,e,ll,mp0st,xt;g,lDng2rg7Ps5x;k,ly;a0Sc0Ne0Kh0Fi0Dk0Cl0Am08n06o05pXquaBtKuFwD;ea88iD;ng,pe,t4;bGit,m,ppErD;fa3ge,pri1v2U;lDo6S;e6Py;!je8;aMeLiKoHrEuDy2;dy,ff,mb2;a85eEiDo5Pugg2;ke,ng;am,ss,t4;ckEop,p,rD;e,m;ing,pi2;ck,nk,t4;er,m,p;ck,ff,ge,in,ke,lEmp,nd,p2rDte,y;!e,t;k,l;aJeIiHlGoFrDur,y;ay,e56inDu3;g,k2;ns8Bt;a5Qit;ll,n,r87te;ed,ll;m,n,rk;b,uC;aDee1Tow;ke,p;a5Je4FiDo53;le,rk;eep,iDou4;ce,p,t;ateboa7Ii;de,gnDl2Vnk,p,ze;!al;aGeFiEoDuff2;ck,p,re,w;ft,p,v0;d,i3Ylt0;ck,de,pe,re,ve;aEed,nDrv1It;se,t2N;l,r4t;aGhedu2oBrD;aEeDibb2o3Z;en,w;pe,t4;le,n,r2M;cDfegua72il,mp2;k,rifi3;aZeHhy6LiGoEuD;b,in,le,n,s5X;a6ck,ll,oDpe,u5;f,t;de,ng,ot,p,s1W;aTcSdo,el,fQgPje8lOmMnLo17pJque6sFturn,vDwa6V;eDi27;al,r1;er74oFpe8tEuD;lt,me;!a55;l71rt;air,eaDly,o53;l,t;dezvo2Zt;aDedy;ke,rk;ea1i4G;a6Iist0r5N;act6Yer1Vo71uD;nd,se;a38o6F;ch,s6G;c1Dge,iEke,lly,nDp1Wt1W;ge,k,t;n,se;es6Biv0;a04e00hYiXlToNrEsy4uD;mp,n4rcha1sh;aKeIiHoDu4O;be,ceFdu3fi2grDje8mi1p,te6;amDe6W;!me;ed,ss;ce,de,nt;sDy;er6Cs;cti3i1;iHlFoEp,re,sDuCw0;e,i5Yt;l,p;iDl;ce,sh;nt,s5V;aEce,e32uD;g,mp,n7;ce,nDy;!t;ck,le,n17pe,tNvot;a1oD;ne,tograph;ak,eFnErDt;fu55mA;!c32;!l,r;ckJiInHrFsEtDu1y;ch,e9;s,te;k,tD;!y;!ic;nt,r,se;!a7;bje8ff0il,oErDutli3Qver4B;bAd0ie9;ze;a4ReFoDur1;d,tD;e,i3;ed,gle8tD;!work;aMeKiIoEuD;rd0;ck,d3Rld,nEp,uDve;nt,th;it5EkD;ey;lk,n4Brr5CsDx;s,ta2B;asuBn4UrDss;ge,it;il,nFp,rk3WsEtD;ch,t0;h,k,t0;da5n0oeuvB;aLeJiHoEuD;mp,st;aEbby,ck,g,oDve;k,t;d,n;cDe,ft,mAnIst;en1k;aDc0Pe4vK;ch,d,k,p,se;bFcEnd,p,t4uD;gh,n4;e,k;el,o2U;eEiDno4E;ck,d,ll,ss;el,y;aEo1OuD;i3mp;m,zz;mpJnEr46ssD;ue;c1Rdex,fluGha2k,se2HteDvoi3;nt,rD;e6fa3viD;ew;en3;a8le2A;aJeHiGoEuD;g,nt;l3Ano2Dok,pDr1u1;!e;ghli1Fke,nt,re,t;aDd7lp;d,t;ck,mGndFrEsh,tDu9;ch,e;bo3Xm,ne4Eve6;!le;!m0;aMear,ift,lKossJrFuD;arDe4Alp,n;antee,d;aFiEoDumb2;uCwth;ll,nd,p;de,sp;ip;aBoDue;ss,w;g,in,me,ng,s,te,ze;aZeWiRlNoJrFuD;ck,el,nDss,zz;c38d;aEoDy;st,wn;cDgme,me,nchi1;tuB;cFg,il,ld,rD;ce,e29mDwa31;!at;us;aFe0Vip,oDy;at,ck,od,wD;!er;g,ke,me,re,sh,vo1E;eGgFlEnDre,sh,t,x;an3i0Q;e,m,t0;ht,uB;ld;aEeDn3;d,l;r,tuB;ce,il,ll,rm,vo2W;cho,d7ffe8nMsKxFyeD;!baD;ll;cGerci1hFpDtra8;eriDo0W;en3me9;au6ibA;el,han7u1;caDtima5;pe;count0d,vy;a01eSiMoJrEuDye;b,el,mp,pli2X;aGeFiEoD;ne,p;ft,ll,nk,p,ve;am,ss;ft,g,in;cEd7ubt,wnloD;ad;k,u0E;ge6p,sFt4vD;e,iDor3;de;char7gui1h,liEpD;at4lay,u5;ke;al,bKcJfeIlGmaCposAsEtaD;il;e07iD;gn,re;ay,ega5iD;ght;at,ct;li04rea1;a5ut;b,ma7n3rDte;e,t;a0Eent0Dh06irc2l03oKrFuD;be,e,rDt;b,e,l,ve;aGeFoEuDy;sh;p,ss,wd;dAep;ck,ft,sh;at,de,in,lTmMnFordina5py,re,st,uDv0;gh,nDp2rt;s01t;ceHdu8fli8glomeIsFtDveN;a8rD;a6ol;e9tru8;ct;ntDrn;ra5;bHfoGmFpD;leDouCromi1;me9;aCe9it,u5;rt;at,iD;ne;lap1oD;r,ur;aEiDoud,ub;ck,p;im,w;aEeDip;at,ck,er;iGllen7nErD;ge,m,t;ge,nD;el;n,r;er,re;ke,ll,mp,noe,pGrXsFtEuDve;se,ti0I;alog,ch;h,t;!tuB;re;a03eZiXlToPrHuEyD;pa11;bb2ck2dgEff0mp,rDst,zz;den,n;et;
1209anJeHiFoadEuD;i1sh;ca6;be,d7;ge;aDed;ch,k;ch,d;aFg,mb,nEoDrd0tt2x,ycott;k,st,t;d,e;rd,st;aFeCiDoYur;nk,tz;nd;me;as,d,ke,nd,opsy,tD;!ch,e;aFef,lt,nDt;d,efA;it;r,t;ck,il,lan3nIrFsEtt2;le;e,h;!gDk;aDe;in;!d,g,k;bu1c05dZge,iYlVnTppQrLsIttGucEwaD;rd;tiD;on;aDempt;ck;k,sD;i6ocia5;st;chFmD;!oD;ur;!iD;ve;eEroa4;ch;al;chDg0sw0;or;aEt0;er;rm;d,m,r;dreHvD;an3oD;ca5;te;ce;ss;cDe,he,t;eFoD;rd,u9;nt;nt,ss;se",Actor:"true¦0:7B;1:7G;2:6A;3:7F;4:7O;5:7K;a6Nb62c4Ud4Be41f3Sg3Bh30i2Uj2Qkin2Pl2Km26n1Zo1Sp0Vqu0Tr0JsQtJuHvEw8yo6;gi,ut6;h,ub0;aAe9i8o7r6;estl0it0;m2rk0;fe,nn0t2Bza2H;atherm2ld0;ge earn0it0nder0rri1;eter7i6oyF;ll5Qp,s3Z;an,ina2U;n6s0;c6Uder03;aoisea23e9herapi5iktok0o8r6ut1yco6S;a6endseLo43;d0mp,nscri0Bvel0;ddl0u1G;a0Qchn7en6na4st0;ag0;i3Oo0D;aiXcUeRhPiMki0mu26oJpGquaFtBu7wee6;p0theart;lt2per7r6;f0ge6Iviv1;h6inten0Ist5Ivis1;ero,um2;a8ep7r6;ang0eam0;bro2Nc2Ofa2Nmo2Nsi20;ff0tesm2;tt0;ec7ir2Do6;kesp59u0M;ia5Jt3;l7me6An,rcere6ul;r,ss;di0oi5;n7s6;sy,t0;g0n0;am2ephe1Iow6;girl,m2r2Q;cretInior cit3Fr6;gea4v6;a4it1;hol4Xi7reen6ulpt1;wr2C;e01on;l1nt;aEe9o8u6;l0nn6;er up,ingE;g40le mod3Zof0;a4Zc8fug2Ppo32searQv6;ere4Uolution6;ary;e6luYru22;ptio3T;bbi,dic5Vpp0;arter6e2Z;back;aYeWhSiRlOoKr8sycho7u6;nk,p31;logi5;aGeDiBo6;d9fess1g7ph47s6;pe2Ktitu51;en6ramm0;it1y;igy,uc0;est4Nme mini0Unce6s3E;!ss;a7si6;de4;ch0;ctiti39nk0P;dca0Oet,li6pula50rnst42;c2Itic6;al scie6i2;nti5;a6umb0;nn0y6;er,ma4Lwright;lgrim,one0;a8iloso7otogra7ra6ysi1V;se;ph0;ntom,rmaci5;r6ssi1T;form0s4O;i3El,nel3Yr8st1tr6wn;i6on;arWot;ent4Wi42tn0;ccupa4ffBp8r7ut6;ca5l0B;ac4Iganiz0ig2Fph2;er3t6;i1Jomet6;ri5;ic0spring;aBe9ie4Xo7u6;n,rser3J;b6mad,vi4V;le2Vo4D;i6mesis,phew;ce,ghb1;nny,rr3t1X;aEeDiAo7u6yst1Y;m8si16;der3gul,m7n6th0;arDk;!my;ni7s6;f02s0Jt0;on,st0;chan1Qnt1rcha4;gi9k0n8rtyr,t6y1;e,riar6;ch;ag0iac;ci2stra3I;a7e2Aieutena4o6;rd,s0v0;bor0d7ndlo6ss,urea3Fwy0ym2;rd;!y;!s28;e8o7u6;ggl0;gg0urna2U;st0;c3Hdol,llu3Ummigra4n6; l9c1Qfa4habi42nov3s7ve6;nt1stig3;pe0Nt6;a1Fig3ru0M;aw;airFeBistoAo8u6ygie1K;man6sba2H;!ita8;bo,st6usekN;age,e3P;ri2;ir,r6;m7o6;!ine;it;dress0sty2C;aLeIhostGirl26ladi3oCrand7u6;e5ru;c9daug0Jfa8m7pa6s2Y;!re4;a,o6;th0;hi1B;al7d6lf0;!de3A;ie,k6te26;eep0;!wr6;it0;isha,n6;i6tl04;us;mbl0rden0;aDella,iAo7r6;eela2Nie1P;e,re6ster pare4;be1Hm2r6st0;unn0;an2ZgZlmm17nanci0r6tt0;e6st la2H; marsh2OfigXm2;rm0th0;conoEdDlectriCm8n7x6;amin0cellency,i2A;emy,trepreneur,vironmenta1J;c8p6;er1loye6;e,r;ee;ci2;it1;mi5;aKeBi8ork,ri7u6we02;de,tche2H;ft0v0;ct3eti7plom2Hre6va;ct1;ci2ti2;aDcor3fencCi0InAput9s7tectLvel6;op0;ce1Ge6ign0;rt0;ee,y;iz6;en;em2;c1Ml0;d8nc0redev7ug6;ht0;il;!dy;a06e04fo,hXitizenWlToBr9u6;r3stomer6;! representat6;ive;e3it6;ic;lJmGnAord9rpor1Nu7w6;boy,ork0;n6ri0;ciTte1Q;in3;fidantAgressSs9t6;e0Kr6;ibut1o6;ll0;tab13ul1O;!e;edi2m6pos0rade;a0EeQissi6;on0;leag8on7um6;ni5;el;ue;e6own;an0r6;ic,k;!s;a9e7i6um;ld;erle6f;ad0;ir7nce6plFract0;ll1;m2wI;lebri6o;ty;dBptAr6shi0;e7pe6;nt0;r,t6;ak0;ain;et;aMeLiJlogg0oErBu6;dd0Fild0rgl9siness6;m2p7w6;om2;ers05;ar;i7o6;!k0th0;cklay0de,gadi0;hemi2oge8y6;!frie6;nd;ym2;an;cyc6sR;li5;atbox0ings;by,nk0r6;b0on7te6;nd0;!e07;c04dWge4nQpLrHsFtAu7yatull6;ah;nt7t6;h1oG;!ie;h8t6;e6orney;nda4;ie5le6;te;sis00tron6;aut,om0;chbis8isto7tis6;an,t;crU;hop;ost9p6;ari6rentiS;ti6;on;le;a9cest1im3nou8y6;bo6;dy;nc0;ly5rc6;hi5;mi8v6;entur0is1;er;ni7r6;al;str3;at1;or;counBquaintanArob9t6;ivi5or,re6;ss;st;at;ce;ta4;nt","Adj|Noun":"true¦0:16;a1Db17c0Ud0Re0Mf0Dg0Ah08i06ju05l02mWnUoSpNrIsBt7u4v1watershed;a1ision0Z;gabo4nilla,ria1;b0Vnt;ndergr1pstairs;adua14ou1;nd;a3e1oken,ri0;en,r1;min0rori13;boo,n;age,e5ilv0Flack,o3quat,ta2u1well;bordina0Xper5;b0Lndard;ciali0Yl1vereign;e,ve16;cret,n1ri0;ior;a4e2ou1ubbiL;nd,tiY;ar,bBl0Wnt0p1side11;resent0Vublican;ci0Qsh;a4eriodic0last0Zotenti0r1;emi2incip0o1;!fession0;er,um;rall4st,tie0U;ff1pposi0Hv0;ens0Oi0C;agg01ov1uts;el;a5e3iniatJo1;bi01der07r1;al,t0;di1tr0N;an,um;le,riG;attOi2u1;sh;ber0ght,qC;stice,veniT;de0mpressioYn1;cumbe0Edividu0no0Dsta0Eterim;alf,o1umdrum;bby,melF;en2old,ra1;ph0Bve;er0ious;a7e5i4l3u1;git03t1;ure;uid;ne;llow,m1;aFiL;ir,t,vo1;riOuriO;l3p00x1;c1ecutUpeV;ess;d1iK;er;ar2e1;mographUrivO;k,l2;hiGlassSo2rude,unn1;ing;m5n1operK;creCstitueOte2vertab1;le;mpor1nt;ary;ic,m2p1;anion,lex;er2u1;ni8;ci0;al;e5lank,o4r1;i2u1;te;ef;ttom,urgeois;st;cadem9d6l2ntarct9r1;ab,ct8;e3tern1;at1;ive;rt;oles1ult;ce1;nt;ic","Adj|Past":"true¦0:4Q;1:4C;2:4H;3:4E;a44b3Tc36d2Je29f20g1Wh1Si1Jj1Gkno1Fl1Am15n12o0Xp0Mqu0Kr08sLtEuAv9w4yellow0;a7ea6o4rinkl0;r4u3Y;n,ri0;k31th3;rp0sh0tZ;ari0e1O;n5p4s0;d1li1Rset;cov3derstood,i4;fi0t0;a8e3Rhr7i6ouTr4urn0wi4C;a4imm0ou2G;ck0in0pp0;ed,r0;eat2Qi37;m0nn0r4;get0ni2T;
1209aOcKeIhGimFm0Hoak0pDt7u4;bsid3Ogge44s4;pe4ta2Y;ct0nd0;a8e7i2Eok0r5u4;ff0mp0nn0;ength2Hip4;ed,p0;am0reotyp0;in0t0;eci4ik0oH;al3Efi0;pRul1;a4ock0ut;d0r0;a4c1Jle2t31;l0s3Ut0;a6or5r4;at4e25;ch0;r0tt3;t4ut0;is2Mur1;aEe5o4;tt0;cAdJf2Bg9je2l8m0Knew0p7qu6s4;eTpe2t4;or0ri2;e3Dir0;e1lac0;at0e2Q;i0Rul1;eiv0o4ycl0;mme2Lrd0v3;in0lli0ti2A;a4ot0;li28;aCer30iBlAo9r5u4;mp0zzl0;e6i2Oo4;ce2Fd4lo1Anou30pos0te2v0;uc0;fe1CocCp0Iss0;i2Kli1L;ann0e2CuS;ck0erc0ss0;ck0i2Hr4st0;allLk0;bse7c6pp13rgan2Dver4;lo4whelm0;ok0;cupi0;rv0;aJe5o4;t0uri1A;ed0gle2;a6e5ix0o4ut0ys1N;di1Nt15u26;as0Clt0;n4rk0;ag0ufact0A;e6i5o4;ad0ck0st,v0;cens0m04st0;ft,v4;el0;tt0wn;a5o15u4;dg0s1B;gg0;llumSmpAn4sol1;br0cre1Ldebt0f8jZspir0t5v4;it0olv0;e4ox0Y;gr1n4re23;d0si15;e2l1o1Wuri1;li0o01r4;ov0;a6e1o4um03;ok0r4;ri0Z;mm3rm0;i6r5u4;a1Bid0;a0Ui0Rown;ft0;aAe9i8l6oc0Ir4;a4i0oz0Y;ctHg19m0;avo0Ju4;st3;ni08tt0x0;ar0;d0il0sc4;in1;dCl1mBn9quipp0s8x4;agger1c6p4te0T;a0Se4os0;ct0rie1D;it0;cap0tabliZ;cha0XgFha1As4;ur0;a0Zbarra0N;i0Buc1;aMeDi5r4;a01i0;gni08miniSre2s4;a9c6grun0Ft4;o4re0Hu17;rt0;iplWou4;nt0r4;ag0;bl0;cBdRf9l8p7ra6t5v4;elop0ot0;ail0ermQ;ng0;re07;ay0ight0;e4in0o0M;rr0;ay0enTor1;m5t0z4;ed,zl0;ag0p4;en0;aPeLhIlHo9r6u4;lt4r0stom03;iv1;a5owd0u4;sh0;ck0mp0;d0loAm7n4ok0v3;centr1f5s4troC;id3olid1;us0;b5pl4;ic1;in0;r0ur0;assi9os0utt3;ar5i4;ll0;g0m0;lebr1n6r4;ti4;fi0;tralJ;g0lcul1;aDewild3iCl9o7r5urn4;ed,t;ok4uis0;en;il0r0t4und;tl0;e5i4;nd0;ss0;as0;ffl0k0laMs0tt3;bPcNdKfIg0lFmaz0nDppBrm0ss9u5wa4;rd0;g5thor4;iz0;me4;nt0;o6u4;m0r0;li0re4;ci1;im1ticip1;at0;a5leg0t3;er0;rm0;fe2;ct0;ju5o7va4;nc0;st0;ce4knowledg0;pt0;and5so4;rb0;on0;ed",Singular:"true¦0:5J;1:5H;2:4W;3:4S;4:52;5:57;6:5L;7:56;8:5B;a52b4Lc3Nd35e2Xf2Og2Jh28in24j23k22l1Um1Ln1Ho1Bp0Rqu0Qr0FsZtMuHvCw9x r58yo yo;a9ha3Po3Q;f3i4Rt0Gy9;! arou39;arCeAideo ga2Qo9;cabu4Jl5C;gOr9t;di4Zt1Y;iety,ni4P;nBp30rAs 9;do43s5E;bani1in0;coordinat3Ader9;estima1to24we41; rex,aKeJhHiFoErBuAv9;! show;m2On2rntLto1D;agedy,ib9o4E;e,u9;n0ta46;ni1p2rq3L;c,er,m9;etF;ing9ree26;!y;am,mp3F;ct2le6x return;aNcMeKhor4QiJkHoGpin off,tDuBy9;ll9ner7st4T;ab2X;b9i1n28per bowl,rro1X;st3Ltot0;atAipe2Go1Lrate7udent9;! lo0I;i39u1;ft ser4Lmeo1I;elet5i9;ll,r3V;b38gn2Tte;ab2Jc9min3B;t,urity gua2N;e6ho2Y;bbatic0la3Jndwi0Qpi5;av5eDhetor2iAo9;de6om,w;tAv9;erb2C;e,u0;bDcBf9publ2r10spi1;er9orm3;e6r0;i9ord label;p2Ht0;a1u46;estion mark,ot2F;aPeMhoLiIlGoErAu9yram1F;ddi3HpErpo1Js3J;eBo9;bl3Zs9;pe3Jta1;dic1Rmi1Fp1Qroga8ss relea1F;p9rt0;py;a9ebisci1;q2Dte;cn2eAg9;!gy;!r;ne call,tocoK;anut,dAr9t0yo1;cen3Jsp3K;al,est0;nop4rAt9;e,hog5;adi11i2V;atme0bj3FcBpia1rde0thers,utspok5ve9wn3;n,r9;ti0Pview;cuAe9;an;pi3;arBitAot9umb3;a2Fhi2R;e,ra1;cot2ra8;aFeCiAo9ur0;nopo4p18rni2Nsq1Rti36uld;c,li11n0As9tt5;chief,si34;dAnu,t9;al,i3;al,ic;gna1mm0nd15rsupi0te9yf4;ri0;aDegCiBu9;ddi1n9;ch;me,p09; Be0M;bor14y9; 9er;up;eyno1itt5;el4ourn0;cBdices,itia8ni25sAtel0Lvert9;eb1J;e28titu1;en8i2T;aIeEighDoAu9;man right,s22;me9rmoFsp1Ftb0K;! r9;un; scho0YriY;a9i1N;d9v5; start,pho9;ne;ndful,sh brown,v5ze;aBelat0Ilaci3r9ul4yp1S;an9enadi3id;a1Cd slam,ny;df4r9;l2ni1I;aGeti1HiFlu1oCrAun9;er0;ee market,i9onti3;ga1;l4ur9;so9;me;ePref4;br2mi4;conoFffi7gg,lecto0Rmbas1EnCpidem2s1Zth2venBxAyel9;id;ampZempl0Nte6;i19t;er7terp9;ri9;se;my;eLiEoBr9ump tru0U;agonf4i9;er,ve thru;cAg7i4or,ssi3wn9;side;to0EumenE;aEgniDnn3sAvide9;nd;conte6incen8p9tri11;osi9;ti0C;ta0H;le0X;athBcAf9ni0terre6;ault 05err0;al,im0;!b9;ed;aWeThMiLlJoDr9;edit caBuc9;ib9;le;rd;efficDke,lCmmuniqLnsApi3rr0t0Xus9yo1;in;erv9uI;ato02;ic,lQ;ie6;er7i9oth;e6n2;ty,vil wM;aDeqCick5ocoBr9;istmas car9ysanthemum;ol;la1;ue;ndeli3racteri9;st2;iAllEr9;e0tifica1;liZ;hi3nFpErCt9ucus;erpi9hedr0;ll9;ar;!bohyd9ri3;ra1;it0;aAe,nib0t9;on;l,ry;aMeLiop2leJoHrDu9;nny,r9tterf4;g9i0;la9;ry;eakAi9;ck;fa9throB;st;dy,ro9wl;ugh;mi9;sh;an,l4;nkiArri3;er;ng;cSdMlInFppeti1rDsBtt2utop9;sy;ic;ce6pe9;ct;r9sen0;ay;ecAoma4tiA;ly;do1;i5l9;er7y;gy;en; hominDjAvan9;tage;ec8;ti9;ve;em;cCeAqui9;tt0;ta1;te;iAru0;al;de6;nt","Person|Noun":"true¦a0Eb07c03dWeUfQgOhLjHkiGlFmCnBolive,p7r4s3trini06v1wa0;ng,rd,tts;an,enus,iol0;a,et;ky,onPumm09;ay,e1o0uby;bin,d,se;ed,x;a2e1o0;l,tt04;aLnJ;dYge,tR;at,orm;a0eloW;t0x,ya;!s;a9eo,iH;ng,tP;a2e1o0;lGy;an,w3;de,smi4y;a0erb,iOolBuntR;ll,z0;el;ail,e0iLuy;ne;a1ern,i0lo;elds,nn;ith,n0;ny;a0dEmir,ula,ve;rl;a4e3i1j,ol0;ly;ck,x0;ie;an,ja;i0wn;sy;am,h0liff,rystal;a0in,ristian;mbers,ri0;ty;a4e3i2o,r0ud;an0ook;dy;ll;nedict,rg;k0nks;er;l0rt;fredo,ma","Actor|Verb":"true¦aCb8c5doctor,engineAfool,g3host,judge,m2nerd,p1recruit,scout,ushAvolunteAwi0;mp,tneA;arent,ilot;an,ime;eek,oof,r0uide;adu8oom;ha1o0;ach,nscript,ok;mpion,uffeur;o2u0;lly,tch0;er;ss;ddi1ffili0rchite1;ate;ct",MaleName:"true¦0:H6;1:FZ;2:DS;3:GQ;4:CZ;5:FV;6:GM;7:FP;8:GW;9:ET;A:C2;B:GD;aF8bE1cCQdBMeASfA1g8Yh88i7Uj6Sk6Bl5Mm48n3So3Ip33qu31r26s1Et0Ru0Ov0CwTxSyHzC;aCor0;cChC1karia,nAT;!hDkC;!aF6;!ar7CeF5;aJevgenBSoEuC;en,rFVsCu3FvEF;if,uf;nDs6OusC;ouf,s6N;aCg;s,tC;an,h0;hli,nCrosE1ss09;is,nC;!iBU;avi2ho5;aPeNiDoCyaEL;jcieBJlfgang,odrFutR;lFnC;f8TsC;lCt1;ow;bGey,frEhe4QlC;aE5iCy;am,e,s;ed8iC;d,ed;eAur;i,ndeD2rn2sC;!l9t1;lDyC;l1ne;lDtC;!er;aCHy;aKernDAiFladDoC;jteB0lodymyr;!iC;mFQsDB;cFha0ktBZnceDrgCOvC;a0ek;!nC;t,zo;!e4StBV;lCnC7sily;!entC;in9J;ghE2lCm70nax,ri,sm0;riCyss87;ch,k;aWeRhNiLoGrEuDyC;!l2roEDs1;n6r6E;
1209avD0eCist0oy,um0;ntCRvBKy;bFdAWmCny;!asDmCoharu;aFFie,y;!z;iA6y;mCt4;!my,othy;adEeoDia0SomC;!as;!dor91;!de4;dFrC;enBKrC;anBJeCy;ll,nBI;!dy;dgh,ha,iCnn2req,tsu5V;cDAka;aYcotWeThPiMlobod0oKpenc2tEurDvenAEyCzym1;ed,lvest2;aj,e9V;anFeDuC;!aA;fan17phEQvCwaA;e77ie;!islaCl9;v,w;lom1rBuC;leymaDHta;dDgmu9UlCm1yabonga;as,v8B;!dhart8Yn9;aEeClo75;lCrm0;d1t1;h9Jne,qu1Jun,wn,yne;aDbastiEDk2Yl5Mpp,rgCth,ymoCU;e1Dio;m4n;!tC;!ie,y;eDPlFmEnCq67tosCMul;dCj2UtiA5;e01ro;!iATkeB6mC4u5;!ik,vato9K;aZeUheC8iRoGuDyC;an,ou;b99dDf4peAssC;!elEG;ol00y;an,bLc7MdJel,geIh0lHmGnEry,sDyC;!ce;ar7Ocoe,s;!aCnBU;ld,n;an,eo;a7Ef;l7Jr;e3Eg2n9olfo,riC;go;bBNeDH;cCl9;ar87c86h54kCo;!ey,ie,y;cFeA3gDid,ubByCza;an8Ln06;g85iC;naC6s;ep;ch8Kfa5hHin2je8HlGmFndEoHpha5sDul,wi36yC;an,mo8O;h9Im4;alDSol3O;iD0on;f,ph;ul;e9CinC;cy,t1;aOeLhilJiFrCyoG;aDeC;m,st1;ka85v2O;eDoC;tr;r8GtC;er,ro;!ipCl6H;!p6U;dCLrcy,tC;ar,e9JrC;!o7;b9Udra8So9UscAHtri62ulCv8I;!ie,o7;ctav6Ji2lImHndrBRrGsDtCum6wB;is,to;aDc6k6m0vCwaBE;al79;ma;i,vR;ar,er;aDeksandr,ivC;er,i2;f,v;aNeLguyBiFoCu3O;aDel,j4l0ma0rC;beAm0;h,m;cFels,g5i9EkDlC;es,s;!au,h96l78olaC;!i,y;hCkCol76;ol75;al,d,il,ls1vC;ilAF;hom,tC;e,hC;anCy;!a5i5;aYeViLoGuDyC;l4Nr1;hamDr84staC;fa,p6E;ed,mG;di10e,hamEis4JntDritz,sCussa;es,he;e,y;ad,ed,mC;ad,ed;cGgu5hai,kFlEnDtchC;!e8O;a9Pik;house,o7t1;ae73eC3ha8Iolaj;ah,hDkC;!ey,y;aDeC;al,l;el,l;hDlv3rC;le,ri8Ev4T;di,met;ay0c00gn4hWjd,ks2NlTmadZnSrKsXtDuric7VxC;imilBKwe8B;eHhEi69tCus,y69;!eo,hCia7;ew,i67;eDiC;as,eu,s;us,w;j,o;cHiGkFlEqu8Qsha83tCv3;iCy;!m,n;in,on;el,o7us;a6Yo7us;!elCin,o7us;!l8o;frAEi5Zny,u5;achDcoCik;lm;ai,y;amDdi,e5VmC;oud;adCm6W;ou;aulCi9P;ay;aWeOiMloyd,oJuDyC;le,nd1;cFdEiDkCth2uk;a7e;gi,s,z;ov7Cv6Hw6H;!as,iC;a6Een;g0nn52renDuCvA4we7D;!iS;!zo;am,n4oC;n5r;a9Yevi,la5KnHoFst2thaEvC;eCi;nte;bo;nCpo8V;!a82el,id;!nC;aAy;mEnd1rDsz73urenCwr6K;ce,t;ry,s;ar,beAont;aOeIhalHiFla4onr63rDu5SylC;e,s;istCzysztof;i0oph2;er0ngsl9p,rC;ilA9k,ollos;ed,id;en0iGnDrmCv4Z;it;!dDnCt1;e2Ny;ri4Z;r,th;cp2j4mEna8BrDsp6them,uC;ri;im,l;al,il;a03eXiVoFuC;an,lCst3;en,iC;an,en,o,us;aQeOhKkub4AnIrGsDzC;ef;eDhCi9Wue;!ua;!f,ph;dCge;i,on;!aCny;h,s,th6J;anDnC;!ath6Hie,n72;!nC;!es;!l,sCy;ph;o,qu3;an,mC;!i,m6V;d,ffFns,rCs4;a7JemDmai7QoCry;me,ni1H;i9Dy;!e73rC;ey,y;cKdBkImHrEsDvi2yC;dBs1;on,p2;ed,oDrCv67;e6Qod;d,s61;al,es5Wis1;a,e,oCub;b,v;ob,qu13;aTbNchiMgLke53lija,nuKonut,rIsEtCv0;ai,suC;ki;aDha0i8XmaCsac;el,il;ac,iaC;h,s;a,vinCw3;!g;k,nngu6X;nac1Xor;ka;ai,rahC;im;aReLoIuCyd6;beAgGmFsC;eyDsC;a3e3;in,n;ber5W;h,o;m2raDsse3wC;a5Pie;c49t1K;a0Qct3XiGnDrC;beAman08;dr7VrC;iCy2N;!k,q1R;n0Tt3S;bKlJmza,nIo,rEsDyC;a5KdB;an,s0;lEo67r2IuCv9;hi5Hki,tC;a,o;an,ey;k,s;!im;ib;a08e00iUlenToQrMuCyorgy;iHnFsC;!taC;f,vC;!e,o;n6tC;er,h2;do,lC;herDlC;auCerQ;me;aEegCov2;!g,orC;!io,y;dy,h7C;dfr9nza3XrDttfC;ri6C;an,d47;!n;acoGlEno,oCuseppe;rgiCvan6O;!o,s;be6Ies,lC;es;mo;oFrC;aDha4HrC;it,y;ld,rd8;ffErgC;!e7iCy;!os;!r9;bElBrCv3;eCla1Nr4Hth,y;th;e,rC;e3YielC;!i4;aXeSiQlOorrest,rCyod2E;aHedFiC;edDtC;s,z;ri18;!d42eri11riC;ck,k;nCs2;cEkC;ie,lC;in,yn;esLisC;!co,z3M;etch2oC;ri0yd;d5lConn;ip;deriFliEng,rC;dinaCg4nan0B;nd8;pe,x;co;bCdi,hd;iEriC;ce,zC;io;an,en,o;benez2dZfrYit0lTmMnJo3rFsteb0th0ugenEvCymBzra;an,eCge4D;ns,re3K;!e;gi,iDnCrol,v3w3;est8ie,st;cCk;!h,k;o0DriCzo;co,qC;ue;aHerGiDmC;aGe3A;lCrh0;!iC;a10o,s;s1y;nu5;beAd1iEliDm2t1viCwood;n,s;ot28s;!as,j5Hot,sC;ha;a3en;!dGg6mFoDua2QwC;a2Pin;arC;do;oZuZ;ie;a04eTiOmitrNoFrag0uEwDylC;an,l0;ay3Hig4D;a3Gdl9nc0st3;minFnDri0ugCvydGy2S;!lF;!a36nCov0;e1Eie,y;go,iDykC;as;cCk;!k;i,y;armuFetDll1mitri7neCon,rk;sh;er,m6riC;ch;id;andLepak,j0lbeAmetri4nIon,rGsEvDwCxt2;ay30ey;en,in;hawn,moC;nd;ek,riC;ck;is,nC;is,y;rt;re;an,le,mKnIrEvC;e,iC;!d;en,iEne0PrCyl;eCin,yl;l45n;n,o,us;!iCny;el,lo;iCon;an,en,on;a0Fe0Ch03iar0lRoJrFuDyrC;il,us;rtC;!is;aEistC;iaCob12;no;ig;dy,lInErC;ey,neliCy;s,us;nEor,rDstaC;nt3;ad;or;by,e,in,l3t1;aHeEiCyde;fCnt,ve;fo0Xt1;menDt4;us;s,t;rFuDyC;!t1;dCs;e,io;enC;ce;aHeGrisC;!toC;phCs;!eC;!r;st2t;d,rCs;b5leC;s,y;cDdrCs6;ic;il;lHmFrC;ey,lDroCy;ll;!o7t1;er1iC;lo;!eb,v3;a09eZiVjorn,laUoSrEuCyr1;ddy,rtKst2;er;aKeFiEuDyC;an,ce,on;ce,no;an,ce;nDtC;!t;dDtC;!on;an,on;dFnC;dDisC;lav;en,on;!foOl9y;bby,gd0rCyd;is;i0Lke;bElDshC;al;al,lL;ek;nIrCshoi;at,nEtC;!raC;m,nd;aDhaCie;rd;rd8;!iDjam3nCs1;ie,y;to;kaMlazs,nHrC;n9rDtC;!holomew;eCy;tt;ey;dCeD;ar,iC;le;ar1Nb1Dd16fon15gust3hm12i0Zja0Yl0Bm07nTputsiSrGsaFugustEveDyCziz;a0kh0;ry;o,us;hi;aMchiKiJjun,mHnEon,tCy0;em,hCie,ur8;ur;aDoC;!ld;ud,v;aCin;an,nd8;!el,ki;baCe;ld;ta;aq;aMdHgel8tCw6;hoFoC;iDnC;!i8y;ne;ny;er7rCy;eDzC;ej;!as,i,j,s,w;!s;s,tolC;iCy;!y;ar,iEmaCos;nu5r;el;ne,r,t;aVbSdBeJfHiGl01onFphonsEt1vC;aPin;on;e,o;so,zo;!sR;!onZrC;ed;c,jaHksFssaHxC;!andC;er,rC;e,os,u;andCei;ar,er,r;ndC;ro;en;eDrecC;ht;rt8;dd3in,n,sC;taC;ir;ni;dDm6;ar;an,en;ad,eC;d,t;in;so;aGi,olErDvC;ik;ian8;f8ph;!o;mCn;!a;dGeFraDuC;!bakr,lfazl;hCm;am;!l;allFel,oulaye,ulC;!lDrahm0;an;ah,o;
1209ah;av,on",Uncountable:"true¦0:2E;1:2L;2:33;a2Ub2Lc29d22e1Rf1Ng1Eh16i11j0Yk0Wl0Rm0Hn0Do0Cp03rZsLt9uran2Jv7w3you gu0E;a5his17i4oo3;d,l;ldlife,ne;rm8t1;apor,ernacul29i3;neg28ol1Otae;eDhBiAo8r4un3yranny;a,gst1B;aff2Oea1Ko4ue nor3;th;o08u3;bleshoot2Ose1Tt;night,othpas1Vwn3;foEsfoE;me off,n;er3und1;e,mod2S;a,nnis;aDcCeBhAi9ki8o7p6t4u3weepstak0;g1Unshi2Hshi;ati08e3;am,el;ace2Keci0;ap,cc1meth2C;n,ttl0;lk;eep,ingl0or1C;lf,na1Gri0;ene1Kisso1C;d0Wfe2l4nd,t3;i0Iurn;m1Ut;abi0e4ic3;e,ke15;c3i01laxa11search;ogni10rea10;a9e8hys7luto,o5re3ut2;amble,mis0s3ten20;en1Zs0L;l3rk;i28l0EyH; 16i28;a24tr0F;nt3ti0M;i0s;bstetri24vercrowd1Qxyg09;a5e4owada3utella;ys;ptu1Ows;il poliZtional securi2;aAe8o5u3;m3s1H;ps;n3o1K;ey,o3;gamy;a3cha0Elancholy,rchandi1Htallurgy;sl0t;chine3g1Aj1Hrs,thema1Q; learn1Cry;aught1e6i5ogi4u3;ck,g12;c,s1M;ce,ghtn18nguis1LteratWv1;ath1isVss;ara0EindergartPn3;icke0Aowled0Y;e3upit1;a3llyfiGwel0G;ns;ce,gnor6mp5n3;forma00ter3;net,sta07;atiSort3rov;an18;a7e6isto09o3ung1;ckey,mework,ne4o3rseradi8spitali2use arrest;ky;s2y;adquarteXre;ir,libut,ppiHs3;hi3te;sh;ene8l6o5r3um,ymnas11;a3eZ;niUss;lf,re;ut3yce0F;en; 3ti0W;edit0Hpo3;ol;aNicFlour,o4urnit3;ure;od,rgive3uri1wl;ness;arCcono0LducaBlectr9n7quip8thi0Pvery6x3;ist4per3;ti0B;en0J;body,o08th07;joy3tertain3;ment;ici2o3;ni0H;tiS;nings,th;emi02i6o4raugh3ynas2;ts;pe,wnstai3;rs;abet0ce,s3;honZrepu3;te;aDelciChAivi07l8o3urrency;al,ld w6mmenta5n3ral,ttIuscoB;fusiHt 3;ed;ry;ar;assi01oth0;es;aos,e3;eMwK;us;d,rO;a8i6lood,owlHread5u3;ntGtt1;er;!th;lliarJs3;on;g3ss;ga3;ge;cKdviJeroGirFmBn6ppeal court,r4spi3thleL;rin;ithmet3sen3;ic;i6y3;o4th3;ing;ne;se;en5n3;es2;ty;ds;craft;bi8d3nau7;yna3;mi6;ce;id,ous3;ti3;cs",Infinitive:"true¦0:9G;1:9T;2:AD;3:90;4:9Z;5:84;6:AH;7:A9;8:92;9:A0;A:AG;B:AI;C:9V;D:8R;E:8O;F:97;G:6H;H:7D;a94b8Hc7Jd68e4Zf4Mg4Gh4Ai3Qj3Nk3Kl3Bm34nou48o2Vp2Equ2Dr1Es0CtZuTvRwI;aOeNiLors5rI;eJiI;ng,te;ak,st3;d5e8TthI;draw,er;a2d,ep;i2ke,nIrn;d1t;aIie;liADniAry;nJpI;ho8Llift;cov1dJear8Hfound8DlIplug,rav82tie,ve94;eaAo3X;erIo;cut,go,staAFvalA3w2G;aSeQhNoMrIu73;aIe72;ffi3Smp3nsI;aBfo7CpI;i8oD;pp3ugh5;aJiJrIwaD;eat5i2;nk;aImA0;ch,se;ck3ilor,keImp1r8L;! paD;a0Ic0He0Fh0Bi0Al08mugg3n07o05p02qu01tUuLwI;aJeeIim;p,t5;ll7Wy;bNccMffLggeCmmKppJrI;mouFpa6Zvi2;o0re6Y;ari0on;er,i4;e7Numb;li9KmJsiIveD;de,st;er9it;aMe8MiKrI;ang3eIi2;ng27w;fIng;f5le;b,gg1rI;t3ve;a4AiA;a4UeJit,l7DoI;il,of;ak,nd;lIot7Kw;icEve;atGeak,i0O;aIi6;m,y;ft,ng,t;aKi6CoJriIun;nk,v6Q;ot,rt5;ke,rp5tt1;eIll,nd,que8Gv1w;!k,m;aven9ul8W;dd5tis1Iy;a0FeKiJoI;am,t,ut;d,p5;a0Ab08c06d05f01group,hea00iZjoi4lXmWnVpTq3MsOtMup,vI;amp,eJiIo3B;sEve;l,rI;e,t;i8rI;ie2ofE;eLiKpo8PtIurfa4;o24rI;aHiBuctu8;de,gn,st;mb3nt;el,hra0lIreseF;a4e71;d1ew,o07;aHe3Fo2;a7eFiIo6Jy;e2nq41ve;mbur0nf38;r0t;inKleBocus,rJuI;el,rbiA;aBeA;an4e;aBu4;ei2k8Bla43oIyc3;gni39nci3up,v1;oot,uI;ff;ct,d,liIp;se,ze;tt3viA;aAenGit,o7;aWerUinpoiFlumm1LoTrLuI;b47ke,niArIt;poDsuI;aFe;eMoI;cKd,fe4XhibEmo7noJpo0sp1tru6vI;e,i6o5L;un4;la3Nu8;aGclu6dJf1occupy,sup0JvI;a6BeF;etermi4TiB;aGllu7rtr5Ksse4Q;cei2fo4NiAmea7plex,sIva6;eve8iCua6;mp1rItrol,ve;a6It6E;bOccuNmEpMutLverIwe;l07sJtu6Yu0wI;helm;ee,h1F;gr5Cnu2Cpa4;era7i4Ipo0;py,r;ey,seItaH;r2ss;aMe0ViJoIultiply;leCu6Pw;micJnIspla4;ce,g3us;!k;iIke,na9;m,ntaH;aPeLiIo0u3N;ke,ng1quIv5;eIi6S;fy;aKnIss5;d,gI;th5;rn,ve;ng2Gu1N;eep,idnJnI;e4Cow;ap;oHuI;gg3xtaI;po0;gno8mVnIrk;cTdRfQgeChPitia7ju8q1CsNtKun6EvI;a6eIo11;nt,rt,st;erJimi6BoxiPrI;odu4u6;aBn,pr03ru6C;iCpi8tIu8;all,il,ruB;abEibE;eCo3Eu0;iIul9;ca7;i7lu6;b5Xmer0pI;aLer4Uin9ly,oJrI;e3Ais6Bo2;rt,se,veI;riA;le,rt;aLeKiIoiCuD;de,jaInd1;ck;ar,iT;mp1ng,pp5raIve;ng5Mss;ath1et,iMle27oLrI;aJeIow;et;b,pp3ze;!ve5A;gg3ve;aTer45i5RlSorMrJuI;lf4Cndrai0r48;eJiIolic;ght5;e0Qsh5;b3XeLfeEgJsI;a3Dee;eIi2;!t;clo0go,shIwa4Z;ad3F;att1ee,i36;lt1st5;a0OdEl0Mm0FnXquip,rWsVtGvTxI;aRcPeDhOiNpJtIu6;ing0Yol;eKi8lIo0un9;aHoI;it,re;ct,di7l;st,t;a3oDu3B;e30lI;a10u6;lt,mi28;alua7oI;ke,l2;chew,pou0tab19;a0u4U;aYcVdTfSgQhan4joy,lPqOrNsuMtKvI;e0YisI;a9i50;er,i4rI;aHenGuC;e,re;iGol0F;ui8;ar9iC;a9eIra2ulf;nd1;or4;ang1oIu8;r0w;irc3lo0ou0ErJuI;mb1;oaGy4D;b3ct;bKer9pI;hasiIow1;ze;aKody,rI;a4oiI;d1l;lm,rk;ap0eBuI;ci40de;rIt;ma0Rn;a0Re04iKo,rIwind3;aw,ed9oI;wn;agno0e,ff1g,mi2Kne,sLvI;eIul9;rIst;ge,t;aWbVcQlod9mant3pNru3TsMtI;iIoDu37;lJngI;uiA;!l;ol2ua6;eJlIo0ro2;a4ea0;n0r0;a2Xe36lKoIu0S;uIv1;ra9;aIo0;im;a3Kur0;b3rm;af5b01cVduBep5fUliTmQnOpMrLsiCtaGvI;eIol2;lop;ch;a20i2;aDiBloIoD;re,y;oIy;te,un4;eJoI;liA;an;mEv1;a4i0Ao06raud,y;ei2iMla8oKrI;ee,yI;!pt;de,mIup3;missi34po0;de,ma7ph1;aJrief,uI;g,nk;rk;mp5rk5uF;a0Dea0h0Ai09l08oKrIurta1G;a2ea7ipp3uI;mb3;ales4e04habEinci6ll03m00nIrro6;cXdUfQju8no7qu1sLtKvI;eIin4;ne,r9y;aHin2Bribu7;er2iLoli2Epi8tJuI;lt,me;itu7raH;in;d1st;eKiJoIroFu0;rm;de,gu8rm;ss;eJoI;ne;mn,n0;eIlu6ur;al,i2;buCe,men4pI;eIi3ly;l,te;eBi6u6;r4xiC;ean0iT;rcumveFte;eJirp,oI;o0p;riAw;ncIre5t1ulk;el;a02eSi6lQoPrKuI;iXrIy;st,y;aLeaKiJoad5;en;ng;stfeLtX;ke;il,l11mba0WrrMth1;eIow;ed;!coQfrie1LgPhMliLqueaKstJtrIwild1;ay;ow;th;e2tt3;a2eJoI;ld;ad;!in,ui3;me;bysEckfi8ff3tI;he;b15c0Rd0Iff0Ggree,l0Cm09n03ppZrXsQttOuMvJwaE;it;eDoI;id;rt;gIto0X;meF;aIeCraB;ch,in;pi8sJtoI;niA;aKeIi04u8;mb3rt,ss;le;il;re;g0Hi0ou0rI;an9i2;eaKly,oiFrI;ai0o2;nt;r,se;aMi0GnJtI;icipa7;eJoIul;un4y;al;ly0;aJu0;se;lga08ze;iKlI;e9oIu6;t,w;gn;ix,oI;rd;a03jNmiKoJsoI;rb;pt,rn;niIt;st1;er;ouJuC;st;rn;cLhie2knowled9quiItiva7;es4re;ce;ge;eQliOoKrJusI;e,tom;ue;mIst;moJpI;any,liA;da7;ma7;te;pt;andPduBet,i6oKsI;coKol2;ve;liArt,uI;nd;sh;de;ct;
1209on",Person:"true¦0:1Q;a29b1Zc1Md1Ee18f15g13h0Ri0Qj0Nk0Jl0Gm09n06o05p00rPsItCusain bolt,v9w4xzibit,y1;anni,oko on2uji,v1;an,es;en,o;a3ednesday adams,i2o1;lfram,o0Q;ll ferrell,z khalifa;lt disn1Qr1;hol,r0G;a2i1oltai06;n dies0Zrginia wo17;lentino rossi,n goG;a4h3i2ripp,u1yra banks;lZpac shakur;ger woods,mba07;eresa may,or;kashi,t1ylor;um,ya1B;a5carlett johanss0h4i3lobodan milosevic,no2ocr1Lpider1uperm0Fwami; m0Em0E;op dogg,w whi1H;egfried,nbad;akespeaTerlock holm1Sia labeouf;ddam hussa16nt1;a cla11ig9;aAe6i5o3u1za;mi,n dmc,paul,sh limbau1;gh;bin hood,d stew16nald1thko;in0Mo;han0Yngo starr,valdo;ese witherspo0i1mbrandt;ll2nh1;old;ey,y;chmaninoff,ffi,iJshid,y roma1H;a4e3i2la16o1uff daddy;cahont0Ie;lar,p19;le,rZ;lm17ris hilt0;leg,prah winfr0Sra;a2e1iles cra1Bostradam0J; yo,l5tt06wmQ;pole0s;a5e4i2o1ubar03;by,lie5net,rriss0N;randa ju1tt romn0M;ly;rl0GssiaB;cklemo1rkov,s0ta hari,ya angelou;re;ady gaga,e1ibera0Pu;bron jam0Xch wale1e;sa;anye west,e3i1obe bryant;d cudi,efer suther1;la0P;ats,sha;a2effers0fk,k rowling,rr tolki1;en;ck the ripp0Mwaharlal nehru,y z;liTnez,ron m7;a7e5i3u1;lk hog5mphrey1sa01;! bog05;l1tl0H;de; m1dwig,nry 4;an;ile selassFlle ber4m3rrison1;! 1;ford;id,mo09;ry;ast0iannis,o1;odwPtye;ergus0lorence nightinga08r1;an1ederic chopN;s,z;ff5m2nya,ustaXzeki1;el;eril lagasse,i1;le zatop1nem;ek;ie;a6e4i2octor w1rake;ho;ck w1ego maradoC;olf;g1mi lovaOnzel washingt0;as;l1nHrth vadR;ai lNt0;a8h5lint0o1thulhu;n1olio;an,fuci1;us;on;aucKop2ristian baMy1;na;in;millo,ptain beefhe4r1;dinal wols2son1;! palmF;ey;art;a8e5hatt,i3oHro1;ck,n1;te;ll g1ng crosby;atB;ck,nazir bhut2rtil,yon1;ce;to;nksy,rack ob1;ama;l 6r3shton kutch2vril lavig8yn ra1;nd;er;chimed2istot1;le;es;capo2paci1;no;ne",Adjective:"true¦0:AI;1:BS;2:BI;3:BA;4:A8;5:84;6:AV;7:AN;8:AF;9:7H;A:BQ;B:AY;C:BC;D:BH;E:9Y;aA2b9Ec8Fd7We79f6Ng6Eh61i4Xj4Wk4Tl4Im41n3Po36p2Oquart7Pr2Ds1Dt14uSvOwFye29;aMeKhIiHoF;man5oFrth7G;dADzy;despreB1n w97s86;acked1UoleF;!sa6;ather1PeFll o70ste1D;!k5;nt1Ist6Ate4;aHeGiFola5T;bBUce versa,gi3Lle;ng67rsa5R;ca1gBSluAV;lt0PnLpHrGsFttermoBL;ef9Ku3;b96ge1; Hb32pGsFtiAH;ca6ide d4R;er,i85;f52to da2;a0Fbeco0Hc0Bd04e02f01gu1XheaBGiXkn4OmUnTopp06pRrNsJtHus0wF;aFiel3K;nt0rra0P;app0eXoF;ld,uS;eHi37o5ApGuF;perv06spec39;e1ok9O;en,ttl0;eFu5;cogn06gul2RlGqu84sF;erv0olv0;at0en33;aFrecede0E;id,rallel0;am0otic0;aFet;rri0tF;ch0;nFq26vers3;sur0terFv7U;eFrupt0;st0;air,inish0orese98;mploy0n7Ov97xpF;ect0lain0;eHisFocume01ue;clFput0;os0;cid0rF;!a8Scov9ha8Jlyi8nea8Gprivileg0sMwF;aFei9I;t9y;hGircumcFonvin2U;is0;aFeck0;lleng0rt0;b20ppea85ssuGttend0uthorF;iz0;mi8;i4Ara;aLeIhoHip 25oGrF;anspare1encha1i2;geth9leADp notch,rpB;rny,ugh6H;ena8DmpGrFs6U;r49tia4;eCo8P;leFst4M;nt0;a0Dc09e07h06i04ki03l01mug,nobbi4XoVpRqueami4XtKuFymb94;bHccinAi generis,pFr5;erFre7N;! dup9b,vi70;du0li7Lp6IsFurb7J;eq9Atanda9X;aKeJi16o2QrGubboFy4Q;rn;aightFin5GungS; fFfF;or7V;adfa9Pri6;lwa6Ftu82;arHeGir6NlendBot Fry;on;c3Qe1S;k5se; call0lImb9phistic16rHuFviV;ndFth1B;proof;dBry;dFub6; o2A;e60ipF;pe4shod;ll0n d7R;g2HnF;ceEg6ist9;am3Se9;co1Zem5lfFn6Are7; suf4Xi43;aGholFient3A;ar5;rlFt4A;et;cr0me,tisfac7F;aOeIheumatoBiGoF;bu8Ztt7Gy3;ghtFv3; 1Sf6X;cJdu8PlInown0pro69sGtF;ard0;is47oF;lu2na1;e1Suc45;alcit8Xe1ondi2;bBci3mpa1;aSePicayu7laOoNrGuF;bl7Tnjabi;eKiIoF;b7VfGmi49pFxi2M;er,ort81;a7uD;maFor,sti7va2;!ry;ciDexis0Ima2CpaB;in55puli8G;cBid;ac2Ynt 3IrFti2;ma40tFv7W;!i3Z;i2YrFss7R;anoBtF; 5XiF;al,s5V;bSffQkPld OnMrLth9utKverF;!aIbMdHhGni75seas,t,wF;ei74rou74;a63e7A;ue;ll;do1Ger,si6A;d3Qg2Aotu5Z; bFbFe on o7g3Uli7;oa80;fashion0school;!ay; gua7XbFha5Uli7;eat;eHligGsF;ce7er0So1C;at0;diFse;a1e1;aOeNiMoGuF;anc0de; moEnHrthFt6V;!eFwe7L;a7Krn;chaGdescri7Iprof30sF;top;la1;ght5;arby,cessa4ighbor5wlyw0xt;k0usiaFv3;ti8;aQeNiLoHuF;dIltiF;facet0p6;deHlGnFot,rbBst;ochro4Xth5;dy;rn,st;ddle ag0nF;dbloZi,or;ag9diocEga,naGrFtropolit4Q;e,ry;ci8;cIgenta,inHj0Fkeshift,mmGnFri4Oscu61ver18;da5Dy;ali4Lo4U;!stream;abEho;aOeLiIoFumberi8;ngFuti1R;stan3RtF;erm,i4H;ghtGteraF;l,ry,te;heart0wei5O;ft JgFss9th3;al,eFi0M;nda4;nguBps0te5;apGind5noF;wi8;ut;ad0itte4uniW;ce co0Hgno6Mll0Cm04nHpso 2UrF;a2releF;va1; ZaYcoWdReQfOgrNhibi4Ri05nMoLsHtFvalu5M;aAeF;nDrdepe2K;a7iGolFuboI;ub6ve1;de,gF;nifica1;rdi5N;a2er;own;eriIiLluenVrF;ar0eq5H;pt,rt;eHiGoFul1O;or;e,reA;fiFpe26termi5E;ni2;mpFnsideCrreA;le2;ccuCdeq5Ene,ppr4J;fFsitu,vitro;ro1;mJpF;arHeGl15oFrop9;li2r11;n2LrfeA;ti3;aGeFi18;d4BnD;tuE;egGiF;c0YteC;al,iF;tiF;ma2;ld;aOelNiLoFuma7;a4meInHrrGsFur5;ti6;if4E;e58o3U; ma3GsF;ick;ghfalut2HspF;an49;li00pf33;i4llow0ndGrdFtM; 05coEworki8;sy,y;aLener44iga3Blob3oKrGuF;il1Nng ho;aFea1Fizzl0;cGtF;ef2Vis;ef2U;ld3Aod;iFuc2D;nf2R;aVeSiQlOoJrF;aGeFil5ug3;q43tf2O;gFnt3S;i6ra1;lk13oHrF; keeps,eFge0Vm9tu41;g0Ei2Ds3R;liF;sh;ag4Mowe4uF;e1or45;e4nF;al,i2;d Gmini7rF;ti6ve1;up;bl0lDmIr Fst pac0ux;oGreacF;hi8;ff;ed,ili0R;aXfVlTmQnOqu3rMthere3veryday,xF;aApIquisi2traHuF;be48lF;ta1;!va2L;edRlF;icF;it;eAstF;whi6; Famor0ough,tiE;rou2sui2;erGiF;ne1;ge1;dFe2Aoq34;er5;ficF;ie1;g9sF;t,ygF;oi8;er;aWeMiHoGrFue;ea4owY;ci6mina1ne,r31ti8ubQ;dact2Jfficult,m,sGverF;ge1se;creGePjoi1paCtF;a1inA;et,te; Nadp0WceMfiLgeneCliJmuEpeIreliAsGvoF;id,ut;pFtitu2ul1L;eCoF;nde1;ca2ghF;tf13;a1ni2;as0;facto;
1209i5ngero0I;ar0Ce09h07i06l05oOrIuF;rmudgeon5stoma4teF;sy;ly;aIeHu1EystalF; cleFli7;ar;epy;fFv17z0;ty;erUgTloSmPnGrpoCunterclVveFy;rt;cLdJgr21jIsHtrF;aFi2;dic0Yry;eq1Yta1;oi1ug3;escenFuN;di8;a1QeFiD;it0;atoDmensuCpF;ass1SulF;so4;ni3ss3;e1niza1;ci1J;ockwiD;rcumspeAvil;eFintzy;e4wy;leGrtaF;in;ba2;diac,ef00;a00ePiLliJoGrFuck nak0;and new,isk,on22;gGldface,naF; fi05fi05;us;nd,tF;he;gGpartisFzarE;an;tiF;me;autifOhiNlLnHsFyoN;iWtselF;li8;eGiFt;gn;aFfi03;th;at0oF;v0w;nd;ul;ckwards,rF;e,rT; priori,b13c0Zd0Tf0Ng0Ihe0Hl09mp6nt06pZrTsQttracti0MuLvIwF;aGkF;wa1B;ke,re;ant garGeraF;ge;de;diIsteEtF;heFoimmu7;nt07;re;to4;hGlFtu2;eep;en;bitIchiv3roHtF;ifiFsy;ci3;ga1;ra4;ry;pFt;aHetizi8rF;oprF;ia2;llFre1;ed,i8;ng;iquFsy;at0e;ed;cohKiJkaHl,oGriFterX;ght;ne,of;li7;ne;ke,ve;olF;ic;ad;ain07gressiIi6rF;eeF;ab6;le;ve;fGraB;id;ectGlF;ue1;ioF;na2; JaIeGvF;erD;pt,qF;ua2;ma1;hoc,infinitum;cuCquiGtu3u2;al;esce1;ra2;erSjeAlPoNrKsGuF;nda1;e1olu2trF;aAuD;se;te;eaGuF;pt;st;aFve;rd;aFe;ze;ct;ra1;nt",Pronoun:"true¦elle,h3i2me,she,th0us,we,you;e0ou;e,m,y;!l,t;e,im",Preposition:"true¦aPbMcLdKexcept,fIinGmid,notwithstandiWoDpXqua,sCt7u4v2w0;/o,hereSith0;! whHin,oW;ersus,i0;a,s a vis;n1p0;!on;like,til;h1ill,oward0;!s;an,ereby,r0;ough0u;!oM;ans,ince,o that,uch G;f1n0ut;!to;!f;! 0to;effect,part;or,r0;om;espite,own,u3;hez,irca;ar1e0oBy;sides,tween;ri7;bo8cross,ft7lo6m4propos,round,s1t0;!op;! 0;a whole,long 0;as;id0ong0;!st;ng;er;ut",SportsTeam:"true¦0:18;1:1E;2:1D;3:14;a1Db15c0Sd0Kfc dallas,g0Ihouston 0Hindiana0Gjacksonville jagua0k0El0Am01new UoRpKqueens parkJreal salt lake,sBt6utah jazz,vancouver whitecaps,w4yW;ashington 4h10;natio1Mredski2wizar0W;ampa bay 7e6o4;ronto 4ttenham hotspur;blue ja0Mrapto0;nnessee tita2xasD;buccanee0ra0K;a8eattle 6porting kansas0Wt4; louis 4oke0V;c1Drams;marine0s4;eah13ounH;cramento Rn 4;antonio spu0diego 4francisco gJjose earthquak1;char08paB; ran07;a9h6ittsburgh 5ortland t4;imbe0rail blaze0;pirat1steele0;il4oenix su2;adelphia 4li1;eagl1philNunE;dr1;akland 4klahoma city thunder,rlando magic;athle0Lrai4;de0;england 8orleans 7york 4;g5je3knYme3red bul0Xy4;anke1;ian3;pelica2sain3;patrio3revolut4;ion;anchEeAi4ontreal impact;ami 8lwaukee b7nnesota 4;t5vi4;kings;imberwolv1wi2;rewe0uc0J;dolphi2heat,marli2;mphis grizz4ts;li1;a6eic5os angeles 4;clippe0dodFlaB;esterV; galaxy,ke0;ansas city 4nF;chiefs,roya0D; pace0polis col3;astr05dynamo,rocke3texa2;olden state warrio0reen bay pac4;ke0;allas 8e4i04od6;nver 6troit 4;lio2pisto2ti4;ge0;broncYnugge3;cowbo5maver4;icZ;ys;arEelLhAincinnati 8leveland 6ol4;orado r4umbus crew sc;api7ocki1;brow2cavalie0guar4in4;dia2;bengaVre4;ds;arlotte horAicago 4;b5cubs,fire,wh4;iteB;ea0ulQ;diff4olina panthe0; city;altimore Alackburn rove0oston 6rooklyn 4uffalo bilN;ne3;ts;cel5red4; sox;tics;rs;oriol1rave2;rizona Ast8tlanta 4;brav1falco2h4;awA;ns;es;on villa,r4;os;c6di4;amondbac4;ks;ardi4;na4;ls",Unit:"true¦a07b04cXdWexVfTgRhePinYjoule0BkMlJmDnan08oCp9quart0Bsq ft,t7volts,w6y2ze3°1µ0;g,s;c,f,n;dVear1o0;ttR; 0s 0;old;att,b;erNon0;!ne02;ascals,e1i0;cXnt00;rcent,tJ;hms,unceY;/s,e4i0m²,²,³;/h,cro2l0;e0liK;!²;grLsR;gCtJ;it1u0;menQx;erPreP;b5elvins,ilo1m0notO;/h,ph,²;!byGgrEmCs;ct0rtzL;aJogrC;allonJb0ig3rB;ps;a0emtEl oz,t4;hrenheit,radG;aby9;eci3m1;aratDe1m0oulombD;²,³;lsius,nti0;gr2lit1m0;et0;er8;am7;b1y0;te5;l,ps;c2tt0;os0;econd1;re0;!s","Noun|Gerund":"true¦0:3O;1:3M;2:3N;3:3D;4:32;5:2V;6:3E;7:3K;8:36;9:3J;A:3B;a3Pb37c2Jd27e23f1Vg1Sh1Mi1Ij1Gk1Dl18m13n11o0Wp0Pques0Sr0EsTtNunderMvKwFyDzB;eroi0oB;ni0o3P;aw2eB;ar2l3;aEed4hispe5i5oCrB;ap8est3i1;n0ErB;ki0r31;i1r2s9tc9;isualizi0oB;lunt1Vti0;stan4ta6;aFeDhin6iCraBy8;c6di0i2vel1M;mi0p8;aBs1;c9si0;l6n2s1;aUcReQhOiMkatKl2Wmo6nowJpeItFuCwB;ea5im37;b35f0FrB;fi0vB;e2Mi2J;aAoryt1KrCuB;d2KfS;etc9ugg3;l3n4;bCi0;ebBi0;oar4;gnBnAt1;a3i0;ip8oB;p8rte2u1;a1r27t1;hCo5reBulp1;a2Qe2;edu3oo3;i3yi0;aKeEi4oCuB;li0n2;oBwi0;fi0;aFcEhear7laxi0nDpor1sB;pon4tructB;r2Iu5;de5;or4yc3;di0so2;p8ti0;aFeacek20laEoCrBublis9;a1Teten4in1oces7;iso2siB;tio2;n2yi0;ckaAin1rB;ki0t1O;fEpeDrganiCvB;erco24ula1;si0zi0;ni0ra1;fe5;avi0QeBur7;gotia1twor6;aDeCi2oB;de3nito5;a2dita1e1ssaA;int0XnBrke1;ifUufactu5;aEeaDiBodAyi0;cen7f1mi1stB;e2i0;r2si0;n4ug9;iCnB;ea4it1;c6l3;ogAuB;dAgg3stif12;ci0llust0VmDnBro2;nova1sp0NterBven1;ac1vie02;agi2plo4;aDea1iCoBun1;l4w3;ki0ri0;nd3rB;roWvB;es1;aCene0Lli4rBui4;ee1ie0N;rde2the5;aHeGiDlCorBros1un4;e0Pmat1;ir1oo4;gh1lCnBs9;anZdi0;i0li0;e3nX;r0Zscina1;
1209a1du01nCxB;erci7plo5;chan1di0ginB;ee5;aLeHiGoub1rCum8wB;el3;aDeCiB;bb3n6vi0;a0Qs7;wi0;rTscoDvi0;ba1coZlBvelo8;eCiB;ve5;ga1;nGti0;aVelebUhSlPoDrBur3yc3;aBos7yi0;f1w3;aLdi0lJmFnBo6pi0ve5;dDsCvinB;ci0;trBul1;uc1;muniDpB;lBo7;ai2;ca1;lBo5;ec1;c9ti0;ap8eaCimToBubT;ni0t9;ni0ri0;aBee5;n1t1;ra1;m8rCs1te5;ri0;vi0;aPeNitMlLoGrDuB;dge1il4llBr8;yi0;an4eat9oadB;cas1;di0;a1mEokB;i0kB;ee8;pi0;bi0;es7oa1;c9i0;gin2lonAt1;gi0;bysit1c6ki0tt3;li0;ki0;bando2cGdverti7gi0pproac9rgDssuCtB;trac1;mi0;ui0;hi0;si0;coun1ti0;ti0;ni0;ng",PhrasalVerb:"true¦0:92;1:96;2:8H;3:8V;4:8A;5:83;6:85;7:98;8:90;9:8G;A:8X;B:8R;C:8U;D:8S;E:70;F:97;G:8Y;H:81;I:7H;J:79;a9Fb7Uc6Rd6Le6Jf5Ig50h4Biron0j47k40l3Em31n2Yo2Wp2Cquiet Hr1Xs0KtZuXvacuu6QwNyammerBzK;ero Dip LonK;e0k0;by,ov9up;aQeMhLiKor0Mrit19;mp0n3Fpe0r5s5;ackAeel Di0S;aLiKn33;gh 3Wrd0;n Dr K;do1in,oJ;it 79k5lk Lrm 69sh Kt83v60;aw3do1o7up;aw3in,oC;rgeBsK;e 2herE;a00eYhViRoQrMuKypP;ckErn K;do1in,oJup;aLiKot0y 30;ckl7Zp F;ck HdK;e 5Y;n7Wp 3Es5K;ck MdLe Kghten 6me0p o0Rre0;aw3ba4do1in,up;e Iy 2;by,oG;ink Lrow K;aw3ba4in,up;ba4ov9up;aKe 77ll62;m 2r 5M;ckBke Llk K;ov9shit,u47;aKba4do1in,leave,o4Dup;ba4ft9pa69w3;a0Vc0Te0Mh0Ii0Fl09m08n07o06p01quar5GtQuOwK;earMiK;ngLtch K;aw3ba4o8K; by;cKi6Bm 2ss0;k 64;aReQiPoNrKud35;aigh2Det75iK;ke 7Sng K;al6Yup;p Krm2F;by,in,oG;c3Ln3Lr 2tc4O;p F;c3Jmp0nd LrKveAy 2O;e Ht 2L;ba4do1up;ar3GeNiMlLrKurB;ead0ingBuc5;a49it 6H;c5ll o3Cn 2;ak Fe1Xll0;a3Bber 2rt0und like;ap 5Vow Duggl5;ash 6Noke0;eep NiKow 6;cLp K;o6Dup;e 68;in,oK;ff,v9;de19gn 4NnKt 6Gz5;gKkE; al6Ale0;aMoKu5W;ot Kut0w 7M;aw3ba4f48oC;c2WdeEk6EveA;e Pll1Nnd Orv5tK; Ktl5J;do1foLin,o7upK;!on;ot,r5Z;aw3ba4do1in,o33up;oCto;al66out0rK;ap65ew 6J;ilAv5;aXeUiSoOuK;b 5Yle0n Kstl5;aLba4do1inKo2Ith4Nu5P;!to;c2Xr8w3;ll Mot LpeAuK;g3Ind17;a2Wf3Po7;ar8in,o7up;ng 68p oKs5;ff,p18;aKelAinEnt0;c6Hd K;o4Dup;c27t0;aZeYiWlToQrOsyc35uK;ll Mn5Kt K;aKba4do1in,oJto47up;pa4Dw3;a3Jdo1in,o21to45up;attleBess KiNop 2;ah2Fon;iLp Kr4Zu1Gwer 6N;do1in,o6Nup;nt0;aLuK;gEmp 6;ce u20y 6D;ck Kg0le 4An 6p5B;oJup;el 5NncilE;c53ir 39n0ss MtLy K;ba4oG; Hc2R;aw3ba4in,oJ;pKw4Y;e4Xt D;aLerd0oK;dAt53;il Hrrow H;aTeQiPoLuK;ddl5ll I;c1FnkeyMp 6uthAve K;aKdo1in,o4Lup;l4Nw3; wi4K;ss0x 2;asur5e3SlLss K;a21up;t 6;ke Ln 6rKs2Ax0;k 6ryA;do,fun,oCsure,up;a02eViQoLuK;ck0st I;aNc4Fg MoKse0;k Kse4D;aft9ba4do1forw37in56o0Zu46;in,oJ;d 6;e NghtMnLsKve 00;ten F;e 2k 2; 2e46;ar8do1in;aMt LvelK; oC;do1go,in,o7up;nEve K;in,oK;pKut;en;c5p 2sh LtchBughAy K;do1o59;in4Po7;eMick Lnock K;do1oCup;oCup;eLy K;in,up;l Ip K;aw3ba4do1f04in,oJto,up;aMoLuK;ic5mpE;ke3St H;c43zz 2;a01eWiToPuK;nLrrKsh 6;y 2;keLt K;ar8do1;r H;lKneErse3K;d Ke 2;ba4dKfast,o0Cup;ear,o1;de Lt K;ba4on,up;aw3o7;aKlp0;d Ml Ir Kt 2;fKof;rom;f11in,o03uW;cPm 2nLsh0ve Kz2P;at,it,to;d Lg KkerP;do1in,o2Tup;do1in,oK;ut,v9;k 2;aZeTive Rloss IoMrLunK; f0S;ab hold,in43ow 2U; Kof 2I;aMb1Mit,oLr8th1IuK;nd9;ff,n,v9;bo7ft9hQw3;aw3bKdo1in,oJrise,up,w3;a4ir2H;ar 6ek0t K;aLb1Fdo1in,oKr8up;ff,n,ut,v9;cLhKl2Fr8t,w3;ead;ross;d aKng 2;bo7;a0Ee07iYlUoQrMuK;ck Ke2N;ar8up;eLighten KownBy 2;aw3oG;eKshe27; 2z5;g 2lMol Krk I;aKwi20;bo7r8;d 6low 2;aLeKip0;sh0;g 6ke0mKrKtten H;e F;gRlPnNrLsKzzle0;h F;e Km 2;aw3ba4up;d0isK;h 2;e Kl 1T;aw3fPin,o7;ht ba4ure0;ePnLsK;s 2;cMd K;fKoG;or;e D;d04l 2;cNll Krm0t1G;aLbKdo1in,o09sho0Eth08victim;a4ehi2O;pa0C;e K;do1oGup;at Kdge0nd 12y5;in,o7up;aOi1HoNrK;aLess 6op KuN;aw3b03in,oC;gBwB; Ile0ubl1B;m 2;a0Ah05l02oOrLut K;aw3ba4do1oCup;ackBeep LoKy0;ss Dwd0;by,do1in,o0Uup;me NoLuntK; o2A;k 6l K;do1oG;aRbQforOin,oNtKu0O;hLoKrue;geth9;rough;ff,ut,v9;th,wK;ard;a4y;paKr8w3;rt;eaLose K;in,oCup;n 6r F;aNeLiK;ll0pE;ck Der Kw F;on,up;t 2;lRncel0rOsMtch LveE; in;o1Nup;h Dt K;doubt,oG;ry LvK;e 08;aw3oJ;l Km H;aLba4do1oJup;ff,n,ut;r8w3;a0Ve0MiteAl0Fo04rQuK;bblNckl05il0Dlk 6ndl05rLsKtMy FzzA;t 00;n 0HsK;t D;e I;ov9;anWeaUiLush K;oGup;ghQng K;aNba4do1forMin,oLuK;nd9p;n,ut;th;bo7lKr8w3;ong;teK;n 2;k K;do1in,o7up;ch0;arTg 6iRn5oPrNssMttlLunce Kx D;aw3ba4;e 6; ar8;e H;do1;k Dt 2;e 2;l 6;do1up;d 2;aPeed0oKurt0;cMw K;aw3ba4do1o7up;ck;k K;in,oC;ck0nk0stA; oQaNef 2lt0nd K;do1ov9up;er;up;r Lt K;do1in,oCup;do1o7;ff,nK;to;ck Pil0nMrgLsK;h D;ainBe D;g DkB; on;in,o7;aw3do1in,oCup;ff,ut;ay;ct FdQir0sk MuctionA; oG;ff;ar8o7;ouK;nd; o7;d K;do1oKup;ff,n;wn;o7up;ut",ProperNoun:"true¦aIbDc8dalhousHe7f5gosford,h4iron maiden,kirby,landsdowne,m2nis,r1s0wembF;herwood,paldiB;iel,othwe1;cgi0ercedes,issy;ll;intBudsB;airview,lorence,ra0;mpt9nco;lmo,uro;a1h0;arlt6es5risti;rl0talina;et4i0;ng;arb3e0;et1nt0rke0;ley;on;ie;bid,jax","Person|Place":"true¦a8d6h4jordan,k3orlando,s1vi0;ctor9rgin9;a0ydney;lvador,mara,ntia4;ent,obe;amil0ous0;ton;arw2ie0;go;lexandr1ust0;in;ia",LastName:"true¦0:BR;1:BF;2:B5;3:BH;4:AX;5:9Y;6:B6;7:BK;8:B0;9:AV;A:AL;B:8Q;C:8G;D:7K;E:BM;F:AH;aBDb9Zc8Wd88e81f7Kg6Wh64i60j5Lk4Vl4Dm39n2Wo2Op25quispe,r1Ls0Pt0Ev03wTxSyKzG;aIhGimmerm6A;aGou,u;ng,o;khar5ytsE;aKeun9BiHoGun;koya32shiBU;!lG;diGmaz;rim,z;maGng;da,g52mo83sGzaC;aChiBV;iao,u;aLeJiHoGright,u;jcA5lff,ng;lGmm0nkl0sniewsC;kiB1liams33s3;bGiss,lt0;b,er,st0;a6Vgn0lHtG;anabe,s3;k0sh,tG;e2Non;aLeKiHoGukD;gt,lk5roby5;dHllalGnogr3Kr1Css0val3S;ba,ob1W;al,ov4;lasHsel8W;lJn dIrgBEsHzG;qu7;ilyEqu7siljE;en b6Aijk,yk;enzueAIverde;aPeix1VhKi2j8ka43oJrIsui,uG;om5UrG;c2n0un1;an,emblA7ynisC;dorAMlst3Km4rrAth;atch0i8UoG;mHrG;are84laci79;ps3sG;en,on;hirDkah9Mnaka,te,varA;a06ch01eYhUiRmOoMtIuHvGzabo;en9Jobod3N;ar7bot4lliv2zuC;aIeHoG;i7Bj4AyanAB;ele,in2FpheBvens25;l8rm0;kol5lovy5re7Tsa,to,uG;ng,sa;iGy72;rn5tG;!h;l71mHnGrbu;at9cla9Egh;moBo7M;aIeGimizu;hu,vchG;en8Luk;la,r1G;gu9infe5YmGoh,pulveA7rra5P;jGyG;on5;evi6iltz,miHneid0roed0uGwarz;be3Elz;dHtG;!t,z;!t;ar4Th8ito,ka4OlJnGr4saCto,unde19v4;ch7dHtGz;a5Le,os;b53e16;as,ihDm4Po0Y;aVeSiPoJuHyG;a6oo,u;bio,iz,sG;so,u;bKc8Fdrigue67ge10j9YmJosevelt,sItHux,wG;e,li6;a9Ch;enb4Usi;a54e4L;erts15i93;bei4JcHes,vGzzo;as,e9;ci,hards12;ag2es,iHut0yG;es,nol5N;s,t0;dImHnGsmu97v6C;tan1;ir7os;ic,u;aUeOhMiJoHrGut8;asad,if6Zochazk27;lishc2GpGrti72u10we76;e3Aov51;cHe45nG;as,to;as70hl0;aGillips;k,m,n6I;a3Hde3Wete0Bna,rJtG;ersHrovGters54;!a,ic;!en,on;eGic,kiBss3;i9ra,tz,z;h86k,padopoulIrk0tHvG;ic,l4N;el,te39;os;bMconn2Ag2TlJnei6PrHsbor6XweBzG;dem7Rturk;ella4DtGwe6N;ega,iz;iGof7Hs8I;vGyn1R;ei9;aSri1;aPeNiJoGune50ym2;rHvGwak;ak4Qik5otn66;odahl,r4S;cholsZeHkolGls4Jx3;ic,ov84;ls1miG;!n1;ils3mG;co4Xec;gy,kaGray2sh,var38;jiGmu9shiG;ma;a07c04eZiWoMuHyeG;rs;lJnIrGssoli6S;atGp03r7C;i,ov4;oz,te58;d0l0;h2lOnNo0RrHsGza1A;er,s;aKeJiIoz5risHtG;e56on;!on;!n7K;au,i9no,t5J;!lA;
1209r1Btgome59;i3El0;cracFhhail5kkeHlG;l0os64;ls1;hmeJiIj30lHn3Krci0ssiGyer2N;!er;n0Po;er,j0;dDti;cartHlG;aughl8e2;hy;dQe7Egnu68i0jer3TkPmNnMrItHyG;er,r;ei,ic,su21thews;iHkDquAroqu8tinG;ez,s;a5Xc,nG;!o;ci5Vn;a5UmG;ad5;ar5e6Kin1;rig77s1;aVeOiLoJuHyG;!nch;k4nGo;d,gu;mbarGpe3Fvr4we;di;!nGu,yana2B;coln,dG;b21holm,strom;bedEfeKhIitn0kaHn8rGw35;oy;!j;m11tG;in1on1;bvGvG;re;iGmmy,ng,rs2Qu,voie,ws3;ne,t1F;aZeYh2iWlUnez50oNrJuHvar2woG;k,n;cerGmar68znets5;a,o34;aHem0isGyeziu;h23t3O;m0sni4Fus3KvG;ch4O;bay57ch,rh0Usk16vaIwalGzl5;czGsC;yk;cIlG;!cGen4K;huk;!ev4ic,s;e8uiveG;rt;eff0kGl4mu9nnun1;ucF;ll0nnedy;hn,llKminsCne,pIrHstra3Qto,ur,yGzl5;a,s0;j0Rls22;l2oG;or;oe;aPenOha6im14oHuG;ng,r4;e32hInHrge32u6vG;anD;es,ss3;anHnsG;en,on,t3;nesGs1R;en,s1;kiBnings,s1;cJkob4EnGrv0E;kDsG;en,sG;en0Ion;ks3obs2A;brahimDglesi5Nke5Fl0Qno07oneIshikHto,vanoG;u,v54;awa;scu;aVeOiNjaltal8oIrist50uG;!aGb0ghAynh;m2ng;a6dz4fIjgaa3Hk,lHpUrGwe,x3X;ak1Gvat;mAt;er,fm3WmG;ann;ggiBtchcock;iJmingw4BnHrGss;nand7re9;deGriks1;rs3;kkiHnG;on1;la,n1;dz4g1lvoQmOns0ZqNrMsJuIwHyG;asFes;kiB;g1ng;anHhiG;mo14;i,ov0J;di6p0r10t;ue;alaG;in1;rs1;aVeorgUheorghe,iSjonRoLrJuGw3;errGnnar3Co,staf3Ctierr7zm2;a,eG;ro;ayli6ee2Lg4iffithGub0;!s;lIme0UnHodGrbachE;e,m2;calvAzale0S;dGubE;bGs0E;erg;aj,i;bs3l,mGordaO;en7;iev3U;gnMlJmaIndFo,rGsFuthi0;cGdn0za;ia;ge;eaHlG;agh0i,o;no;e,on;aVerQiLjeldsted,lKoIrHuG;chs,entAji41ll0;eem2iedm2;ntaGrt8urni0wl0;na;emi6orA;lipIsHtzgeraG;ld;ch0h0;ovG;!ic;hatDnanIrG;arGei9;a,i;deY;ov4;b0rre1D;dKinsJriksIsGvaB;cob3GpGtra3D;inoza,osiQ;en,s3;te8;er,is3warG;ds;aXePiNjurhuMoKrisco15uHvorakG;!oT;arte,boHmitru,nn,rGt3C;and,ic;is;g2he0Omingu7nErd1ItG;to;us;aGcki2Hmitr2Ossanayake,x3;s,z; JbnaIlHmirGrvisFvi,w2;!ov4;gado,ic;th;bo0groot,jo6lHsilGvriA;va;a cruz,e3uG;ca;hl,mcevsCnIt2WviG;dGes,s;ov,s3;ielsGku22;!en;ki;a0Be06hRiobQlarkPoIrGunningh1H;awfo0RivGuz;elli;h1lKntJoIrGs2Nx;byn,reG;a,ia;ke,p0;i,rer2K;em2liB;ns;!e;anu;aOeMiu,oIristGu6we;eGiaG;ns1;i,ng,p9uHwGy;!dH;dGng;huJ;!n,onGu6;!g;kJnIpm2ttHudhGv7;ry;erjee,o14;!d,g;ma,raboG;rty;bJl0Cng4rG;eghetHnG;a,y;ti;an,ota1C;cerAlder3mpbeLrIstGvadi0B;iGro;llo;doHl0Er,t0uGvalho;so;so,zo;ll;a0Fe01hYiXlUoNrKuIyG;rLtyG;qi;chan2rG;ke,ns;ank5iem,oGyant;oks,wG;ne;gdan5nIruya,su,uchaHyKziG;c,n5;rd;darGik;enG;ko;ov;aGond15;nco,zG;ev4;ancFshw16;a08oGuiy2;umGwmG;ik;ckRethov1gu,ktPnNrG;gJisInG;ascoGds1;ni;ha;er,mG;anG;!n;gtGit7nP;ss3;asF;hi;er,hG;am;b4ch,ez,hRiley,kk0ldw8nMrIshHtAu0;es;ir;bInHtlGua;ett;es,i0;ieYosa;dGik;a9yoG;padhyG;ay;ra;k,ng;ic;bb0Acos09d07g04kht05lZnPrLsl2tJyG;aHd8;in;la;chis3kiG;ns3;aImstro6sl2;an;ng;ujo,ya;dJgelHsaG;ri;ovG;!a;ersJov,reG;aGjEws;ss1;en;en,on,s3;on;eksejEiyEmeiIvG;ar7es;ez;da;ev;arwHuilG;ar;al;ams,l0;er;ta;as",Ordinal:"true¦eBf7nin5s3t0zeroE;enDhir1we0;lfCn7;d,t3;e0ixt8;cond,vent7;et0th;e6ie7;i2o0;r0urt3;tie4;ft1rst;ight0lev1;e0h,ie1;en0;th",Cardinal:"true¦bEeBf5mEnine7one,s4t0zero;en,h2rDw0;e0o;lve,n5;irt6ousands,ree;even2ix2;i3o0;r1ur0;!t2;ty;ft0ve;e2y;ight0lev1;!e0y;en;illions",Multiple:"true¦b3hundred,m3qu2se1t0;housand,r2;pt1xt1;adr0int0;illion",City:"true¦0:74;1:61;2:6G;3:6J;4:5S;a68b53c4Id48e44f3Wg3Hh39i31j2Wk2Fl23m1Mn1Co19p0Wq0Ur0Os05tRuQvLwDxiBy9z5;a7h5i4Muri4O;a5e5ongsh0;ng3H;greb,nzib5G;ang2e5okoha3Sunfu;katerin3Hrev0;a5n0Q;m5Hn;arsBeAi6roclBu5;h0xi,zh5P;c7n5;d5nipeg,terth4;hoek,s1L;hi5Zkl3A;l63xford;aw;a8e6i5ladivost5Molgogr6L;en3lni6S;ni22r5;o3saill4N;lenc4Wncouv3Sr3ughn;lan bat1Crumqi,trecht;aFbilisi,eEheDiBo9r7u5;l21n63r5;in,ku;i5ondh62;es51poli;kyo,m2Zron1Pulo5;n,uS;an5jua3l2Tmisoa6Bra3;j4Tshui; hag62ssaloni2H;gucigal26hr0l av1U;briz,i6llinn,mpe56ng5rtu,shk2R;i3Esh0;an,chu1n0p2Eyu0;aEeDh8kopje,owe1Gt7u5;ra5zh4X;ba0Ht;aten is55ockholm,rasbou67uttga2V;an8e6i5;jiazhua1llo1m5Xy0;f50n5;ya1zh4H;gh3Kt4Q;att45o1Vv44;cramen16int ClBn5o paulo,ppo3Rrajevo; 7aa,t5;a 5o domin3E;a3fe,m1M;antonio,die3Cfrancisco,j5ped3Nsalvad0J;o5u0;se;em,t lake ci5Fz25;lou58peters24;a9e8i6o5;me,t59;ga,o5yadh;! de janei3F;cife,ims,nn3Jykjavik;b4Sip4lei2Inc2Pwalpindi;ingdao,u5;ez2i0Q;aFeEhDiCo9r7u6yong5;ya1;eb59ya1;a5etor3M;g52to;rt5zn0; 5la4Co;au prin0Melizabe24sa03;ls3Prae5Atts26;iladelph3Gnom pe1Aoenix;ki1tah tik3E;dua,lerYnaji,r4Ot5;na,r32;ak44des0Km1Mr6s5ttawa;a3Vlo;an,d06;a7ew5ing2Fovosibir1Jyc; 5cast36;del24orlea44taip14;g8iro4Wn5pl2Wshv33v0;ch6ji1t5;es,o1;a1o1;a6o5p4;ya;no,sa0W;aEeCi9o6u5;mb2Ani26sc3Y;gadishu,nt6s5;c13ul;evideo,pelli1Rre2Z;ami,l6n14s5;kolc,sissauga;an,waukee;cca,d5lbour2Mmph41ndo1Cssi3;an,ell2Xi3;cau,drAkass2Sl9n8r5shh4A;aca6ib5rakesh,se2L;or;i1Sy;a4EchFdal0Zi47;mo;id;aDeAi8o6u5vSy2;anMckn0Odhia3;n5s angel26;d2g bea1N;
1209brev2Be3Lma5nz,sb2verpo28;!ss27; ma39i5;c5pzig;est16; p6g5ho2Wn0Cusan24;os;az,la33;aHharFiClaipeBo9rak0Du7y5;iv,o5;to;ala lump4n5;mi1sh0;hi0Hlka2Xpavog4si5wlo2;ce;da;ev,n5rkuk;gst2sha5;sa;k5toum;iv;bHdu3llakuric0Qmpa3Fn6ohsiu1ra5un1Iwaguc0Q;c0Pj;d5o,p4;ah1Ty;a7e6i5ohannesV;l1Vn0;dd36rusalem;ip4k5;ar2H;bad0mph1OnArkutUs7taXz5;mir,tapala5;pa;fah0l6tanb5;ul;am2Zi2H;che2d5;ianap2Mo20;aAe7o5yder2W; chi mi5ms,nolulu;nh;f6lsin5rakli2;ki;ei;ifa,lifax,mCn5rb1Dva3;g8nov01oi;aFdanEenDhCiPlasgBo9raz,u5;a5jr23;dal6ng5yaquil;zh1J;aja2Oupe;ld coa1Bthen5;bu2S;ow;ent;e0Uoa;sk;lw7n5za;dhi5gt1E;nag0U;ay;aisal29es,o8r6ukuya5;ma;ankfu5esno;rt;rt5sh0; wor6ale5;za;th;d5indhov0Pl paso;in5mont2;bur5;gh;aBe8ha0Xisp4o7resd0Lu5;b5esseldorf,nkirk,rb0shanbe;ai,l0I;ha,nggu0rtmu13;hradSl6nv5troit;er;hi;donghIe6k09l5masc1Zr es sala1KugavpiY;i0lU;gu,je2;aJebu,hAleve0Vo5raio02uriti1Q;lo7n6penhag0Ar5;do1Ok;akKst0V;gUm5;bo;aBen8i6ongqi1ristchur5;ch;ang m7ca5ttago1;go;g6n5;ai;du,zho1;ng5ttogr14;ch8sha,zh07;gliari,i9lga8mayenJn6pe town,r5tanO;acCdiff;ber1Ac5;un;ry;ro;aWeNhKirmingh0WoJr9u5;chareTdapeTenos air7r5s0tu0;g5sa;as;es;a9is6usse5;ls;ba6t5;ol;ne;sil8tisla7zzav5;il5;le;va;ia;goZst2;op6ubaneshw5;ar;al;iCl9ng8r5;g6l5n;in;en;aluru,hazi;fa6grade,o horizon5;te;st;ji1rut;ghd0BkFn9ot8r7s6yan n4;ur;el,r07;celo3i,ranquil09;ou;du1g6ja lu5;ka;alo6k5;ok;re;ng;ers5u;field;a05b02cc01ddis aba00gartaZhmedXizawl,lSmPnHqa00rEsBt7uck5;la5;nd;he7l5;an5;ta;ns;h5unci2;dod,gab5;at;li5;ngt2;on;a8c5kaOtwerp;hora6o3;na;ge;h7p5;ol5;is;eim;aravati,m0s5;terd5;am; 7buquerq6eppo,giers,ma5;ty;ue;basrah al qadim5mawsil al jadid5;ah;ab5;ad;la;ba;ra;idj0u dha5;bi;an;lbo6rh5;us;rg",Region:"true¦0:2O;1:2L;2:2U;3:2F;a2Sb2Fc21d1Wes1Vf1Tg1Oh1Ki1Fj1Bk16l13m0Sn09o07pYqVrSsJtEuBverAw6y4zacatec2W;akut0o0Fu4;cat1k09;a5est 4isconsin,yomi1O;bengal,virgin0;rwick3shington4;! dc;acruz,mont;dmurt0t4;ah,tar4; 2Pa12;a6e5laxca1Vripu21u4;scaEva;langa2nnessee,x2J;bas10m4smQtar29;aulip2Hil nadu;a9elang07i7o5taf16u4ylh1J;ff02rr09s1E;me1Gno1Uuth 4;cZdY;ber0c4kkim,naloa;hu1ily;n5rawak,skatchew1xo4;ny; luis potosi,ta catari2;a4hodeA;j4ngp0C;asth1shahi;ingh29u4;e4intana roo;bec,en6retaro;aAe6rince edward4unjab; i4;sl0G;i,n5r4;ak,nambu0F;a0Rnsylv4;an0;ha0Pra4;!na;axa0Zdisha,h4klaho21ntar4reg7ss0Dx0I;io;aLeEo6u4;evo le4nav0X;on;r4tt18va scot0;f9mandy,th4; 4ampton3;c6d5yo4;rk3;ako1O;aroli2;olk;bras1Nva0Dw4; 6foundland4;! and labrad4;or;brunswick,hamp3jers5mexiTyork4;! state;ey;galPyarit;aAeghala0Mi6o4;nta2r4;dov0elos;ch6dlanDn5ss4zor11;issippi,ouri;as geraPneso18;ig1oac1;dhy12harasht0Gine,lac07ni5r4ssachusetts;anhao,i el,ylG;p4toba;ur;anca3e4incoln3ouisI;e4iR;ds;a6e5h4omi;aka06ul2;dah,lant1ntucky,ra01;bardino,lmyk0ns0Qr4;achay,el0nata0X;alis6har4iangxi;kh4;and;co;daho,llino7n4owa;d5gush4;et0;ia2;is;a6ert5i4un1;dalFm0D;ford3;mp3rya2waii;ansu,eorg0lou7oa,u4;an4izhou,jarat;ajuato,gdo4;ng;cester3;lori4uji1;da;sex;ageUe7o5uran4;go;rs4;et;lawaMrby3;aFeaEh9o4rim08umbr0;ahui7l6nnectic5rsi4ventry;ca;ut;i03orado;la;e5hattisgarh,i4uvash0;apRhuahua;chn5rke4;ss0;ya;ra;lGm4;bridge3peche;a9ihar,r8u4;ck4ryat0;ingham3;shi4;re;emen,itish columb0;h0ja cal8lk7s4v7;hkorto4que;st1;an;ar0;iforn0;ia;dygHguascalientes,lBndhr9r5ss4;am;izo2kans5un4;achal 7;as;na;a 4;pradesh;a6ber5t4;ai;ta;ba5s4;ka;ma;ea",Place:"true¦0:4T;1:4V;2:44;3:4B;4:3I;a4Eb3Gc2Td2Ge26f25g1Vh1Ji1Fk1Cl14m0Vn0No0Jp08r04sTtNuLvJw7y5;a5o0Syz;kut1Bngtze;aDeChitBi9o5upatki,ycom2P;ki26o5;d5l1B;b3Ps5;i4to3Y;c0SllowbroCn5;c2Qgh2;by,chur1P;ed0ntw3Gs22;ke6r3St5;erf1f1; is0Gf3V;auxha3Mirgin is0Jost5;ok;laanbaatar,pto5xb3E;n,wn;a9eotihuac43h7ive49o6ru2Nsarskoe selo,u5;l2Dzigo47;nto,rquay,tt2J;am3e 5orn3E;bronx,hamptons;hiti,j mah0Iu1N;aEcotts bluff,eCfo,herbroQoApring9t7u5yd2F;dbu1Wn5;der03set3B;aff1ock2Nr5;atf1oud;hi37w24;ho,uth5; 1Iam1Zwo3E;a5i2O;f2Tt0;int lawrence riv3Pkhal2D;ayleigh,ed7i5oc1Z;chmo1Eo gran4ver5;be1Dfr09si4; s39cliffe,hi2Y;aCe9h8i5ompeii,utn2;c6ne5tcai2T; 2Pc0G;keri13t0;l,x;k,lh2mbr6n5r2J;n1Hzance;oke;cif38pahanaumokuak30r5;k5then0;si4w1K;ak7r6x5;f1l2X;ange county,d,f1inoco;mTw1G;e8i1Uo5;r5tt2N;th5wi0E; 0Sam19;uschwanste1Pw5; eng6a5h2market,po36;rk;la0P;a8co,e6i5uc;dt1Yll0Z;adow5ko0H;lands;chu picchu,gad2Ridsto1Ql8n7ple6r5;kh2; g1Cw11;hatt2Osf2B;ibu,t0ve1Z;a8e7gw,hr,in5owlOynd02;coln memori5dl2C;al;asi4w3;kefr7mbe1On5s,x;ca2Ig5si05;f1l27t0;ont;azan kreml14e6itchen2Gosrae,rasnoyar5ul;sk;ns0Hs1U;ax,cn,lf1n6ps5st;wiN;d5glew0Lverness;ian27ochina;aDeBi6kg,nd,ov5unti2H;d,enweep;gh6llc5;reL;bu03l5;and5;!s;r5yw0C;ef1tf1;libu24mp6r5stings;f1lem,row;stead,t0;aDodavari,r5uelph;avenAe5imsS;at 8en5; 6f1Fwi5;ch;acr3vall1H;brita0Flak3;hur5;st;ng3y villa0W;airhavHco,ra;aAgli9nf17ppi8u7ver6x5;et1Lf1;glad3t0;rope,st0;ng;nt0;rls1Ls5;t 5;e5si4;nd;aCe9fw,ig8o7ryd6u5xb;mfri3nstab00rh2tt0;en;nca18rcKv19wnt0B;by;n6r5vonpo1D;ry;!h2;nu8r5;l6t5;f1moor;ingt0;be;aLdg,eIgk,hClBo5royd0;l6m5rnwa0B;pt0;c7lingw6osse5;um;ood;he0S;earwat0St;a8el6i5uuk;chen itza,mney ro07natSricahua;m0Zt5;enh2;mor5rlottetPth2;ro;dar 5ntervilA;breaks,faZg5;rove;ld9m8r5versh2;lis6rizo pla5;in;le;bLpbellf1;weQ;aZcn,eNingl01kk,lackLolt0r5uckV;aGiAo5;ckt0ok5wns cany0;lyn,s5;i4to5;ne;de;dge6gh5;am,t0;n6t5;own;or5;th;ceb6m5;lNpt0;rid5;ge;bu5pool,wa8;rn;aconsfEdf1lBr9verly7x5;hi5;ll; hi5;lls;wi5;ck; air,l5;ingh2;am;ie5;ld;ltimore,rnsl6tters5;ea;ey;bLct0driadic,frica,ginJlGmFn9rc8s7tl6yleOzor3;es;!ant8;hcroft,ia; de triomphe,t6;adyr,ca8dov9tarct5;ic5; oce5;an;st5;er;ericas,s;be6dersh5hambra,list0;ot;rt0;cou5;rt;bot7i5;ngd0;on;sf1;ord",Country:"true¦0:38;1:2L;2:3B;a2Xb2Ec22d1Ye1Sf1Mg1Ch1Ai14j12k0Zl0Um0Gn05om2pZqat1KrXsKtCu7v5wal4yemTz3;a25imbabwe;es,lis and futu2Y;a3enezue32ietnam;nuatu,tican city;gTk6nited 4ruXs3zbeE; 2Ca,sr;arab emirat0Kkingdom,states3;! of am2Y;!raiV;a8haCimor les0Co7rinidad 5u3;nis0rk3valu;ey,me2Zs and caic1V;and t3t3;oba1L;go,kel10nga;iw2ji3nz2T;ki2V;aDcotl1eCi9lov8o6pa2Dri lanka,u5w3yr0;az3edAitzerl1;il1;d2riname;lomon1Xmal0uth 3;afr2KkMsud2;ak0en0;erra leoFn3;gapo1Yt maart3;en;negLrb0ychellZ;int 3moa,n marino,udi arab0;hele26luc0mart21;epublic of ir0Eom2Euss0w3;an27;a4eIhilippinUitcairn1Mo3uerto riN;l1rtugF;
1209ki2Dl4nama,pua new0Vra3;gu7;au,esti3;ne;aBe9i7or3;folk1Ith4w3;ay; k3ern mariana1D;or0O;caragua,ger3ue;!ia;p3ther1Aw zeal1;al;mib0u3;ru;a7exi6icro0Bo3yanm06;ldova,n3roc5zambA;a4gol0t3;enegro,serrat;co;cAdagasc01l7r5urit4yot3;te;an0i16;shall0Xtin3;ique;a4div3i,ta;es;wi,ys0;ao,ed02;a6e5i3uxembourg;b3echtenste12thu1G;er0ya;ban0Isotho;os,tv0;azakh1Fe4iriba04o3uwait,yrgyz1F;rXsovo;eling0Knya;a3erG;ma16p2;c7nd6r4s3taly,vory coast;le of m2rael;a3el1;n,q;ia,oJ;el1;aiTon3ungary;dur0Ng kong;aBermany,ha0QibraltAre8u3;a6ern5inea3ya0P;! biss3;au;sey;deloupe,m,tema0Q;e3na0N;ce,nl1;ar;bUmb0;a7i6r3;ance,ench 3;guia0Epoly3;nes0;ji,nl1;lklandUroeU;ast tim7cu6gypt,l salv6ngl1quatorial4ritr5st3thiop0;on0; guin3;ea;ad3;or;enmark,jibou5ominica4r con3;go;!n C;ti;aBentral african Ah8o5roat0u4yprRzech3; 9ia;ba,racao;c4lo3morQngo brazzaville,okGsta r04te de ivoiL;mb0;osE;i3ristmasG;le,na;republic;m3naUpe verde,ymanA;bod0ero3;on;aGeDhut2o9r5u3;lgar0r3;kina faso,ma,undi;azil,itish 3unei;virgin3; is3;lands;liv0nai5snia and herzegoviHtswaHuvet3; isl1;and;re;l3n8rmuG;ar3gium,ize;us;h4ngladesh,rbad3;os;am4ra3;in;as;fghaGlDmBn6r4ustr3zerbaij2;al0ia;genti3men0uba;na;dorra,g5t3;arct7igua and barbu3;da;o3uil3;la;er3;ica;b3ger0;an0;ia;ni3;st2;an",FirstName:"true¦aTblair,cQdOfrancoZgabMhinaLilya,jHkClBm6ni4quinn,re3s0;h0umit,yd;ay,e0iloh;a,lby;g9ne;co,ko0;!s;a1el0ina,org6;!okuhF;ds,naia,r1tt0xiB;i,y;ion,lo;ashawn,eif,uca;a3e1ir0rM;an;lsFn0rry;dall,yat5;i,sD;a0essIie,ude;i1m0;ie,mG;me;ta;rie0y;le;arcy,ev0;an,on;as1h0;arl8eyenne;ey,sidy;drien,kira,l4nd1ubr0vi;ey;i,r0;a,e0;a,y;ex2f1o0;is;ie;ei,is",WeekDay:"true¦fri2mon2s1t0wednesd3;hurs1ues1;aturd1und1;!d0;ay0;!s",Month:"true¦dec0february,july,nov0octo1sept0;em0;ber",Date:"true¦ago,on4som4t1week0yesterd5; end,ends;mr1o0;d2morrow;!w;ed0;ay",Duration:"true¦centurAd8h7m5q4se3w1y0;ear8r8;eek0k7;!end,s;ason,c5;tr,uarter;i0onth3;llisecond2nute2;our1r1;ay0ecade0;!s;ies,y",FemaleName:"true¦0:J7;1:JB;2:IJ;3:IK;4:J1;5:IO;6:JS;7:JO;8:HB;9:JK;A:H4;B:I2;C:IT;D:JH;E:IX;F:BA;G:I4;aGTbFLcDRdD0eBMfB4gADh9Ti9Gj8Dk7Cl5Wm48n3Lo3Hp33qu32r29s15t0Eu0Cv02wVxiTyOzH;aLeIineb,oHsof3;e3Sf3la,ra;h2iKlIna,ynH;ab,ep;da,ma;da,h2iHra;nab;aKeJi0FolB7uIvH;et8onDP;i0na;le0sen3;el,gm3Hn,rGLs8W;aoHme0nyi;m5XyAD;aMendDZhiDGiH;dele9lJnH;if48niHo0;e,f47;a,helmi0lHma;a,ow;ka0nB;aNeKiHusa5;ck84kIl8oleAviH;anFenJ4;ky,toriBK;da,lA8rHs0;a,nHoniH9;a,iFR;leHnesH9;nILrH;i1y;g9rHs6xHA;su5te;aYeUhRiNoLrIuHy2;i,la;acJ3iHu0J;c3na,sH;hFta;nHr0F;iFya;aJffaEOnHs6;a,gtiH;ng;!nFSra;aIeHomasi0;a,l9Oo8Ares1;l3ndolwethu;g9Fo88rIssH;!a,ie;eHi,ri7;sa,za;bOlMmKnIrHs6tia0wa0;a60yn;iHya;a,ka,s6;arFe2iHm77ra;!ka;a,iH;a,t6;at6it6;a0Ecarlett,e0AhWiSkye,neza0oQri,tNuIyH;bIGlvi1;ha,mayIJniAsIzH;an3Net8ie,y;anHi7;!a,e,nH;aCe;aIeH;fan4l5Dphan6E;cI5r5;b3fiAAm0LnHphi1;d2ia,ja,ya;er2lJmon1nIobh8QtH;a,i;dy;lETv3;aMeIirHo0risFDy5;a,lDM;ba,e0i5lJrH;iHr6Jyl;!d8Ifa;ia,lDZ;hd,iMki2nJrIu0w0yH;la,ma,na;i,le9on,ron,yn;aIda,ia,nHon;a,on;!ya;k6mH;!aa;lJrItaye82vH;da,inj;e0ife;en1i0ma;anA9bLd5Oh1SiBkKlJmInd2rHs6vannaC;aCi0;ant6i2;lDOma,ome;ee0in8Tu2;in1ri0;a05eZhXiUoHuthDM;bScRghQl8LnPsJwIxH;anB3ie,y;an,e0;aIeHie,lD;ann7ll1marDGtA;!lHnn1;iHyn;e,nH;a,dF;da,i,na;ayy8G;hel67io;bDRerAyn;a,cIkHmas,nFta,ya;ki,o;h8Xki;ea,iannGMoH;da,n1P;an0bJemFgi0iInHta,y0;a8Bee;han86na;a,eH;cHkaC;a,ca;bi0chIe,i0mo0nHquETy0;di,ia;aERelHiB;!e,le;een4ia0;aPeOhMiLoJrHute6A;iHudenCV;scil3LyamvaB;lHrt3;i0ly;a,paluk;ilome0oebe,ylH;is,lis;ggy,nelope,r5t2;ige,m0VnKo5rvaDMtIulH;a,et8in1;ricHt4T;a,e,ia;do2i07;ctav3dIfD3is6ksa0lHphD3umC5yunbileg;a,ga,iv3;eHvAF;l3t8;aWeUiMoIurHy5;!ay,ul;a,eJor,rIuH;f,r;aCeEma;ll1mi;aNcLhariBQkKlaJna,sHta,vi;anHha;ur;!y;a,iDZki;hoGk9YolH;a,e4P;!mh;hir,lHna,risDEsreE;!a,lBV;asuMdLh3i6Dl5nKomi7rgEVtH;aHhal4;lHs6;i1ya;cy,et8;e9iF0ya;nngu2X;a0Ackenz4e02iMoJrignayani,uriDJyH;a,rH;a,iOlNna,tG;bi0i2llBJnH;a,iH;ca,ka,qD9;a,cUdo4ZkaTlOmi,nMrItzi,yH;ar;aJiIlH;anET;am;!l,nB;dy,eHh,n4;nhGrva;aKdJe0iCUlH;iHy;cent,e;red;!gros;!e5;ae5hH;ae5el3Z;ag5DgNi,lKrH;edi7AiIjem,on,yH;em,l;em,sCG;an4iHliCF;nHsCJ;a,da;!an,han;b09cASd07e,g05ha,i04ja,l02n00rLsoum5YtKuIv84xBKyHz4;bell,ra,soBB;d7rH;a,eE;h8Gild1t4;a,cUgQiKjor4l7Un4s6tJwa,yH;!aHbe6Xja9lAE;m,nBL;a,ha,in1;!aJbCGeIja,lDna,sHt63;!a,ol,sa;!l1D;
1209!h,mInH;!a,e,n1;!awit,i;arJeIie,oHr48ueri8;!t;!ry;et46i3B;el4Xi7Cy;dHon,ue5;akranAy;ak,en,iHlo3S;a,ka,nB;a,re,s4te;daHg4;!l3E;alDd4elHge,isDJon0;ei9in1yn;el,le;a0Ne0CiXoQuLyH;d3la,nH;!a,dIe2OnHsCT;!a,e2N;a,sCR;aD4cJel0Pis1lIna,pHz;e,iA;a,u,wa;iHy;a0Se,ja,l2NnB;is,l1UrItt1LuHvel4;el5is1;aKeIi7na,rH;aADi7;lHn1tA;ei;!in1;aTbb9HdSepa,lNnKsJvIzH;!a,be5Ret8z4;!ia;a,et8;!a,dH;a,sHy;ay,ey,i,y;a,iJja,lH;iHy;aA8e;!aH;!nF;ia,ya;!nH;!a,ne;aPda,e0iNjYla,nMoKsJtHx93y5;iHt4;c3t3;e2PlCO;la,nHra;a,ie,o2;a,or1;a,gh,laH;!ni;!h,nH;a,d2e,n5V;cOdon9DiNkes6mi9Gna,rMtJurIvHxmi,y5;ern1in3;a,e5Aie,yn;as6iIoH;nya,ya;fa,s6;a,isA9;a,la;ey,ie,y;a04eZhXiOlASoNrJyH;lHra;a,ee,ie;istHy6I;a,en,iIyH;!na;!e,n5F;nul,ri,urtnB8;aOerNlB7mJrHzzy;a,stH;en,in;!berlImernH;aq;eHi,y;e,y;a,stE;!na,ra;aHei2ongordzol;dij1w5;el7UiKjsi,lJnIrH;a,i,ri;d2na,za;ey,i,lBLs4y;ra,s6;biAcARdiat7MeBAiSlQmPnyakuma1DrNss6NtKviAyH;!e,lH;a,eH;e,i8T;!a6HeIhHi4TlDri0y;ar8Her8Hie,leErBAy;!lyn8Ori0;a,en,iHl5Xoli0yn;!ma,nFs95;a5il1;ei8Mi,lH;e,ie;a,tl6O;a0AeZiWoOuH;anMdLlHst88;es,iH;a8NeHs8X;!n9tH;!a,te;e5Mi3My;a,iA;!anNcelDdMelGhan7VleLni,sIva0yH;a,ce;eHie;fHlDph7Y;a,in1;en,n1;i7y;!a,e,n45;lHng;!i1DlH;!i1C;anNle0nKrJsH;i8JsH;!e,i8I;i,ri;!a,elGif2CnH;a,et8iHy;!e,f2A;a,eJiInH;a,eIiH;e,n1;!t8;cMda,mi,nIque4YsminFvie2y9zH;min7;a7eIiH;ce,e,n1s;!lHs82t0F;e,le;inIk6HlDquelH;in1yn;da,ta;da,lRmPnOo0rNsIvaHwo0zaro;!a0lu,na;aJiIlaHob89;!n9R;do2;belHdo2;!a,e,l3B;a7Ben1i0ma;di2es,gr72ji;a9elBogH;en1;a,e9iHo0se;a0na;aSeOiJoHus7Kyacin2C;da,ll4rten24snH;a,i9U;lImaH;ri;aIdHlaI;a,egard;ry;ath1BiJlInrietArmi9sH;sa,t1A;en2Uga,mi;di;bi2Fil8MlNnMrJsItHwa,yl8M;i5Tt4;n60ti;iHmo51ri53;etH;!te;aCnaC;a,ey,l4;a02eWiRlPoNrKunJwH;enHyne1R;!dolD;ay,el;acieIetHiselB;a,chE;!la;ld1CogooH;sh;adys,enHor3yn2K;a,da,na;aKgi,lIna,ov8EselHta;a,e,le;da,liH;an;!n0;mLnJorgIrH;ald5Si,m3Etrud7;et8i4X;a,eHna;s29vieve;ma;bIle,mHrnet,yG;al5Si5;iIrielH;a,l1;!ja;aTeQiPlorOoz3rH;anJeIiH;da,eB;da,ja;!cH;esIiHoi0P;n1s66;!ca;a,enc3;en,o0;lIn0rnH;anB;ec3ic3;jr,nArKtHy7;emIiHma,oumaA;ha,ma,n;eh;ah,iBrah,za0;cr4Rd0Re0Qi0Pk0Ol07mXn54rUsOtNuMvHwa;aKelIiH;!e,ta;inFyn;!a;!ngel4V;geni1ni47;h5Yien9ta;mLperanKtH;eIhHrel5;er;l31r7;za;a,eralB;iHma,ne4Lyn;cHka,n;a,ka;aPeNiKmH;aHe21ie,y;!li9nuH;elG;lHn1;e7iHy;a,e,ja;lHrald;da,y;!nue5;aWeUiNlMma,no2oKsJvH;a,iH;na,ra;a,ie;iHuiH;se;a,en,ie,y;a0c3da,e,f,nMsJzaH;!betHveA;e,h;aHe,ka;!beH;th;!a,or;anor,nH;!a,i;!in1na;ate1Rta;leEs6;vi;eIiHna,wi0;e,th;l,n;aYeMh3iLjeneKoH;lor5Vminiq4Ln3FrHtt4;a,eEis,la,othHthy;ea,y;ba;an09naCon9ya;anQbPde,eOiMlJmetr3nHsir5M;a,iH;ce,se;a,iIla,orHphi9;es,is;a,l6F;dHrdH;re;!d5Ena;!b2ForaCraC;a,d2nH;!a,e;hl3i0l0GmNnLphn1rIvi1WyH;le,na;a,by,cIia,lH;a,en1;ey,ie;a,et8iH;!ca,el1Aka,z;arHia;is;a0Re0Nh04i02lUoJristIynH;di,th3;al,i0;lPnMrIurH;tn1D;aJd2OiHn2Ori9;!nH;a,e,n1;!l4;cepci5Cn4sH;tanHuelo;ce,za;eHleE;en,t8;aJeoIotH;il54;!pat2;ir7rJudH;et8iH;a,ne;a,e,iH;ce,sZ;a2er2ndH;i,y;aReNloe,rH;isJyH;stH;al;sy,tH;a1Sen,iHy;an1e,n1;deJlseIrH;!i7yl;a,y;li9;nMrH;isKlImH;ai9;a,eHot8;n1t8;!sa;d2elGtH;al,elG;cIlH;es8i47;el3ilH;e,ia,y;itlYlXmilWndVrMsKtHy5;aIeIhHri0;er1IleErDy;ri0;a38sH;a37ie;a,iOlLmeJolIrH;ie,ol;!e,in1yn;lHn;!a,la;a,eIie,otHy;a,ta;ne,y;na,s1X;a0Ii0I;a,e,l1;isAl4;in,yn;a0Ke02iZlXoUrH;andi7eRiJoIyH;an0nn;nwDoke;an3HdgMgiLtH;n31tH;!aInH;ey,i,y;ny;d,t8;etH;!t7;an0e,nH;da,na;bbi7glarIlo07nH;iAn4;ka;ancHythe;a,he;an1Clja0nHsm3M;iAtH;ou;aWcVlinUniArPssOtJulaCvH;!erlH;ey,y;hJsy,tH;e,iHy7;e,na;!anH;ie,y;!ie;nItHyl;ha,ie;adIiH;ce;et8i9;ay,da;ca,ky;!triH;ce,z;rbJyaH;rmH;aa;a2o2ra;a2Ub2Od25g21i1Sj5l18m0Zn0Boi,r06sWtVuPvOwa,yIzH;ra,u0;aKes6gJlIn,seH;!l;in;un;!nH;a,na;a,i2K;drLguJrIsteH;ja;el3;stH;in1;a,ey,i,y;aahua,he0;hIi2Gja,miAs2DtrH;id;aMlIraqHt21;at;eIi7yH;!n;e,iHy;gh;!nH;ti;iJleIo6piA;ta;en,n1t8;aHelG;!n1J;a01dje5eZgViTjRnKohito,toHya;inet8nH;el5ia;te;!aKeIiHmJ;e,ka;!mHtt7;ar4;!belIliHmU;sa;!l1;a,eliH;ca;ka,sHta;a,sa;elHie;a,iH;a,ca,n1qH;ue;!tH;a,te;!bImHstasiMya;ar3;el;aLberKeliJiHy;e,l3naH;!ta;a,ja;!ly;hGiIl3nB;da;a,ra;le;aWba,ePiMlKthJyH;a,c3sH;a,on,sa;ea;iHys0N;e,s0M;a,cIn1sHza;a,e,ha,on,sa;e,ia,ja;c3is6jaKksaKna,sJxH;aHia;!nd2;ia,saH;nd2;ra;ia;i0nIyH;ah,na;a,is,naCoud;la;c6da,leEmNnLsH;haClH;inHyY;g,n;!h;a,o,slH;ey;ee;en;at6g4nIusH;ti0;es;ie;aWdiTelMrH;eJiH;anMenH;a,e,ne;an0;na;!aLeKiIyH;nn;a,n1;a,e;!ne;!iH;de;e,lDsH;on;yn;!lH;i9yn;ne;aKbIiHrL;!e,gaK;ey,i7y;!e;gaH;il;dKliyJradhIs6;ha;ya;ah;a,ya",Honorific:"true¦director1field marsh2lieutenant1rear0sergeant major,vice0; admir1; gener0;al","Adj|Gerund":"true¦0:3F;1:3H;2:31;3:2X;4:35;5:33;6:3C;7:2Z;8:36;9:29;a33b2Tc2Bd1Te1If19g12h0Zi0Rl0Nm0Gnu0Fo0Ap04rYsKtEuBvAw1Ayiel3;ar6e08;nBpA;l1Rs0B;fol3n1Zsett2;aEeDhrBi4ouc7rAwis0;e0Bif2oub2us0yi1;ea1SiA;l2vi1;l2mp0rr1J;nt1Vxi1;aMcreec7enten2NhLkyrocke0lo0Vmi2oJpHtDuBweA;e0Ul2;pp2ArA;
1209gi1pri5roun3;aBea8iAri2Hun9;mula0r4;gge4rA;t2vi1;ark2eAraw2;e3llb2F;aAot7;ki1ri1;i9oc29;dYtisf6;aEeBive0oAus7;a4l2;assu4defi9fres7ig9juve07mai9s0vAwar3;ea2italiAol1G;si1zi1;gi1ll6mb2vi1;a6eDier23lun1VrAun2C;eBoA;mi5vo1Z;ce3s5vai2;n3rpleA;xi1;ffCpWutBverAwi1;arc7lap04p0Pri3whel8;goi1l6st1J;en3sA;et0;m2Jrtu4;aEeDiCoBuAyst0L;mb2;t1Jvi1;s5tiga0;an1Rl0n3smeri26;dAtu4;de9;aCeaBiAo0U;fesa0Tvi1;di1ni1;c1Fg19s0;llumiGmFnArri0R;cDfurHsCtBviA;go23ti1;e1Oimi21oxica0rig0V;pi4ul0;orpo20r0K;po5;na0;eaBorr02umilA;ia0;li1rtwar8;lFrA;atiDipCoBuelA;i1li1;undbrea10wi1;pi1;f6ng;a4ea8;a3etc7it0lEoCrBulfA;il2;ee1FighXust1L;rAun3;ebo3thco8;aCoA;a0wA;e4i1;mi1tte4;lectrJmHnExA;aCci0hBis0pA;an3lo3;aOila1B;c0spe1A;ab2coura0CdBergi13ga0Clive9ric7s02tA;hral2i0J;ea4u4;barras5er09pA;owe4;if6;aQeIiBrA;if0;sAzz6;aEgDhearCsen0tA;rAur11;ac0es5;te9;us0;ppoin0r8;biliGcDfi9gra3ligh0mBpres5sAvasG;erE;an3ea9orA;ali0L;a6eiBli9rA;ea5;vi1;ta0;maPri1s7un0zz2;aPhMlo5oAripp2ut0;mGnArrespon3;cer9fDspi4tA;inBrA;as0ibu0ol2;ui1;lic0u5;ni1;fDmCpA;eAromi5;l2ti1;an3;or0;aAil2;llenAnAr8;gi1;l8ptAri1;iva0;aff2eGin3lFoDrBuA;d3st2;eathtaAui5;ki1;gg2i2o8ri1unA;ci1;in3;co8wiA;lAtc7;de4;bsorVcOgonMlJmHnno6ppea2rFsA;pi4su4toA;nBun3;di1;is7;hi1;res0;li1;aFu5;si1;ar8lu4;ri1;mi1;iAzi1;zi1;cAhi1;eleDomA;moBpan6;yi1;da0;ra0;ti1;bi1;ng",Comparable:"true¦0:3C;1:3Q;2:3F;a3Tb3Cc33d2Te2Mf2Ag1Wh1Li1Fj1Ek1Bl13m0Xn0So0Rp0Iqu0Gr07sHtCug0vAw4y3za0Q;el10ouN;ary,e6hi5i3ry;ck0Cde,l3n1ry,se;d,y;ny,te;a3i3R;k,ry;a3erda2ulgar;gue,in,st;a6en2Xhi5i4ouZr3;anqu2Cen1ue;dy,g36me0ny;ck,rs28;ll,me,rt,wd3I;aRcaPeOhMiLkin0BlImGoEpDt6u4w3;eet,ift;b3dd0Wperfi21rre28;sta26t21;a8e7iff,r4u3;pUr1;a4ict,o3;ng;ig2Vn0N;a1ep,rn;le,rk,te0;e1Si2Vright0;ci1Yft,l3on,re;emn,id;a3el0;ll,rt;e4i3y;g2Mm0Z;ek,nd2T;ck24l0mp1L;a3iRrill,y;dy,l01rp;ve0Jxy;n1Jr3;ce,y;d,fe,int0l1Hv0V;a8e6i5o3ude;mantic,o19sy,u3;gh;pe,t1P;a3d,mo0A;dy,l;gg4iFndom,p3re,w;id;ed;ai2i3;ck,et;hoAi1Fl9o8r5u3;ny,r3;e,p11;egna2ic4o3;fouSud;ey,k0;liXor;ain,easa2;ny;dd,i0ld,ranL;aive,e5i4o3u14;b0Sisy,rm0Ysy;bb0ce,mb0R;a3r1w;r,t;ad,e5ild,o4u3;nda12te;ist,o1;a4ek,l3;low;s0ty;a8e7i6o3ucky;f0Jn4o15u3ve0w10y0N;d,sy;e0g;ke0l,mp,tt0Eve0;e1Qwd;me,r3te;ge;e4i3;nd;en;ol0ui19;cy,ll,n3;secu6t3;e3ima4;llege2rmedia3;te;re;aAe7i6o5u3;ge,m3ng1C;bYid;me0t;gh,l0;a3fXsita2;dy,rWv3;en0y;nd13ppy,r3;d3sh;!y;aFenEhCiBlAoofy,r3;a8e6i5o3ue0Z;o3ss;vy;m,s0;at,e3y;dy,n;nd,y;ad,ib,ooD;a2d1;a3o3;st0;tDuiS;u1y;aCeebBi9l8o6r5u3;ll,n3r0N;!ny;aCesh,iend0;a3nd,rmD;my;at,ir7;erce,nan3;ci9;le;r,ul3;ty;a6erie,sse4v3xtre0B;il;nti3;al;r4s3;tern,y;ly,th0;appZe9i5ru4u3;mb;nk;r5vi4z3;zy;ne;e,ty;a3ep,n9;d3f,r;!ly;agey,h8l7o5r4u3;dd0r0te;isp,uel;ar3ld,mmon,st0ward0zy;se;evKou1;e3il0;ap,e3;sy;aHiFlCoAr5u3;ff,r0sy;ly;a6i3oad;g4llia2;nt;ht;sh,ve;ld,un3;cy;a4o3ue;nd,o1;ck,nd;g,tt3;er;d,ld,w1;dy;bsu6ng5we3;so3;me;ry;rd",Adverb:"true¦a08b05d00eYfSheQinPjustOkinda,likewiZmMnJoEpCquite,r9s5t2u0very,well;ltima01p0; to,wards5;h1iny bit,o0wiO;o,t6;en,us;eldom,o0uch;!me1rt0; of;how,times,w0C;a1e0;alS;ndomRth05;ar excellenEer0oint blank; Lhaps;f3n0utright;ce0ly;! 0;ag05moX; courGten;ewJo0; longWt 0;onHwithstand9;aybe,eanwhiNore0;!ovT;! aboX;deed,steY;lla,n0;ce;or3u0;ck1l9rther0;!moK;ing; 0evK;exampCgood,suH;n mas0vI;se;e0irect2; 2fini0;te0;ly;juAtrop;ackward,y 0;far,no0; means,w; GbroFd nauseam,gEl7ny5part,s4t 2w0;ay,hi0;le;be7l0mo7wor7;arge,ea6; soon,i4;mo0way;re;l 3mo2ongsi1ready,so,togeth0ways;er;de;st;b1t0;hat;ut;ain;ad;lot,posteriori",Conjunction:"true¦aXbTcReNhowMiEjust00noBo9p8supposing,t5wh0yet;e1il0o3;e,st;n1re0thN; if,by,vM;evL;h0il,o;erefOo0;!uU;lus,rovided th9;r0therwiM;! not; mattEr,w0;! 0;since,th4w7;f4n0; 0asmuch;as mIcaForder t0;h0o;at;! 0;only,t0w0;hen;!ev3;ith2ven0;! 0;if,tB;er;o0uz;s,z;e0ut,y the time;cau1f0;ore;se;lt3nd,s 0;far1if,m0soon1t2;uch0; as;hou0;gh",Currency:"true¦$,aud,bQcOdJeurIfHgbp,hkd,iGjpy,kElDp8r7s3usd,x2y1z0¢,£,Â¥,ден,лв,ÑÑб,฿,â¡,â¨,â¬,â,ï·¼;lotyQÅ;en,uanP;af,of;h0t5;e0il5;k0q0;elK;oubleJp,upeeJ;e2ound st0;er0;lingG;n0soF;ceEnies;empi7i7;n,r0wanzaCyatC;!onaBw;ls,nr;ori7ranc9;!os;en3i2kk,o0;b0ll2;ra5;me4n0rham4;ar3;e0ny;nt1;aht,itcoin0;!s",Determiner:"true¦aBboth,d9e6few,le5mu8neiDplenty,s4th2various,wh0;at0ich0;evC;a0e4is,ose;!t;everal,ome;!ast,s;a1l0very;!se;ch;e0u;!s;!n0;!o0y;th0;er","Adj|Present":"true¦a07b04cVdQeNfJhollIidRlEmCnarrIoBp9qua8r7s3t2uttFw0;aKet,ro0;ng,u08;endChin;e2hort,l1mooth,our,pa9tray,u0;re,speU;i2ow;
1209cu6da02leSpaN;eplica01i02;ck;aHerfePr0;eseUime,omV;bscu1pen,wn;atu0e3odeH;re;a2e1ive,ow0;er;an;st,y;ow;a2i1oul,r0;ee,inge;rm;iIke,ncy,st;l1mpty,x0;emHpress;abo4ic7;amp,e2i1oub0ry,ull;le;ffu9re6;fu8libe0;raE;alm,l5o0;mpleCn3ol,rr1unterfe0;it;e0u7;ct;juga8sum7;ea1o0;se;n,r;ankru1lu0;nt;pt;li2pproxi0rticula1;ma0;te;ght","Person|Adj":"true¦b3du2earnest,frank,mi2r0san1woo1;an0ich,u1;dy;sty;ella,rown",Modal:"true¦c5lets,m4ought3sh1w0;ill,o5;a0o4;ll,nt;! to,a;ight,ust;an,o0;uld",Verb:"true¦born,cannot,gonna,has,keep tabs,msg","Person|Verb":"true¦b8ch7dr6foster,gra5ja9lan4ma2ni9ollie,p1rob,s0wade;kip,pike,t5ue;at,eg,ier2;ck,r0;k,shal;ce;ce,nt;ew;ase,u1;iff,l1ob,u0;ck;aze,ossom","Person|Date":"true¦a2j0sep;an0une;!uary;p0ugust,v0;ril"},Hy=36,Jj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",Mae=Jj.split("").reduce(function(t,e,n){return t[e]=n,t},{}),RBt=function(t){if(Jj[t]!==void 0)return Jj[t];let e=1,n=Hy,r="";for(;t>=n;t-=n,e++,n*=Hy);for(;e--;){const i=t%Hy;r=String.fromCharCode((i<10?48:55)+i)+r,t=(t-i)/Hy}return r},LBt=function(t){if(Mae[t]!==void 0)return Mae[t];let e=0,n=1,r=Hy,i=1;for(;n<t.length;e+=r,n++,r*=Hy);for(let s=t.length-1;s>=0;s--,i*=Hy){let o=t.charCodeAt(s)-48;o>10&&(o-=7),e+=o*i}return e},Zj={toAlphaCode:RBt,fromAlphaCode:LBt},BBt=function(t){const e=new RegExp("([0-9A-Z]+):([0-9A-Z]+)");for(let n=0;n<t.nodes.length;n++){const r=e.exec(t.nodes[n]);if(!r){t.symCount=n;break}t.syms[Zj.fromAlphaCode(r[1])]=Zj.fromAlphaCode(r[2])}t.nodes=t.nodes.slice(t.symCount,t.nodes.length)},FBt=function(t,e,n){const r=Zj.fromAlphaCode(e);return r<t.symCount?t.syms[r]:n+r+1-t.symCount},$Bt=function(t){const e=[],n=(r,i)=>{let s=t.nodes[r];s[0]==="!"&&(e.push(i),s=s.slice(1));const o=s.split(/([A-Z0-9,]+)/g);for(let a=0;a<o.length;a+=2){const l=o[a],c=o[a+1];if(!l)continue;const u=i+l;if(c===","||c===void 0){e.push(u);continue}const h=FBt(t,c,r);n(h,u)}};return n(0,""),e},jBt=function(t){const e={nodes:t.split(";"),syms:[],symCount:0};return t.match(":")&&BBt(e),$Bt(e)},zBt=function(t){if(!t)return{};const e=t.split("|").reduce((r,i)=>{const s=i.split("¦");return r[s[0]]=s[1],r},{}),n={};return Object.keys(e).forEach(function(r){const i=jBt(e[r]);r==="true"&&(r=!0);for(let s=0;s<i.length;s++){const o=i[s];n.hasOwnProperty(o)===!0?Array.isArray(n[o])===!1?n[o]=[n[o],r]:n[o].push(r):n[o]=r}}),n},Zh=["Possessive","Pronoun"];let HBt={"20th century fox":"Organization","7 eleven":"Organization","motel 6":"Organization",g8:"Organization",vh1:"Organization","76ers":"SportsTeam","49ers":"SportsTeam",q1:"Date",q2:"Date",q3:"Date",q4:"Date",km2:"Unit",m2:"Unit",dm2:"Unit",cm2:"Unit",mm2:"Unit",mile2:"Unit",in2:"Unit",yd2:"Unit",ft2:"Unit",m3:"Unit",dm3:"Unit",cm3:"Unit",in3:"Unit",ft3:"Unit",yd3:"Unit","at&t":"Organization","black & decker":"Organization","h & m":"Organization","johnson & johnson":"Organization","procter & gamble":"Organization","ben & jerry's":"Organization","&":"Conjunction",i:["Pronoun","Singular"],he:["Pronoun","Singular"],she:["Pronoun","Singular"],it:["Pronoun","Singular"],they:["Pronoun","Plural"],we:["Pronoun","Plural"],was:["Copula","PastTense"],is:["Copula","PresentTense"],are:["Copula","PresentTense"],am:["Copula","PresentTense"],were:["Copula","PastTense"],her:Zh,his:Zh,hers:Zh,their:Zh,theirs:Zh,themselves:Zh,your:Zh,our:Zh,ours:Zh,my:Zh,its:Zh,vs:["Conjunction","Abbreviation"],if:["Condition","Preposition"],closer:"Comparative",closest:"Superlative",much:"Adverb",may:"Modal",babysat:"PastTense",blew:"PastTense",drank:"PastTense",drove:"PastTense",forgave:"PastTense",skiied:"PastTense",spilt:"PastTense",stung:"PastTense",swam:"PastTense",swung:"PastTense",guaranteed:"PastTense",shrunk:"PastTense",nears:"PresentTense",nearing:"Gerund",neared:"PastTense",no:["Negative","Expression"]};const UBt={"20th century fox":"Organization","7 eleven":"Organization","motel 6":"Organization","excuse me":"Expression","financial times":"Organization","guns n roses":"Organization","la z boy":"Organization","labour party":"Organization","new kids on the block":"Organization","new york times":"Organization","the guess who":"Organization","thin lizzy":"Organization","prime minister":"Actor","free market":"Singular","lay up":"Singular","living room":"Singular","living rooms":"Plural","spin off":"Singular","appeal court":"Uncountable","cold war":"Uncountable","gene pool":"Uncountable","machine learning":"Uncountable","nail polish":"Uncountable","t
1209ime off":"Uncountable","take part":"Infinitive","bill gates":"Person","doctor who":"Person","dr who":"Person","he man":"Person","iron man":"Person","kid cudi":"Person","run dmc":"Person","rush limbaugh":"Person","snow white":"Person","tiger woods":"Person","brand new":"Adjective","en route":"Adjective","left wing":"Adjective","off guard":"Adjective","on board":"Adjective","part time":"Adjective","right wing":"Adjective","so called":"Adjective","spot on":"Adjective","straight forward":"Adjective","super duper":"Adjective","tip top":"Adjective","top notch":"Adjective","up to date":"Adjective","win win":"Adjective","brooklyn nets":"SportsTeam","chicago bears":"SportsTeam","houston astros":"SportsTeam","houston dynamo":"SportsTeam","houston rockets":"SportsTeam","houston texans":"SportsTeam","minnesota twins":"SportsTeam","orlando magic":"SportsTeam","san antonio spurs":"SportsTeam","san diego chargers":"SportsTeam","san diego padres":"SportsTeam","iron maiden":"ProperNoun","isle of man":"Country","united states":"Country","united states of america":"Country","prince edward island":"Region","cedar breaks":"Place","cedar falls":"Place","point blank":"Adverb","tiny bit":"Adverb","by the time":"Conjunction","no matter":"Conjunction","civil wars":"Plural","credit cards":"Plural","default rates":"Plural","free markets":"Plural","head starts":"Plural","home runs":"Plural","lay ups":"Plural","phone calls":"Plural","press releases":"Plural","record labels":"Plural","soft serves":"Plural","student loans":"Plural","tax returns":"Plural","tv shows":"Plural","video games":"Plural","took part":"PastTense","takes part":"PresentTense","taking part":"Gerund","taken part":"Participle","light bulb":"Noun","rush hour":"Noun","fluid ounce":"Unit","the rolling stones":"Organization"},VBt=[":(",":)",":P",":p",":O",";(",";)",";P",";p",";O",":3",":|",":/",":\\",":$",":*",":@",":-(",":-)",":-P",":-p",":-O",":-3",":-|",":-/",":-\\",":-$",":-*",":-@",":^(",":^)",":^P",":^p",":^O",":^3",":^|",":^/",":^\\",":^$",":^*",":^@","):","(:","$:","*:",")-:","(-:","$-:","*-:",")^:","(^:","$^:","*^:","<3","</3","<\\3","=("],$E={a:[[/(antenn|formul|nebul|vertebr|vit)a$/i,"$1ae"],[/ia$/i,"ia"]],e:[[/(kn|l|w)ife$/i,"$1ives"],[/(hive)$/i,"$1s"],[/([m|l])ouse$/i,"$1ice"],[/([m|l])ice$/i,"$1ice"]],f:[[/^(dwar|handkerchie|hoo|scar|whar)f$/i,"$1ves"],[/^((?:ca|e|ha|(?:our|them|your)?se|she|wo)l|lea|loa|shea|thie)f$/i,"$1ves"]],i:[[/(octop|vir)i$/i,"$1i"]],m:[[/([ti])um$/i,"$1a"]],n:[[/^(oxen)$/i,"$1"]],o:[[/(al|ad|at|er|et|ed)o$/i,"$1oes"]],s:[[/(ax|test)is$/i,"$1es"],[/(alias|status)$/i,"$1es"],[/sis$/i,"ses"],[/(bu)s$/i,"$1ses"],[/(sis)$/i,"ses"],[/^(?!talis|.*hu)(.*)man$/i,"$1men"],[/(octop|vir|radi|nucle|fung|cact|stimul)us$/i,"$1i"]],x:[[/(matr|vert|ind|cort)(ix|ex)$/i,"$1ices"],[/^(ox)$/i,"$1en"]],y:[[/([^aeiouy]|qu)y$/i,"$1ies"]],z:[[/(quiz)$/i,"$1zes"]]},WBt=/([xsz]|ch|sh)$/,qBt=function(t){let e=t[t.length-1];if($E.hasOwnProperty(e)===!0)for(let n=0;n<$E[e].length;n+=1){let r=$E[e][n][0];if(r.test(t)===!0)return t.replace(r,$E[e][n][1])}return null},e9=function(t="",e){let{irregularPlurals:n,uncountable:r}=e.two;if(r.hasOwnProperty(t))return t;if(n.hasOwnProperty(t))return n[t];let i=qBt(t);return i!==null?i:WBt.test(t)?t+"es":t+"s"},GBt=/\|/;let tS=HBt,ez={};const KBt={two:{irregularPlurals:rEe,uncountable:{}}};Object.keys(Dae).forEach(t=>{let e=zBt(Dae[t]);if(!GBt.test(t)){Object.keys(e).forEach(n=>{tS[n]=t});return}Object.keys(e).forEach(n=>{if(ez[n]=t,t==="Noun|Verb"){let r=e9(n,KBt);ez[r]="Plural|Verb"}})});VBt.forEach(t=>tS[t]="Emoticon");delete tS[""];delete tS[null];delete tS[" "];const ht="Singular",qs={beforeTags:{Determiner:ht,Possessive:ht,Acronym:ht,Noun:ht,Adjective:ht,PresentTense:ht,Gerund:ht,PastTense:ht,Infinitive:ht,Date:ht,Ordinal:ht,Demonym:ht},afterTags:{Value:ht,Modal:ht,Copula:ht,PresentTense:ht,PastTense:ht,Demonym:ht,Actor:ht},beforeWords:{the:ht,with:ht,without:ht,of:ht,for:ht,any:ht,all:ht,on:ht,cut:ht,cuts:ht,increase:ht,decrease:ht,raise:ht,drop:ht,save:ht,saved:ht,saves:ht,make:ht,makes:ht,made:ht,minus:ht,plus:ht,than:ht,another:ht,ver
1209sus:ht,neither:ht,about:ht,favorite:ht,best:ht,daily:ht,weekly:ht,linear:ht,binary:ht,mobile:ht,lexical:ht,technical:ht,computer:ht,scientific:ht,security:ht,government:ht,popular:ht,formal:ht,no:ht,more:ht,one:ht,let:ht,her:ht,his:ht,their:ht,our:ht,us:ht,sheer:ht,monthly:ht,yearly:ht,current:ht,previous:ht,upcoming:ht,last:ht,next:ht,main:ht,initial:ht,final:ht,beginning:ht,end:ht,top:ht,bottom:ht,future:ht,past:ht,major:ht,minor:ht,side:ht,central:ht,peripheral:ht,public:ht,private:ht},afterWords:{of:ht,system:ht,aid:ht,method:ht,utility:ht,tool:ht,reform:ht,therapy:ht,philosophy:ht,room:ht,authority:ht,says:ht,said:ht,wants:ht,wanted:ht,is:ht,did:ht,do:ht,can:ht,wise:ht}},At="Infinitive",dl={beforeTags:{Modal:At,Adverb:At,Negative:At,Plural:At},afterTags:{Determiner:At,Adverb:At,Possessive:At,Reflexive:At,Preposition:At,Cardinal:At,Comparative:At,Superlative:At},beforeWords:{i:At,we:At,you:At,they:At,to:At,please:At,will:At,have:At,had:At,would:At,could:At,should:At,do:At,did:At,does:At,can:At,must:At,us:At,me:At,let:At,even:At,when:At,help:At,he:At,she:At,it:At,being:At,bi:At,co:At,contra:At,de:At,inter:At,intra:At,mis:At,pre:At,out:At,counter:At,nobody:At,somebody:At,anybody:At,everybody:At},afterWords:{the:At,me:At,you:At,him:At,us:At,her:At,his:At,them:At,they:At,it:At,himself:At,herself:At,itself:At,myself:At,ourselves:At,themselves:At,something:At,anything:At,a:At,an:At,up:At,down:At,by:At,out:At,off:At,under:At,what:At,all:At,to:At,because:At,although:At,how:At,otherwise:At,together:At,though:At,into:At,yet:At,more:At,here:At,there:At,away:At}},YBt={beforeTags:Object.assign({},dl.beforeTags,qs.beforeTags,{}),afterTags:Object.assign({},dl.afterTags,qs.afterTags,{}),beforeWords:Object.assign({},dl.beforeWords,qs.beforeWords,{}),afterWords:Object.assign({},dl.afterWords,qs.afterWords,{})},Gt="Adjective",Wo={beforeTags:{Determiner:Gt,Possessive:Gt,Hyphenated:Gt},afterTags:{Adjective:Gt},beforeWords:{seem:Gt,seemed:Gt,seems:Gt,feel:Gt,feels:Gt,felt:Gt,stay:Gt,appear:Gt,appears:Gt,appeared:Gt,also:Gt,over:Gt,under:Gt,too:Gt,it:Gt,but:Gt,still:Gt,really:Gt,quite:Gt,well:Gt,very:Gt,truly:Gt,how:Gt,deeply:Gt,hella:Gt,profoundly:Gt,extremely:Gt,so:Gt,badly:Gt,mostly:Gt,totally:Gt,awfully:Gt,rather:Gt,nothing:Gt,something:Gt,anything:Gt,not:Gt,me:Gt,is:Gt,face:Gt,faces:Gt,faced:Gt,look:Gt,looks:Gt,looked:Gt,reveal:Gt,reveals:Gt,revealed:Gt,sound:Gt,sounded:Gt,sounds:Gt,remains:Gt,remained:Gt,prove:Gt,proves:Gt,proved:Gt,becomes:Gt,stays:Gt,tastes:Gt,taste:Gt,smells:Gt,smell:Gt,gets:Gt,grows:Gt,as:Gt,rings:Gt,radiates:Gt,conveys:Gt,convey:Gt,conveyed:Gt,of:Gt},afterWords:{too:Gt,also:Gt,or:Gt,enough:Gt,as:Gt}},rr="Gerund",Ag={beforeTags:{Adverb:rr,Preposition:rr,Conjunction:rr},afterTags:{Adverb:rr,Possessive:rr,Person:rr,Pronoun:rr,Determiner:rr,Copula:rr,Preposition:rr,Conjunction:rr,Comparative:rr},beforeWords:{been:rr,keep:rr,continue:rr,stop:rr,am:rr,be:rr,me:rr,began:rr,start:rr,starts:rr,started:rr,stops:rr,stopped:rr,help:rr,helps:rr,avoid:rr,avoids:rr,love:rr,loves:rr,loved:rr,hate:rr,hates:rr,hated:rr},afterWords:{you:rr,me:rr,her:rr,him:rr,his:rr,them:rr,their:rr,it:rr,this:rr,there:rr,on:rr,about:rr,for:rr,up:rr,down:rr}},Ai="Gerund",Qm="Adjective",QBt={beforeTags:Object.assign({},Wo.beforeTags,Ag.beforeTags,{Imperative:Ai,Infinitive:Qm,Plural:Ai}),afterTags:Object.assign({},Wo.afterTags,Ag.afterTags,{Noun:Qm}),beforeWords:Object.assign({},Wo.beforeWords,Ag.beforeWords,{is:Qm,are:Ai,was:Qm,of:Qm,suggest:Ai,suggests:Ai,suggested:Ai,recommend:Ai,recommends:Ai,recommended:Ai,imagine:Ai,imagines:Ai,imagined:Ai,consider:Ai,considered:Ai,considering:Ai,resist:Ai,resists:Ai,resisted:Ai,avoid:Ai,avoided:Ai,avoiding:Ai,except:Qm,accept:Qm,assess:Ai,explore:Ai,fear:Ai,fears:Ai,appreciate:Ai,question:Ai,help:Ai,embrace:Ai,with:Qm}),afterWords:Object.assign({},Wo.afterWords,Ag.afterWords,{to:Ai,not:Ai,the:Ai})},Nae={beforeTags:{Determiner:void 0,Cardinal:"Noun",PhrasalVerb:"Adjective"},afterTags:{}},XBt={beforeTags:Object.assign({},Wo.beforeTags,qs.beforeTags,Nae.beforeTags),afterTags:Object.assign({},Wo.afterTags,qs.afterTags,Nae.afterTags),beforeWords:Object.assign({},Wo.beforeWords,qs.beforeWords,{are:"Adjective",is:"Adjective",was:"Adjective",be:"Adjective",off:"Adjective",out:"Adjective"}),afterWords:Object.assign({},Wo.afterWords,qs.afterWords)};let Or="PastTense",b3="Adjective";const jE={beforeTags:{Adverb:Or,Pronoun:Or,ProperNoun:Or,Auxiliary:Or,Noun:Or},afterTags:{Possessive:Or,Pronoun:Or,Determiner:Or,Adverb:Or,Comparative:Or,Date:Or,Gerund:Or},beforeWords:{be:Or,who:Or,get:b3,had:Or,has:Or,have:Or,been:Or,it:Or,as:Or,for:b3,more:b3,always:b3},afterWords:{by:Or,back:Or,out:Or,in:Or,up:Or,down:Or,before:Or,after:Or,for:Or,the:Or,with:Or,as:Or,on:Or,at:Or,between:Or,to:Or,into:Or,us:Or,them:Or,his:Or,her:Or,their:Or,our:Or,me:Or,about:b3}},JBt={beforeTags:Object.assign({},Wo.beforeTags,jE.beforeTags),afterTags:Object.assign({},Wo.afterTags,jE.afterTags),beforeWords:Object.assign({},Wo.beforeWords,jE.beforeWords),afterWords:Object.assign({},Wo.afterWords,jE.afterWords)},ZBt={afterTags:{Noun:"Adjective",Conjunction:void 0}},eFt={beforeTags:Object.assign({},Wo.beforeTags,dl.beforeTags,{Adverb:void 0,Negative:void 0}),afterTags:Object.assign({},Wo.afterTags,dl.afterTags,ZBt.afterTags),beforeWords:Object.assign({},Wo.beforeWords,dl.beforeWords,{have:void 0,had:void 0,not:void 0,went:"Adjective",goes:"Adjective",got:"Adjective",be:"Adjective"}),afterWords:Object.assign({},Wo.afterWords,dl.afterWords,{to:void 0,as:"Adjective"})},zE={beforeTags:{Copula:"Gerund",PastTense:"Gerund",PresentTense:"Gerund",Infinitive:"Gerund"},afterTags:{Value:"Gerund"},beforeWords:{are:"Gerund",were:"Gerund",be:"Gerund",no:"Gerund",without:"Gerund",you:"Gerund",we:"Gerund",they:"Gerund",he:"Gerund",she:"Gerund",us:"Gerund",them:"Gerund"},afterWords:{the:"Gerund",this:"Gerund",that:"Gerund",me:"Gerund",us:"Gerund",them:"Gerund"}},tFt={beforeTags:Object.assign({},Ag.beforeTags,qs.beforeTags,zE.beforeTags),afterTags:Object.assign({},Ag.afterTags,qs.afterTags,zE.afterTags),beforeWords:Object.assign({},Ag.beforeWords,qs.beforeWords,zE.beforeWords),afterWords:Object.assign({},Ag.afterWords,qs.afterWords,zE.afterWords)},jv="Singular",ry="Infinitive",nFt={beforeTags:Object.assign({},dl.beforeTags,qs.beforeTags,{Adjective:jv,Particle:jv}),afterTags:Object.assign({},dl.afterTags,qs.afterTags,{ProperNoun:ry,Gerund:ry,Adjective:ry,Copula:jv}),beforeWords:Object.assign({},dl.beforeWords,qs.beforeWords,{is:jv,was:jv,of:jv,have:null}),afterWords:Object.assign({},dl.afterWords,qs.afterWords,{instead:ry,about:ry,his:ry,her:ry,to:null,by:null,in:null})},Yi="Person",qo={beforeTags:{Honorific:Yi,Person:Yi},afterTags:{Person:Yi,ProperNoun:Yi,Verb:Yi},beforeWords:{hi:Yi,hey:Yi,yo:Yi,dear:Yi,hello:Yi},afterWords:{said:Yi,says:Yi,told:Yi,tells:Yi,feels:Yi,felt:Yi,seems:Yi,thinks:Yi,thought:Yi,spends:Yi,spendt:Yi,plays:Yi,played:Yi,sing:Yi,sang:Yi,learn:Yi,learned:Yi,wants:Yi,wanted:Yi}},As="Month",rFt="Person",HE={beforeTags:{Date:As,Value:As},afterTags:{Date:As,Value:As},beforeWords:{by:As,in:As,on:As,during:As,after:As,before:As,between:A
1209s,until:As,til:As,sometime:As,of:As,this:As,next:As,last:As,previous:As,following:As,with:rFt},afterWords:{sometime:As,in:As,of:As,until:As,the:As}},iFt={beforeTags:Object.assign({},qo.beforeTags,HE.beforeTags),afterTags:Object.assign({},qo.afterTags,HE.afterTags),beforeWords:Object.assign({},qo.beforeWords,HE.beforeWords),afterWords:Object.assign({},qo.afterWords,HE.afterWords)},sFt={beforeTags:Object.assign({},qs.beforeTags,qo.beforeTags),afterTags:Object.assign({},qs.afterTags,qo.afterTags),beforeWords:Object.assign({},qs.beforeWords,qo.beforeWords,{i:"Infinitive",we:"Infinitive"}),afterWords:Object.assign({},qs.afterWords,qo.afterWords)},oFt={beforeTags:Object.assign({},qs.beforeTags,qo.beforeTags,dl.beforeTags),afterTags:Object.assign({},qs.afterTags,qo.afterTags,dl.afterTags),beforeWords:Object.assign({},qs.beforeWords,qo.beforeWords,dl.beforeWords),afterWords:Object.assign({},qs.afterWords,qo.afterWords,dl.afterWords)},Na="Place",UE={beforeTags:{Place:Na},afterTags:{Place:Na,Abbreviation:Na},beforeWords:{in:Na,by:Na,near:Na,from:Na,to:Na},afterWords:{in:Na,by:Na,near:Na,from:Na,to:Na,government:Na,council:Na,region:Na,city:Na}},aFt={beforeTags:Object.assign({},UE.beforeTags,qo.beforeTags),afterTags:Object.assign({},UE.afterTags,qo.afterTags),beforeWords:Object.assign({},UE.beforeWords,qo.beforeWords),afterWords:Object.assign({},UE.afterWords,qo.afterWords)},lFt={beforeTags:Object.assign({},qo.beforeTags,Wo.beforeTags),afterTags:Object.assign({},qo.afterTags,Wo.afterTags),beforeWords:Object.assign({},qo.beforeWords,Wo.beforeWords),afterWords:Object.assign({},qo.afterWords,Wo.afterWords)};let Zu="Unit";const cFt={beforeTags:{Value:Zu},afterTags:{},beforeWords:{per:Zu,every:Zu,each:Zu,square:Zu,cubic:Zu,sq:Zu,metric:Zu},afterWords:{per:Zu,squared:Zu,cubed:Zu,long:Zu}},p2={"Actor|Verb":YBt,"Adj|Gerund":QBt,"Adj|Noun":XBt,"Adj|Past":JBt,"Adj|Present":eFt,"Noun|Verb":nFt,"Noun|Gerund":tFt,"Person|Noun":sFt,"Person|Date":iFt,"Person|Verb":oFt,"Person|Place":aFt,"Person|Adj":lFt,"Unit|Noun":cFt},VE=(t,e)=>{let n=Object.keys(t).reduce((r,i)=>(r[i]=t[i]==="Infinitive"?"PresentTense":"Plural",r),{});return Object.assign(n,e)};p2["Plural|Verb"]={beforeWords:VE(p2["Noun|Verb"].beforeWords,{had:"Plural",have:"Plural"}),afterWords:VE(p2["Noun|Verb"].afterWords,{his:"PresentTense",her:"PresentTense",its:"PresentTense",in:null,to:null,is:"PresentTense",by:"PresentTense"}),beforeTags:VE(p2["Noun|Verb"].beforeTags,{Conjunction:"PresentTense",Noun:void 0,ProperNoun:"PresentTense"}),afterTags:VE(p2["Noun|Verb"].afterTags,{Gerund:"Plural",Noun:"PresentTense",Value:"PresentTense"})};const Ui="Adjective",xa="Infinitive",iy="PresentTense",Wr="Singular",wa="PastTense",zv="Adverb",uu="Plural",Zs="Actor",WE="Verb",el="Noun",uFt="ProperNoun",ed="LastName",Rae="Modal",ns="Place",ZR="Participle",hFt=[null,null,{ea:Wr,ia:el,ic:Ui,ly:zv,"'n":WE,"'t":WE},{oed:wa,ued:wa,xed:wa," so":zv,"'ll":Rae,"'re":"Copula",azy:Ui,eer:el,end:WE,ped:wa,ffy:Ui,ify:xa,ing:"Gerund",ize:xa,ibe:xa,lar:Ui,mum:Ui,nes:iy,nny:Ui,ous:Ui,que:Ui,ger:el,ber:el,rol:Wr,sis:Wr,ogy:Wr,oid:Wr,ian:Wr,zes:iy,eld:wa,ken:ZR,ven:ZR,ten:ZR,ect:xa,ict:xa,ign:xa,oze:xa,ful:Ui,bal:Ui,ton:el,pur:ns},{amed:wa,aped:wa,ched:wa,lked:wa,rked:wa,reed:wa,nded:wa,mned:Ui,cted:wa,dged:wa,ield:Wr,akis:ed,cede:xa,chuk:ed,czyk:ed,ects:iy,iend:Wr,ends:WE,enko:ed,ette:Wr,iary:Wr,wner:Wr,fies:iy,fore:zv,gate:xa,gone:Ui,ices:uu,ints:uu,ruct:xa,ines:uu,ions:uu,ners:uu,pers:uu,lers:uu,less:Ui,llen:Ui,made:Ui,nsen:ed,oses:iy,ould:Rae,some:Ui,sson:ed,ians:uu,tion:Wr,tage:el,ique:Wr,tive:Ui,tors:el,vice:Wr,lier:Wr,fier:Wr,wned:wa,gent:Wr,tist:Zs,pist:Zs,rist:Zs,mist:Zs,yist:Zs,vist:Zs,ists:Zs,lite:Wr,site:Wr,rite:Wr,mite:Wr,bite:Wr,mate:Wr,date:Wr,ndal:Wr,vent:Wr,uist:Zs,gist:Zs,note:Wr,cide:Wr,ence:Wr,wide:Ui,vide:xa,ract:xa,duce:xa,pose:xa,eive:xa,lyze:xa,lyse:xa,iant:Ui,nary:Ui,ghty:Ui,uent:Ui,erer:Zs,bury:ns,dorf:el,esty:el,wych:ns,dale:ns,folk:ns,vale:ns,abad:ns,sham:ns,wick:ns,view:ns},{elist:Zs,holic:Wr,phite:Wr,tized:wa,urned:wa,eased:wa,ances:uu,bound:Ui,ettes:uu,fully:zv,ishes:iy,ities:uu,marek:ed,nssen:ed,ology:el,osome:Wr,tment:Wr,ports:uu,rough:Ui,tches:iy,tieth:"Ordinal",tures:uu,wards:zv,where:zv,archy:el,pathy:el,opoly:el,embly:el,phate:el,ndent:Wr,scent:Wr,onist:Zs,anist:Zs,alist:Zs,olist:Zs,icist:Zs,ounce:xa,iable:Ui,borne:Ui,gnant:Ui,inant:Ui,igent:Ui,atory:Ui,rient:Wr,dient:Wr,maker:Zs,burgh:ns,mouth:ns,ceter:ns,ville:ns,hurst:ns,stead:ns,endon:ns,brook:ns,shire:ns,worth:el,field:uFt,ridge:ns},{auskas:ed,parent:Wr,cedent:Wr,ionary:Wr,cklist:Wr,brooke:ns,keeper:Zs,logist:Zs,teenth:"Value",worker:Zs,master:Zs,writer:Zs,brough:ns,cester:ns,ington:ns,cliffe:ns,ingham:ns},{chester:ns,logists:Zs,opoulos:ed,borough:ns,sdottir:ed}],hu="Adjective",rs="Noun",v3="Verb",dFt=[null,null,{},{neo:rs,bio:rs,"de-":v3,"re-":v3,"un-":v3,"ex-":rs},{anti:rs,auto:rs,faux:hu,hexa:rs,kilo:rs,mono:rs,nano:rs,octa:rs,pol
1209y:rs,semi:hu,tele:rs,"pro-":hu,"mis-":v3,"dis-":v3,"pre-":hu},{anglo:rs,centi:rs,ethno:rs,ferro:rs,grand:rs,hepta:rs,hydro:rs,intro:rs,macro:rs,micro:rs,milli:rs,nitro:rs,penta:rs,quasi:hu,radio:rs,tetra:rs,"omni-":hu,"post-":hu},{pseudo:hu,"extra-":hu,"hyper-":hu,"inter-":hu,"intra-":hu,"deca-":hu},{electro:rs}],js="Adjective",qE="Infinitive",GE="PresentTense",Zp="Singular",Ol="PastTense",Lae="Adverb",e0="Expression",Bae="Actor",Fae="Verb",$ae="Noun",KE="LastName",fFt={a:[[/.[aeiou]na$/,$ae,"tuna"],[/.[oau][wvl]ska$/,KE],[/.[^aeiou]ica$/,Zp,"harmonica"],[/^([hyj]a+)+$/,e0,"haha"]],c:[[/.[^aeiou]ic$/,js]],d:[[/[aeiou](pp|ll|ss|ff|gg|tt|rr|bb|nn|mm)ed$/,Ol,"popped"],[/.[aeo]{2}[bdgmnprvz]ed$/,Ol,"rammed"],[/.[aeiou][sg]hed$/,Ol,"gushed"],[/.[aeiou]red$/,Ol,"hired"],[/.[aeiou]r?ried$/,Ol,"hurried"],[/[^aeiou]ard$/,Zp,"steward"],[/[aeiou][^aeiou]id$/,js,""],[/.[vrl]id$/,js,"livid"],[/..led$/,Ol,"hurled"],[/.[iao]sed$/,Ol,""],[/[aeiou]n?[cs]ed$/,Ol,""],[/[aeiou][rl]?[mnf]ed$/,Ol,""],[/[aeiou][ns]?c?ked$/,Ol,"bunked"],[/[aeiou]gned$/,Ol],[/[aeiou][nl]?ged$/,Ol],[/.[tdbwxyz]ed$/,Ol],[/[^aeiou][aeiou][tvx]ed$/,Ol],[/.[cdflmnprstv]ied$/,Ol,"emptied"]],e:[[/.[lnr]ize$/,qE,"antagonize"],[/.[^aeiou]ise$/,qE,"antagonise"],[/.[aeiou]te$/,qE,"bite"],[/.[^aeiou][ai]ble$/,js,"fixable"],[/.[^aeiou]eable$/,js,"maleable"],[/.[ts]ive$/,js,"festive"],[/[a-z]-like$/,js,"woman-like"]],h:[[/.[^aeiouf]ish$/,js,"cornish"],[/.v[iy]ch$/,KE,"..ovich"],[/^ug?h+$/,e0,"ughh"],[/^uh[ -]?oh$/,e0,"uhoh"],[/[a-z]-ish$/,js,"cartoon-ish"]],i:[[/.[oau][wvl]ski$/,KE,"polish-male"]],k:[[/^(k){2}$/,e0,"kkkk"]],l:[[/.[gl]ial$/,js,"familial"],[/.[^aeiou]ful$/,js,"fitful"],[/.[nrtumcd]al$/,js,"natal"],[/.[^aeiou][ei]al$/,js,"familial"]],m:[[/.[^aeiou]ium$/,Zp,"magnesium"],[/[^aeiou]ism$/,Zp,"schism"],[/^[hu]m+$/,e0,"hmm"],[/^\d+ ?[ap]m$/,"Date","3am"]],n:[[/.[lsrnpb]ian$/,js,"republican"],[/[^aeiou]ician$/,Bae,"musician"],[/[aeiou][ktrp]in'$/,"Gerund","cookin'"]],o:[[/^no+$/,e0,"noooo"],[/^(yo)+$/,e0,"yoo"],[/^wo{2,}[pt]?$/,e0,"woop"]],r:[[/.[bdfklmst]ler$/,"Noun"],[/[aeiou][pns]er$/,Zp],[/[^i]fer$/,qE],[/.[^aeiou][ao]pher$/,Bae],[/.[lk]er$/,"Noun"],[/.ier$/,"Comparative"]],t:[[/.[di]est$/,"Superlative"],[/.[icldtgrv]ent$/,js],[/[aeiou].*ist$/,js],[/^[a-z]et$/,Fae]],s:[[/.[^aeiou]ises$/,GE],[/.[rln]ates$/,GE],[/.[^z]ens$/,Fae],[/.[lstrn]us$/,Zp],[/.[aeiou]sks$/,GE],[/.[aeiou]kes$/,GE],[/[aeiou][^aeiou]is$/,Zp],[/[a-z]'s$/,$ae],[/^yes+$/,e0]],v:[[/.[^aeiou][ai][kln]ov$/,KE]],y:[[/.[cts]hy$/,js],[/.[st]ty$/,js],[/.[tnl]ary$/,js],[/.[oe]ry$/,Zp],[/[rdntkbhs]ly$/,Lae],[/.(gg|bb|zz)ly$/,js],[/...lly$/,Lae],[/.[gk]y$/,js],[/[bszmp]{2}y$/,js],[/.[ai]my$/,js],[/[ea]{2}zy$/,js],[/.[^aeiou]ity$/,Zp]]},tl="Verb",ms="Noun",pFt={leftTags:[["Adjective",ms],["Possessive",ms],["Determiner",ms],["Adverb",tl],["Pronoun",tl],["Value",ms],["Ordinal",ms],["Modal",tl],["Superlative",ms],["Demonym",ms],["Honorific","Person"]],leftWords:[["i",tl],["first",ms],["it",tl],["there",tl],["not",tl],["because",ms],["if",ms],["but",ms],["who",tl],["this",ms],["his",ms],["when",ms],["you",tl],["very","Adjective"],["old",ms],["never",tl],["before",ms],["a",ms],["the",ms],["been",tl]],rightTags:[["Copula",ms],["PastTense",ms],["Conjunction",ms],["Modal",ms]],rightWords:[["there",tl],["me",tl],["man","Adjective"],["him",tl],["it",tl],["were",ms],["took",ms],["himself",tl],["went",ms],["who",ms],["jr","Person"]]},Wb={Comparative:{fwd:"3:ser,ier¦1er:h,t,f,l,n¦1r:e¦2er:ss,or,om",both:"3er:ver,ear,alm¦3ner:hin¦3ter:lat¦2mer:im¦2er:ng,rm,mb¦2ber:ib¦2ger:ig¦1er:w,p,k,d¦ier:y",rev:"1:tter,yer¦2:uer,ver,ffer,oner,eler,ller,iler,ster,cer,uler,sher,ener,gher,aner,adder,nter,eter,rter,hter,rner,fter¦3:oser,ooler,eafer,user,airer,bler,maler,tler,eater,uger,rger,ainer,urer,ealer,icher,pler,emner,icter,nser,iser¦4:arser,viner,ucher,rosser,somer,ndomer,moter,oother,uarer,hiter¦5:nuiner,esser,emier¦ar:urther",ex:"worse:bad¦better:good¦4er:fair,gray,poor¦1urther:far¦3ter:fat,hot,wet¦3der:mad,sad¦3er:shy,fun¦4der:glad¦:¦4r:cute,dire,fake,fine,free,lame,late,pale,rare,ripe,rude,safe,sore,tame,wide¦5r:eerie,stale"},Gerund:{fwd:"1:nning,tting,rring,pping,eing,mming,gging,dding,bbing,kking¦2:eking,oling,eling,eming¦3:velling,siting,uiting,fiting,loting,geting,ialing,celling¦4:graming",both:"1:aing,iing,fing,xing,ying,oing,hing,wing¦2:tzing,rping,izzing,bting,mning,sping,wling,rling,wding,rbing,uping,lming,wning,mping,oning,lting,mbing,lking,fting,hting,sking,gning,pting,cking,ening,nking,iling,eping,ering,rting,rming,cting,lping,ssing,nting,nding,lding,sting,rning,rding,rking¦3:belling,siping,toming,yaking,uaking,oaning,auling,ooping,aiding,naping,euring,tolling,uzzing,ganing,haning,ualing,halling,iasing,auding,ieting,ceting,ouling,voring,ralling,garing,joring,oaming,oaking,roring,nelling,ooring,uelling,eaming,ooding,eaping,eeting,ooting,ooming,xiting,keting,ooking,ulling,airing,oaring,biting,outing,oiting,earing,naling,oading,eeding,ouring,eaking,aiming,illing,oining,eaning,onging,ealing,aining,eading¦4:thoming,melling,aboring,ivoting,weating,dfilling,onoring,eriting,imiting,tialling,rgining,otoring,linging,winging,lleting,louding,spelling,mpelling,heating,feating,opelling,choring,welling,ymaking,ctoring,calling,peating,iloring,laiting,utoring,uditing,mmaking,loating,iciting,waiting,mbating,voiding,otalling,nsoring,nselling,ocusing,itoring,eloping¦5:rselling,umpeting,atrolling,treating,tselling,rpreting,pringing,ummeting,ossoming,elmaking,eselling,rediting,totyping,onmaking,rfeiting,ntrolling¦5e:chmaking,dkeeping,severing,erouting,ecreting,ephoning,uthoring,ravening,reathing,pediting,erfering,eotyping,fringing,entoring,ombining,ompeting¦4e:emaking,eething,twining,rruling,chuting,xciting,rseding,scoping,edoring,pinging,lunging,agining,craping,pleting,eleting,nciting,
1209nfining,ncoding,tponing,ecoding,writing,esaling,nvening,gnoring,evoting,mpeding,rvening,dhering,mpiling,storing,nviting,ploring¦3e:tining,nuring,saking,miring,haling,ceding,xuding,rining,nuting,laring,caring,miling,riding,hoking,piring,lading,curing,uading,noting,taping,futing,paring,hading,loding,siring,guring,vading,voking,during,niting,laning,caping,luting,muting,ruding,ciding,juring,laming,caling,hining,uoting,liding,ciling,duling,tuting,puting,cuting,coring,uiding,tiring,turing,siding,rading,enging,haping,buting,lining,taking,anging,haring,uiring,coming,mining,moting,suring,viding,luding¦2e:tring,zling,uging,oging,gling,iging,vring,fling,lging,obing,psing,pling,ubing,cling,dling,wsing,iking,rsing,dging,kling,ysing,tling,rging,eging,nsing,uning,osing,uming,using,ibing,bling,aging,ising,asing,ating¦2ie:rlying¦1e:zing,uing,cing,ving",rev:"ying:ie¦1ing:se,ke,te,we,ne,re,de,pe,me,le,c,he¦2ing:ll,ng,dd,ee,ye,oe,rg,us¦2ning:un¦2ging:og,ag,ug,ig,eg¦2ming:um¦2bing:ub,ab,eb,ob¦3ning:lan,can,hin,pin,win¦3ring:cur,lur,tir,tar,pur,car¦3ing:ait,del,eel,fin,eat,oat,eem,lel,ool,ein,uin¦3ping:rop,rap,top,uip,wap,hip,hop,lap,rip,cap¦3ming:tem,wim,rim,kim,lim¦3ting:mat,cut,pot,lit,lot,hat,set,pit,put¦3ding:hed,bed,bid¦3king:rek¦3ling:cil,pel¦3bing:rib¦4ning:egin¦4ing:isit,ruit,ilot,nsit,dget,rkel,ival,rcel¦4ring:efer,nfer¦4ting:rmit,mmit,ysit,dmit,emit,bmit,tfit,gret¦4ling:evel,xcel,ivel¦4ding:hred¦5ing:arget,posit,rofit¦5ring:nsfer¦5ting:nsmit,orget,cquit¦5ling:ancel,istil",ex:"3:adding,eating,aiming,aiding,airing,outing,gassing,setting,getting,putting,cutting,winning,sitting,betting,mapping,tapping,letting,bidding,hitting,tanning,netting,popping,fitting,capping,lapping,barring,banning,vetting,topping,rotting,tipping,potting,wetting,pitting,dipping,budding,hemming,pinning,jetting,kidding,padding,podding,sipping,wedding,bedding,donning,warring,penning,gutting,cueing,wadding,petting,ripping,napping,matting,tinning,binning,dimming,hopping,mopping,nodding,panning,rapping,ridding,sinning¦4:selling,falling,calling,waiting,editing,telling,rolling,heating,boating,hanging,beating,coating,singing,tolling,felling,polling,discing,seating,voiding,gelling,yelling,baiting,reining,ruining,seeking,spanning,stepping,knitting,emitting,slipping,quitting,dialing,omitting,clipping,shutting,skinning,abutting,flipping,trotting,cramming,fretting,suiting¦5:bringing,treating,spelling,stalling,trolling,expelling,rivaling,wringing,deterring,singeing,befitting,refitting¦6:enrolling,distilling,scrolling,strolling,caucusing,travelling¦7:installing,redefining,stencilling,recharging,overeating,benefiting,unraveling,programing¦9:reprogramming¦is:being¦2e:using,aging,owing¦3e:making,taking,coming,noting,hiring,filing,coding,citing,doping,baking,coping,hoping,lading,caring,naming,voting,riding,mining,curing,lining,ruling,typing,boring,dining,firing,hiding,piling,taping,waning,baling,boning,faring,honing,wiping,luring,timing,wading,piping,fading,biting,zoning,daring,waking,gaming,raking,ceding,tiring,coking,wining,joking,paring,gaping,poking,pining,coring,liming,toting,roping,wiring,aching¦4e:writing,storing,eroding,framing,smoking,tasting,wasting,phoning,shaking,abiding,braking,flaking,pasting,priming,shoring,sloping,withing,hinging¦5e:defining,refining,renaming,swathing,fringing,reciting¦1ie:dying,tying,lying,vying¦7e:sunbathing"},Participle:{fwd:"1:mt¦2:llen¦3:iven,aken¦:ne¦y:in",both:"1:wn¦2:me,aten¦3:seen,bidden,isen¦4:roven,asten¦3l:pilt¦3d:uilt¦2e:itten¦1im:wum¦1eak:poken¦1ine:hone¦1ose:osen¦1in:gun¦1ake:woken¦ear:orn¦eal:olen¦eeze:ozen¦et:otten¦ink:unk¦ing:ung",rev:"2:un¦oken:eak¦ought:eek¦oven:eave¦1ne:o¦1own:ly¦1den:de¦1in:ay¦2t:am¦2n:ee¦3en:all¦4n:rive,sake,take¦5n:rgive",ex:"2:been¦3:seen,run¦4:given,taken¦5:shaken¦2eak:broken¦1ive:dove¦2y:flown¦3e:hidden,ridden¦1eek:sought¦1ake:woken¦1eave:woven"},PastTense:{fwd:"1:tted,wed,gged,nned,een,rred,pped,yed,bbed,oed,dded,rd,wn,mmed¦2:eed,nded,et,hted,st,oled,ut,emed,eled,lded,ken,rt,nked,apt,ant,eped,eked¦3:eared,eat,eaded,nelled,ealt,eeded,ooted,eaked,eaned,eeted,mited,bid,uit,ead,uited,ealed,geted,velled,ialed,belled¦4:ebuted,hined,comed¦y:ied¦ome:ame¦ear:ore¦ind:ound¦ing:ung,ang¦ep:pt¦ink:ank,unk¦ig:ug¦all:ell¦ee:aw¦ive:ave¦eeze:oze¦old:eld¦ave:ft¦ake:ook¦ell:old¦ite:ote¦ide:ode¦ine:one¦in:un,on¦eal:ole¦im:am¦ie:ay¦and:ood¦1ise:rose¦1eak:roke¦1ing:rought¦1ive:rove¦1el:elt¦1id:bade¦1et:got¦1y:aid¦1it:sat¦3e:lid¦3d:pent",both:"1:aed,fed,xed,hed¦2:sged,xted,wled,rped,lked,kied,lmed,lped,uped,bted,rbed,rked,wned,rled,mped,fted,mned,mbed,zzed,omed,ened,cked,gned,lted,sked,ued,zed,nted,ered,rted,rmed,ced,sted,rned,ssed,rded,pted,ved,cted¦3:cled,eined,siped,ooned,uked,ymed,jored,ouded,ioted,oaned,lged,asped,iged,mured,oided,eiled,yped,taled,moned,yled,lit,kled,oaked,gled,naled,fled,uined,oared,valled,koned,soned,aided,obed,ibed,meted,nicked,rored,micked,keted,vred,ooped,oaded,r
1209ited,aired,auled,filled,ouled,ooded,ceted,tolled,oited,bited,aped,tled,vored,dled,eamed,nsed,rsed,sited,owded,pled,sored,rged,osed,pelled,oured,psed,oated,loned,aimed,illed,eured,tred,ioned,celled,bled,wsed,ooked,oiled,itzed,iked,iased,onged,ased,ailed,uned,umed,ained,auded,nulled,ysed,eged,ised,aged,oined,ated,used,dged,doned¦4:ntied,efited,uaked,caded,fired,roped,halled,roked,himed,culed,tared,lared,tuted,uared,routed,pited,naked,miled,houted,helled,hared,cored,caled,tired,peated,futed,ciled,called,tined,moted,filed,sided,poned,iloted,honed,lleted,huted,ruled,cured,named,preted,vaded,sured,talled,haled,peded,gined,nited,uided,ramed,feited,laked,gured,ctored,unged,pired,cuted,voked,eloped,ralled,rined,coded,icited,vided,uaded,voted,mined,sired,noted,lined,nselled,luted,jured,fided,puted,piled,pared,olored,cided,hoked,enged,tured,geoned,cotted,lamed,uiled,waited,udited,anged,luded,mired,uired,raded¦5:modelled,izzled,eleted,umpeted,ailored,rseded,treated,eduled,ecited,rammed,eceded,atrolled,nitored,basted,twined,itialled,ncited,gnored,ploded,xcited,nrolled,namelled,plored,efeated,redited,ntrolled,nfined,pleted,llided,lcined,eathed,ibuted,lloted,dhered,cceded¦3ad:sled¦2aw:drew¦2ot:hot¦2ke:made¦2ow:hrew,grew¦2ose:hose¦2d:ilt¦2in:egan¦1un:ran¦1ink:hought¦1ick:tuck¦1ike:ruck¦1eak:poke,nuck¦1it:pat¦1o:did¦1ow:new¦1ake:woke¦go:went",rev:"3:rst,hed,hut,cut,set¦4:tbid¦5:dcast,eread,pread,erbid¦ought:uy,eek¦1ied:ny,ly,dy,ry,fy,py,vy,by,ty,cy¦1ung:ling,ting,wing¦1pt:eep¦1ank:rink¦1ore:bear,wear¦1ave:give¦1oze:reeze¦1ound:rind,wind¦1ook:take,hake¦1aw:see¦1old:sell¦1ote:rite¦1ole:teal¦1unk:tink¦1am:wim¦1ay:lie¦1ood:tand¦1eld:hold¦2d:he,ge,re,le,leed,ne,reed,be,ye,lee,pe,we¦2ed:dd,oy,or,ey,gg,rr,us,ew,to¦2ame:ecome,rcome¦2ped:ap¦2ged:ag,og,ug,eg¦2bed:ub,ab,ib,ob¦2lt:neel¦2id:pay¦2ang:pring¦2ove:trive¦2med:um¦2ode:rride¦2at:ysit¦3ted:mit,hat,mat,lat,pot,rot,bat¦3ed:low,end,tow,und,ond,eem,lay,cho,dow,xit,eld,ald,uld,law,lel,eat,oll,ray,ank,fin,oam,out,how,iek,tay,haw,ait,vet,say,cay,bow¦3d:ste,ede,ode,ete,ree,ude,ame,oke,ote,ime,ute,ade¦3red:lur,cur,pur,car¦3ped:hop,rop,uip,rip,lip,tep,top¦3ded:bed,rod,kid¦3ade:orbid¦3led:uel¦3ned:lan,can,kin,pan,tun¦3med:rim,lim¦4ted:quit,llot¦4ed:pear,rrow,rand,lean,mand,anel,pand,reet,link,abel,evel,imit,ceed,ruit,mind,peal,veal,hool,head,pell,well,mell,uell,band,hear,weak¦4led:nnel,qual,ebel,ivel¦4red:nfer,efer,sfer¦4n:sake,trew¦4d:ntee¦4ded:hred¦4ned:rpin¦5ed:light,nceal,right,ndear,arget,hread,eight,rtial,eboot¦5d:edite,nvite¦5ted:egret¦5led:ravel",ex:"2:been,upped¦3:added,aged,aided,aimed,aired,bid,died,dyed,egged,erred,eyed,fit,gassed,hit,lied,owed,pent,pied,tied,used,vied,oiled,outed,banned,barred,bet,canned,cut,dipped,donned,ended,feed,inked,jarred,let,manned,mowed,netted,padded,panned,pitted,popped,potted,put,set,sewn,sowed,tanned,tipped,topped,vowed,weed,bowed,jammed,binned,dimmed,hopped,mopped,nodded,pinned,rigged,sinned,towed,vetted¦4:ached,baked,baled,boned,bored,called,caned,cared,ceded,cited,coded,cored,cubed,cured,dared,dined,edited,exited,faked,fared,filed,fined,fired,fuelled,gamed,gelled,hired,hoped,joked,lined,mined,named,noted,piled,poked,polled,pored,pulled,reaped,roamed,rolled,ruled,seated,shed,sided,timed,tolled,toned,voted,waited,walled,waned,winged,wiped,wired,zoned,yelled,tamed,lubed,roped,faded,mired,caked,honed,banged,culled,heated,raked,welled,banded,beat,cast,cooled,cost,dealt,feared,folded,footed,handed,headed,heard,hurt,knitted,landed,leaked,leapt,linked,meant,minded,molded,neared,needed,peaked,plodded,plotted,pooled,quit,read,rooted,sealed,seeded,seeped,shipped,shunned,skimmed,slammed,sparred,stemmed,stirred,suited,thinned,twinned,swayed,winked,dialed,abutted,blotted,fretted,healed,heeded,peeled,reeled¦5:basted,cheated,equalled,eroded,exiled,focused,opined,pleated,primed,quoted,scouted,shored,sloped,smoked,sniped,spelled,spouted,routed,staked,stored,swelled,tasted,treated,wasted,smelled,dwelled,honored,prided,quelled,eloped,scared,coveted,sweated,breaded,cleared,debuted,deterred,freaked,modeled,pleaded,rebutted,speeded¦6:anchored,defined,endured,impaled,invited,refined,revered,strolled,cringed,recast,thrust,unfolded¦7:authored,combined,competed,conceded,convened,excreted,extruded,redefined,restored,secreted,rescinded,welcomed¦8:expedited,infringed¦9:interfered,intervened,persevered¦10:contravened¦eat:ate¦is:was¦go:went¦are:were¦3d:bent,lent,rent,sent¦3e:bit,fled,hid,lost¦3ed:bled,bred¦2ow:blew,grew¦1uy:bought¦2tch:caught¦1
1209o:did¦1ive:dove,gave¦2aw:drew¦2ed:fed¦2y:flew,laid,paid,said¦1ight:fought¦1et:got¦2ve:had¦1ang:hung¦2ad:led¦2ght:lit¦2ke:made¦2et:met¦1un:ran¦1ise:rose¦1it:sat¦1eek:sought¦1each:taught¦1ake:woke,took¦1eave:wove¦2ise:arose¦1ear:bore,tore,wore¦1ind:bound,found,wound¦2eak:broke¦2ing:brought,wrung¦1ome:came¦2ive:drove¦1ig:dug¦1all:fell¦2el:felt¦4et:forgot¦1old:held¦2ave:left¦1ing:rang,sang¦1ide:rode¦1ink:sank¦1ee:saw¦2ine:shone¦4e:slid¦1ell:sold,told¦4d:spent¦2in:spun¦1in:won"},PresentTense:{fwd:"1:oes¦1ve:as",both:"1:xes¦2:zzes,ches,shes,sses¦3:iases¦2y:llies,plies¦1y:cies,bies,ties,vies,nies,pies,dies,ries,fies¦:s",rev:"1ies:ly¦2es:us,go,do¦3es:cho,eto",ex:"2:does,goes¦3:gasses¦5:focuses¦is:are¦3y:relies¦2y:flies¦2ve:has"},Superlative:{fwd:"1st:e¦1est:l,m,f,s¦1iest:cey¦2est:or,ir¦3est:ver",both:"4:east¦5:hwest¦5lest:erful¦4est:weet,lgar,tter,oung¦4most:uter¦3est:ger,der,rey,iet,ong,ear¦3test:lat¦3most:ner¦2est:pt,ft,nt,ct,rt,ht¦2test:it¦2gest:ig¦1est:b,k,n,p,h,d,w¦iest:y",rev:"1:ttest,nnest,yest¦2:sest,stest,rmest,cest,vest,lmest,olest,ilest,ulest,ssest,imest,uest¦3:rgest,eatest,oorest,plest,allest,urest,iefest,uelest,blest,ugest,amest,yalest,ealest,illest,tlest,itest¦4:cerest,eriest,somest,rmalest,ndomest,motest,uarest,tiffest¦5:leverest,rangest¦ar:urthest¦3ey:riciest",ex:"best:good¦worst:bad¦5est:great¦4est:fast,full,fair,dull¦3test:hot,wet,fat¦4nest:thin¦1urthest:far¦3est:gay,shy,ill¦4test:neat¦4st:late,wide,fine,safe,cute,fake,pale,rare,rude,sore,ripe,dire¦6st:severe"},AdjToNoun:{fwd:"1:tistic,eable,lful,sful,ting,tty¦2:onate,rtable,geous,ced,seful,ctful¦3:ortive,ented¦arity:ear¦y:etic¦fulness:begone¦1ity:re¦1y:tiful,gic¦2ity:ile,imous,ilous,ime¦2ion:ated¦2eness:iving¦2y:trious¦2ation:iring¦2tion:vant¦3ion:ect¦3ce:mant,mantic¦3tion:irable¦3y:est,estic¦3m:mistic,listic¦3ess:ning¦4n:utious¦4on:rative,native,vative,ective¦4ce:erant",both:"1:king,wing¦2:alous,ltuous,oyful,rdous¦3:gorous,ectable,werful,amatic¦4:oised,usical,agical,raceful,ocused,lined,ightful¦5ness:stful,lding,itous,nuous,ulous,otous,nable,gious,ayful,rvous,ntous,lsive,peful,entle,ciful,osive,leful,isive,ncise,reful,mious¦5ty:ivacious¦5ties:ubtle¦5ce:ilient,adiant,atient¦5cy:icient¦5sm:gmatic¦5on:sessive,dictive¦5ity:pular,sonal,eative,entic¦5sity:uminous¦5ism:conic¦5nce:mperate¦5ility:mitable¦5ment:xcited¦5n:bitious¦4cy:brant,etent,curate¦4ility:erable,acable,icable,ptable¦4ty:nacious,aive,oyal,dacious¦4n:icious¦4ce:vient,erent,stent,ndent,dient,quent,ident¦4ness:adic,ound,hing,pant,sant,oing,oist,tute¦4icity:imple¦4ment:fined,mused¦4ism:otic¦4ry:dantic¦4ity:tund,eral¦4edness:hand¦4on:uitive¦4lity:pitable¦4sm:eroic,namic¦4sity:nerous¦3th:arm¦3ility:pable,bable,dable,iable¦3cy:hant,nant,icate¦3ness:red,hin,nse,ict,iet,ite,oud,ind,ied,rce¦3ion:lute¦3ity:ual,gal,volous,ial¦3ce:sent,fensive,lant,gant,gent,lent,dant¦3on:asive¦3m:fist,sistic,iastic¦3y:terious,xurious,ronic,tastic¦3ur:amorous¦3e:tunate¦3ation:mined¦3sy:rteous¦3ty:ain¦3ry:ave¦3ment:azed¦2ness:de,on,ue,rn,ur,ft,rp,pe,om,ge,rd,od,ay,ss,er,ll,oy,ap,ht,ld,ad,rt¦2inousness:umous¦2ity:neous,ene,id,ane¦2cy:bate,late¦2ation:ized¦2ility:oble,ible¦2y:odic¦2e:oving,aring¦2s:ost¦2itude:pt¦2dom:ee¦2ance:uring¦2tion:reet¦2ion:oted¦2sion:ending¦2liness:an¦2or:rdent¦1th:ung¦1e:uable¦1ness:w,h,k,f¦1ility:mble¦1or:vent¦1ement:ging¦1tiquity:ncient¦1ment:hed¦verty:or¦ength:ong¦eat:ot¦pth:ep¦iness:y",rev:"",ex:"5:forceful,humorous¦8:charismatic¦13:understanding¦5ity:active¦11ness:adventurous,inquisitive,resourceful¦8on:aggressive,automatic,perceptive¦7ness:amorous,fatuous,furtive,ominous,serious¦5ness:ample,sweet¦12ness:apprehensive,cantankerous,contemptuous,ostentatious¦13ness:argumentative,conscientious¦9ness:assertive,facetious,imperious,inventive,oblivious,rapacious,receptive,seditious,whimsical¦10ness:attractive,expressive,impressive,loquacious,salubrious,thoughtful¦3edom:boring¦4ness:calm,fast,keen,tame¦8ness:cheerful,gracious,specious,spurious,timorous,unctuous¦5sity:curious¦9ion:deliberate¦8ion:desperate¦6e:expensive¦7ce:fragrant¦3y:furious¦9ility:ineluctable¦6ism:mystical¦8ity:physical,proactive,sensitive,vertical¦5cy:pliant¦7ity:positive¦9ity:practical¦12ism:professional
1209¦6ce:prudent¦3ness:red¦6cy:vagrant¦3dom:wise"}},mFt=function(t,e={}){return e.hasOwnProperty(t)?e[t]:null},gFt=function(t,e=[]){for(let n=0;n<e.length;n+=1)if(t.endsWith(e[n]))return t;return null},yFt=function(t,e,n={}){e=e||{};let r=t.length-1;for(let i=r;i>=1;i-=1){let s=t.length-i,o=t.substring(s,t.length);if(e.hasOwnProperty(o)===!0)return t.slice(0,s)+e[o];if(n.hasOwnProperty(o)===!0)return t.slice(0,s)+n[o]}return e.hasOwnProperty("")?t+=e[""]:n.hasOwnProperty("")?t+=n[""]:null},_u=function(t="",e={}){let n=mFt(t,e.ex);return n=n||gFt(t,e.same),n=n||yFt(t,e.fwd,e.both),n=n||t,n},jae=function(t){return Object.entries(t).reduce((e,n)=>(e[n[1]]=n[0],e),{})},nS=function(t={}){return{reversed:!0,both:jae(t.both),ex:jae(t.ex),fwd:t.rev||{}}},zae=/^([0-9]+)/,bFt=function(t){let e={};return t.split("¦").forEach(n=>{let[r,i]=n.split(":");i=(i||"").split(","),i.forEach(s=>{e[s]=r})}),e},vFt=function(t="",e=""){e=String(e);let n=e.match(zae);if(n===null)return e;let r=Number(n[1])||0;return t.substring(0,r)+e.replace(zae,"")},YE=function(t){let e=bFt(t);return Object.keys(e).reduce((n,r)=>(n[r]=vFt(r,e[r]),n),{})},qb=function(t={}){return typeof t=="string"&&(t=JSON.parse(t)),t.fwd=YE(t.fwd||""),t.both=YE(t.both||""),t.rev=YE(t.rev||""),t.ex=YE(t.ex||""),t},iEe=qb(Wb.PastTense),sEe=qb(Wb.PresentTense),oEe=qb(Wb.Gerund),aEe=qb(Wb.Participle),xFt=nS(iEe),wFt=nS(sEe),SFt=nS(oEe),kFt=nS(aEe),lEe=qb(Wb.Comparative),cEe=qb(Wb.Superlative),CFt=nS(lEe),_Ft=nS(cEe),TFt=qb(Wb.AdjToNoun),uEe={fromPast:iEe,fromPresent:sEe,fromGerund:oEe,fromParticiple:aEe,toPast:xFt,toPresent:wFt,toGerund:SFt,toParticiple:kFt,toComparative:lEe,toSuperlative:cEe,fromComparative:CFt,fromSuperlative:_Ft,adjToNoun:TFt},EFt=[[/^[\w.]+@[\w.]+\.[a-z]{2,3}$/,"Email"],[/^(https?:\/\/|www\.)+\w+\.[a-z]{2,3}/,"Url","http.."],[/^[a-z0-9./].+\.(com|net|gov|org|ly|edu|info|biz|dev|ru|jp|de|in|uk|br|io|ai)/,"Url",".com"],[/^[PMCE]ST$/,"Timezone","EST"],[/^ma?c'[a-z]{3}/,"LastName","mc'neil"],[/^o'[a-z]{3}/,"LastName","o'connor"],[/^ma?cd[aeiou][a-z]{3}/,"LastName","mcdonald"],[/^(lol)+[sz]$/,"Expression","lol"],[/^wo{2,}a*h?$/,"Expression","wooah"],[/^(hee?){2,}h?$/,"Expression","hehe"],[/^(un|de|re)\\-[a-z\u00C0-\u00FF]{2}/,"Verb","un-vite"],[/^(m|k|cm|km)\/(s|h|hr)$/,"Unit","5 k/m"],[/^(ug|ng|mg)\/(l|m3|ft3)$/,"Unit","ug/L"],[/[^:/]\/\p{Letter}/u,"SlashedTerm","love/hate"]],AFt=[[/^#[\p{Number}_]*\p{Letter}/u,"HashTag"],[/^@\w{2,}$/,"AtMention"],[/^([A-Z]\.){2}[A-Z]?/i,["Acronym","Noun"],"F.B.I"],[/.{3}[lkmnp]in['ââââµâ²`´]$/,"Gerund","chillin'"],[/.{4}s['ââââµâ²`´]$/,"Possessive","flanders'"],[/^[\p{Emoji_Presentation}\p{Extended_Pictographic}]/u,"Emoji","emoji-class"]],PFt=[[/^@1?[0-9](am|pm)$/i,"Time","3pm"],[/^@1?[0-9]:[0-9]{2}(am|pm)?$/i,"Time","3:30pm"],[/^'[0-9]{2}$/,"Year"],[/^[012]?[0-9](:[0-5][0-9])(:[0-5][0-9])$/,"Time","3:12:31"],[/^[012]?[0-9](:[0-5][0-9])?(:[0-5][0-9])? ?(am|pm)$/i,"Time","1:12pm"],[/^[012]?[0-9](:[0-5][0-9])(:[0-5][0-9])? ?(am|pm)?$/i,"Time","1:12:31pm"],[/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}/i,"Date","iso-date"],[/^[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,4}$/,"Date","iso-dash"],[/^[0-9]{1,4}\/[0-9]{1,2}\/([0-9]{4}|[0-9]{2})$/,"Date","iso-slash"],[/^[0-9]{1,4}\.[0-9]{1,2}\.[0-9]{1,4}$/,"Date","iso-dot"],[/^[0-9]{1,4}-[a-z]{2,9}-[0-9]{1,4}$/i,"Date","12-dec-2019"],[/^utc ?[+-]?[0-9]+$/,"Timezone","utc-9"],[/^(gmt|utc)[+-][0-9]{1,2}$/i,"Timezone","gmt-3"],[/^[0-9]{3}-[0-9]{4}$/,"PhoneNumber","421-0029"],[/^(\+?[0-9][ -])?[0-9]{3}[ -]?[0-9]{3}-[0-9]{4}$/,"PhoneNumber","1-800-"],[/^[-+]?\p{Currency_Symbol}[-+]?[0-9]+(,[0-9]{3})*(\.[0-9]+)?([kmb]|bn)?\+?$/u,["Money","Value"],"$5.30"],[/^[-+]?[0-9]+(,[0-9]{3})*(\.[0-9]+)?\p{Currency_Symbol}\+?$/u,["Money","Value"],"5.30£"],[/^[-+]?[$£]?[0-9]([0-9,.])+(usd|eur|jpy|gbp|cad|aud|chf|cny|hkd|nzd|kr|rub)$/i,["Money","Value"],"$400usd"],[/^[-+]?[0-9]+(,[0-9]{3})*(\.[0-9]+)?\+?$/,["Cardinal","NumericValue"],"5,999"],[/^[-+]?[0-9]+(,[0-9]{3})*(\.[0-9]+)?(st|nd|rd|r?th)$/,["Ordinal","NumericValue"],"53rd"],[/^\.[0-9]+\+?$/,["Cardinal","NumericValue"],".73th"],[/^[-+]?[0-9]+(,[0-9]{3})*(\.[0-9]+)?%\+?$/,["Percent","Cardinal","NumericValue"],"-4%"],[/^\.[0-9]+%$/,["Percent","Cardinal","NumericValue"],".3%"],[/^[0-9]{1,4}\/[0-9]{1,4}(st|nd|rd|th)?s?$/,["Fraction","NumericValue"],"2/3rds"],[/^[0-9.]{1,3}[a-z]{0,2}[-ââ][0-9]{1,3}[a-z]{0,2}$/,["Value","NumberRange"],"3-4"],[/^[0-9]{1,2}(:[0-9][0-9])?(am|pm)? ?[-ââ] ?[0-9]{1,2}(:[0-9][0-9])?(am|pm)$/,["Time","NumberRange"],"3-4pm"],[/^[0-9.]+([a-z°]{1,4})$/,"NumericValue","9km"]],OFt=["academy","administration","agence","agences","agencies","agency","airlines","airways","army","assoc","associates","association","assurance","authority","autorite","aviation","bank","banque","board","boys","brands","brewery","brotherhood","brothers","bureau","cafe","co","caisse","capital","care","cathedral","center","centre","chemicals","choir","chronicle","church","circus","clinic","clinique","club","co","coalition","coffee","collective","college","commission","committee","communications","community","company","comprehensive","computers","confederation","conference","conseil","consulting","containers","corporation","corps","corp","council","crew","data","departement","department","departments","design","development","directorate","division","drilling","education","eglise","electric","electricity","energy","ensemble","enterprise","enterprises","entertainment","estate","etat","faculty","faction","federation","financial","fm","foundation","fund","gas","gazette","girls","government","group","guild","herald","holdings","hospital","hotel","hotels","inc","industries","institut","institute","institutes","insurance","international","interstate","investment","investments","investors","journal","laboratory","labs","llc","ltd","limited","machines","magazine","management","marine","marketing","markets","media","memorial","ministere","ministry","military","mobile","motor","motors","musee","museum","news","observatory","office","oil","optical","orchestra","organization","partners","partnership","petrol","petroleum","pharmacare","pharmaceutical","pharmaceuticals","pizza","plc","police","politburo","polytechnic","post","power","press","productions","quartet","radio","reserve","resources","restaurant","restaurants","savings","school","securities","service","services","societe","subsidiary","society","sons","subcommittee","syndicat","systems","telecommunications","telegraph","television","times","tribunal","tv","union","university","utilities","workers"].reduce((t,e)=>(t[e]=!0,t),{}),IFt=["atoll","basin","bay","beach","bluff","bog","camp","canyon","canyons","cape","cave","caves","cliffs","coast","cove","coves","crater","crossing","creek","desert","dune","dunes","downs","estates","escarpment","estuary","falls","fjord","fjords","forest","forests","glacier","gorge","gorges","grove","gulf","gully","highland","heights","hollow","hill","hills","inlet","island","islands","isthmus","junction","knoll","lagoon","lake","lakeshore","marsh","marshes","mount","mountain","mountains","narrows","peninsula","plains","plateau","pond","rapids","ravine","reef","reefs","ridge","river","rivers","sandhill","shoal","shore","shoreline","shores","strait","straits","springs","stream","swamp","tombolo","trail","trails","trench","valley","vallies","village","volcano","waterfall","watershed","wetland","woods","acres","burough","county","district","municipality","prefecture","province","region","reservation","state","territory","borough","metropolis","downtown","uptown","midtown","city","town","township","hamlet","country","kingdom","enclave","neighbourhood","neighborhood","kingdom","ward","zone","airport","amphitheater","arch","arena","auditorium","bar","barn","basilica","battlefield","bridge","building","castle","centre","coliseum","cineplex","complex","dam","farm","field","fort","garden","gardens","gymnasium","hall","house","levee","library","manor","memorial","monument","museum","gallery","palace","pillar","pits","plantation","playhouse","quarry","sportsfield","sportsplex","stadium","terrace","terraces","theater","tower","park","parks","site","ranch","raceway","sportsplex","ave","st","street","rd","road","lane","landing","crescent","cr","way","tr","terrace","avenue"].reduce((t,e)=>(t[e]=!0,t),{}),QE=[[/([^v])ies$/i,"$1y"],[/(ise)s$/i,"$1"],[/(kn|[^o]l|w)ives$/i,"$1ife"],[/^((?:ca|e|ha|(?:our|them|your)?se|she|wo)l|lea|loa|shea|thie)ves$/i,"$1f"],[/^(dwar|handkerchie|hoo|scar|whar)ves$/i,"$1f"],[/(antenn|formul|nebul|vertebr|vit)ae$/i,"$1a"],[/(octop|vir|radi|nucle|fung|cact|stimul)(i)$/i,"$1us"],[/(buffal|tomat|tornad)(oes)$/i,"$1o"],[/(ause)s$/i,"$1"],[/(ease)s$/i,"$1"],[/(ious)es$/i,"$1"],[/(ouse)s$/i,"$1"],[/(ose)s$/i,"$1"],[/(..ase)s$/i,"$1"],[/(..[aeiu]s)es$/i,"$1"],[/(vert|ind|cort)(ices)$/i,"$1ex"],[/(matr|append)(ices)$/i,"$1ix"],[/([xo]|ch|ss|sh)es$/i,"$1"],[/men$/i,"man"],[/(n)ews$/i,"$1ews"],[/([ti])a$/i,"$1um"],[/([^aeiouy]|qu)ies$/i,"$1y"],[/(s)eries$/i,"$1eries"],[/(m)ovies$/i,"$1ovie"],[/(cris|ax|test)es$/i,"$1is"],[/(alias|status)es$/i,"$1"],[/(ss)$/i,"$1"],[/(ic)s$/i,"$1"],[/s$/i,""]],DFt=function(t){return Object.keys(t).reduce((e,n)=>(e[t[n]]=n,e),{})},hEe=function(t,e){const{irregularPlurals:n}=e.two;let r=DFt(n);if(r.hasOwnProperty(t))return r[t];for(let i=0;i<QE.length;i++)if(QE[i][0].test(t)===!0)return t=t.replace(QE[i][0],QE[i][1]),t;return t},MFt=function(t,e){let n=[t],r=e9(t,e);r!==t&&n.push(r);let i=hEe(t,e);return i!==t&&n.push(i),n},NFt={toPlural:e9,toSingular:hEe,all:MFt};let Uy={Gerund:["ing"],Actor:["erer"],Infinitive:["ate","ize","tion","rify","then","ress","ify","age","nce","ect","ise","ine","ish","ace","ash","ure","tch","end","ack","and","ute","ade","ock","ite","ase","ose","use","ive","int","nge","lay","est","ain","ant","ent","eed","er","le","unk","ung","upt","en"],PastTense:["ept","ed","lt","nt","ew","ld"],PresentTense:["rks","cks","
1209nks","ngs","mps","tes","zes","ers","les","acks","ends","ands","ocks","lays","eads","lls","els","ils","ows","nds","ays","ams","ars","ops","ffs","als","urs","lds","ews","ips","es","ts","ns"],Participle:["ken","wn"]};Uy=Object.keys(Uy).reduce((t,e)=>(Uy[e].forEach(n=>t[n]=e),t),{});const dEe=function(t){let e=t.substring(t.length-3);if(Uy.hasOwnProperty(e)===!0)return Uy[e];let n=t.substring(t.length-2);return Uy.hasOwnProperty(n)===!0?Uy[n]:t.substring(t.length-1)==="s"?"PresentTense":null},RFt=function(t,e){let n="",r={};e.one&&e.one.prefixes&&(r=e.one.prefixes);let[i,s]=t.split(/ /);return s&&r[i]===!0&&(n=i,i=s,s=""),{prefix:n,verb:i,particle:s}},Hae={are:"be",were:"be",been:"be",is:"be",am:"be",was:"be",be:"be",being:"be"},tz=function(t,e,n){const{fromPast:r,fromPresent:i,fromGerund:s,fromParticiple:o}=e.two.models;let{prefix:a,verb:l,particle:c}=RFt(t,e),u="";if(n||(n=dEe(t)),Hae.hasOwnProperty(t))u=Hae[t];else if(n==="Participle")u=_u(l,o);else if(n==="PastTense")u=_u(l,r);else if(n==="PresentTense")u=_u(l,i);else if(n==="Gerund")u=_u(l,s);else return t;return c&&(u+=" "+c),a&&(u=a+" "+u),u},LFt=t=>/ /.test(t)?t.split(/ /):[t,""],RG=function(t,e){const{toPast:n,toPresent:r,toGerund:i,toParticiple:s}=e.two.models;if(t==="be")return{Infinitive:t,Gerund:"being",PastTense:"was",PresentTense:"is"};let[o,a]=LFt(t),l={Infinitive:o,PastTense:_u(o,n),PresentTense:_u(o,r),Gerund:_u(o,i),FutureTense:"will "+o},c=_u(o,s);if(c!==t&&c!==l.PastTense){let u=e.one.lexicon||{};(u[c]==="Participle"||u[c]==="Adjective")&&(t==="play"&&(c="played"),l.Participle=c)}return a&&Object.keys(l).forEach(u=>{l[u]+=" "+a}),l},BFt=function(t,e){let n=RG(t,e);return delete n.FutureTense,Object.values(n).filter(r=>r)},FFt={toInfinitive:tz,conjugate:RG,all:BFt},LG=function(t,e){const n=e.two.models.toSuperlative;return _u(t,n)},BG=function(t,e){const n=e.two.models.toComparative;return _u(t,n)},$Ft=function(t,e){const n=e.two.models.fromComparative;return _u(t,n)},jFt=function(t,e){const n=e.two.models.fromSuperlative;return _u(t,n)},zFt=function(t,e){const n=e.two.models.adjToNoun;return _u(t,n)},fEe=function(t="",e=[]){const n=t.length;let r=n<=6?n-1:6;for(let i=r;i>=1;i-=1){let s=t.substring(n-i,t.length);if(e[s.length].hasOwnProperty(s)===!0){let o=t.slice(0,n-i),a=e[s.length][s];return o+a}}return null},xi="ically",HFt=new Set(["analyt"+xi,"chem"+xi,"class"+xi,"clin"+xi,"crit"+xi,"ecolog"+xi,"electr"+xi,"empir"+xi,"frant"+xi,"grammat"+xi,"ident"+xi,"ideolog"+xi,"log"+xi,"mag"+xi,"mathemat"+xi,"mechan"+xi,"med"+xi,"method"+xi,"method"+xi,"mus"+xi,"phys"+xi,"phys"+xi,"polit"+xi,"pract"+xi,"rad"+xi,"satir"+xi,"statist"+xi,"techn"+xi,"technolog"+xi,"theoret"+xi,"typ"+xi,"vert"+xi,"whims"+xi]),UFt=[null,{},{ly:""},{ily:"y",bly:"ble",ply:"ple"},{ally:"al",rply:"rp"},{ually:"ual",ially:"ial",cally:"cal",eally:"eal",rally:"ral",nally:"nal",mally:"mal",eeply:"eep",eaply:"eap"},{ically:"ic"}],VFt=new Set(["early","only","hourly","daily","weekly","monthly","yearly","mostly","duly","unduly","especially","undoubtedly","conversely","namely","exceedingly","presumably","accordingly","overly","best","latter","little","long","low"]),Uae={wholly:"whole",fully:"full",truly:"true",gently:"gentle",singly:"single",customarily:"customary",idly:"idle",publically:"public",quickly:"quick",superbly:"superb",cynically:"cynical",well:"good"},WFt=function(t){return t.endsWith("ly")?HFt.has(t)?t.replace(/ically/,"ical"):VFt.has(t)?null:Uae.hasOwnProperty(t)?Uae[t]:fEe(t,UFt)||t:null},qFt=[null,{y:"ily"},{ly:"ly",ic:"ically"},{ial:"ially",ual:"ually",tle:"tly",ble:"bly",ple:"ply",ary:"arily"},{},{},{}],Vae={cool:"cooly",whole:"wholly",full:"fully",good:"well",idle:"idly",public:"publicly",single:"singly",special:"especially"},pEe=function(t){if(Vae.hasOwnProperty(t))return Vae[t];let e=fEe(t,qFt);return e||(e=t+"ly"),e},GFt=function(t,e){let n=[t];return n.push(LG(t,e)),n.push(BG(t,e)),n.push(pEe(t)),n=n.filter(r=>r),n=new Set(n),Array.from(n)},KFt={toSuperlative:LG,toComparative:BG,toAdverb:pEe,toNoun:zFt,fromAdverb:WFt,fromSuperlative:jFt,fromComparative:$Ft,all:GFt},YFt={noun:NFt,verb:FFt,adjective:KFt},Wae={Singular:(t,e,n,r)=>{let i=r.one.lexicon,s=n.two.transform.noun.toPlural(t,r);i[s]||(e[s]=e[s]||"Plural")},Actor:(t,e,n,r)=>{let i=r.one.lexicon,s=n.two.transform.noun.toPlural(t,r);i[s]||(e[s]=e[s]||["Plural","Actor"])},Comparable:(t,e,n,r)=>{let i=r.one.lexicon,{toSuperlative:s,toComparative:o}=n.two.transform.adjective,a=s(t,r);i[a]||(e[a]=e[a]||"Superlative");let l=o(t,r);i[l]||(e[l]=e[l]||"Comparative"),e[t]="Adjective"},Demonym:(t,e,n,r)=>{let i=n.two.transform.noun.toPlural(t,r);e[i]=e[i]||["Demonym","Plural"]},Infinitive:(t,e,n,r)=>{let i=r.one.lexicon,s=n.two.transform.verb.conjugate(t,r);
1209Object.entries(s).forEach(o=>{!i[o[1]]&&!e[o[1]]&&o[0]!=="FutureTense"&&(e[o[1]]=o[0])})},PhrasalVerb:(t,e,n,r)=>{let i=r.one.lexicon;e[t]=["PhrasalVerb","Infinitive"];let s=r.one._multiCache,[o,a]=t.split(" ");i[o]||(e[o]=e[o]||"Infinitive");let l=n.two.transform.verb.conjugate(o,r);delete l.FutureTense,Object.entries(l).forEach(c=>{if(c[0]==="Actor"||c[1]==="")return;!e[c[1]]&&!i[c[1]]&&(e[c[1]]=c[0]),s[c[1]]=2;let u=c[1]+" "+a;e[u]=e[u]||[c[0],"PhrasalVerb"]})},Multiple:(t,e)=>{e[t]=["Multiple","Cardinal"],e[t+"th"]=["Multiple","Ordinal"],e[t+"ths"]=["Multiple","Fraction"]},Cardinal:(t,e)=>{e[t]=["TextValue","Cardinal"]},Ordinal:(t,e)=>{e[t]=["TextValue","Ordinal"],e[t+"s"]=["TextValue","Fraction"]},Place:(t,e)=>{e[t]=["Place","ProperNoun"]},Region:(t,e)=>{e[t]=["Region","ProperNoun"]}},QFt=function(t,e){const{methods:n,model:r}=e;let i={},s={};return Object.keys(t).forEach(o=>{let a=t[o];o=o.toLowerCase().trim(),o=o.replace(/'s\b/,"");let l=o.split(/ /);l.length>1&&(s[l[0]]===void 0||l.length>s[l[0]])&&(s[l[0]]=l.length),Wae.hasOwnProperty(a)===!0&&Wae[a](o,i,n,r),i[o]=i[o]||a}),delete i[""],delete i[null],delete i[" "],{lex:i,_multi:s}},XFt=function(t,e){const n=/^[0-9]+$/;let r=t[e];if(!r)return!1;const i=new Set(["may","april","august","jan"]);if(r.normal==="like"||i.has(r.normal)||r.tags.has("Place")||r.tags.has("Date"))return!1;if(t[e-1]){let o=t[e-1];if(o.tags.has("Date")||i.has(o.normal)||o.tags.has("Adjective")||r.tags.has("Adjective"))return!1}let s=r.normal;return!((s.length===1||s.length===2||s.length===4)&&n.test(s))},JFt=function(t){const e=/[,:;]/;let n=[];return t.forEach(r=>{let i=0;r.forEach((s,o)=>{e.test(s.post)&&XFt(r,o+1)&&(n.push(r.slice(i,o+1)),i=o+1)}),i<r.length&&n.push(r.slice(i,r.length))}),n},qae={e:["mice","louse","antennae","formulae","nebulae","vertebrae","vitae"],i:["tia","octopi","viri","radii","nuclei","fungi","cacti","stimuli"],n:["men"],t:["feet"]},ZFt=new Set(["israelis","menus","logos"]),e$t=["bus","mas","was","ias","xas","vas","cis","lis","nis","ois","ris","sis","tis","xis","aus","cus","eus","fus","gus","ius","lus","nus","das","ous","pus","rus","sus","tus","xus","aos","igos","ados","ogos","'s","ss"],mEe=function(t){if(!t||t.length<=3)return!1;if(ZFt.has(t))return!0;let e=t[t.length-1];return qae.hasOwnProperty(e)?qae[e].find(n=>t.endsWith(n)):!(e!=="s"||e$t.find(n=>t.endsWith(n)))},nz={two:{quickSplit:JFt,expandLexicon:QFt,transform:YFt,looksPlural:mEe}},t$t=function(t){const{irregularPlurals:e}=t.two,{lexicon:n}=t.one;return Object.entries(e).forEach(r=>{n[r[0]]=n[r[0]]||"Singular",n[r[1]]=n[r[1]]||"Plural"}),t};let rz={one:{lexicon:{}},two:{models:uEe}};const n$t={"Actor|Verb":"Actor","Adj|Gerund":"Adjective","Adj|Noun":"Adjective","Adj|Past":"Adjective","Adj|Present":"Adjective","Noun|Verb":"Singular","Noun|Gerund":"Gerund","Person|Noun":"Noun","Person|Date":"Month","Person|Verb":"FirstName","Person|Place":"Person","Person|Adj":"Comparative","Plural|Verb":"Plural","Unit|Noun":"Noun"},gEe=function(t,e){const n={model:e,methods:nz};let{lex:r,_multi:i}=nz.two.expandLexicon(t,n);return Object.assign(e.one.lexicon,r),Object.assign(e.one._multiCache,i),e},r$t=function(t,e){return Object.keys(t).forEach(n=>{t[n]==="Uncountable"&&(e.two.uncountable[n]=!0,t[n]="Uncountable")}),e},Gae=function(t,e,n){let r=RG(t,rz);e[r.PastTense]=e[r.PastTense]||"PastTense",e[r.Gerund]=e[r.Gerund]||"Gerund",n===!0&&(e[r.PresentTense]=e[r.PresentTense]||"PresentTense")},Kae=function(t,e,n){let r=LG(t,n);e[r]=e[r]||"Superlative";let i=BG(t,n);e[i]=e[i]||"Comparative"},i$t=function(t,e,n){let r=e9(t,n);e[r]=e[r]||"Plural"},s$t=function(t,e){let n={};const r=e.one.lexicon;return Object.keys(t).forEach(i=>{const s=t[i];if(n[i]=n$t[s],(s==="Noun|Verb"||s==="Person|Verb"||s==="Actor|Verb")&&Gae(i,r,!1),s==="Adj|Present"&&(Gae(i,r,!0),Kae(i,r,e)),s==="Person|Adj"&&Kae(i,r,e),s==="Adj|Gerund"||s==="Noun|Gerund"){let o=tz(i,rz,"Gerund");r[o]||(n[o]="Infinitive")}if((s==="Noun|Gerund"||s==="Adj|Noun"||s==="Person|Noun")&&i$t(i,r,e),s==="Adj|Past"){let o=tz(i,rz,"PastTense");r[o]||(n[o]="Infinitive")}}),e=gEe(n,e),e},o$t=function(t){return t=gEe(t.one.lexicon,t),t=r$t(t.one.lexicon,t),t=s$t(t.two.switches,t),t=t$t(t),t};let iz={one:{_multiCache:{},lexicon:tS,frozenLex:UBt},two:{irregularPlurals:rEe,models:uEe,suffixPatterns:hFt,prefixPatterns:dFt,endsWith:fFt,neighbours:pFt,regexNormal:EFt,regexText:AFt,regexNumbers:PFt,switches:ez,clues:p2,uncountable:{},orgWords:OFt,placeWords:IFt}};iz=o$t(iz);const a$t=function(t,e,n,r){const i=r.methods.one.setTag;if(t.length>=3){const s=/:/;if(t[0].post.match(s)){let a=t[1];if(a.tags.has("Value")||a.tags.has("Email")||a.tags.has("PhoneNumber"))return;i([t[0]],"Expression",r,null,"2-punct-colon''")}}},l$t=function(t,e,n,r){const i=r.methods.one.setTag;t[e].post==="-"&&t[e+1]&&i([t[e],t[e+1]],"Hyphenated",r,null,"1-punct-hyphen''")},Yae=/^(under|over|mis|re|un|dis|semi)-?/,c$t=function(t,e,n){const r=n.two.switches;let i=t[e];if(r.hasOwnProperty(i.normal)){i.switch=r[i.normal];return}if(Yae.test(i.normal)){let s=i.normal.replace(Yae,"");s.length>3&&r.hasOwnProperty(s)&&(i.switch=r[s])}};var Qae={};const u$t=(t,e,n="")=>{const r=o=>"\x1B[33m\x1B[3m"+o+"\x1B[0m",i=o=>"\x1B[3m"+o+"\x1B[0m";let s=t.text||"["+t.implicit+"]";typeof e!="string"&&e.length>2&&(e=e.slice(0,2).join(", #")+" +"),e=typeof e!="string"?e.join(", #"):e,console.log(` ${r(s).padEnd(24)} \x1B[32mâ\x1B[0m #${e.padEnd(22)} ${i(n)}`)},xo=function(t,e,n){if(!e||e.length===0||t.frozen===!0)return;const r=typeof process>"u"||!Qae?self.env||{}:Qae;r&&r.DEBUG_TAGS&&u$t(t,e,n),t.tags=t.tags||new Set,typeof e=="string"?t.tags.add(e):e.forEach(i=>
1209t.tags.add(i))},h$t=["Acronym","Abbreviation","ProperNoun","Uncountable","Possessive","Pronoun","Activity","Honorific","Month"],d$t=function(t){!t.tags.has("Noun")||t.tags.has("Plural")||t.tags.has("Singular")||h$t.find(e=>t.tags.has(e))||(mEe(t.normal)?xo(t,"Plural","3-plural-guess"):xo(t,"Singular","3-singular-guess"))},f$t=function(t){let e=t.tags;if(e.has("Verb")&&e.size===1){let n=dEe(t.normal);n&&xo(t,n,"3-verb-tense-guess")}},eT=function(t,e,n){let r=t[e],i=Array.from(r.tags);for(let s=0;s<i.length;s+=1)if(n.one.tagSet[i[s]]){let o=n.one.tagSet[i[s]].parents;xo(r,o,` -inferred by #${i[s]}`)}d$t(r),f$t(r)},p$t=/^\p{Lu}[\p{Ll}'â]/u,m$t=/[0-9]/,g$t=["Date","Month","WeekDay","Unit","Expression"],y$t=/[IVX]/,b$t=/^[IVXLCDM]{2,}$/,v$t=/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/,x$t={li:!0,dc:!0,md:!0,dm:!0,ml:!0},w$t=function(t,e,n){let r=t[e];r.index=r.index||[0,0];let i=r.index[1],s=r.text||"";return i!==0&&p$t.test(s)===!0&&m$t.test(s)===!1?g$t.find(o=>r.tags.has(o))||r.pre.match(/["']$/)||r.normal==="the"?null:(eT(t,e,n),!r.tags.has("Noun")&&!r.frozen&&r.tags.clear(),xo(r,"ProperNoun","2-titlecase"),!0):s.length>=2&&b$t.test(s)&&y$t.test(s)&&v$t.test(s)&&!x$t[r.normal]?(xo(r,"RomanNumeral","2-xvii"),!0):null},Xae=function(t="",e=[]){const n=t.length;let r=7;n<=r&&(r=n-1);for(let i=r;i>1;i-=1){let s=t.substring(n-i,n);if(e[s.length].hasOwnProperty(s)===!0)return e[s.length][s]}return null},S$t=function(t,e,n){let r=t[e];if(r.tags.size===0){let i=Xae(r.normal,n.two.suffixPatterns);if(i!==null)return xo(r,i,"2-suffix"),r.confidence=.7,!0;if(r.implicit&&(i=Xae(r.implicit,n.two.suffixPatterns),i!==null))return xo(r,i,"2-implicit-suffix"),r.confidence=.7,!0}return null},Jae=/['ââââµâ²`´]/,eL=function(t,e){for(let n=0;n<e.length;n+=1)if(e[n][0].test(t)===!0)return e[n];return null},k$t=function(t="",e){let n=t[t.length-1];if(e.hasOwnProperty(n)===!0){let r=e[n]||[];for(let i=0;i<r.length;i+=1)if(r[i][0].test(t)===!0)return r[i]}return null},C$t=function(t,e,n,r){const i=r.methods.one.setTag;let{regexText:s,regexNormal:o,regexNumbers:a,endsWith:l}=n.two,c=t[e],u=c.machine||c.normal,h=c.text;Jae.test(c.post)&&!Jae.test(c.pre)&&(h+=c.post.trim());let d=eL(h,s)||eL(u,o);return!d&&/[0-9]/.test(u)&&(d=eL(u,a)),!d&&c.tags.size===0&&(d=k$t(u,l)),d?(i([c],d[1],r,null,`2-regex-'${d[2]||d[0]}'`),c.confidence=.6,!0):null},_$t=function(t="",e=[]){const n=t.length;let r=7;r>n-3&&(r=n-3);for(let i=r;i>2;i-=1){let s=t.substring(0,i);if(e[s.length].hasOwnProperty(s)===!0)return e[s.length][s]}return null},T$t=function(t,e,n){let r=t[e];if(r.tags.size===0){let i=_$t(r.normal,n.two.prefixPatterns);if(i!==null)return xo(r,i,"2-prefix"),r.confidence=.5,!0}return null},E$t=1400,A$t=2100,P$t=new Set(["in","on","by","until","for","to","during","throughout","through","within","before","after","of","this","next","last","circa","around","post","pre","budget","classic","plan","may"]),Zae=function(t){if(!t)return!1;let e=t.normal||t.implicit;return!!(P$t.has(e)||t.tags.has("Date")||t.tags.has("Month")||t.tags.has("WeekDay")||t.tags.has("Year")||t.tags.has("ProperNoun"))},ele=function(t){return t?!!(t.tags.has("Ordinal")||t.tags.has("Cardinal")&&t.normal.length<3||t.normal==="is"||t.normal==="was"):!1},tle=function(t){return t&&(t.tags.has("Date")||t.tags.has("Month")||t.tags.has("WeekDay")||t.tags.has("Year"))},O$t=function(t,e){const n=t[e];if(n.tags.has("NumericValue")&&n.tags.has("Cardinal")&&n.normal.length===4){let r=Number(n.normal);if(r&&!isNaN(r)&&r>E$t&&r<A$t){let i=t[e-1],s=t[e+1];if(Zae(i)||Zae(s))return xo(n,"Year","2-tagYear");if(r>=1920&&r<2025){if(ele(i)||ele(s))return xo(n,"Year","2-tagYear-close");if(tle(t[e-2])||tle(t[e+2]))return xo(n,"Year","2-tagYear-far");if(i&&(i.tags.has("Determiner")||i.tags.has("Possessive"))&&s&&s.tags.has("Noun")&&!s.tags.has("Plural"))return xo(n,"Year","2-tagYear-noun")}}}return null},I$t=function(t,e,n,r){const i=r.methods.one.setTag,s=t[e],o=["PastTense","PresentTense","Auxiliary","Modal","Particle"];s.tags.has("Verb")&&(o.find(l=>s.tags.has(l))||i([s],"Infinitive",r,null,"2-verb-type''"))},yEe=/^[A-Z]('s|,)?$/,bEe=/^[A-Z-]+$/,vEe=/^[A-Z]+s$/,D$t=/([A-Z]\.)+[A-Z]?,?$/,M$t=/[A-Z]{2,}('s|,)?$/,N$t=/([a-z]\.)+[a-z]\.?$/,xEe={I:!0,A:!0},R$t={la:!0,ny:!0,us:!0,dc:!0,gb:!0},L$t=function(t,e){let n=t.text;if(bEe.test(n)===!1)if(n.length>3&&vEe.test(n)===!0)n=n.replace(/s$/,"");else return!1;return n.length>5||xEe.hasOwnProperty(n)||e.one.lexicon.hasOwnProperty(t.normal)?!1:D$t.test(n)===!0||N$t.test(n)===!0||yEe.test(n)===!0||M$t.test(n)===!0},B$t=function(t,e,n){let r=t[e];return r.tags.has("RomanNumeral")||r.tags.has("Acronym")||r.frozen?null:L$t(r,n)?(r.tags.clear(),xo(r,["Acronym","Noun"],"3-no-period-acronym"),R$t[r.normal]===!0&&xo(r,"Place","3-place-acronym"),vEe.test(r.text)===!0&&xo(r,"Plural","3-plural-acronym"),!0):!xEe.hasOwnProperty(r.text)&&yEe.test(r.text)?(r.tags.clear(),xo(r,["Acronym","Noun"],"3-one-letter-acronym"),!0):r.tags.has("Organization")&&r.text.length<=3?(xo(r,"Acronym","3-org-acronym"),!0):r.tags.has("Organization")&&bEe.test(r.text)&&r.text.length<=6?(xo(r,"Acronym","3-titlecase-acronym"),!0):null},nle=function(t,e){if(!t)return null;let n=e.find(r=>t.normal===r[0]);
1209return n?n[1]:null},rle=function(t,e){if(!t)return null;let n=e.find(r=>t.tags.has(r[0]));return n?n[1]:null},F$t=function(t,e,n){const{leftTags:r,leftWords:i,rightWords:s,rightTags:o}=n.two.neighbours;let a=t[e];if(a.tags.size===0){let l=null;if(l=l||nle(t[e-1],i),l=l||nle(t[e+1],s),l=l||rle(t[e-1],r),l=l||rle(t[e+1],o),l)return xo(a,l,"3-[neighbour]"),eT(t,e,n),t[e].confidence=.2,!0}return null},$$t=t=>/^\p{Lu}[\p{Ll}'â]/u.test(t),ile=function(t,e,n){return!t||t.tags.has("FirstName")||t.tags.has("Place")?!1:t.tags.has("ProperNoun")||t.tags.has("Organization")||t.tags.has("Acronym")?!0:!n&&$$t(t.text)?e===0?t.tags.has("Singular"):!0:!1},j$t=function(t,e,n,r){const i=n.model.two.orgWords,s=n.methods.one.setTag;let o=t[e],a=o.machine||o.normal;if(i[a]===!0&&ile(t[e-1],e-1,r)){s([t[e]],"Organization",n,null,"3-[org-word]");for(let l=e;l>=0&&ile(t[l],l,r);l-=1)s([t[l]],"Organization",n,null,"3-[org-word]")}return null},z$t=t=>/^\p{Lu}[\p{Ll}'â]/u.test(t),H$t=/'s$/,sle=new Set(["athletic","city","community","eastern","federal","financial","great","historic","historical","local","memorial","municipal","national","northern","provincial","southern","state","western","spring","pine","sunset","view","oak","maple","spruce","cedar","willow"]),U$t=new Set(["center","centre","way","range","bar","bridge","field","pit"]),ole=function(t,e,n){if(!t)return!1;let r=t.tags;return r.has("Organization")||r.has("Possessive")||H$t.test(t.normal)?!1:r.has("ProperNoun")||r.has("Place")?!0:!n&&z$t(t.text)?e===0?r.has("Singular"):!0:!1},V$t=function(t,e,n,r){const i=n.model.two.placeWords,s=n.methods.one.setTag;let o=t[e],a=o.machine||o.normal;if(i[a]===!0){for(let l=e-1;l>=0;l-=1)if(!sle.has(t[l].normal)){if(ole(t[l],l,r)){s(t.slice(l,e+1),"Place",n,null,"3-[place-of-foo]");continue}break}if(U$t.has(a))return!1;for(let l=e+1;l<t.length;l+=1){if(ole(t[l],l,r))return s(t.slice(e,l+1),"Place",n,null,"3-[foo-place]"),!0;if(!(t[l].normal==="of"||sle.has(t[l].normal)))break}}return null},W$t=function(t,e,n){let r=!1,i=t[e].tags;(i.size===0||i.size===1&&(i.has("Hyphenated")||i.has("HashTag")||i.has("Prefix")||i.has("SlashedTerm")))&&(r=!0),r&&(xo(t[e],"Noun","3-[fallback]"),eT(t,e,n),t[e].confidence=.1)},q$t=/^[A-Z][a-z]/,td=(t,e)=>t[e].tags.has("ProperNoun")&&q$t.test(t[e].text)?"Noun":null,ale=(t,e,n)=>e===0&&!t[1]?n:null,G$t=function(t,e){return!t[e+1]&&t[e-1]&&t[e-1].tags.has("Determiner")?"Noun":null},K$t=function(t,e,n){return e===0&&t.length>3?n:null},lle={"Adj|Gerund":(t,e)=>td(t,e),"Adj|Noun":(t,e)=>td(t,e)||G$t(t,e),"Actor|Verb":(t,e)=>td(t,e),"Adj|Past":(t,e)=>td(t,e),"Adj|Present":(t,e)=>td(t,e),"Noun|Gerund":(t,e)=>td(t,e),"Noun|Verb":(t,e)=>e>0&&td(t,e)||ale(t,e,"Infinitive"),"Plural|Verb":(t,e)=>td(t,e)||ale(t,e,"PresentTense")||K$t(t,e,"Plural"),"Person|Noun":(t,e)=>td(t,e),"Person|Verb":(t,e)=>e!==0?td(t,e):null,"Person|Adj":(t,e)=>e===0&&t.length>1||td(t,e)?"Person":null};var cle={};const FG=typeof process>"u"||!cle?self.env||{}:cle,ule=/^(under|over|mis|re|un|dis|semi)-?/,hle=(t,e)=>{if(!t||!e)return null;let n=t.normal||t.implicit,r=null;return e.hasOwnProperty(n)&&(r=e[n]),r&&FG.DEBUG_TAGS&&console.log(` 1210 \x1B[2m\x1B[3m â - '${n}' \x1B[0m`),r},dle=(t,e={},n)=>{if(!t||!e)return null;let i=Array.from(t.tags).sort((s,o)=>{let a=n[s]?n[s].parents.length:0,l=n[o]?n[o].parents.length:0;return a>l?-1:1}).find(s=>e[s]);return i&&FG.DEBUG_TAGS&&console.log(` \x1B[2m\x1B[3m â - '${t.normal||t.implicit}' (#${i}) \x1B[0m`),i=e[i],i},Y$t=function(t,e,n,r){if(!n)return null;const i=t[e-1]?.text!=="also"?e-1:Math.max(0,e-2),s=r.one.tagSet;let o=hle(t[e+1],n.afterWords);return o=o||hle(t[i],n.beforeWords),o=o||dle(t[i],n.beforeTags,s),o=o||dle(t[e+1],n.afterTags,s),o},Q$t=function(t,e,n){const r=n.model,i=n.methods.one.setTag,{switches:s,clues:o}=r.two,a=t[e];let l=a.normal||a.implicit||"";if(ule.test(l)&&!s[l]&&(l=l.replace(ule,"")),a.switch){let c=a.switch;if(a.tags.has("Acronym")||a.tags.has("PhrasalVerb"))return;let u=Y$t(t,e,o[c],r);lle[c]&&(u=lle[c](t,e)||u),u?(i([a],u,n,null,`3-[switch] (${c})`),eT(t,e,r)):FG.DEBUG_TAGS&&console.log(` 1211 -> X - '${l}' : (${c}) `)}},X$t={there:!0,this:!0,it:!0,him:!0,her:!0,us:!0},J$t=function(t,e){const n=e.methods.one.setTag,r=e.model.one._multiCache||{};let i=t[0];if((i.switch==="Noun|Verb"||i.tags.has("Infinitive"))&&t.length>=2){if(t.length<4&&!X$t[t[1].normal]||!i.tags.has("PhrasalVerb")&&r.hasOwnProperty(i.normal))return;(t[1].tags.has("Noun")||t[1].tags.has("Determiner"))&&(!t.slice(1,3).some(l=>l.tags.has("Verb"))||i.tags.has("#PhrasalVerb"))&&n([i],"Imperative",e,null,"3-[imperative]")}},Z$t=function(t){if(t.filter(n=>!n.tags.has("ProperNoun")).length<=3)return!1;const e=/^[a-z]/;return t.every(n=>!e.test(n.text))},ejt=function(t,e,n){t.forEach(r=>{a$t(r,0,e,n)})},tjt=function(t,e,n,r){for(let i=0;i<t.length;i+=1)t[i].frozen!==!0&&(c$t(t,i,e),r===!1&&w$t(t,i,e),S$t(t,i,e),C$t(t,i,e,n),T$t(t,i,e),O$t(t,i))},njt=function(t,e,n,r){for(let i=0;i<t.length;i+=1){let s=B$t(t,i,e);eT(t,i,e),s=s||F$t(t,i,e),s=s||W$t(t,i,e)}for(let i=0;i<t.length;i+=1)t[i].frozen!==!0&&(j$t(t,i,n,r),V$t(t,i,n,r),Q$t(t,i,n),I$t(t,i,e,n),l$t(t,i,e,n));J$t(t,n)},rjt=function(t){const{methods:e,model:n,world:r}=t;let i=t.docs;ejt(i,n,r);let s=e.two.quickSplit(i);for(let o=0;o<s.length;o+=1){let a=s[o];const l=Z$t(a);tjt(a,n,r,l),njt(a,n,r,l)}return s},fle={Possessive:t=>{let e=t.machine||t.normal||t.text;return e=e.replace(/'s$/,""),e},Plural:(t,e)=>{let n=t.machine||t.normal||t.text;return e.methods.two.transform.noun.toSingular(n,e.model)},Copula:()=>"is",PastTense:(t,e)=>{let n=t.machine||t.normal||t.text;return e.methods.two.transform.verb.toInfinitive(n,e.model,"PastTense")},Gerund:(t,e)=>{let n=t.machine||t.normal||t.text;return e.methods.two.transform.verb.toInfinitive(n,e.model,"Gerund")},PresentTense:(t,e)=>{let n=t.machine||t.normal||t.text;return t.tags.has("Infinitive")?n:e.methods.two.transform.verb.toInfinitive(n,e.model,"PresentTense")},Comparative:(t,e)=>{let n=t.machine||t.normal||t.text;return e.methods.two.transform.adjective.fromComparative(n,e.model)},Superlative:(t,e)=>{let n=t.machine||t.normal||t.text;return e.methods.two.transform.adjective.fromSuperlative(n,e.model)},Adverb:(t,e)=>{const{fromAdverb:n}=e.methods.two.transform.adjective;let r=t.machine||t.normal||t.text;return n(r)}},ijt=function(t){const e=t.world,n=Object.keys(fle);t.docs.forEach(r=>{for(let i=0;i<r.length;i+=1){const s=r[i];for(let o=0;o<n.length;o+=1)if(s.tags.has(n[o])){const a=fle[n[o]];let l=a(s,e);s.normal!==l&&(s.root=l);break}}})},ple={Adverb:"RB",Comparative:"JJR",Superlative:"JJS",Adjective:"JJ",TO:"Conjunction",Modal:"MD",Auxiliary:"MD",Gerund:"VBG",PastTense:"VBD",Participle:"VBN",PresentTense:"VBZ",Infinitive:"VB",Particle:"RP",Verb:"VB",Pronoun:"PRP",Cardinal:"CD",Conjunction:"CC",Determiner:"DT",Preposition:"IN",QuestionWord:"WP",Expression:"UH",Possessive:"POS",ProperNoun:"NNP",Person:"NNP",Place:"NNP",Organization:"NNP",Singular:"NN",Plural:"NNS",Noun:"NN",There:"EX"},sjt=function(t){if(t.tags.has("ProperNoun")&&t.tags.has("Plural"))return"NNPS";if(t.tags.has("Possessive")&&t.tags.has("Pronoun"))return"PRP$";if(t.normal==="there")return"EX";if(t.normal==="to")return"TO";let e=t.tagRank||[];for(let n=0;n<e.length;n+=1)if(ple.hasOwnProperty(e[n]))return ple[e[n]];return null}
1211,ojt=function(t){t.compute("tagRank"),t.docs.forEach(e=>{e.forEach(n=>{n.penn=sjt(n)})})},ajt={preTagger:rjt,root:ijt,penn:ojt},tL=["Person","Place","Organization"],ljt={Noun:{not:["Verb","Adjective","Adverb","Value","Determiner"]},Singular:{is:"Noun",not:["Plural","Uncountable"]},ProperNoun:{is:"Noun"},Person:{is:"Singular",also:["ProperNoun"],not:["Place","Organization","Date"]},FirstName:{is:"Person"},MaleName:{is:"FirstName",not:["FemaleName","LastName"]},FemaleName:{is:"FirstName",not:["MaleName","LastName"]},LastName:{is:"Person",not:["FirstName"]},Honorific:{is:"Person",not:["FirstName","LastName","Value"]},Place:{is:"Singular",not:["Person","Organization"]},Country:{is:"Place",also:["ProperNoun"],not:["City"]},City:{is:"Place",also:["ProperNoun"],not:["Country"]},Region:{is:"Place",also:["ProperNoun"]},Address:{},Organization:{is:"ProperNoun",not:["Person","Place"]},SportsTeam:{is:"Organization"},School:{is:"Organization"},Company:{is:"Organization"},Plural:{is:"Noun",not:["Singular","Uncountable"]},Uncountable:{is:"Noun"},Pronoun:{is:"Noun",not:tL},Actor:{is:"Noun",not:["Place","Organization"]},Activity:{is:"Noun",not:["Person","Place"]},Unit:{is:"Noun",not:tL},Demonym:{is:"Noun",also:["ProperNoun"],not:tL},Possessive:{is:"Noun"},Reflexive:{is:"Pronoun"}},cjt={Verb:{not:["Noun","Adjective","Adverb","Value","Expression"]},PresentTense:{is:"Verb",not:["PastTense","FutureTense"]},Infinitive:{is:"PresentTense",not:["Gerund"]},Imperative:{is:"Verb",not:["PastTense","Gerund","Copula"]},Gerund:{is:"PresentTense",not:["Copula"]},PastTense:{is:"Verb",not:["PresentTense","Gerund","FutureTense"]},FutureTense:{is:"Verb",not:["PresentTense","PastTense"]},Copula:{is:"Verb"},Modal:{is:"Verb",not:["Infinitive"]},Participle:{is:"PastTense"},Auxiliary:{is:"Verb",not:["PastTense","PresentTense","Gerund","Conjunction"]},PhrasalVerb:{is:"Verb"},Particle:{is:"PhrasalVerb",not:["PastTense","PresentTense","Copula","Gerund"]},Passive:{is:"Verb"}},ujt={Value:{not:["Verb","Adjective","Adverb"]},Ordinal:{is:"Value",not:["Cardinal"]},Cardinal:{is:"Value",not:["Ordinal"]},Fraction:{is:"Value",not:["Noun"]},Multiple:{is:"TextValue"},RomanNumeral:{is:"Cardinal",not:["TextValue"]},TextValue:{is:"Value",not:["NumericValue"]},NumericValue:{is:"Value",not:["TextValue"]},Money:{is:"Cardinal"},Percent:{is:"Value"}},hjt={Date:{not:["Verb","Adverb","Adjective"]},Month:{is:"Date",also:["Noun"],not:["Year","WeekDay","Time"]},WeekDay:{is:"Date",also:["Noun"]},Year:{is:"Date",not:["RomanNumeral"]},FinancialQuarter:{is:"Date",not:"Fraction"},Holiday:{is:"Date",also:["Noun"]},Season:{is:"Date"},Timezone:{is:"Date",also:["Noun"],not:["ProperNoun"]},Time:{is:"Date",not:["AtMention"]},Duration:{is:"Date",also:["Noun"]}},djt=["Noun","Verb","Adjective","Adverb","Value","QuestionWord"],fjt={Adjective:{not:["Noun","Verb","Adverb","Value"]},Comparable:{is:"Adjective"},Comparative:{is:"Adjective"},Superlative:{is:"Adjective",not:["Comparative"]},NumberRange:{},Adverb:{not:["Noun","Verb","Adjective","Value"]},Determiner:{not:["Noun","Verb","Adjective","Adverb","QuestionWord","Conjunction"]},Conjunction:{not:djt},Preposition:{not:["Noun","Verb","Adjective","Adverb","QuestionWord","Determiner"]},QuestionWord:{not:["Determiner"]},Currency:{is:"Noun"},Expression:{not:["Noun","Adjective","Verb","Adverb"]},Abbreviation:{},Url:{not:["HashTag","PhoneNumber","Verb","Adjective","Value","AtMention","Email","SlashedTerm"]},PhoneNumber:{not:["HashTag","Verb","Adjective","Value","AtMention","Email"]},HashTag:{},AtMention:{is:"Noun",not:["HashTag","Email"]},Emoji:{not:["HashTag","Verb","Adjective","Value","AtMention"]},Emoticon:{not:["HashTag","Verb","Adjective","Value","AtMention","SlashedTerm"]},SlashedTerm:{not:["Emoticon","Url","Value"]}
1211,Email:{not:["HashTag","Verb","Adjective","Value","AtMention"]},Acronym:{not:["Plural","RomanNumeral","Pronoun","Date"]},Negative:{not:["Noun","Adjective","Value","Expression"]},Condition:{not:["Verb","Adjective","Noun","Value"]},There:{not:["Verb","Adjective","Noun","Value","Conjunction","Preposition"]},Prefix:{not:["Abbreviation","Acronym","ProperNoun"]},Hyphenated:{}};let pjt=Object.assign({},ljt,cjt,ujt,hjt,fjt);const mjt={compute:ajt,methods:nz,model:iz,tags:pjt,hooks:["preTagger"]},gjt=/[,)"';:\-ââ.â¦]/,t0=function(t,e){if(!t.found)return;let n=t.termList();for(let r=0;r<n.length-1;r++){const i=n[r];if(gjt.test(i.post))return}n[0].implicit=n[0].normal,n[0].text+=e,n[0].normal+=e,n.slice(1).forEach(r=>{r.implicit=r.normal,r.text="",r.normal=""});for(let r=0;r<n.length-1;r++)n[r].post=n[r].post.replace(/ /,"")},yjt=function(){let t=this.not("@hasContraction"),e=t.match("(we|they|you) are");return t0(e,"'re"),e=t.match("(he|she|they|it|we|you) will"),t0(e,"'ll"),e=t.match("(he|she|they|it|we) is"),t0(e,"'s"),e=t.match("#Person is"),t0(e,"'s"),e=t.match("#Person would"),t0(e,"'d"),e=t.match("(is|was|had|would|should|could|do|does|have|has|can) not"),t0(e,"n't"),e=t.match("(i|we|they) have"),t0(e,"'ve"),e=t.match("(would|should|could) have"),t0(e,"'ve"),e=t.match("i am"),t0(e,"'m"),e=t.match("going to"),this},bjt=/^\p{Lu}[\p{Ll}'â]/u,vjt=function(t=""){return t=t.replace(/^ *[a-z\u00C0-\u00FF]/,e=>e.toUpperCase()),t},xjt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Contraction"}expand(){return this.docs.forEach(r=>{let i=bjt.test(r[0].text);r.forEach((s,o)=>{s.text=s.implicit||"",delete s.implicit,o<r.length-1&&s.post===""&&(s.post+=" "),s.dirty=!0}),i&&(r[0].text=vjt(r[0].text))}),this.compute("normal"),this}}t.prototype.contractions=function(){let n=this.match("@hasContraction+");return new e(this.document,n.pointer)},t.prototype.contract=yjt},wjt=function(t,e,n){let[r,i]=e;!n||n.length===0||(n=n.map((s,o)=>
1211(s.implicit=s.text,s.machine=s.text,s.pre="",s.post="",s.text="",s.normal="",s.index=[r,i+o],s)),n[0]&&(n[0].pre=t[r][i].pre,n[n.length-1].post=t[r][i].post,n[0].text=t[r][i].text,n[0].normal=t[r][i].normal),t[r].splice(i,1,...n))},Sjt=/'/,kjt=new Set(["been","become"]),Cjt=new Set(["what","how","when","if","too"]);let _jt=new Set(["too","also","enough"]);const Tjt=(t,e)=>{for(let n=e+1;n<t.length;n+=1){let r=t[n];if(kjt.has(r.normal))return"has";if(Cjt.has(r.normal)||r.tags.has("Gerund")||r.tags.has("Determiner")||r.tags.has("Adjective")||r.switch==="Adj|Past"&&t[n+1]&&(_jt.has(t[n+1].normal)||t[n+1].tags.has("Preposition")))return"is";if(r.tags.has("PastTense"))return t[n+1]&&t[n+1].normal==="for"?"is":"has"}return"is"},Ejt=function(t,e){let n=t[e].normal.split(Sjt)[0];if(n==="let")return[n,"us"];if(n==="there"){let r=t[e+1];if(r&&r.tags.has("Plural"))return[n,"are"]}return Tjt(t,e)==="has"?[n,"has"]:[n,"is"]},Ajt=/'/,Pjt=new Set(["better","done","before","it","had"]),Ojt=new Set(["have","be"]),Ijt=(t,e)=>{for(let n=e+1;n<t.length;n+=1){let r=t[n];if(Pjt.has(r.normal))return"had";if(Ojt.has(r.normal))return"would";if(r.tags.has("PastTense")||r.switch==="Adj|Past")return"had";if(r.tags.has("PresentTense")||r.tags.has("Infinitive"))return"would";if(r.tags.has("#Determiner"))return"had";if(r.tags.has("Adjective"))return"would"}return!1},Djt=function(t,e){let n=t[e].normal.split(Ajt)[0];return n==="how"||n==="what"?[n,"did"]:Ijt(t,e)==="had"?[n,"had"]:[n,"would"]},Mjt=function(t,e){for(let n=e-1;n>=0;n-=1)if(t[n].tags.has("Noun")||t[n].tags.has("Pronoun")||t[n].tags.has("Plural")||t[n].tags.has("Singular"))return t[n];return null},Njt=function(t,e){if(t[e].normal==="ain't"||t[e].normal==="aint"){if(t[e+1]&&t[e+1].normal==="never")return["have"];let r=Mjt(t,e);if(r){if(r.normal==="we"||r.normal==="they")return["are","not"];if(r.normal==="i")return["am","not"];if(r.tags&&r.tags.has("Plural"))return["are","not"]}return["is","not"]}return[t[e].normal.replace(/n't/,""),"not"]},Rjt={that:!0,there:!0,let:!0,here:!0,everywhere:!0},Ljt={in:!0,by:!0,for:!0};let Bjt=new Set(["too","also","enough","about"]),Fjt=new Set(["is","are","did","were","could","should","must","had","have"]);const $jt=(t,e)=>{let n=t[e];if(Rjt.hasOwnProperty(n.machine||n.normal))return!1;if(n.tags.has("Possessive"))return!0;if(n.tags.has("QuestionWord")||n.normal==="he's"||n.normal==="she's")return!1;let r=t[e+1];if(!r)return!0;if(n.normal==="it's")return!!r.tags.has("#Noun");if(r.switch=="Noun|Gerund"){let i=t[e+2];return i?i.tags.has("Copula")?!0:(i.normal==="on"||i.normal==="in",!1):!!(n.tags.has("Actor")||n.tags.has("ProperNoun"))}if(r.tags.has("Verb"))return r.tags.has("Infinitive")?!0:r.tags.has("Gerund")?!1:!!r.tags.has("PresentTense");if(r.switch==="Adj|Noun"){let i=t[e+2];if(!i)return!1;if(Fjt.has(i.normal))return!0;if(Bjt.has(i.normal))return!1}if(r.tags.has("Noun")){let i=r.machine||r.normal;return!(i==="here"||i==="there"||i==="everywhere"||r.tags.has("Possessive")||r.tags.has("ProperNoun")&&!n.tags.has("ProperNoun"))}if(t[e-1]&&Ljt[t[e-1].normal]===!0)return!0;if(r.tags.has("Adjective")){let i=t[e+2];if(!i)return!1;if(i.tags.has("Noun")&&!i.tags.has("Pronoun")){let s=r.normal;return!(s==="above"||s==="below"||s==="behind")}return i.switch==="Noun|Verb"}return!!r.tags.has("Value")},mle=/'/,jjt=function(t){t.forEach((e,n)=>{e.index&&(e.index[1]=n)})},zjt=function(t,e,n,r){let i=e.update();i.document=[t];let s=n+r;n>0&&(n-=1),t[s]&&(s+=1),i.ptrs=[[0,n,s]],i.compute(["freeze","lexicon","preTagger","unfreeze"]),jjt(t)},gle={d:(t,e)=>Djt(t,e),t:(t,e)=>Njt(t,e),s:(t,e,n)=>$jt(t,e)?n.methods.one.setTag([t[e]],"Possessive",n,null,"2-contraction"):Ejt(t,e)},Hjt=function(t,e){let n=e.fromText(t.join(" "));return n.compute("id"),n.docs[0]},Ujt=t=>{let{world:e,document:n}=t;n.forEach((r,i)=>{for(let s=r.length-1;s>=0;s-=1){if(r[s].implicit)continue;let o=null;mle.test(r[s].normal)===!0&&(o=r[s].normal.split(mle)[1]);let a=null;if(gle.hasOwnProperty(o)&&(a=gle[o](r,s,e)),a){a=Hjt(a,t),wjt(n,[i,s],a),zjt(n[i],t,s,a.length);continue}}})},Vjt={contractionTwo:Ujt},Wjt={compute:Vjt,api:xjt,hooks:["contractionTwo"]},qjt=[{match:"[(all|both)] #Determiner #Noun",group:0,tag:"Noun",reason:"all-noun"},{match:"#Copula [(just|alone)]$",group:0,tag:"Adjective",reason:"not-adverb"},{match:"#Singular is #Adverb? [#PastTense$]",group:0,tag:"Adjective",reason:"is-filled"},{match:"[#PastTense] #Singular is",group:0,tag:"Adjective",reason:"smoked-poutine"},{match:"[#PastTense] #Plural are",group:0,tag:"Adjective",reason:"baked-onions"},{match:"well [#PastTense]",group:0,tag:"Adjective",reason:"well-made"},{match:"#Copula [fucked up?]",group:0,tag:"Adjective",reason:"swears-adjective"},{match:"#Singular (seems|appears) #Adverb? [#PastTense$]",group:0,tag:"Adjective",reason:"seems-filled"},{match:"#Copula #Adjective? [(out|in|through)]$",group:0,tag:"Adjective",reason:"still-out"},{match:"^[#Adjective] (the|your) #Noun",group:0,notIf:"(all|even)",tag:"Infinitive",reason:"shut-the"},{match:"the [said] #Noun",group:0,tag:"Adjective",reason:"the-said-card"},{match:"[#Hyphenated (#Hyphenated && #PastTense)] (#Noun|#Conjunction)",group:0,tag:"Adjective",notIf:"#Adverb",reason:"faith-based"},{match:"[#Hyphenated (#Hyphenated && #Gerund)] (#Noun|#Conjunction)",group:0,tag:"Adjective",notIf:"#Adverb",reason:"self-driving"},{match:"[#PastTense (#Hyphenated && #PhrasalVerb)] (#Noun|#Conjunction)",group:0,tag:"Adjective",reason:"dammed-up"},{match:"(#Hyphenated && #Value) fold",tag:"Adjective",reason:"two-fold"},{match:"must (#Hyphenated && #Infinitive)",tag:"Adjective",reason:"must-win"},{match:"(#Hyphenated && #Infinitive) #Hyphenated",tag:"Adjective",notIf:"#PhrasalVerb",reason:"vacuum-sealed"},{match:"too much",tag:"Adverb Adjective",reason:"bit-4"},{match:"a bit much",tag:"Determiner Adverb Adjective",reason:"bit-3"},{match:"[(un|contra|extra|inter|intra|macro|micro|mid|mis|mono|multi|pre|sub|tri|ex)] #Adjective",group:0,tag:["Adjective","Prefix"],reason:"un-skilled"}],Gjt="(dark|bright|flat|light|soft|pale|dead|dim|faux|little|wee|sheer|most|near|good|extra|all)",yle="(hard|fast|late|early|high|right|deep|close|direct)",Kjt=[{match:"#Adverb [#Adverb] (and|or|then)",group:0,tag:"Adjective",reason:"kinda-sparkly-and"},{match:`[${Gjt}] #Adjective`,group:0,tag:"Adverb",reason:"dark-green"},{match:"#Copula [far too] #Adjective",group:0,tag:"Adverb",reason:"far-too"},{match:"#Copula [still] (in|#Gerund|#Adjective)",group:0,tag:"Adverb",reason:"was-still-walking"},{match:`#Plural ${yle}`,tag:"#PresentTense #Adverb",reason:"studies-hard"},{match:`#Verb [${yle}] !#Noun?`,group:0,notIf:"(#Copula|get|got|getting|become|became|becoming|feel|feels|feeling|#Determiner|#Preposition)",tag:"Adverb",reason:"shops-direct"},{match:"[#Plural] a lot",tag:"PresentTense",reason:"studies-a-lot"}],Yjt=[{match:"as [#Gerund] as",group:0,tag:"Adjective",reason:"as-gerund-as"},{match:"more [#Gerund] than",group:0,tag:"Adjective",reason:"more-gerund-than"},{match:"(so|very|extremely) [#Gerund]",group:0,tag:"Adjective",reason:"so-gerund"},{match:"(found|found) it #Adverb? [#Gerund]",group:0,tag:"Adjective",reason:"found-it-gerund"},{match:"a (little|bit|wee) bit? [#Gerund]",group:0,tag:"Adjective",reason:"a-bit-gerund"},{match:"#Gerund [#Gerund]",group:0,tag:"Adjective",notIf:"(impersonating|practicing|considering|assuming)",reason:"looking-annoying"},{match:"(looked|look|looks) #Adverb? [%Adj|Gerund%]",group:0,tag:"Adjective",notIf:"(impersonating|practicing|considering|assuming)",reason:"looked-amazing"},{match:"[%Adj|Gerund%] #Determiner",group:0,tag:"Gerund",reason:"developing-a"}
1211,{match:"#Possessive [%Adj|Gerund%] #Noun",group:0,tag:"Adjective",reason:"leading-manufacturer"},{match:"%Noun|Gerund% %Adj|Gerund%",tag:"Gerund #Adjective",reason:"meaning-alluring"},{match:"(face|embrace|reveal|stop|start|resume) %Adj|Gerund%",tag:"#PresentTense #Adjective",reason:"face-shocking"},{match:"(are|were) [%Adj|Gerund%] #Plural",group:0,tag:"Adjective",reason:"are-enduring-symbols"}],Qjt=[{match:"#Determiner [#Adjective] #Copula",group:0,tag:"Noun",reason:"the-adj-is"},{match:"#Adjective [#Adjective] #Copula",group:0,tag:"Noun",reason:"adj-adj-is"},{match:"(his|its) [%Adj|Noun%]",group:0,tag:"Noun",notIf:"#Hyphenated",reason:"his-fine"},{match:"#Copula #Adverb? [all]",group:0,tag:"Noun",reason:"is-all"},{match:"(have|had) [#Adjective] #Preposition .",group:0,tag:"Noun",reason:"have-fun"},{match:"#Gerund (giant|capital|center|zone|application)",tag:"Noun",reason:"brewing-giant"},{match:"#Preposition (a|an) [#Adjective]$",group:0,tag:"Noun",reason:"an-instant"},{match:"no [#Adjective] #Modal",group:0,tag:"Noun",reason:"no-golden"},{match:"[brand #Gerund?] new",group:0,tag:"Adverb",reason:"brand-new"},{match:"(#Determiner|#Comparative|new|different) [kind]",group:0,tag:"Noun",reason:"some-kind"},{match:"#Possessive [%Adj|Noun%] #Noun",group:0,tag:"Adjective",reason:"her-favourite"},{match:"must && #Hyphenated .",tag:"Adjective",reason:"must-win"},{match:"#Determiner [#Adjective]$",tag:"Noun",notIf:"(this|that|#Comparative|#Superlative)",reason:"the-south"},{match:"(#Noun && #Hyphenated) (#Adjective && #Hyphenated)",tag:"Adjective",notIf:"(this|that|#Comparative|#Superlative)",reason:"company-wide"},{match:"#Determiner [#Adjective] (#Copula|#Determiner)",notIf:"(#Comparative|#Superlative)",group:0,tag:"Noun",reason:"the-poor"},{match:"[%Adj|Noun%] #Noun",notIf:"(#Pronoun|#ProperNoun)",group:0,tag:"Adjective",reason:"stable-foundations"}],Xjt=[{match:"(slowly|quickly) [#Adjective]",group:0,tag:"Verb",reason:"slowly-adj"},{match:"does (#Adverb|not)? [#Adjective]",group:0,tag:"PresentTense",reason:"does-mean"},{match:"[(fine|okay|cool|ok)] by me",group:0,tag:"Adjective",reason:"okay-by-me"},{match:"i (#Adverb|do)? not? [mean]",group:0,tag:"PresentTense",reason:"i-mean"},{match:"will #Adjective",tag:"Auxiliary Infinitive",reason:"will-adj"},{match:"#Pronoun [#Adjective] #Determiner #Adjective? #Noun",group:0,tag:"Verb",reason:"he-adj-the"},{match:"#Copula [%Adj|Present%] to #Verb",group:0,tag:"Verb",reason:"adj-to"},{match:"#Copula [#Adjective] (well|badly|quickly|slowly)",group:0,tag:"Verb",reason:"done-well"},{match:"#Adjective and [#Gerund] !#Preposition?",group:0,tag:"Adjective",reason:"rude-and-x"},{match:"#Copula #Adverb? (over|under) [#PastTense]",group:0,tag:"Adjective",reason:"over-cooked"},{match:"#Copula #Adjective+ (and|or) [#PastTense]$",group:0,tag:"Adjective",reason:"bland-and-overcooked"},{match:"got #Adverb? [#PastTense] of",group:0,tag:"Adjective",reason:"got-tired-of"},{match:"(seem|seems|seemed|appear|appeared|appears|feel|feels|felt|sound|sounds|sounded) (#Adverb|#Adjective)? [#PastTense]",group:0,tag:"Adjective",reason:"felt-loved"},{match:"(seem|feel|seemed|felt) [#PastTense #Particle?]",group:0,tag:"Adjective",reason:"seem-confused"},{match:"a (bit|little|tad) [#PastTense #Particle?]",group:0,tag:"Adjective",reason:"a-bit-confused"},{match:"not be [%Adj|Past% #Particle?]",group:0,tag:"Adjective",reason:"do-not-be-confused"},{match:"#Copula just [%Adj|Past% #Particle?]",group:0,tag:"Adjective",reason:"is-just-right"},{match:"as [#Infinitive] as",group:0,tag:"Adjective",reason:"as-pale-as"},{match:"[%Adj|Past%] and #Adjective",group:0,tag:"Adjective",reason:"faled-and-oppressive"},{match:"or [#PastTense] #Noun",group:0,tag:"Adjective",notIf:"(#Copula|#Pronoun)",reason:"or-heightened-emotion"},{match:"(become|became|becoming|becomes) [#Verb]",group:0,tag:"Adjective",reason:"become-verb"},{match:"#Possessive [#PastTense] #Noun",group:0,tag:"Adjective",reason:"declared-intentions"},{match:"#Copula #Pronoun [%Adj|Present%]",group:0,tag:"Adjective",reason:"is-he-cool"},{match:"#Copula [%Adj|Past%] with",group:0,tag:"Adjective",notIf:"(associated|worn|baked|aged|armed|bound|fried|loaded|mixed|packed|pumped|filled|sealed)",reason:"is-crowded-with"},{match:"#Copula #Adverb? [%Adj|Present%]$",group:0,tag:"Adjective",reason:"was-empty$"}],Jjt=[{match:"[still] #Adjective",group:0,tag:"Adverb",reason:"still-advb"},{match:"[still] #Verb",group:0,tag:"Adverb",reason:"still-verb"},{match:"[so] #Adjective",group:0,tag:"Adverb",reason:"so-adv"},{match:"[way] #Comparative",group:0,tag:"Adverb",reason:"way-adj"},{match:"[way] #Adverb #Adjective",group:0,tag:"Adverb",reason:"way-too-adj"},{match:"[all] #Verb",group:0,tag:"Adverb",reason:"all-verb"},{match:"#Verb [like]",group:0,notIf:"(#Modal|#PhrasalVerb)",tag:"Adverb",reason:"verb-like"},{match:"(barely|hardly) even",tag:"Adverb",reason:"barely-even"},{match:"[even] #Verb",group:0,tag:"Adverb",reason:"even-walk"},{match:"[even] #Comparative",group:0,tag:"Adverb",reason:"even-worse"},{match:"[even] (#Determiner|#Possessive)",group:0,tag:"#Adverb",reason:"even-the"},{match:"even left",tag:"#Adverb #Verb",reason:"even-left"},{match:"[way] #Adjective",group:0,tag:"#Adverb",reason:"way-over"},{match:"#PresentTense [(hard|quick|bright|slow|fast|backwards|forwards)]",notIf:"#Copula",group:0,tag:"Adverb",reason:"lazy-ly"},{match:"[much] #Adjective",group:0,tag:"Adverb",reason:"bit-1"},{match:"#Copula [#Adverb]$",group:0,tag:"Adjective",reason:"is-well"},{match:"a [(little|bit|wee) bit?] #Adjective",group:0,tag:"Adverb",reason:"a-bit-cold"}
1211,{match:"[(super|pretty)] #Adjective",group:0,tag:"Adverb",reason:"super-strong"},{match:"(become|fall|grow) #Adverb? [#PastTense]",group:0,tag:"Adjective",reason:"overly-weakened"},{match:"(a|an) #Adverb [#Participle] #Noun",group:0,tag:"Adjective",reason:"completely-beaten"},{match:"#Determiner #Adverb? [close]",group:0,tag:"Adjective",reason:"a-close"},{match:"#Gerund #Adverb? [close]",group:0,tag:"Adverb",notIf:"(getting|becoming|feeling)",reason:"being-close"},{match:"(the|those|these|a|an) [#Participle] #Noun",group:0,tag:"Adjective",reason:"blown-motor"},{match:"(#PresentTense|#PastTense) [back]",group:0,tag:"Adverb",notIf:"(#PhrasalVerb|#Copula)",reason:"charge-back"},{match:"#Verb [around]",group:0,tag:"Adverb",notIf:"#PhrasalVerb",reason:"send-around"},{match:"[later] #PresentTense",group:0,tag:"Adverb",reason:"later-say"},{match:"#Determiner [well] !#PastTense?",group:0,tag:"Noun",reason:"the-well"},{match:"#Adjective [enough]",group:0,tag:"Adverb",reason:"high-enough"}],Zjt=[{match:"#Holiday (day|eve)",tag:"Holiday",reason:"holiday-day"},{match:"#Value of #Month",tag:"Date",reason:"value-of-month"},{match:"#Cardinal #Month",tag:"Date",reason:"cardinal-month"},{match:"#Month #Value to #Value",tag:"Date",reason:"value-to-value"},{match:"#Month the #Value",tag:"Date",reason:"month-the-value"},{match:"(#WeekDay|#Month) #Value",tag:"Date",reason:"date-value"},{match:"#Value (#WeekDay|#Month)",tag:"Date",reason:"value-date"},{match:"(#TextValue && #Date) #TextValue",tag:"Date",reason:"textvalue-date"},{match:"#Month #NumberRange",tag:"Date",reason:"aug 20-21"},{match:"#WeekDay #Month #Ordinal",tag:"Date",reason:"week mm-dd"},{match:"#Month #Ordinal #Cardinal",tag:"Date",reason:"mm-dd-yyy"},{match:"(#Place|#Demonmym|#Time) (standard|daylight|central|mountain)? time",tag:"Timezone",reason:"std-time"},{match:"(eastern|mountain|pacific|central|atlantic) (standard|daylight|summer)? time",tag:"Timezone",reason:"eastern-time"},{match:"#Time [(eastern|mountain|pacific|central|est|pst|gmt)]",group:0,tag:"Timezone",reason:"5pm-central"},{match:"(central|western|eastern) european time",tag:"Timezone",reason:"cet"}],ezt=[{match:"[sun] the #Ordinal",tag:"WeekDay",reason:"sun-the-5th"},{match:"[sun] #Date",group:0,tag:"WeekDay",reason:"sun-feb"},{match:"#Date (on|this|next|last|during)? [sun]",group:0,tag:"WeekDay",reason:"1pm-sun"},{match:"(in|by|before|during|on|until|after|of|within|all) [sat]",group:0,tag:"WeekDay",reason:"sat"},{match:"(in|by|before|during|on|until|after|of|within|all) [wed]",group:0,tag:"WeekDay",reason:"wed"},{match:"(in|by|before|during|on|until|after|of|within|all) [march]",group:0,tag:"Month",reason:"march"},{match:"[sat] #Date",group:0,tag:"WeekDay",reason:"sat-feb"},{match:"#Preposition [(march|may)]",group:0,tag:"Month",reason:"in-month"},{match:"(this|next|last) (march|may) !#Infinitive?",tag:"#Date #Month",reason:"this-month"},{match:"(march|may) the? #Value",tag:"#Month #Date #Date",reason:"march-5th"},{match:"#Value of? (march|may)",tag:"#Date #Date #Month",reason:"5th-of-march"},{match:"[(march|may)] .? #Date",group:0,tag:"Month",reason:"march-and-feb"},{match:"#Date .? [(march|may)]",group:0,tag:"Month",reason:"feb-and-march"},{match:"#Adverb [(march|may)]",group:0,tag:"Verb",reason:"quickly-march"},{match:"[(march|may)] #Adverb",group:0,tag:"Verb",reason:"march-quickly"},{match:"#Value (am|pm)",tag:"Time",reason:"2-am"}],tzt="(feel|sense|process|rush|side|bomb|bully|challenge|cover|crush|dump|exchange|flow|function|issue|lecture|limit|march|process)",nzt=[{match:"(the|any) [more]",group:0,tag:"Singular",reason:"more-noun"},{match:"[more] #Noun",group:0,tag:"Adjective",reason:"more-noun"},{match:"(right|rights) of .",tag:"Noun",reason:"right-of"},{match:"a [bit]",group:0,tag:"Singular",reason:"bit-2"},{match:"a [must]",group:0,tag:"Singular",reason:"must-2"},{match:"(we|us) [all]",group:0,tag:"Noun",reason:"we all"},{match:"due to [#Verb]",group:0,tag:"Noun",reason:"due-to"},{match:"some [#Verb] #Plural",group:0,tag:"Noun",reason:"determiner6"},{match:"#Possessive #Ordinal [#PastTense]",group:0,tag:"Noun",reason:"first-thought"},{match:"(the|this|those|these) #Adjective [%Verb|Noun%]",group:0,tag:"Noun",notIf:"#Copula",reason:"the-adj-verb"},{match:"(the|this|those|these) #Adverb #Adjective [#Verb]",group:0,tag:"Noun",reason:"determiner4"},{match:"the [#Verb] #Preposition .",group:0,tag:"Noun",reason:"determiner1"}
1211,{match:"(a|an|the) [#Verb] of",group:0,tag:"Noun",reason:"the-verb-of"},{match:"#Determiner #Noun of [#Verb]",group:0,tag:"Noun",notIf:"#Gerund",reason:"noun-of-noun"},{match:"#PastTense #Preposition [#PresentTense]",group:0,notIf:"#Gerund",tag:"Noun",reason:"ended-in-ruins"},{match:"#Conjunction [u]",group:0,tag:"Pronoun",reason:"u-pronoun-2"},{match:"[u] #Verb",group:0,tag:"Pronoun",reason:"u-pronoun-1"},{match:"#Determiner [(western|eastern|northern|southern|central)] #Noun",group:0,tag:"Noun",reason:"western-line"},{match:"(#Singular && @hasHyphen) #PresentTense",tag:"Noun",reason:"hyphen-verb"},{match:"is no [#Verb]",group:0,tag:"Noun",reason:"is-no-verb"},{match:"do [so]",group:0,tag:"Noun",reason:"so-noun"},{match:"#Determiner [(shit|damn|hell)]",group:0,tag:"Noun",reason:"swears-noun"},{match:"to [(shit|hell)]",group:0,tag:"Noun",reason:"to-swears"},{match:"(the|these) [#Singular] (were|are)",group:0,tag:"Plural",reason:"singular-were"},{match:"a #Noun+ or #Adverb+? [#Verb]",group:0,tag:"Noun",reason:"noun-or-noun"},{match:"(the|those|these|a|an) #Adjective? [#PresentTense #Particle?]",group:0,tag:"Noun",notIf:"(seem|appear|include|#Gerund|#Copula)",reason:"det-inf"},{match:"#Noun #Actor",tag:"Actor",notIf:"(#Person|#Pronoun)",reason:"thing-doer"},{match:"#Gerund #Actor",tag:"Actor",reason:"gerund-doer"},{match:"co #Singular",tag:"Actor",reason:"co-noun"},{match:"[#Noun+] #Actor",group:0,tag:"Actor",notIf:"(#Honorific|#Pronoun|#Possessive)",reason:"air-traffic-controller"},{match:"(urban|cardiac|cardiovascular|respiratory|medical|clinical|visual|graphic|creative|dental|exotic|fine|certified|registered|technical|virtual|professional|amateur|junior|senior|special|pharmaceutical|theoretical)+ #Noun? #Actor",tag:"Actor",reason:"fine-artist"},{match:"#Noun+ (coach|chef|king|engineer|fellow|personality|boy|girl|man|woman|master)",tag:"Actor",reason:"dance-coach"},{match:"chief . officer",tag:"Actor",reason:"chief-x-officer"},{match:"chief of #Noun+",tag:"Actor",reason:"chief-of-police"},{match:"senior? vice? president of #Noun+",tag:"Actor",reason:"president-of"},{match:"#Determiner [sun]",group:0,tag:"Singular",reason:"the-sun"},{match:"#Verb (a|an) [#Value]$",group:0,tag:"Singular",reason:"did-a-value"},{match:"the [(can|will|may)]",group:0,tag:"Singular",reason:"the can"},{match:"#FirstName #Acronym? (#Possessive && #LastName)",tag:"Possessive",reason:"name-poss"},{match:"#Organization+ #Possessive",tag:"Possessive",reason:"org-possessive"},{match:"#Place+ #Possessive",tag:"Possessive",reason:"place-possessive"},{match:"#Possessive #PresentTense #Particle?",notIf:"(#Gerund|her)",tag:"Noun",reason:"possessive-verb"},{match:"(my|our|their|her|his|its) [(#Plural && #Actor)] #Noun",tag:"Possessive",reason:"my-dads"},{match:"#Value of a [second]",group:0,unTag:"Value",tag:"Singular",reason:"10th-of-a-second"},{match:"#Value [seconds]",group:0,unTag:"Value",tag:"Plural",reason:"10-seconds"},{match:"in [#Infinitive]",group:0,tag:"Singular",reason:"in-age"},{match:"a [#Adjective] #Preposition",group:0,tag:"Noun",reason:"a-minor-in"},{match:"#Determiner [#Singular] said",group:0,tag:"Actor",reason:"the-actor-said"},{match:`#Determiner #Noun [${tzt}] !(#Preposition|to|#Adverb)?`,group:0,tag:"Noun",reason:"the-noun-sense"},{match:"[#PresentTense] (of|by|for) (a|an|the) #Noun #Copula",group:0,tag:"Plural",reason:"photographs-of"},{match:"#Infinitive and [%Noun|Verb%]",group:0,tag:"Infinitive",reason:"fight and win"},{match:"#Noun and [#Verb] and #Noun",group:0,tag:"Noun",reason:"peace-and-flowers"},{match:"the #Cardinal [%Adj|Noun%]",group:0,tag:"Noun",reason:"the-1992-classic"},{match:"#Copula the [%Adj|Noun%] #Noun",group:0,tag:"Adjective",reason:"the-premier-university"},{match:"i #Verb [me] #Noun",group:0,tag:"Possessive",reason:"scottish-me"},{match:"[#PresentTense] (music|class|lesson|night|party|festival|league|ceremony)",group:0,tag:"Noun",reason:"dance-music"},{match:"[wit] (me|it)",group:0,tag:"Presposition",reason:"wit-me"},{match:"#PastTense #Possessive [#Verb]",group:0,tag:"Noun",notIf:"(saw|made)",reason:"left-her-boots"},{match:"#Value [%Plural|Verb%]",group:0,tag:"Plural",notIf:"(one|1|a|an)",reason:"35-signs"},{match:"had [#PresentTense]",group:0,tag:"Noun",notIf:"(#Gerund|come|become)",reason:"had-time"},{match:"%Adj|Noun% %Noun|Verb%",tag:"#Adjective #Noun",notIf:"#ProperNoun #Noun",reason:"instant-access"},{match:"#Determiner [%Adj|Noun%] #Conjunction",group:0,tag:"Noun",reason:"a-rep-to"},{match:"#Adjective #Noun [%Plural|Verb%]$",group:0,tag:"Plural",notIf:"#Pronoun",reason:"near-death-experiences"}
1211,{match:"#Possessive #Noun [%Plural|Verb%]$",group:0,tag:"Plural",reason:"your-guild-colors"}],rzt=[{match:"(this|that|the|a|an) [#Gerund #Infinitive]",group:0,tag:"Singular",reason:"the-planning-process"},{match:"(that|the) [#Gerund #PresentTense]",group:0,ifNo:"#Copula",tag:"Plural",reason:"the-paving-stones"},{match:"#Determiner [#Gerund] #Noun",group:0,tag:"Adjective",reason:"the-gerund-noun"},{match:"#Pronoun #Infinitive [#Gerund] #PresentTense",group:0,tag:"Noun",reason:"tipping-sucks"},{match:"#Adjective [#Gerund]",group:0,tag:"Noun",notIf:"(still|even|just)",reason:"early-warning"},{match:"[#Gerund] #Adverb? not? #Copula",group:0,tag:"Activity",reason:"gerund-copula"},{match:"#Copula [(#Gerund|#Activity)] #Copula",group:0,tag:"Gerund",reason:"are-doing-is"},{match:"[#Gerund] #Modal",group:0,tag:"Activity",reason:"gerund-modal"},{match:"#Singular for [%Noun|Gerund%]",group:0,tag:"Gerund",reason:"noun-for-gerund"},{match:"#Comparative (for|at) [%Noun|Gerund%]",group:0,tag:"Gerund",reason:"better-for-gerund"},{match:"#PresentTense the [#Gerund]",group:0,tag:"Noun",reason:"keep-the-touching"}],izt=[{match:"#Infinitive (this|that|the) [#Infinitive]",group:0,tag:"Noun",reason:"do-this-dance"},{match:"#Gerund #Determiner [#Infinitive]",group:0,tag:"Noun",reason:"running-a-show"},{match:"#Determiner (only|further|just|more|backward) [#Infinitive]",group:0,tag:"Noun",reason:"the-only-reason"},{match:"(the|this|a|an) [#Infinitive] #Adverb? #Verb",group:0,tag:"Noun",reason:"determiner5"},{match:"#Determiner #Adjective #Adjective? [#Infinitive]",group:0,tag:"Noun",reason:"a-nice-inf"},{match:"#Determiner #Demonym [#PresentTense]",group:0,tag:"Noun",reason:"mexican-train"},{match:"#Adjective #Noun+ [#Infinitive] #Copula",group:0,tag:"Noun",reason:"career-move"},{match:"at some [#Infinitive]",group:0,tag:"Noun",reason:"at-some-inf"},{match:"(go|goes|went) to [#Infinitive]",group:0,tag:"Noun",reason:"goes-to-verb"},{match:"(a|an) #Adjective? #Noun [#Infinitive] (#Preposition|#Noun)",group:0,notIf:"from",tag:"Noun",reason:"a-noun-inf"},{match:"(a|an) #Noun [#Infinitive]$",group:0,tag:"Noun",reason:"a-noun-inf2"},{match:"#Gerund #Adjective? for [#Infinitive]",group:0,tag:"Noun",reason:"running-for"},{match:"about [#Infinitive]",group:0,tag:"Singular",reason:"about-love"},{match:"#Plural on [#Infinitive]",group:0,tag:"Noun",reason:"on-stage"},{match:"any [#Infinitive]",group:0,tag:"Noun",reason:"any-charge"},{match:"no [#Infinitive]",group:0,tag:"Noun",reason:"no-doubt"},{match:"number of [#PresentTense]",group:0,tag:"Noun",reason:"number-of-x"},{match:"(taught|teaches|learns|learned) [#PresentTense]",group:0,tag:"Noun",reason:"teaches-x"},{match:"(try|use|attempt|build|make) [#Verb #Particle?]",notIf:"(#Copula|#Noun|sure|fun|up)",group:0,tag:"Noun",reason:"do-verb"},{match:"^[#Infinitive] (is|was)",group:0,tag:"Noun",reason:"checkmate-is"},{match:"#Infinitive much [#Infinitive]",group:0,tag:"Noun",reason:"get-much"},{match:"[cause] #Pronoun #Verb",group:0,tag:"Conjunction",reason:"cause-cuz"},{match:"the #Singular [#Infinitive] #Noun",group:0,tag:"Noun",notIf:"#Pronoun",reason:"cardio-dance"},{match:"#Determiner #Modal [#Noun]",group:0,tag:"PresentTense",reason:"should-smoke"},{match:"this [#Plural]",group:0,tag:"PresentTense",notIf:"(#Preposition|#Date)",reason:"this-verbs"},{match:"#Noun that [#Plural]",group:0,tag:"PresentTense",notIf:"(#Preposition|#Pronoun|way)",reason:"voice-that-rocks"},{match:"that [#Plural] to",group:0,tag:"PresentTense",notIf:"#Preposition",reason:"that-leads-to"},{match:"(let|make|made) (him|her|it|#Person|#Place|#Organization)+ [#Singular] (a|an|the|it)",group:0,tag:"Infinitive",reason:"let-him-glue"},{match:"#Verb (all|every|each|most|some|no) [#PresentTense]",notIf:"#Modal",group:0,tag:"Noun",reason:"all-presentTense"},{match:"(had|have|#PastTense) #Adjective [#PresentTense]",group:0,tag:"Noun",notIf:"better",reason:"adj-presentTense"},{match:"#Value #Adjective [#PresentTense]",group:0,tag:"Noun",notIf:"#Copula",reason:"one-big-reason"},{match:"#PastTense #Adjective+ [#PresentTense]",group:0,tag:"Noun",notIf:"(#Copula|better)",reason:"won-wide-support"},{match:"(many|few|several|couple) [#PresentTense]",group:0,tag:"Noun",notIf:"#Copula",reason:"many-poses"},{match:"#Determiner #Adverb #Adjective [%Noun|Verb%]",group:0,tag:"Noun",notIf:"#Copula",reason:"very-big-dream"},{match:"from #Noun to [%Noun|Verb%]",group:0,tag:"Noun",reason:"start-to-finish"},{match:"(for|with|of) #Noun (and|or|not) [%Noun|Verb%]",group:0,tag:"Noun",notIf:"#Pronoun",reason:"for-food-and-gas"},{match:"#Adjective #Adjective [#PresentTense]",group:0,tag:"Noun",notIf:"#Copula",reason:"adorable-little-store"},{match:"#Gerund #Adverb? #Comparative [#PresentTense]",group:0,tag:"Noun",notIf:"#Copula",reason:"higher-costs"},{match:"(#Noun && @hasComma) #Noun (and|or) [#PresentTense]",group:0,tag:"Noun",notIf:"#Copula",reason:"noun-list"},{match:"(many|any|some|several) [#PresentTense] for",group:0,tag:"Noun",reason:"any-verbs-for"},{match:"to #PresentTense #Noun [#PresentTense] #Preposition",group:0,tag:"Noun",reason:"gas-exchange"},{match:"#PastTense (until|as|through|without) [#PresentTense]",group:0,tag:"Noun",reason:"waited-until-release"},{match:"#Gerund like #Adjective? [#PresentTense]",group:0,tag:"Plural",reason:"like-hot-cakes"},{match:"some #Adjective [#PresentTense]",group:0,tag:"Noun",reason:"some-reason"},{match:"for some [#PresentTense]",group:0,tag:"Noun",reason:"for-some-reason"},{match:"(same|some|the|that|a) kind of [#PresentTense]",group:0,tag:"Noun",reason:"some-kind-of"},{match:"(same|some|the|that|a) type of [#PresentTense]",group:0,tag:"Noun",reason:"some-type-of"},{match:"#Gerund #Adjective #Preposition [#PresentTense]",group:0,tag:"Noun",reason:"doing-better-for-x"},{match:"(get|got|have) #Comparative [#PresentTense]",group:0,tag:"Noun",reason:"got-better-aim"},{match:"whose [#PresentTense] #Copula",group:0,tag:"Noun",reason:"whos-name-was"},{match:"#PhrasalVerb #Particle #Preposition [#PresentTense]",group:0,tag:"Noun",reason:"given-up-on-x"},{match:"there (are|were) #Adjective? [#PresentTense]",group:0,tag:"Plural",reason:"there-are"},{match:"#Value [#PresentTense] of",group:0,notIf:"(one|1|#Copula|#Infinitive)",tag:"Plural",reason:"2-trains"},{match:"[#PresentTense] (are|were) #Adjective",group:0,tag:"Plural",reason:"compromises-are-possible"},{match:"^[(hope|guess|thought|think)] #Pronoun #Verb",group:0,tag:"Infinitive",reason:"suppose-i"}
1211,{match:"#Possessive #Adjective [#Verb]",group:0,tag:"Noun",notIf:"#Copula",reason:"our-full-support"},{match:"[(tastes|smells)] #Adverb? #Adjective",group:0,tag:"PresentTense",reason:"tastes-good"},{match:"#Copula #Gerund [#PresentTense] !by?",group:0,tag:"Noun",notIf:"going",reason:"ignoring-commute"},{match:"#Determiner #Adjective? [(shed|thought|rose|bid|saw|spelt)]",group:0,tag:"Noun",reason:"noun-past"},{match:"how to [%Noun|Verb%]",group:0,tag:"Infinitive",reason:"how-to-noun"},{match:"which [%Noun|Verb%] #Noun",group:0,tag:"Infinitive",reason:"which-boost-it"},{match:"#Gerund [%Plural|Verb%]",group:0,tag:"Plural",reason:"asking-questions"},{match:"(ready|available|difficult|hard|easy|made|attempt|try) to [%Noun|Verb%]",group:0,tag:"Infinitive",reason:"ready-to-noun"},{match:"(bring|went|go|drive|run|bike) to [%Noun|Verb%]",group:0,tag:"Noun",reason:"bring-to-noun"},{match:"#Modal #Noun [%Noun|Verb%]",group:0,tag:"Infinitive",reason:"would-you-look"},{match:"#Copula just [#Infinitive]",group:0,tag:"Noun",reason:"is-just-spam"},{match:"^%Noun|Verb% %Plural|Verb%",tag:"Imperative #Plural",reason:"request-copies"},{match:"#Adjective #Plural and [%Plural|Verb%]",group:0,tag:"#Plural",reason:"pickles-and-drinks"},{match:"#Determiner #Year [#Verb]",group:0,tag:"Noun",reason:"the-1968-film"},{match:"#Determiner [#PhrasalVerb #Particle]",group:0,tag:"Noun",reason:"the-break-up"},{match:"#Determiner [%Adj|Noun%] #Noun",group:0,tag:"Adjective",notIf:"(#Pronoun|#Possessive|#ProperNoun)",reason:"the-individual-goals"},{match:"[%Noun|Verb%] or #Infinitive",group:0,tag:"Infinitive",reason:"work-or-prepare"},{match:"to #Infinitive [#PresentTense]",group:0,tag:"Noun",notIf:"(#Gerund|#Copula|help)",reason:"to-give-thanks"},{match:"[#Noun] me",group:0,tag:"Verb",reason:"kills-me"},{match:"%Plural|Verb% %Plural|Verb%",tag:"#PresentTense #Plural",reason:"removes-wrinkles"}],szt=[{match:"#Money and #Money #Currency?",tag:"Money",reason:"money-and-money"},{match:"#Value #Currency [and] #Value (cents|ore|centavos|sens)",group:0,tag:"money",reason:"and-5-cents"},{match:"#Value (mark|rand|won|rub|ore)",tag:"#Money #Currency",reason:"4-mark"},{match:"a pound",tag:"#Money #Unit",reason:"a-pound"},{match:"#Value (pound|pounds)",tag:"#Money #Unit",reason:"4-pounds"}],ozt=[{match:"[(half|quarter)] of? (a|an)",group:0,tag:"Fraction",reason:"millionth"},{match:"#Adverb [half]",group:0,tag:"Fraction",reason:"nearly-half"},{match:"[half] the",group:0,tag:"Fraction",reason:"half-the"},{match:"#Cardinal and a half",tag:"Fraction",reason:"and-a-half"},{match:"#Value (halves|halfs|quarters)",tag:"Fraction",reason:"two-halves"},{match:"a #Ordinal",tag:"Fraction",reason:"a-quarter"},{match:"[#Cardinal+] (#Fraction && /s$/)",tag:"Fraction",reason:"seven-fifths"},{match:"[#Cardinal+ #Ordinal] of .",group:0,tag:"Fraction",reason:"ordinal-of"},{match:"[(#NumericValue && #Ordinal)] of .",group:0,tag:"Fraction",reason:"num-ordinal-of"},{match:"(a|one) #Cardinal?+ #Ordinal",tag:"Fraction",reason:"a-ordinal"},{match:"#Cardinal+ out? of every? #Cardinal",tag:"Fraction",reason:"out-of"}],azt=[{match:"#Cardinal [second]",tag:"Unit",reason:"one-second"},{match:"!once? [(a|an)] (#Duration|hundred|thousand|million|billion|trillion)",group:0,tag:"Value",reason:"a-is-one"},{match:"1 #Value #PhoneNumber",tag:"PhoneNumber",reason:"1-800-Value"},{match:"#NumericValue #PhoneNumber",tag:"PhoneNumber",reason:"(800) PhoneNumber"},{match:"#Demonym #Currency",tag:"Currency",reason:"demonym-currency"},{match:"#Value [(buck|bucks|grand)]",group:0,tag:"Currency",reason:"value-bucks"},{match:"[#Value+] #Currency",group:0,tag:"Money",reason:"15 usd"},{match:"[second] #Noun",group:0,tag:"Ordinal",reason:"second-noun"},{match:"#Value+ [#Currency]",group:0,tag:"Unit",reason:"5-yan"},{match:"#Value [(foot|feet)]",group:0,tag:"Unit",reason:"foot-unit"},{match:"#Value [#Abbreviation]",group:0,tag:"Unit",reason:"value-abbr"},{match:"#Value [k]",group:0,tag:"Unit",reason:"value-k"},{match:"#Unit an hour",tag:"Unit",reason:"unit-an-hour"},{match:"(minus|negative) #Value",tag:"Value",reason:"minus-value"},{match:"#Value (point|decimal) #Value",tag:"Value",reason:"value-point-value"},{match:"#Determiner [(half|quarter)] #Ordinal",group:0,tag:"Value",reason:"half-ordinal"},{match:"#Multiple+ and #Value",tag:"Value",reason:"magnitude-and-value"},{match:"#Value #Unit [(per|an) (hr|hour|sec|second|min|minute)]",group:0,tag:"Unit",reason:"12-miles-per-second"},{match:"#Value [(square|cubic)] #Unit",group:0,tag:"Unit",reason:"square-miles"}
1211],lzt=[{match:"#Copula [(#Noun|#PresentTense)] #LastName",group:0,tag:"FirstName",reason:"copula-noun-lastname"},{match:"(sister|pope|brother|father|aunt|uncle|grandpa|grandfather|grandma) #ProperNoun",tag:"Person",reason:"lady-titlecase",safe:!0},{match:"#FirstName [#Determiner #Noun] #LastName",group:0,tag:"Person",reason:"first-noun-last"},{match:"#ProperNoun (b|c|d|e|f|g|h|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z) #ProperNoun",tag:"Person",reason:"titlecase-acronym-titlecase",safe:!0},{match:"#Acronym #LastName",tag:"Person",reason:"acronym-lastname",safe:!0},{match:"#Person (jr|sr|md)",tag:"Person",reason:"person-honorific"},{match:"#Honorific #Acronym",tag:"Person",reason:"Honorific-TitleCase"},{match:"#Person #Person the? #RomanNumeral",tag:"Person",reason:"roman-numeral"},{match:"#FirstName [/^[^aiurck]$/]",group:0,tag:["Acronym","Person"],reason:"john-e"},{match:"#Noun van der? #Noun",tag:"Person",reason:"van der noun",safe:!0},{match:"(king|queen|prince|saint|lady) of #Noun",tag:"Person",reason:"king-of-noun",safe:!0},{match:"(prince|lady) #Place",tag:"Person",reason:"lady-place"},{match:"(king|queen|prince|saint) #ProperNoun",tag:"Person",notIf:"#Place",reason:"saint-foo"},{match:"al (#Person|#ProperNoun)",tag:"Person",reason:"al-borlen",safe:!0},{match:"#FirstName de #Noun",tag:"Person",reason:"bill-de-noun"},{match:"#FirstName (bin|al) #Noun",tag:"Person",reason:"bill-al-noun"},{match:"#FirstName #Acronym #ProperNoun",tag:"Person",reason:"bill-acronym-title"},{match:"#FirstName #FirstName #ProperNoun",tag:"Person",reason:"bill-firstname-title"},{match:"#Honorific #FirstName? #ProperNoun",tag:"Person",reason:"dr-john-Title"},{match:"#FirstName the #Adjective",tag:"Person",reason:"name-the-great"},{match:"#ProperNoun (van|al|bin) #ProperNoun",tag:"Person",reason:"title-van-title",safe:!0},{match:"#ProperNoun (de|du) la? #ProperNoun",tag:"Person",notIf:"#Place",reason:"title-de-title"},{match:"#Singular #Acronym #LastName",tag:"#FirstName #Person .",reason:"title-acro-noun",safe:!0},{match:"[#ProperNoun] #Person",group:0,tag:"Person",reason:"proper-person",safe:!0},{match:"#Person [#ProperNoun #ProperNoun]",group:0,tag:"Person",notIf:"#Possessive",reason:"three-name-person",safe:!0},{match:"#FirstName #Acronym? [#ProperNoun]",group:0,tag:"LastName",notIf:"#Possessive",reason:"firstname-titlecase"},{match:"#FirstName [#FirstName]",group:0,tag:"LastName",reason:"firstname-firstname"},{match:"#FirstName #Acronym #Noun",tag:"Person",reason:"n-acro-noun",safe:!0},{match:"#FirstName [(de|di|du|van|von)] #Person",group:0,tag:"LastName",reason:"de-firstname"},{match:"[(lieutenant|corporal|sergeant|captain|qeen|king|admiral|major|colonel|marshal|president|queen|king)+] #ProperNoun",group:0,tag:"Honorific",reason:"seargeant-john"},{match:"[(private|general|major|rear|prime|field|count|miss)] #Honorific? #Person",group:0,tag:["Honorific","Person"],reason:"ambg-honorifics"},{match:"#Honorific #FirstName [#Singular]",group:0,tag:"LastName",notIf:"#Possessive",reason:"dr-john-foo",safe:!0},{match:"[(his|her) (majesty|honour|worship|excellency|honorable)] #Person",group:0,tag:"Honorific",reason:"his-excellency"},{match:"#Honorific #Actor",tag:"Honorific",reason:"Lieutenant colonel"},{match:"(first|second|third|1st|2nd|3rd) #Actor",tag:"Honorific",reason:"first lady"},{match:"#Person #RomanNumeral",tag:"Person",reason:"louis-IV"}],czt=[{match:"#FirstName #Noun$",tag:". #LastName",notIf:"(#Possessive|#Organization|#Place|#Pronoun|@hasTitleCase)",reason:"firstname-noun"},{match:"%Person|Date% #Acronym? #ProperNoun",tag:"Person",reason:"jan-thierson"},{match:"%Person|Noun% #Acronym? #ProperNoun",tag:"Person",reason:"switch-person",safe:!0},{match:"%Person|Noun% #Organization",tag:"Organization",reason:"olive-garden"},{match:"%Person|Verb% #Acronym? #ProperNoun",tag:"Person",reason:"verb-propernoun",ifNo:"#Actor"},{match:"[%Person|Verb%] (will|had|has|said|says|told|did|learned|wants|wanted)",group:0,tag:"Person",reason:"person-said"},{match:"[%Person|Place%] (harbor|harbour|pier|town|city|place|dump|landfill)",group:0,tag:"Place",reason:"sydney-harbour"},{match:"(west|east|north|south) [%Person|Place%]",group:0,tag:"Place",reason:"east-sydney"}
1211,{match:"#Modal [%Person|Verb%]",group:0,tag:"Verb",reason:"would-mark"},{match:"#Adverb [%Person|Verb%]",group:0,tag:"Verb",reason:"really-mark"},{match:"[%Person|Verb%] (#Adverb|#Comparative)",group:0,tag:"Verb",reason:"drew-closer"},{match:"%Person|Verb% #Person",tag:"Person",reason:"rob-smith"},{match:"%Person|Verb% #Acronym #ProperNoun",tag:"Person",reason:"rob-a-smith"},{match:"[will] #Verb",group:0,tag:"Modal",reason:"will-verb"},{match:"(will && @isTitleCase) #ProperNoun",tag:"Person",reason:"will-name"},{match:"(#FirstName && !#Possessive) [#Singular] #Verb",group:0,safe:!0,tag:"LastName",reason:"jack-layton"},{match:"^[#Singular] #Person #Verb",group:0,safe:!0,tag:"Person",reason:"sherwood-anderson"},{match:"(a|an) [#Person]$",group:0,unTag:"Person",reason:"a-warhol"}],uzt=[{match:"#Copula (pretty|dead|full|well|sure) (#Adjective|#Noun)",tag:"#Copula #Adverb #Adjective",reason:"sometimes-adverb"},{match:"(#Pronoun|#Person) (had|#Adverb)? [better] #PresentTense",group:0,tag:"Modal",reason:"i-better"},{match:"(#Modal|i|they|we|do) not? [like]",group:0,tag:"PresentTense",reason:"modal-like"},{match:"#Noun #Adverb? [left]",group:0,tag:"PastTense",reason:"left-verb"},{match:"will #Adverb? not? #Adverb? [be] #Gerund",group:0,tag:"Copula",reason:"will-be-copula"},{match:"will #Adverb? not? #Adverb? [be] #Adjective",group:0,tag:"Copula",reason:"be-copula"},{match:"[march] (up|down|back|toward)",notIf:"#Date",group:0,tag:"Infinitive",reason:"march-to"},{match:"#Modal [march]",group:0,tag:"Infinitive",reason:"must-march"},{match:"[may] be",group:0,tag:"Verb",reason:"may-be"},{match:"[(subject|subjects|subjected)] to",group:0,tag:"Verb",reason:"subject to"},{match:"[home] to",group:0,tag:"PresentTense",reason:"home to"},{match:"[open] #Determiner",group:0,tag:"Infinitive",reason:"open-the"},{match:"(were|was) being [#PresentTense]",group:0,tag:"PastTense",reason:"was-being"},{match:"(had|has|have) [been /en$/]",group:0,tag:"Auxiliary Participle",reason:"had-been-broken"},{match:"(had|has|have) [been /ed$/]",group:0,tag:"Auxiliary PastTense",reason:"had-been-smoked"},{match:"(had|has) #Adverb? [been] #Adverb? #PastTense",group:0,tag:"Auxiliary",reason:"had-been-adj"},{match:"(had|has) to [#Noun] (#Determiner|#Possessive)",group:0,tag:"Infinitive",reason:"had-to-noun"},{match:"have [#PresentTense]",group:0,tag:"PastTense",notIf:"(come|gotten)",reason:"have-read"},{match:"(does|will|#Modal) that [work]",group:0,tag:"PastTense",reason:"does-that-work"},{match:"[(sound|sounds)] #Adjective",group:0,tag:"PresentTense",reason:"sounds-fun"},{match:"[(look|looks)] #Adjective",group:0,tag:"PresentTense",reason:"looks-good"},{match:"[(start|starts|stop|stops|begin|begins)] #Gerund",group:0,tag:"Verb",reason:"starts-thinking"},{match:"(have|had) read",tag:"Modal #PastTense",reason:"read-read"},{match:"(is|was|were) [(under|over) #PastTense]",group:0,tag:"Adverb Adjective",reason:"was-under-cooked"},{match:"[shit] (#Determiner|#Possessive|them)",group:0,tag:"Verb",reason:"swear1-verb"},{match:"[damn] (#Determiner|#Possessive|them)",group:0,tag:"Verb",reason:"swear2-verb"},{match:"[fuck] (#Determiner|#Possessive|them)",group:0,tag:"Verb",reason:"swear3-verb"},{match:"#Plural that %Noun|Verb%",tag:". #Preposition #Infinitive",reason:"jobs-that-work"},{match:"[works] for me",group:0,tag:"PresentTense",reason:"works-for-me"},{match:"as #Pronoun [please]",group:0,tag:"Infinitive",reason:"as-we-please"},{match:"[(co|mis|de|inter|intra|pre|re|un|out|under|over|counter)] #Verb",group:0,tag:["Verb","Prefix"],notIf:"(#Copula|#PhrasalVerb)",reason:"co-write"},{match:"#PastTense and [%Adj|Past%]",group:0,tag:"PastTense",reason:"dressed-and-left"},{match:"[%Adj|Past%] and #PastTense",group:0,tag:"PastTense",reason:"dressed-and-left"},{match:"#Copula #Pronoun [%Adj|Past%]",group:0,tag:"Adjective",reason:"is-he-stoked"},{match:"to [%Noun|Verb%] #Preposition",group:0,tag:"Infinitive",reason:"to-dream-of"}],hzt=[{match:"will (#Adverb|not)+? [have] (#Adverb|not)+? #Verb",group:0,tag:"Auxiliary",reason:"will-have-vb"},{match:"[#Copula] (#Adverb|not)+? (#Gerund|#PastTense)",group:0,tag:"Auxiliary",reason:"copula-walking"},{match:"[(#Modal|did)+] (#Adverb|not)+? #Verb",group:0,tag:"Auxiliary",reason:"modal-verb"},{match:"#Modal (#Adverb|not)+? [have] (#Adverb|not)+? [had] (#Adverb|not)+? #Verb",group:0,tag:"Auxiliary",reason:"would-have"},{match:"[(has|had)] (#Adverb|not)+? #PastTense",group:0,tag:"Auxiliary",reason:"had-walked"},{match:"[(do|does|did|will|have|had|has|got)] (not|#Adverb)+? #Verb",group:0,tag:"Auxiliary",reason:"have-had"},{match:"[about to] #Adverb? #Verb",group:0,tag:["Auxiliary","Verb"],reason:"about-to"},{match:"#Modal (#Adverb|not)+? [be] (#Adverb|not)+? #Verb",group:0,tag:"Auxiliary",reason:"would-be"},{match:"[(#Modal|had|has)] (#Adverb|not)+? [been] (#Adverb|not)+? #Verb",group:0,tag:"Auxiliary",reason:"had-been"},{match:"[(be|being|been)] #Participle",group:0,tag:"Auxiliary",reason:"being-driven"},{match:"[may] #Adverb? #Infinitive",group:0,tag:"Auxiliary",reason:"may-want"},{match:"#Copula (#Adverb|not)+? [(be|being|been)] #Adverb+? #PastTense",group:0,tag:"Auxiliary",reason:"being-walked"},{match:"will [be] #PastTense",group:0,tag:"Auxiliary",reason:"will-be-x"},{match:"[(be|been)] (#Adverb|not)+? #Gerund",group:0,tag:"Auxiliary",reason:"been-walking"},{match:"[used to] #PresentTense",group:0,tag:"Auxiliary",reason:"used-to-walk"},{match:"#Copula (#Adverb|not)+? [going to] #Adverb+? #PresentTense",group:0,tag:"Auxiliary",reason:"going-to-walk"},{match:"#Imperative [(me|him|her)]",group:0,tag:"Reflexive",reason:"tell-him"},{match:"(is|was) #Adverb? [no]",group:0,tag:"Negative",reason:"is-no"},{match:"[(been|had|became|came)] #PastTense",group:0,notIf:"#PhrasalVerb",tag:"Auxiliary",reason:"been-told"},{match:"[(being|having|getting)] #Verb",group:0,tag:"Auxiliary",reason:"being-born"},{match:"[be] #Gerund",group:0,tag:"Auxiliary",reason:"be-walking"},{match:"[better] #PresentTense",group:0,tag:"Modal",notIf:"(#Copula|#Gerund)",reason:"better-go"},{match:"even better",tag:"Adverb #Comparative",reason:"even-better"}],dzt=[{match:"(#Verb && @hasHyphen) up",tag:"PhrasalVerb",reason:"foo-up"},{match:"(#Verb && @hasHyphen) off",tag:"PhrasalVerb",reason:"foo-off"},{match:"(#Verb && @hasHyphen) over",tag:"PhrasalVerb",reason:"foo-over"},{match:"(#Verb && @hasHyphen) out",tag:"PhrasalVerb",reason:"foo-out"},{match:"[#Verb (in|out|up|down|off|back)] (on|in)",notIf:"#Copula",tag:"PhrasalVerb Particle",reason:"walk-in-on"},{match:"(lived|went|crept|go) [on] for",group:0,tag:"PhrasalVerb",reason:"went-on"},{match:"#Verb (up|down|in|on|for)$",tag:"PhrasalVerb #Particle",n
1211otIf:"#PhrasalVerb",reason:"come-down$"},{match:"help [(stop|end|make|start)]",group:0,tag:"Infinitive",reason:"help-stop"},{match:"#PhrasalVerb (in && #Particle) #Determiner",tag:"#Verb #Preposition #Determiner",unTag:"PhrasalVerb",reason:"work-in-the"},{match:"[(stop|start|finish|help)] #Gerund",group:0,tag:"Infinitive",reason:"start-listening"},{match:"#Verb (him|her|it|us|himself|herself|itself|everything|something) [(up|down)]",group:0,tag:"Adverb",reason:"phrasal-pronoun-advb"}],nL="(i|we|they)",fzt=[{match:"^do not? [#Infinitive #Particle?]",notIf:nL,group:0,tag:"Imperative",reason:"do-eat"},{match:"^please do? not? [#Infinitive #Particle?]",group:0,tag:"Imperative",reason:"please-go"},{match:"^just do? not? [#Infinitive #Particle?]",group:0,tag:"Imperative",reason:"just-go"},{match:"^[#Infinitive] it #Comparative",notIf:nL,group:0,tag:"Imperative",reason:"do-it-better"},{match:"^[#Infinitive] it (please|now|again|plz)",notIf:nL,group:0,tag:"Imperative",reason:"do-it-please"},{match:"^[#Infinitive] (#Adjective|#Adverb)$",group:0,tag:"Imperative",notIf:"(so|such|rather|enough)",reason:"go-quickly"},{match:"^[#Infinitive] (up|down|over) #Determiner",group:0,tag:"Imperative",reason:"turn-down"},{match:"^[#Infinitive] (your|my|the|a|an|any|each|every|some|more|with|on)",group:0,notIf:"like",tag:"Imperative",reason:"eat-my-shorts"},{match:"^[#Infinitive] (him|her|it|us|me|there)",group:0,tag:"Imperative",reason:"tell-him"},{match:"^[#Infinitive] #Adjective #Noun$",group:0,tag:"Imperative",reason:"avoid-loud-noises"},{match:"^[#Infinitive] (#Adjective|#Adverb)? and #Infinitive",group:0,tag:"Imperative",reason:"call-and-reserve"},{match:"^(go|stop|wait|hurry) please?$",tag:"Imperative",reason:"go"},{match:"^(somebody|everybody) [#Infinitive]",group:0,tag:"Imperative",reason:"somebody-call"},{match:"^let (us|me) [#Infinitive]",group:0,tag:"Imperative",reason:"lets-leave"},{match:"^[(shut|close|open|start|stop|end|keep)] #Determiner #Noun",group:0,tag:"Imperative",reason:"shut-the-door"},{match:"^[#PhrasalVerb #Particle] #Determiner #Noun",group:0,tag:"Imperative",reason:"turn-off-the-light"},{match:"^[go] to .",group:0,tag:"Imperative",reason:"go-to-toronto"},{match:"^#Modal you [#Infinitive]",group:0,tag:"Imperative",reason:"would-you-"},{match:"^never [#Infinitive]",group:0,tag:"Imperative",reason:"never-stop"},{match:"^come #Infinitive",tag:"Imperative",notIf:"on",reason:"come-have"},{match:"^come and? #Infinitive",tag:"Imperative . Imperative",notIf:"#PhrasalVerb",reason:"come-and-have"},{match:"^stay (out|away|back)",tag:"Imperative",reason:"stay-away"},{match:"^[(stay|be|keep)] #Adjective",group:0,tag:"Imperative",reason:"stay-cool"},{match:"^[keep it] #Adjective",group:0,tag:"Imperative",reason:"keep-it-cool"},{match:"^do not [#Infinitive]",group:0,tag:"Imperative",reason:"do-not-be"},{match:"[#Infinitive] (yourself|yourselves)",group:0,tag:"Imperative",reason:"allow-yourself"},{match:"[#Infinitive] what .",group:0,tag:"Imperative",reason:"look-what"},{match:"^[#Infinitive] #Gerund",group:0,tag:"Imperative",reason:"keep-playing"},{match:"^[#Infinitive] (to|for|into|toward|here|there)",group:0,tag:"Imperative",reason:"go-to"},{match:"^[#Infinitive] (and|or) #Infinitive",group:0,tag:"Imperative",reason:"inf-and-inf"},{match:"^[%Noun|Verb%] to",group:0,tag:"Imperative",reason:"commit-to"},{match:"^[#Infinitive] #Adjective? #Singular #Singular",group:0,tag:"Imperative",reason:"maintain-eye-contact"},{match:"do not (forget|omit|neglect) to [#Infinitive]",group:0,tag:"Imperative",reason:"do-not-forget"},{match:"^[(ask|wear|pay|look|help|show|watch|act|fix|kill|stop|start|turn|try|win)] #Noun",group:0,tag:"Imperative",reason:"pay-attention"}],pzt=[{match:"(that|which) were [%Adj|Gerund%]",group:0,tag:"Gerund",reason:"that-were-growing"},{match:"#Gerund [#Gerund] #Plural",group:0,tag:"Adjective",reason:"hard-working-fam"}],mzt=[{match:"(got|were|was|is|are|am) (#PastTense|#Participle)",tag:"Passive",reason:"got-walked"},{match:"(was|were|is|are|am) being (#PastTense|#Participle)",tag:"Passive",reason:"was-being"},{match:"(had|have|has) been (#PastTense|#Participle)",tag:"Passive",reason:"had-been"},{match:"will be being? (#PastTense|#Participle)",tag:"Passive",reason:"will-be-cleaned"},{match:"#Noun [(#PastTense|#Participle)] by (the|a) #Noun",group:0,tag:"Passive",reason:"suffered-by"}];let gzt=[{match:"u r",tag:"#Pronoun #Copula",reason:"u r"},{match:"#Noun [(who|whom)]",group:0,tag:"Determiner",reason:"captain-who"},{match:"[had] #Noun+ #PastTense",group:0,tag:"Condition",reason:"had-he"},{match:"[were] #Noun+ to #Infinitive",group:0,tag:"Condition",reason:"were-he"},{match:"some sort of",tag:"Adjective Noun Conjunction",reason:"some-sort-of"},{match:"of some sort",tag:"Conjunction Adjective Noun",reason:"of-some-sort"},{match:"[such] (a|an|is)? #Noun",group:0,tag:"Determiner",reason:"such-skill"},{match:"[right] (before|after|in|into|to|toward)",group:0,tag:"#Adverb",reason:"right-into"},{match:"#Preposition [about]",group:0,tag:"Adjective",reason:"at-about"}
1211,{match:"(are|#Modal|see|do|for) [ya]",group:0,tag:"Pronoun",reason:"are-ya"},{match:"[long live] .",group:0,tag:"#Adjective #Infinitive",reason:"long-live"},{match:"[plenty] of",group:0,tag:"#Uncountable",reason:"plenty-of"},{match:"(always|nearly|barely|practically) [there]",group:0,tag:"Adjective",reason:"always-there"},{match:"[there] (#Adverb|#Pronoun)? #Copula",group:0,tag:"There",reason:"there-is"},{match:"#Copula [there] .",group:0,tag:"There",reason:"is-there"},{match:"#Modal #Adverb? [there]",group:0,tag:"There",reason:"should-there"},{match:"^[do] (you|we|they)",group:0,tag:"QuestionWord",reason:"do-you"},{match:"^[does] (he|she|it|#ProperNoun)",group:0,tag:"QuestionWord",reason:"does-he"},{match:"#Determiner #Noun+ [who] #Verb",group:0,tag:"Preposition",reason:"the-x-who"},{match:"#Determiner #Noun+ [which] #Verb",group:0,tag:"Preposition",reason:"the-x-which"},{match:"a [while]",group:0,tag:"Noun",reason:"a-while"},{match:"guess who",tag:"#Infinitive #QuestionWord",reason:"guess-who"},{match:"[fucking] !#Verb",group:0,tag:"#Gerund",reason:"f-as-gerund"}];const yzt=[{match:"university of #Place",tag:"Organization",reason:"university-of-Foo"},{match:"#Noun (&|n) #Noun",tag:"Organization",reason:"Noun-&-Noun"},{match:"#Organization of the? #ProperNoun",tag:"Organization",reason:"org-of-place",safe:!0},{match:"#Organization #Country",tag:"Organization",reason:"org-country"},{match:"#ProperNoun #Organization",tag:"Organization",notIf:"#FirstName",reason:"titlecase-org"},{match:"#ProperNoun (ltd|co|inc|dept|assn|bros)",tag:"Organization",reason:"org-abbrv"},{match:"the [#Acronym]",group:0,tag:"Organization",reason:"the-acronym",safe:!0},{match:"government of the? [#Place+]",tag:"Organization",reason:"government-of-x"},{match:"(health|school|commerce) board",tag:"Organization",reason:"school-board"},{match:"(nominating|special|conference|executive|steering|central|congressional) committee",tag:"Organization",reason:"special-comittee"},{match:"(world|global|international|national|#Demonym) #Organization",tag:"Organization",reason:"global-org"},{match:"#Noun+ (public|private) school",tag:"School",reason:"noun-public-school"},{match:"#Place+ #SportsTeam",tag:"SportsTeam",reason:"place-sportsteam"},{match:"(dc|atlanta|minnesota|manchester|newcastle|sheffield) united",tag:"SportsTeam",reason:"united-sportsteam"},{match:"#Place+ fc",tag:"SportsTeam",reason:"fc-sportsteam"},{match:"#Place+ #Noun{0,2} (club|society|group|team|committee|commission|association|guild|crew)",tag:"Organization",reason:"place-noun-society"}],bzt=[{match:"(west|north|south|east|western|northern|southern|eastern)+ #Place",tag:"Region",reason:"west-norfolk"},{match:"#City [(al|ak|az|ar|ca|ct|dc|fl|ga|id|il|nv|nh|nj|ny|oh|pa|sc|tn|tx|ut|vt|pr)]",group:0,tag:"Region",reason:"us-state"},{match:"portland [or]",group:0,tag:"Region",reason:"portland-or"},{match:"#ProperNoun+ (cliff|place|range|pit|place|point|room|grounds|ruins)",tag:"Place",reason:"foo-point"},{match:"in [#ProperNoun] #Place",group:0,tag:"Place",reason:"propernoun-place"},{match:"#Value #Noun (st|street|rd|road|crescent|cr|way|tr|terrace|avenue|ave)",tag:"Address",reason:"address-st"},{match:"(port|mount|mt) #ProperName",tag:"Place",reason:"port-name"}],vzt=[{match:"[so] #Noun",group:0,tag:"Conjunction",reason:"so-conj"},{match:"[(who|what|where|why|how|when)] #Noun #Copula #Adverb? (#Verb|#Adjective)",group:0,tag:"Conjunction",reason:"how-he-is-x"},{match:"#Copula [(who|what|where|why|how|when)] #Noun",group:0,tag:"Conjunction",reason:"when-he"},{match:"#Verb [that] #Pronoun",group:0,tag:"Conjunction",reason:"said-that-he"},{match:"#Noun [that] #Copula",group:0,tag:"Conjunction",reason:"that-are"},{match:"#Noun [that] #Verb #Adjective",group:0,tag:"Conjunction",reason:"that-seem"},{match:"#Noun #Copula not? [that] #Adjective",group:0,tag:"Adverb",reason:"that-adj"},{match:"#Verb #Adverb? #Noun [(that|which)]",group:0,tag:"Preposition",reason:"that-prep"},{match:"@hasComma [which] (#Pronoun|#Verb)",group:0,tag:"Preposition",reason:"which-copula"},{match:"#Noun [like] #Noun",group:0,tag:"Preposition",reason:"noun-like"},{match:"^[like] #Determiner",group:0,tag:"Preposition",reason:"like-the"},{match:"a #Noun [like] (#Noun|#Determiner)",group:0,tag:"Preposition",reason:"a-noun-like"},{match:"#Adverb [like]",group:0,tag:"Verb",reason:"really-like"},{match:"(not|nothing|never) [like]",group:0,tag:"Preposition",reason:"nothing-like"},{match:"#Infinitive #Pronoun [like]",group:0,tag:"Preposition",reason:"treat-them-like"},{match:"[#QuestionWord] (#Pronoun|#Determiner)",group:0,tag:"Preposition",reason:"how-he"},{match:"[#QuestionWord] #Participle",group:0,tag:"Preposition",reason:"when-stolen"},{match:"[how] (#Determiner|#Copula|#Modal|#PastTense)",group:0,tag:"QuestionWord",reason:"how-is"},{match:"#Plural [(who|which|when)] .",group:0,tag:"Preposition",reason:"people-who"}],xzt=[{match:"holy (shit|fuck|hell)",tag:"Expression",reason:"swears-expression"},{match:"^[(well|so|okay|now)] !#Adjective?",group:0,tag:"Expression",reason:"well-"},{match:"^come on",tag:"Expression",reason:"come-on"},{match:"(say|says|said) [sorry]",group:0,tag:"Expression",reason:"say-sorry"},{match:"^(ok|alright|shoot|hell|anyways)",tag:"Expression",reason:"ok-"},{match:"^(say && @hasComma)",tag:"Expression",reason:"say-"},{match:"^(like && @hasComma)",tag:"Expression",reason:"like-"},{match:"^[(dude|man|girl)] #Pronoun",group:0,tag:"Expression",reason:"dude-i"}];let wzt=[].concat(mzt,qjt,Kjt,Yjt,Qjt,Jjt,ezt,Zjt,nzt,rzt,izt,szt,ozt,azt,lzt,czt,uzt,Xjt,hzt,dzt,fzt,pzt,gzt,yzt,bzt,vzt,xzt);const Szt={two:{matches:wzt}};let rL=null;
1211const kzt=function(t){const{world:e}=t,{model:n,methods:r}=e;rL=rL||r.one.buildNet(n.two.matches,e);let s=r.two.quickSplit(t.document).map(a=>{let l=a[0];return[l.index[0],l.index[1],l.index[1]+a.length]}),o=t.update(s);return o.cache(),o.sweep(rL),t.uncache(),t.unfreeze(),t},Czt=t=>t.compute(["freeze","lexicon","preTagger","postTagger","unfreeze"]),_zt={postTagger:kzt,tagger:Czt},Tzt=t=>Math.round(t*100)/100;function Ezt(t){t.prototype.confidence=function(){let e=0,n=0;return this.docs.forEach(r=>{r.forEach(i=>{n+=1,e+=i.confidence||1})}),n===0?1:Tzt(e/n)},t.prototype.tagger=function(){return this.compute(["tagger"])}}const Azt={api:Ezt,compute:_zt,model:Szt,hooks:["postTagger"]},Pzt=function(t){return Object.keys(t.hooks).filter(e=>!e.startsWith("#")&&!e.startsWith("%"))},Ozt=function(t,e){let n=Pzt(e);if(n.length===0)return t;t._cache||t.cache();let r=t._cache;return t.filter((i,s)=>n.some(o=>r[s].has(o)))},Izt=function(t,e){let n=e;typeof e=="string"&&(n=this.buildNet([{match:e}]));let r=this.tokenize(t),i=Ozt(r,n);return i.found?(i.compute(["index","tagger"]),i.match(e)):r.none()},Dzt={lib:{lazy:Izt}},Mzt=function(t,e){const n=t.methods.two.transform.verb.conjugate;let r=n(e,t.model);return t.has("#Gerund")?r.Gerund:t.has("#PastTense")?r.PastTense:t.has("#PresentTense")?r.PresentTense:t.has("#Gerund")?r.Gerund:e},Nzt=function(t,e){let n=e;return t.forEach(r=>{r.has("#Infinitive")||(n=Mzt(r,e)),r.replaceWith(n)}),t},Rzt=function(t,e){let n=e;if(t.has("#Plural")){const r=t.methods.two.transform.noun.toPlural;n=r(e,t.model)}t.replaceWith(n,{possessives:!0})},Lzt=function(t,e){const{toAdverb:n}=t.methods.two.transform.adjective;let i=n(e);i&&t.replaceWith(i)},Bzt=function(t,e){const{toComparative:n,toSuperlative:r}=t.methods.two.transform.adjective;let i=e;t.has("#Comparative")?i=n(i,t.model):t.has("#Superlative")&&(i=r(i,t.model)),i&&t.replaceWith(i)},Fzt=function(t,e,n){let r=t.split(/ /g).map(s=>s.toLowerCase().trim());r=r.filter(s=>s),r=r.map(s=>`{${s}}`).join(" ");let i=this.match(r);return n&&(i=i.if(n)),i.has("#Verb")?Nzt(i,e):i.has("#Noun")?Rzt(i,e):i.has("#Adverb")?Lzt(i,e):i.has("#Adjective")?Bzt(i,e):this},$zt=function(t){t.prototype.swap=Fzt},jzt={api:$zt};gr.plugin(mjt);gr.plugin(Wjt);gr.plugin(Azt);gr.plugin(Dzt);gr.plugin(jzt);const Hv=function(t){const{fromComparative:e,fromSuperlative:n}=t.methods.two.transform.adjective;let r=t.text("normal");return t.has("#Comparative")?e(r,t.model):t.has("#Superlative")?n(r,t.model):r},zzt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Adjectives"}json(r={}){const{toAdverb:i,toNoun:s,toSuperlative:o,toComparative:a}=this.methods.two.transform.adjective;return r.normal=!0,this.map(l=>{let c=l.toView().json(r)[0]||{},u=Hv(l);return c.adjective={adverb:i(u,this.model),noun:s(u,this.model),superlative:o(u,this.model),comparative:a(u,this.model)},c},[])}adverbs(){return this.before("#Adverb+$").concat(this.after("^#Adverb+"))}conjugate(r){const{toComparative:i,toSuperlative:s,toNoun:o,toAdverb:a}=this.methods.two.transform.adjective;return this.getNth(r).map(l=>{let c=Hv(l);return{Adjective:c,Comparative:i(c,this.model),Superlative:s(c,this.model),Noun:o(c,this.model),Adverb:a(c,this.model)}},[])}toComparative(r){const{toComparative:i}=this.methods.two.transform.adjective;return this.getNth(r).map(s=>{let o=Hv(s),a=i(o,this.model);return s.replaceWith(a)})}toSuperlative(r){const{toSuperlative:i}=this.methods.two.transform.adjective;return this.getNth(r).map(s=>{let o=Hv(s),a=i(o,this.model);return s.replaceWith(a)})}toAdverb(r){const{toAdverb:i}=this.methods.two.transform.adjective;return this.getNth(r).map(s=>{let o=Hv(s),a=i(o,this.model);return s.replaceWith(a)})}toNoun(r){const{toNoun:i}=this.methods.two.transform.adjective;return this.getNth(r).map(s=>{let o=Hv(s),a=i(o,this.model);return s.replaceWith(a)})}}t.prototype.adjectives=function(n){let r=this.match("#Adjective");return r=r.getNth(n),new e(r.document,r.pointer)},t.prototype.superlatives=function(n){let r=this.match("#Superlative");return r=r.getNth(n),new e(r.document,r.pointer)},t.prototype.comparatives=function(n){let r=this.match("#Comparative");return r=r.getNth(n),new e(r.document,r.pointer)}},Hzt={api:zzt},Uzt=function(t){return t.compute("root").text("root")},Vzt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewT
1211ype="Adverbs"}conjugate(r){return this.getNth(r).map(i=>{let s=Uzt(i);return{Adverb:i.text("normal"),Adjective:s}},[])}json(r={}){const i=this.methods.two.transform.adjective.fromAdverb;return r.normal=!0,this.map(s=>{let o=s.toView().json(r)[0]||{};return o.adverb={adjective:i(o.normal)},o},[])}}t.prototype.adverbs=function(n){let r=this.match("#Adverb");return r=r.getNth(n),new e(r.document,r.pointer)}},Wzt={api:Vzt},qzt=function(t){let e=t.match("@hasComma");return e=e.filter(n=>{if(n.growLeft(".").wordCount()===1||n.growRight(". .").wordCount()===1)return!1;let r=n.grow(".");return r=r.ifNo("@hasComma @hasComma"),r=r.ifNo("@hasComma (and|or) ."),r=r.ifNo("(#City && @hasComma) #Country"),r=r.ifNo("(#WeekDay && @hasComma) #Date"),r=r.ifNo("(#Date+ && @hasComma) #Value"),r=r.ifNo("(#Adjective && @hasComma) #Adjective"),r.found}),t.splitAfter(e)},Gzt=function(t){let e=t.parentheses();return e=e.filter(n=>n.wordCount()>=3&&n.has("#Verb")&&n.has("#Noun")),t.splitOn(e)},Kzt=function(t){let e=t.quotations();return e=e.filter(n=>n.wordCount()>=3&&n.has("#Verb")&&n.has("#Noun")),t.splitOn(e)},Yzt=function(t){let e=this;e=Gzt(e),e=Kzt(e),e=qzt(e),e=e.splitAfter("(@hasEllipses|@hasSemicolon|@hasDash|@hasColon)"),e=e.splitAfter("^#Pronoun (said|says)"),e=e.splitBefore("(said|says) #ProperNoun$"),e=e.splitBefore(". . if .{4}"),e=e.splitBefore("and while"),e=e.splitBefore("now that"),e=e.splitBefore("ever since"),e=e.splitBefore("(supposing|although)"),e=e.splitBefore("even (while|if|though)"),e=e.splitBefore("(whereas|whose)"),e=e.splitBefore("as (though|if)"),e=e.splitBefore("(til|until)");let n=e.match("#Verb .* [but] .* #Verb",0);n.found&&(e=e.splitBefore(n));let r=e.if("if .{2,9} then .").match("then");return e=e.splitBefore(r),typeof t=="number"&&(e=e.get(t)),e},Qzt=function(t){let e=[],n=null;return t.clauses().docs.forEach(s=>{s.forEach(o=>{!o.chunk||o.chunk!==n?(n=o.chunk,e.push([o.index[0],o.index[1],o.index[1]+1])):e[e.length-1][2]=o.index[1]+1}),n=null}),t.update(e)},Xzt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Chunks"}isVerb(){return this.filter(r=>r.has("<Verb>"))}isNoun(){return this.filter(r=>r.has("<Noun>"))}isAdjective(){return this.filter(r=>r.has("<Adjective>"))}isPivot(){return this.filter(r=>r.has("<Pivot>"))}debug(){return this.toView().debug("chunks"),this}update(r){let i=new e(this.document,r);return i._cache=this._cache,i}}t.prototype.chunks=function(n){let r=Qzt(this);return r=r.getNth(n),new e(this.document,r.pointer)},t.prototype.clauses=Yzt},ble={this:"Noun",then:"Pivot"}
1211,Jzt=function(t){for(let e=0;e<t.length;e+=1)for(let n=0;n<t[e].length;n+=1){let r=t[e][n];if(ble.hasOwnProperty(r.normal)===!0){r.chunk=ble[r.normal];continue}if(r.tags.has("Verb")){r.chunk="Verb";continue}if(r.tags.has("Noun")||r.tags.has("Determiner")){r.chunk="Noun";continue}if(r.tags.has("Value")){r.chunk="Noun";continue}if(r.tags.has("QuestionWord")){r.chunk="Pivot";continue}}},Zzt=function(t){for(let e=0;e<t.length;e+=1)for(let n=0;n<t[e].length;n+=1){let r=t[e][n];if(r.chunk)continue;let i=t[e][n+1],s=t[e][n-1];if(r.tags.has("Adjective")){if(s&&s.tags.has("Copula")){r.chunk="Adjective";continue}if(s&&s.tags.has("Determiner")){r.chunk="Noun";continue}if(i&&i.tags.has("Noun")){r.chunk="Noun";continue}continue}if(r.tags.has("Adverb")||r.tags.has("Negative")){if(s&&s.tags.has("Adjective")){r.chunk="Adjective";continue}if(s&&s.tags.has("Verb")){r.chunk="Verb";continue}if(i&&i.tags.has("Adjective")){r.chunk="Adjective";continue}if(i&&i.tags.has("Verb")){r.chunk="Verb";continue}}}},eHt=[{match:"[that] #Determiner #Noun",group:0,chunk:"Pivot"},{match:"#PastTense [that]",group:0,chunk:"Pivot"},{match:"[so] #Determiner",group:0,chunk:"Pivot"},{match:"#Copula #Adverb+? [#Adjective]",group:0,chunk:"Adjective"},{match:"#Adjective and #Adjective",chunk:"Adjective"},{match:"#Adverb+ and #Adverb #Verb",chunk:"Verb"},{match:"#Gerund #Adjective$",chunk:"Verb"},{match:"#Gerund to #Verb",chunk:"Verb"},{match:"#PresentTense and #PresentTense",chunk:"Verb"},{match:"#Adverb #Negative",chunk:"Verb"},{match:"(want|wants|wanted) to #Infinitive",chunk:"Verb"},{match:"#Verb #Reflexive",chunk:"Verb"},{match:"#Verb [to] #Adverb? #Infinitive",group:0,chunk:"Verb"},{match:"[#Preposition] #Gerund",group:0,chunk:"Verb"},{match:"#Infinitive [that] <Noun>",group:0,chunk:"Verb"},{match:"#Noun of #Determiner? #Noun",chunk:"Noun"},{match:"#Value+ #Adverb? #Adjective",chunk:"Noun"},{match:"the [#Adjective] #Noun",chunk:"Noun"},{match:"#Singular in #Determiner? #Singular",chunk:"Noun"},{match:"#Plural [in] #Determiner? #Noun",group:0,chunk:"Pivot"},{match:"#Noun and #Determiner? #Noun",notIf:"(#Possessive|#Pronoun)",chunk:"Noun"}];let iL=null;const tHt=function(t,e,n){const{methods:r}=n;iL=iL||r.one.buildNet(eHt,n),t.sweep(iL)};var vle={};const sL=function(t,e){if((typeof process>"u"||!vle?self.env||{}:vle).DEBUG_CHUNKS){let r=(t.normal+"'").padEnd(8);console.log(` | '${r} â \x1B[34m${e.padEnd(12)}\x1B[0m \x1B[2m -fallback- \x1B[0m`)}t.chunk=e},nHt=function(t){for(let e=0;e<t.length;e+=1)for(let n=0;n<t[e].length;n+=1){let r=t[e][n];r.chunk===void 0&&(r.tags.has("Conjunction")||r.tags.has("Preposition")?sL(r,"Pivot"):r.tags.has("Adverb")?sL(r,"Verb"):r.chunk="Noun")}},rHt=function(t){let e=[],n=null;t.forEach(r=>{for(let i=0;i<r.length;i+=1){let s=r[i];n&&s.chunk===n?e[e.length-1].terms.push(s):(e.push({chunk:s.chunk,terms:[s]}),n=s.chunk)}}),e.forEach(r=>{r.chunk==="Verb"&&(r.terms.find(s=>s.tags.has("Verb"))||r.terms.forEach(s=>s.chunk=null))})},iHt=function(t){const{document:e,world:n}=t;Jzt(e),Zzt(e),tHt(t,e,n),nHt(e),rHt(e)},sHt={chunks:iHt},oHt={compute:sHt,api:Xzt,hooks:["chunks"]},XE=/\./g,aHt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Acronyms"}strip(){return this.docs.forEach(r=>{r.forEach(i=>{i.text=i.text.replace(XE,""),i.normal=i.normal.replace(XE,"")})}),this}addPeriods(){return this.docs.forEach(r=>{r.forEach(i=>{i.text=i.text.replace(XE,""),i.normal=i.normal.replace(XE,""),i.text=i.text.split("").join(".")+".",i.normal=i.normal.split("").join(".")+"."})}),this}}t.prototype.acronyms=function(n){let r=this.match("#Acronym");return r=r.getNth(n),new e(r.document,r.pointer)}},wEe=/\(/,SEe=/\)/,lHt=function(t,e){for(;e<t.length;e+=1)if(t[e].post&&SEe.test(t[e].post)){let[,n]=t[e].index;return n=n||0,n}return null},cHt=function(t){let e=[];return t.docs.forEach(n=>{for(let r=0;r<n.length;r+=1){let i=n[r];if(i.pre&&wEe.test(i.pre)){let s=lHt(n,r);if(s!==null){let[o,a]=n[r].index;e.push([o,a,s+1,n[r].id]),r=s}}}}),t.update(e)},uHt=function(t){return t.docs.forEach(e=>{e[0].pre=e[0].pre.replace(wEe,"");let n=e[e.length-1];n.post=n.post.replace(SEe,"")}),t},hHt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewT
1211ype="Possessives"}strip(){return uHt(this)}}t.prototype.parentheses=function(n){let r=cHt(this);return r=r.getNth(n),new e(r.document,r.pointer)}},xle=/'s$/,dHt=function(t){let e=t.match("#Possessive+");return e.has("#Person")&&(e=e.growLeft("#Person+")),e.has("#Place")&&(e=e.growLeft("#Place+")),e.has("#Organization")&&(e=e.growLeft("#Organization+")),e},fHt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Possessives"}strip(){return this.docs.forEach(r=>{r.forEach(i=>{i.text=i.text.replace(xle,""),i.normal=i.normal.replace(xle,"")})}),this}}t.prototype.possessives=function(n){let r=dHt(this);return r=r.getNth(n),new e(r.document,r.pointer)}},PP={'"':'"',"ï¼":"ï¼","'":"'","â":"â","â":"â","â":"â","â":"â","â":"â","â¹":"â","â":"â","«":"»","â¹":"âº","âµ":"â²","â¶":"â³","â·":"â´","ã":"ã","`":"´","ã":"ã"},$G=RegExp("["+Object.keys(PP).join("")+"]"),pHt=RegExp("["+Object.values(PP).join("")+"]"),mHt=function(t,e){const n=t[e].pre.match($G)[0]||"";if(!n||!PP[n])return null;const r=PP[n];for(;e<t.length;e+=1)if(t[e].post&&t[e].post.match(r))return e;return null},gHt=function(t){let e=[];return t.docs.forEach(n=>{for(let r=0;r<n.length;r+=1){let i=n[r];if(i.pre&&$G.test(i.pre)){let s=mHt(n,r);if(s!==null){let[o,a]=n[r].index;e.push([o,a,s+1,n[r].id]),r=s}}}}),t.update(e)},yHt=function(t){t.docs.forEach(e=>{e[0].pre=e[0].pre.replace($G,"");let n=e[e.length-1];n.post=n.post.replace(pHt,"")})},bHt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Possessives"}strip(){return yHt(this)}}t.prototype.quotations=function(n){let r=gHt(this);return r=r.getNth(n),new e(r.document,r.pointer)}},vHt=function(t){let e=this.splitAfter("@hasComma");return e=e.match("#PhoneNumber+"),e=e.getNth(t),e},xHt=[["hyphenated","@hasHyphen ."],["hashTags","#HashTag"],["emails","#Email"],["emoji","#Emoji"],["emoticons","#Emoticon"],["atMentions","#AtMention"],["urls","#Url"],["conjunctions","#Conjunction"],["prepositions","#Preposition"],["abbreviations","#Abbreviation"],["honorifics","#Honorific"]];let wHt=[["emojis","emoji"],["atmentions","atMentions"]];const SHt=function(t){xHt.forEach(e=>{t.prototype[e[0]]=function(n){let r=this.match(e[1]);return typeof n=="number"?r.get(n):r}}),t.prototype.phoneNumbers=vHt,wHt.forEach(e=>{t.prototype[e[0]]=t.prototype[e[1]]})},kHt=/\//,CHt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Slashes"}split(){return this.map(r=>{let s=r.text().split(kHt);return r=r.replaceWith(s.join(" ")),r.growRight("("+s.join("|")+")+")})}}t.prototype.slashes=function(n){let r=this.match("#SlashedTerm");return r=r.getNth(n),new e(r.document,r.pointer)}},_Ht={api:function(t){aHt(t),hHt(t),fHt(t),bHt(t),SHt(t),CHt(t)}},JE=function(t,e){t.docs.forEach(n=>{n.forEach(e)})},wle={case:t=>{JE(t,e=>{e.text=e.text.toLowerCase()})},unicode:t=>{const e=t.world,n=e.methods.one.killUnicode;JE(t,r=>r.text=n(r.text,e))},whitespace:t=>{JE(t,e=>{e.post=e.post.replace(/\s+/g," "),e.post=e.post.replace(/\s([.,?!:;])/g,"$1"),e.pre=e.pre.replace(/\s+/g,"")})},punctuation:t=>{JE(t,r=>{r.post=r.post.replace(/[ââ-]/g," "),r.post=r.post.replace(/[,:;]/g,""),r.post=r.post.replace(/\.{2,}/g,""),r.post=r.post.replace(/\?{2,}/g,"?"),r.post=r.post.replace(/!{2,}/g,"!"),r.post=r.post.replace(/\?!+/g,"?")});let e=t.docs,n=e[e.length-1];if(n&&n.length>0){let r=n[n.length-1];r.post=r.post.replace(/ /g,"")}},contractions:t=>{t.contractions().expand()},acronyms:t=>{t.acronyms().strip()},parentheses:t=>{t.parentheses().strip()},possessives:t=>{t.possessives().strip()},quotations:t=>{t.quotations().strip()},emoji:t=>{t.emojis().remove()},honorifics:t=>{t.match("#Honorific+ #Person").honorifics().remove()},adverbs:t=>{t.adverbs().remove()},nouns:t=>{t.nouns().toSingular()},verbs:t=>{t.verbs().toInfinitive()},numbers:t=>{t.numbers().toNumber()},debullet:t=>{const e=/^\s*([-ââ*â¢])\s*$/;return t.docs.forEach(n=>{e.test(n[0].pre)&&(n[0].pre=n[0].pre.replace(e,""))}),t}},oL=t=>t.split("|").reduce((e,n)=>(e[n]=!0,e),{}),aL="unicode|punctuation|whitespace|acronyms",Sle="|case|contractions|parentheses|quotations|emoji|honorifics|debullet",THt="|possessives|adverbs|nouns|verbs",EHt={light:oL(aL),medium:oL(aL+Sle),heavy:oL(aL+Sle+THt)};function AHt(t){t.prototype.normalize=function(e="light"){return typeof e=="string"&&(e=EHt[e]),Object.keys(e).forEach(n=>{wle.hasOwnProperty(n)&&wle[n](this,e[n])}),this}}const PHt={api:AHt},OHt=function(t){let e=t.clauses().match("<Noun>"),n=e.match("@hasComma");return n=n.not("#Place"),n.found&&(e=e.splitAfter(n)),e=e.splitOn("#Expression"),e=e.splitOn("(he|she|we|you|they|i)"),e=e.splitOn("(#Noun|#Adjective) [(he|him|she|it)]",0),e=e.splitOn("[(he|him|she|it)] (#Determiner|#Value)",0),e=e.splitBefore("#Noun [(the|a|an)] #Adjective? #Noun",0),e=e.splitOn("[(here|there)] #Noun",0),e=e.splitOn("[#Noun] (here|there)",0),e=e.splitBefore("(our|my|their|your)"),e=e.splitOn("#Noun [#Determiner]",0),e=e.if("#Noun"),e},kle=["after","although","as if","as long as","as","because","before","even if","even though","ever since","if","in order that","provided that","since","so that","than","that","though","unless","until","what","whatever","when","whenever","where","whereas","wherever","whether","which","whichever","who","whoever","whom","whomever","whose"],IHt=function(t){if(t.before("#Preposition$").found)return!0;
1211if(!t.before().found)return!1;for(let n=0;n<kle.length;n+=1)if(t.has(kle[n]))return!0;return!1},DHt="(#Pronoun|#Place|#Value|#Person|#Uncountable|#Month|#WeekDay|#Holiday|#Possessive)",MHt=function(t,e){if(t.has("#Plural")||t.has("#Noun and #Noun")||t.has("(we|they)"))return!0;if(e.has(DHt)===!0||t.has("#Singular"))return!1;let n=e.text("normal");return n.length>3&&n.endsWith("s")&&!n.endsWith("ss")},NHt=function(t){let e=t.clone();return e=e.match("#Noun+"),e=e.remove("(#Adjective|#Preposition|#Determiner|#Value)"),e=e.not("#Possessive"),e=e.first(),e.found?e:t},og=function(t){let e=NHt(t);return{determiner:t.match("#Determiner").eq(0),adjectives:t.match("#Adjective"),number:t.values(),isPlural:MHt(t,e),isSubordinate:IHt(t),root:e}},Cle=t=>t.text(),RHt=t=>t.json({terms:!1,normal:!0}).map(e=>e.normal),LHt=function(t){let e=null;if(!t.found)return e;let n=t.values(0);return n.found?(n.parse()[0]||{}).num:e},BHt=function(t){let e=og(t);return{root:Cle(e.root),number:LHt(e.number),determiner:Cle(e.determiner),adjectives:RHt(e.adjectives),isPlural:e.isPlural,isSubordinate:e.isSubordinate}},kEe=function(t){return!t.has("^(#Uncountable|#ProperNoun|#Place|#Pronoun|#Acronym)+$")},FHt={tags:!0},$Ht=function(t,e){if(e.isPlural===!0||(e.root.has("#Possessive")&&(e.root=e.root.possessives().strip()),!kEe(e.root)))return t;const{methods:n,model:r}=t.world,{toPlural:i}=n.two.transform.noun;let s=e.root.text({keepPunct:!1}),o=i(s,r);t.match(e.root).replaceWith(o,FHt).tag("Plural","toPlural"),e.determiner.has("(a|an)")&&t.remove(e.determiner);let a=e.root.after("not? #Adverb+? [#Copula]",0);return a.found&&(a.has("is")?t.replace(a,"are"):a.has("was")&&t.replace(a,"were")),t},jHt={tags:!0},zHt=function(t,e){if(e.isPlural===!1)return t;const{methods:n,model:r}=t.world,{toSingular:i}=n.two.transform.noun;let s=e.root.text("normal"),o=i(s,r);return t.replace(e.root,o,jHt).tag("Singular","toPlural"),t},HHt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Nouns"}parse(r){return this.getNth(r).map(og)}json(r){let i=typeof r=="object"?r:{};return this.getNth(r).map(s=>{let o=s.toView().json(i)[0]||{};return i&&i.noun!==!1&&(o.noun=BHt(s)),o},[])}conjugate(r){const i=this.world.methods.two.transform.noun;return this.getNth(r).map(s=>{let o=og(s),a=o.root.compute("root").text("root"),l={Singular:a};return kEe(o.root)&&(l.Plural=i.toPlural(a,this.model)),l.Singular===l.Plural&&delete l.Plural,l},[])}isPlural(r){return this.filter(s=>og(s).isPlural).getNth(r)}isSingular(r){return this.filter(s=>!og(s).isPlural).getNth(r)}adjectives(r){let i=this.update([]);return this.forEach(s=>{let o=og(s).adjectives;o.found&&(i=i.concat(o))}),i.getNth(r)}toPlural(r){return this.getNth(r).map(i=>$Ht(i,og(i)))}toSingular(r){return this.getNth(r).map(i=>{let s=og(i);return zHt(i,s)})}update(r){let i=new e(this.document,r);return i._cache=this._cache,i}}t.prototype.nouns=function(n){let r=OHt(this);return r=r.getNth(n),new e(this.document,r.pointer)}},UHt={api:HHt},VHt=function(t,e){let n=t.match("#Fraction+");return n=n.filter(r=>!r.lookBehind("#Value and$").found),n=n.notIf("#Value seconds"),n},WHt=t=>{const e=[{reg:/^(minus|negative)[\s-]/i,mult:-1},{reg:/^(a\s)?half[\s-](of\s)?/i,mult:.5}];for(let n=0;n<e.length;n++)if(e[n].reg.test(t)===!0)return{amount:e[n].mult,str:t.replace(e[n].reg,"")};return{amount:1,str:t}},Fo={ones:{zeroth:0,first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,zero:0,one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9},teens:{tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,ten:10,eleven:11,twelve:12,thirteen:13,fourteen:14,fifteen:15,sixteen:16,seventeen:17,eighteen:18,nineteen:19},tens:{twentieth:20,thirtieth:30,fortieth:40,fourtieth:40,fiftieth:50,sixtieth:60,seventieth:70,eightieth:80,ninetieth:90,twenty:20,thirty:30,forty:40,fourty:40,fifty:50,sixty:60,seventy:70,eighty:80,ninety:90},multiples:{hundredth:100,thousandth:1e3,millionth:1e6,billionth:1e9,trillionth:1e12,quadrillionth:1e15,quintillionth:1e18,sextillionth:1e21,septillionth:1e24,hundred:100,thousand:1e3,million:1e6,billion:1e9,trillion:1e12,quadrillion:1e15,quintillion:1e18,sextillion:1e21,septillion:1e24,grand:1e3}},qHt=(t,e)=>{if(Fo.ones.hasOwnProperty(t)){if(e.ones||e.teens)return!1}else if(Fo.teens.hasOwnProperty(t)){if(e.ones||e.teens||e.tens)return!1}else if(Fo.tens.hasOwnProperty(t)&&(e.ones||e.teens||e.tens))return!1;return!0},GHt=function(t){let e="0.";for(let n=0;n<t.length;n++){let r=t[n];if(Fo.ones.hasOwnProperty(r)===!0)e+=Fo.ones[r];else if(Fo.teens.hasOwnProperty(r)===!0)e+=Fo.teens[r];else if(Fo.tens.hasOwnProperty(r)===!0)e+=Fo.tens[r];else if(/^[0-9]$/.test(r)===!0)e+=r;else return 0}return parseFloat(e)},KHt=t=>(t=t.replace(/1st$/,"1"),t=t.replace(/2nd$/,"2"),t=t.replace(/3rd$/,"3"),t=t.replace(/([4567890])r?th$/,"$1"),t=t.replace(/^[$â¬Â¥Â£Â¢]/,""),t=t.replace(/[%$â¬Â¥Â£Â¢]$/,""),t=t.replace(/,/g,""),t=t.replace(/([0-9])([a-z\u00C0-\u00FF]{1,2})$/,"$1"),t),YHt=/^([0-9,. ]+)\/([0-9,. ]+)$/,_le={"a few":3,"a couple":2,"a dozen":12,"two dozen":24,zero:0},ZE=t=>Object.keys(t).reduce((e,n)=>(e+=t[n],e),0),sz=function(t){if(_le.hasOwnProperty(t)===!0)return _le[t];if(t==="a"||t==="an")return 1;const e=WHt(t);t=e.str;let n=null,r={},i=0,s=!1;const o=t.split(/[ -]/);for(let a=0;a<o.length;a++){let l=o[a];if(l=KHt(l),!l||l==="and")continue;if(l==="-"||l==="negative"){s=!0;continue}if(l.charAt(0)==="-"&&(s=!0,l=l.substring(1)),l==="point")return i+=ZE(r),i+=GHt(o.slice(a+1,o.length)),i*=e.amount,i;const c=l.match(YHt);
1211if(c){const u=parseFloat(c[1].replace(/[, ]/g,"")),h=parseFloat(c[2].replace(/[, ]/g,""));h&&(i+=u/h||0);continue}if(Fo.tens.hasOwnProperty(l)&&r.ones&&Object.keys(r).length===1&&(i=r.ones*100,r={}),qHt(l,r)===!1)return null;if(/^[0-9.]+$/.test(l))r.ones=parseFloat(l);else if(Fo.ones.hasOwnProperty(l)===!0)r.ones=Fo.ones[l];else if(Fo.teens.hasOwnProperty(l)===!0)r.teens=Fo.teens[l];else if(Fo.tens.hasOwnProperty(l)===!0)r.tens=Fo.tens[l];else if(Fo.multiples.hasOwnProperty(l)===!0){let u=Fo.multiples[l];if(u===n)return null;if(u===100&&o[a+1]!==void 0){const h=o[a+1];Fo.multiples[h]&&(u*=Fo.multiples[h],a+=1)}n===null||u<n?(i+=(ZE(r)||1)*u,n=u,r={}):(i+=ZE(r),n=u,i=(i||1)*u,r={})}}return i+=ZE(r),i*=e.amount,i*=s?-1:1,i===0&&Object.keys(r).length===0?null:i},Tle=/s$/,PC=function(t){let e=t.text("reduced");return sz(e)};let OP={half:2,halve:2,quarter:4};const QHt=function(t){let n=t.text("reduced").match(/^([-+]?[0-9]+)\/([-+]?[0-9]+)(st|nd|rd|th)?s?$/);return n&&n[1]&&n[0]?{numerator:Number(n[1]),denominator:Number(n[2])}:null},XHt=function(t){let e=t.match("[<num>#Value+] out of every? [<den>#Value+]");if(e.found!==!0)return null;let{num:n,den:r}=e.groups();return!n||!r||(n=PC(n),r=PC(r),!n||!r)?null:typeof n=="number"&&typeof r=="number"?{numerator:n,denominator:r}:null},JHt=function(t){let e=t.match("[<num>(#Cardinal|a)+] [<den>#Fraction+]");if(e.found!==!0)return null;let{num:n,den:r}=e.groups();n.has("a")?n=1:n=PC(n);let i=r.text("reduced");return Tle.test(i)&&(i=i.replace(Tle,""),r=r.replaceWith(i)),OP.hasOwnProperty(i)?r=OP[i]:r=PC(r),typeof n=="number"&&typeof r=="number"?{numerator:n,denominator:r}:null},ZHt=function(t){let e=t.match("^#Ordinal$");return e.found!==!0?null:t.lookAhead("^of .")?{numerator:1,denominator:PC(e)}:null},eUt=function(t){let e=t.text("reduced");return OP.hasOwnProperty(e)?{numerator:1,denominator:OP[e]}:null},tUt=t=>{let e=Math.round(t*1e3)/1e3;return e===0&&t!==0?t:e},a0=function(t){t=t.clone();let e=eUt(t)||QHt(t)||XHt(t)||JHt(t)||ZHt(t)||null;return e!==null&&e.numerator&&e.denominator&&(e.decimal=e.numerator/e.denominator,e.decimal=tUt(e.decimal)),e},jG=function(t){if(t<1e6)return String(t);let e;return typeof t=="number"?e=t.toFixed(0):e=t,e.indexOf("e+")===-1?e:e.replace(".","").split("e+").reduce(function(n,r){return n+Array(r-n.length+2).join(0)})},e6=[["ninety",90],["eighty",80],["seventy",70],["sixty",60],["fifty",50],["forty",40],["thirty",30],["twenty",20]],Ele=["","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],nUt=[[1e24,"septillion"],[1e20,"hundred sextillion"],[1e21,"sextillion"],[1e20,"hundred quintillion"],[1e18,"quintillion"],[1e17,"hundred quadrillion"],[1e15,"quadrillion"],[1e14,"hundred trillion"],[1e12,"trillion"],[1e11,"hundred billion"],[1e9,"billion"],[1e8,"hundred million"],[1e6,"million"],[1e5,"hundred thousand"],[1e3,"thousand"],[100,"hundred"],[1,"one"]],rUt=function(t){let e=t,n=[];return nUt.forEach(r=>{if(t>=r[0]){let i=Math.floor(e/r[0]);e-=i*r[0],i&&n.push({unit:r[1],count:i})}}),n},iUt=function(t){let e=[];
1211if(t>100)return e;for(let n=0;n<e6.length;n++)t>=e6[n][1]&&(t-=e6[n][1],e.push(e6[n][0]));return Ele[t]&&e.push(Ele[t]),e},sUt=t=>{const e=["zero","one","two","three","four","five","six","seven","eight","nine"];let n=[],i=jG(t).match(/\.([0-9]+)/);if(!i||!i[0])return n;n.push("point");let s=i[0].split("");for(let o=0;o<s.length;o++)n.push(e[s[o]]);return n},OC=function(t){let e=t.num;if(e===0||e==="0")return"zero";e>1e21&&(e=jG(e));let n=[];e<0&&(n.push("minus"),e=Math.abs(e));let r=rUt(e);for(let i=0;i<r.length;i++){let s=r[i].unit;s==="one"&&(s="",n.length>1&&n.push("and")),n=n.concat(iUt(r[i].count)),n.push(s)}return n=n.concat(sUt(e)),n=n.filter(i=>i),n.length===0&&(n[0]=""),n.join(" ")},oUt=function(t){if(!t.numerator||!t.denominator)return"";let e=OC({num:t.numerator}),n=OC({num:t.denominator});return`${e} out of ${n}`},Ale={one:"first",two:"second",three:"third",five:"fifth",eight:"eighth",nine:"ninth",twelve:"twelfth",twenty:"twentieth",thirty:"thirtieth",forty:"fortieth",fourty:"fourtieth",fifty:"fiftieth",sixty:"sixtieth",seventy:"seventieth",eighty:"eightieth",ninety:"ninetieth"},CEe=t=>{let e=OC(t).split(" "),n=e[e.length-1];return Ale.hasOwnProperty(n)?e[e.length-1]=Ale[n]:e[e.length-1]=n.replace(/y$/,"i")+"th",e.join(" ")},aUt=function(t){if(!t.numerator||!t.denominator)return"";let e=OC({num:t.numerator}),n=CEe({num:t.denominator});return t.denominator===2&&(n="half"),e&&n?(t.numerator!==1&&(n+="s"),`${e} ${n}`):""},lUt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Fractions"}parse(r){return this.getNth(r).map(a0)}get(r){return this.getNth(r).map(a0)}json(r){return this.getNth(r).map(i=>{let s=i.toView().json(r)[0],o=a0(i);return s.fraction=o,s},[])}toDecimal(r){return this.getNth(r).forEach(i=>{let{decimal:s}=a0(i);i=i.replaceWith(String(s),!0),i.tag("NumericValue"),i.unTag("Fraction")}),this}toFraction(r){return this.getNth(r).forEach(i=>{let s=a0(i);if(s&&typeof s.numerator=="number"&&typeof s.denominator=="number"){let o=`${s.numerator}/${s.denominator}`;this.replace(i,o)}}),this}toOrdinal(r){return this.getNth(r).forEach(i=>{let s=a0(i),o=aUt(s);i.after("^#Noun").found&&(o+=" of"),i.replaceWith(o)}),this}toCardinal(r){return this.getNth(r).forEach(i=>{let s=a0(i),o=oUt(s);i.replaceWith(o)}),this}toPercentage(r){return this.getNth(r).forEach(i=>{let{decimal:s}=a0(i),o=s*100;o=Math.round(o*100)/100,i.replaceWith(`${o}%`)}),this}}t.prototype.fractions=function(n){let r=VHt(this);return r=r.getNth(n),new e(this.document,r.pointer)}},cUt="one|two|three|four|five|six|seven|eight|nine",Xm="twenty|thirty|forty|fifty|sixty|seventy|eighty|ninety|fourty",uUt="eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen",lL=function(t){let e=t.match("#Value+");if(e.has("#NumericValue #NumericValue")&&(e.has("#Value @hasComma #Value")?e.splitAfter("@hasComma"):e.has("#NumericValue #Fraction")?e.splitAfter("#NumericValue #Fraction"):e=e.splitAfter("#NumericValue")),e.has("#Value #Value #Value")&&!e.has("#Multiple")&&e.has("("+Xm+") #Cardinal #Cardinal")&&(e=e.splitAfter("("+Xm+") #Cardinal")),e.has("#Value #Value")){e.has("#NumericValue #NumericValue")&&(e=e.splitOn("#Year")),e.has("("+Xm+") ("+uUt+")")&&(e=e.splitAfter("("+Xm+")"));let n=e.match("#Cardinal #Cardinal");if(n.found&&!e.has("(point|decimal|#Fraction)")&&!n.has("#Cardinal (#Multiple|point|decimal)")){let r=e.has(`(${cUt}) (${Xm})`),i=n.has("("+Xm+") #Cardinal"),s=n.has("#Multiple #Value");!r&&!i&&!s&&n.terms().forEach(o=>{e=e.splitOn(o)})}e.match("#Ordinal #Ordinal").match("#TextValue").found&&!e.has("#Multiple")&&(e.has("("+Xm+") #Ordinal")||(e=e.splitAfter("#Ordinal"))),e=e.splitBefore("#Ordinal [#Cardinal]",0),e.has("#TextValue #NumericValue")&&!e.has("("+Xm+"|#Multiple)")&&(e=e.splitBefore("#TextValue #NumericValue"))}return e=e.splitAfter("#NumberRange"),e=e.splitBefore("#Year"),e},hUt=function(t,e){t=t.replace(/,/g,"");let n=t.split(/([0-9.,]*)/),[r,i]=n,s=n.slice(2).join("");return i!==""&&e.length<2?(i=Number(i||t),typeof i!="number"&&(i=null),s=s||"",(s==="st"||s==="nd"||s==="rd"||s==="th")&&(s=""),{prefix:r||"",num:i,suffix:s}):null},La=function(t){if(typeof t=="string")return{num:sz(t)};let e=t.text("reduced"),n=t.growRight("#Unit").match("#Unit$").text("machine"),r=/[0-9],[0-9]/.test(t.text("text"));if(t.terms().length===1&&!t.has("#Multiple")){let a=hUt(e,t);if(a!==null)return a.hasComma=r,a.unit=n,a}let i=t.match("#Fraction{2,}$");i=i.found===!1?t.match("^#Fraction$"):i;let s=null;i.found&&(i.has("#Value and #Value #Fraction")&&(i=i.match("and #Value #Fraction")),s=a0(i),t=t.not(i),t=t.not("and$"),e=t.text("reduced"));let o=0;return e&&(o=sz(e)||0),s&&s.decimal&&(o+=s.decimal),{hasComma:r,prefix:"",num:o,suffix:"",isOrdinal:t.has("#Ordinal"),isText:t.has("#TextValue"),isFraction:t.has("#Fraction"),isMoney:t.has("#Money"),unit:n}},dUt=function(t){let e=t.num;if(!e&&e!==0)return null;let n=e%100;if(n>10&&n<20)return String(e)+"th";const r={0:"th",1:"st",2:"nd",3:"rd"};let i=jG(e),s=i.slice(i.length-1,i.length);return r[s]?i+=r[s]:i+="th",i},Ple={"¢":"cents",$:"dollars","£":"pounds","Â¥":"yen","â¬":"euros","â¡":"colón","฿":"baht","â":"kip","â©":"won","â¹":"rupees","â½":"ruble","âº":"liras"},Ole={"%":"percent","°":"degrees"},Ile=function(t){let e={suffix:"",prefix:t.prefix};return Ple.hasOwnProperty(t.prefix)&&(e.suffix+=" "+Ple[t.prefix],e.prefix=""),Ole.hasOwnProperty(t.suffix)&&(e.suffix+=" "+Ole[t.suffix]),e.suffix&&t.num===1&&(e.suffix=e.suffix.replace(/s$/,"")),!e.suffix&&t.suffix&&(e.suffix+=" "+t.suffix),e},sy=function(t,e){if(e==="TextOrdinal"){let{prefix:r,suffix:i}=Ile(t);return r+CEe(t)+i}if(e==="Ordinal")return t.prefix+dUt(t)+t.suffix;if(e==="TextCardinal"){let{prefix:r,suffix:i}=Ile(t);return r+OC(t)+i}let n=t.num;
1211return t.hasComma&&(n=n.toLocaleString()),t.prefix+String(n)+t.suffix},fUt=t=>Object.prototype.toString.call(t)==="[object Array]",pUt=function(t){if(typeof t=="string"||typeof t=="number"){let e={};return e[t]=!0,e}return fUt(t)?t.reduce((e,n)=>(e[n]=!0,e),{}):t||{}},mUt=function(t,e={}){return e=pUt(e),t.filter(n=>{let{unit:r}=La(n);return!!(r&&e[r]===!0)})},gUt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Numbers"}parse(r){return this.getNth(r).map(La)}get(r){return this.getNth(r).map(La).map(i=>i.num)}json(r){let i=typeof r=="object"?r:{};return this.getNth(r).map(s=>{let o=s.toView().json(i)[0],a=La(s);return o.number={prefix:a.prefix,num:a.num,suffix:a.suffix,hasComma:a.hasComma,unit:a.unit},o},[])}units(){return this.growRight("#Unit").match("#Unit$")}isUnit(r){return mUt(this,r)}isOrdinal(){return this.if("#Ordinal")}isCardinal(){return this.if("#Cardinal")}toNumber(){let r=this.map(i=>{if(!this.has("#TextValue"))return i;let s=La(i);if(s.num===null)return i;let o=i.has("#Ordinal")?"Ordinal":"Cardinal",a=sy(s,o);return i.replaceWith(a,{tags:!0}),i.tag("NumericValue")});return new e(r.document,r.pointer)}toLocaleString(){return this.forEach(i=>{let s=La(i);if(s.num===null)return;let o=s.num.toLocaleString();if(i.has("#Ordinal")){let l=sy(s,"Ordinal").match(/[a-z]+$/);l&&(o+=l[0]||"")}i.replaceWith(o,{tags:!0})}),this}toText(){let i=this.map(s=>{if(s.has("#TextValue"))return s;let o=La(s);if(o.num===null)return s;let a=s.has("#Ordinal")?"TextOrdinal":"TextCardinal",l=sy(o,a);return s.replaceWith(l,{tags:!0}),s.tag("TextValue"),s});return new e(i.document,i.pointer)}toCardinal(){let i=this.map(s=>{if(!s.has("#Ordinal"))return s;let o=La(s);if(o.num===null)return s;let a=s.has("#TextValue")?"TextCardinal":"Cardinal",l=sy(o,a);return s.replaceWith(l,{tags:!0}),s.tag("Cardinal"),s});return new e(i.document,i.pointer)}toOrdinal(){let i=this.map(s=>{if(s.has("#Ordinal"))return s;let o=La(s);if(o.num===null)return s;let a=s.has("#TextValue")?"TextOrdinal":"Ordinal",l=sy(o,a);return s.replaceWith(l,{tags:!0}),s.tag("Ordinal"),s});return new e(i.document,i.pointer)}isEqual(r){return this.filter(i=>La(i).num===r)}greaterThan(r){return this.filter(i=>La(i).num>r)}lessThan(r){return this.filter(i=>La(i).num<r)}between(r,i){return this.filter(s=>{let o=La(s).num;return o>r&&o<i})}set(r){if(r===void 0)return this;typeof r=="string"&&(r=La(r).num);let s=this.map(o=>{let a=La(o);if(a.num=r,a.num===null)return o;let l=o.has("#Ordinal")?"Ordinal":"Cardinal";o.has("#TextValue")&&(l=o.has("#Ordinal")?"TextOrdinal":"TextCardinal");let c=sy(a,l);return a.hasComma&&l==="Cardinal"&&(c=Number(c).toLocaleString()),o=o.not("#Currency"),o.replaceWith(c,{tags:!0}),o});return new e(s.document,s.pointer)}add(r){if(!r)return this;typeof r=="string"&&(r=La(r).num);let s=this.map(o=>{let a=La(o);if(a.num===null)return o;a.num+=r;let l=o.has("#Ordinal")?"Ordinal":"Cardinal";a.isText&&(l=o.has("#Ordinal")?"TextOrdinal":"TextCardinal");let c=sy(a,l);return o.replaceWith(c,{tags:!0}),o});return new e(s.document,s.pointer)}subtract(r,i){return this.add(r*-1,i)}increment(r){return this.add(1,r)}decrement(r){return this.add(-1,r)}update(r){let i=new e(this.document,r);return i._cache=this._cache,i}}e.prototype.toNice=e.prototype.toLocaleString,e.prototype.isBetween=e.prototype.between,e.prototype.minus=e.prototype.subtract,e.prototype.plus=e.prototype.add,e.prototype.equals=e.prototype.isEqual,t.prototype.numbers=function(n){let r=lL(this);return r=r.getNth(n),new e(this.document,r.pointer)},t.prototype.percentages=function(n){let r=lL(this);return r=r.filter(i=>i.has("#Percent")||i.after("^percent")),r=r.getNth(n),new e(this.document,r.pointer)},t.prototype.money=function(n){let r=lL(this);return r=r.filter(i=>i.has("#Money")||i.after("^#Currency")),r=r.getNth(n),new e(this.document,r.pointer)},t.prototype.values=t.prototype.numbers},yUt=function(t){lUt(t),gUt(t)},bUt={api:yUt},vUt={people:!0,emails:!0,phoneNumbers:!0,places:!0},xUt=function(t={}){return t=Object.assign({},vUt,t),t.people!==!1&&this.people().replaceWith("ââââââââââ"),t.emails!==!1&&this.emails().replaceWith("ââââââââââ"),t.places!==!1&&this.places().replaceWith("ââââââââââ"),t.phoneNumbers!==!1&&this.phoneNumbers().replaceWith("âââââââ"),this},wUt={api:function(t){t.prototype.redact=xUt}},SUt=function(t){let e=t.clauses();return/\.\.$/.test(t.out("text"))||t.has("^#QuestionWord")&&t.has("@hasComma")?!1:!!(t.has("or not$")||t.has("^#QuestionWord")||t.has("^(do|does|did|is|was|can|could|will|would|may) #Noun")||t.has("^(have|must) you")||e.has("(do|does|is|was) #Noun+ #Adverb? (#Adjective|#Infinitive)$"))},kUt=function(t){const e=/\?/,{document:n}=t;return t.filter(r=>{let i=r.docs[0]||[],s=i[i.length-1];return!s||n[s.index[0]].length!==i.length?!1:e.test(s.post)?!0:SUt(r)})},CUt="(after|although|as|because|before|if|since|than|that|though|when|whenever|where|whereas|wherever|whether|while|why|unless|until|once)",_Ut="(that|which|whichever|who|whoever|whom|whose|whomever)",TUt=function(t){let e=t;return e.length===1||(e=e.if("#Verb"),e.length===1)||(e=e.ifNo(CUt),e=e.ifNo("^even (if|though)"),e=e.ifNo("^so that"),e=e.ifNo("^rather than"),e=e.ifNo("^provided that"),e.length===1)||(e=e.ifNo(_Ut),e.length===1)||(e=e.ifNo("(^de
1211spite|^during|^before|^through|^throughout)"),e.length===1)||(e=e.ifNo("^#Gerund"),e.length===1)?e:(e.length===0&&(e=t),e.eq(0))},EUt=function(t){let e=null;return t.has("#PastTense")?e="PastTense":t.has("#FutureTense")?e="FutureTense":t.has("#PresentTense")&&(e="PresentTense"),{tense:e}},oy=function(t){let e=t.clauses(),r=TUt(e).chunks(),i=t.none(),s=t.none(),o=t.none();return r.forEach((a,l)=>{if(l===0&&!a.has("<Verb>")){i=a;return}if(!s.found&&a.has("<Verb>")){s=a;return}s.found&&(o=o.concat(a))}),s.found&&!i.found&&(i=s.before("<Noun>+").first()),{subj:i,verb:s,pred:o,grammar:EUt(s)}},AUt=function(t){let e=t.verbs(),n=e.eq(0);if(n.has("#PastTense"))return t;if(n.toPastTense(),e.length>1){e=e.slice(1),e=e.filter(i=>!i.lookBehind("to$").found),e=e.if("#PresentTense"),e=e.notIf("#Gerund");let r=t.match("to #Verb+ #Conjunction #Verb").terms();e=e.not(r),e.found&&e.verbs().toPastTense()}return t},PUt=function(t){let e=t.verbs();return e.eq(0).toPresentTense(),e.length>1&&(e=e.slice(1),e=e.filter(r=>!r.lookBehind("to$").found),e=e.notIf("#Gerund"),e.found&&e.verbs().toPresentTense()),t},OUt=function(t){let e=t.verbs();if(e.eq(0).toFutureTense(),t=t.fullSentence(),e=t.verbs(),e.length>1){e=e.slice(1);let r=e.filter(i=>i.lookBehind("to$").found?!1:i.has("#Copula #Gerund")?!0:i.has("#Gerund")?!1:i.has("#Copula")?!0:!(i.has("#PresentTense")&&!i.has("#Infinitive")&&i.lookBefore("(he|she|it|that|which)$").found));r.found&&r.forEach(i=>{if(i.has("#Copula")){i.match("was").replaceWith("is"),i.match("is").replaceWith("will be");return}i.toInfinitive()})}return t},IUt=function(t){return t.verbs().first().toNegative().compute("chunks"),t},DUt=function(t){return t.verbs().first().toPositive().compute("chunks"),t},MUt=function(t){return t.verbs().toInfinitive(),t},NUt=function(t){class e extends t{constructor(i,s,o){super(i,s,o),this.viewType="Sentences"}json(i={}){return this.map(s=>{let o=s.toView().json(i)[0]||{},{subj:a,verb:l,pred:c,grammar:u}=oy(s);return o.sentence={subject:a.text("normal"),verb:l.text("normal"),predicate:c.text("normal"),grammar:u},o},[])}toPastTense(i){return this.getNth(i).map(s=>(oy(s),AUt(s)))}toPresentTense(i){return this.getNth(i).map(s=>(oy(s),PUt(s)))}toFutureTense(i){return this.getNth(i).map(s=>(oy(s),s=OUt(s),s))}toInfinitive(i){return this.getNth(i).map(s=>(oy(s),MUt(s)))}toNegative(i){return this.getNth(i).map(s=>(oy(s),IUt(s)))}toPositive(i){return this.getNth(i).map(s=>(oy(s),DUt(s)))}isQuestion(i){return this.questions(i)}isExclamation(i){return this.filter(o=>o.lastTerm().has("@hasExclamation")).getNth(i)}isStatement(i){return this.filter(o=>!o.isExclamation().found&&!o.isQuestion().found).getNth(i)}update(i){let s=new e(this.document,i);return s._cache=this._cache,s}}e.prototype.toPresent=e.prototype.toPresentTense,e.prototype.toPast=e.prototype.toPastTense,e.prototype.toFuture=e.prototype.toFutureTense;const n={sentences:function(r){let i=this.map(s=>s.fullSentence());return i=i.getNth(r),new e(this.document,i.pointer)},questions:function(r){return kUt(this).getNth(r)}};Object.assign(t.prototype,n)},RUt={api:NUt},LUt=function(t){let e=t.splitAfter("@hasComma");e=e.match("#Honorific+? #Person+");let n=e.match("#Possessive").notIf("(his|her)");return e=e.splitAfter(n),e},Dle=function(t){let e={};e.firstName=t.match("#FirstName+"),e.lastName=t.match("#LastName+"),e.honorific=t.match("#Honorific+");let n=e.lastName,r=e.firstName;return(!r.found||!n.found)&&!r.found&&!n.found&&t.has("^#Honorific .$")&&(e.lastName=t.match(".$")),e},ih="male",Il="female",Mle={mr:ih,mrs:Il,miss:Il,madam:Il,king:ih,queen:Il,duke:ih,duchess:Il,baron:ih,baroness:Il,count:ih,countess:Il,prince:ih,princess:Il,sire:ih,dame:Il,lady:Il,ayatullah:ih,congressman:ih,congresswoman:Il,"first lady":Il,mx:null},BUt=function(t,e){let{firstName:n,honorific:r}=t;if(n.has("#FemaleName"))return Il;if(n.has("#MaleName"))return ih;if(r.found){let s=r.text("normal");if(s=s.replace(/\./g,""),Mle.hasOwnProperty(s))return Mle[s];if(/^her /.test(s))return Il;if(/^his /.test(s))return ih}let i=e.after();if(!i.has("#Person")&&i.has("#Pronoun")){let s=i.match("#Pronoun");if(s.has("(they|their)"))return null;let o=s.has("(he|his)"),a=s.has("(she|her|hers)");if(o&&!a)return ih;if(a&&!o)return Il}return null},FUt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewT
1211ype="People"}parse(r){return this.getNth(r).map(Dle)}json(r){let i=typeof r=="object"?r:{};return this.getNth(r).map(s=>{let o=s.toView().json(i)[0],a=Dle(s);return o.person={firstName:a.firstName.text("normal"),lastName:a.lastName.text("normal"),honorific:a.honorific.text("normal"),presumed_gender:BUt(a,s)},o},[])}presumedMale(){return this.filter(r=>r.has("(#MaleName|mr|mister|sr|jr|king|pope|prince|sir)"))}presumedFemale(){return this.filter(r=>r.has("(#FemaleName|mrs|miss|queen|princess|madam)"))}update(r){let i=new e(this.document,r);return i._cache=this._cache,i}}t.prototype.people=function(n){let r=LUt(this);return r=r.getNth(n),new e(this.document,r.pointer)}},$Ut=function(t){let e=t.match("(#Place|#Address)+"),n=e.match("@hasComma");return n=n.filter(r=>r.has("(asia|africa|europe|america)$")?!0:!(r.has("(#City|#Region|#ProperNoun)$")&&r.after("^(#Country|#Region)").found)),e=e.splitAfter(n),e},jUt=function(t){t.prototype.places=function(e){let n=$Ut(this);return n=n.getNth(e),new t(this.document,n.pointer)}},zUt=function(t){t.prototype.organizations=function(e){return this.match("#Organization+").getNth(e)}},HUt=function(t){let e=this.clauses(),n=e.people();return n=n.concat(e.places()),n=n.concat(e.organizations()),n=n.not("(someone|man|woman|mother|brother|sister|father)"),n=n.sort("seq"),n=n.getNth(t),n},UUt=function(t){t.prototype.topics=HUt},VUt=function(t){FUt(t),jUt(t),zUt(t),UUt(t)},WUt={api:VUt},qUt=function(t){let e=t.match("<Verb>");return e=e.not("#Conjunction"),e=e.not("#Preposition"),e=e.splitAfter("@hasComma"),e=e.splitAfter("[(do|did|am|was|is|will)] (is|was)",0),e=e.splitBefore("(#Verb && !#Copula) [being] #Verb",0),e=e.splitBefore("#Verb [to be] #Verb",0),e=e.splitAfter("[help] #PresentTense",0),e=e.splitBefore("(#PresentTense|#PastTense) [#Copula]$",0),e=e.splitBefore("(#PresentTense|#PastTense) [will be]$",0),e=e.splitBefore("(#PresentTense|#PastTense) [(had|has)]",0),e=e.not("#Reflexive$"),e=e.not("#Adjective"),e=e.splitAfter("[#PastTense] #PastTense",0),e=e.splitAfter("[#PastTense] #Auxiliary+ #PastTense",0),e=e.splitAfter("#Copula [#Gerund] #PastTense",0),e=e.if("#Verb"),e.has("(#Verb && !#Auxiliary) #Adverb+? #Copula")&&(e=e.splitBefore("#Copula")),e},GUt=function(t){let e=t;return t.wordCount()>1&&(e=t.not("(#Negative|#Auxiliary|#Modal|#Adverb|#Prefix)")),e.length>1&&!e.has("#Phrasal #Particle")&&(e=e.last()),e=e.not("(want|wants|wanted) to"),e.found||(e=t.not("#Negative")),e},KUt=function(t,e){let n={pre:t.none(),post:t.none()};if(!t.has("#Adverb"))return n;let r=t.splitOn(e);return r.length===3?{pre:r.eq(0).adverbs(),post:r.eq(2).adverbs()}:r.eq(0).isDoc(e)?(n.post=r.eq(1).adverbs(),n):(n.pre=r.eq(0).adverbs(),n)},YUt=function(t,e){let n=t.splitBefore(e);if(n.length<=1)return t.none();let r=n.eq(0);return r=r.not("(#Adverb|#Negative|#Prefix)"),r},QUt=function(t){return t.match("#Negative")},XUt=function(t){if(!t.has("(#Particle|#PhrasalVerb)"))return{verb:t.none(),particle:t.none()};let e=t.match("#Particle$");return{verb:t.not(e),particle:e}},id=function(t){let e=t.clone();e.contractions().expand();const n=GUt(e);return{root:n,prefix:e.match("#Prefix"),adverbs:KUt(e,n),auxiliary:YUt(e,n),negative:QUt(e),phrasal:XUt(n)}},nd={tense:"PresentTense"},t6={conditional:!0},n0={tense:"FutureTense"},Uv={progressive:!0},Sa={tense:"PastTense"},Vv={complete:!0,progressive:!1},Jm={passive:!0},JUt={plural:!0},ZUt={plural:!1},eVt=function(t){let e={};return t.forEach(n=>{Object.assign(e,n)}),e},Nle={imperative:[["#Imperative",[]]],"want-infinitive":[["^(want|wants|wanted) to #Infinitive$",[nd]],["^wanted to #Infinitive$",[Sa]],["^will want to #Infinitive$",[n0]]],"gerund-phrase":[["^#PastTense #Gerund$",[Sa]],["^#PresentTense #Gerund$",[nd]],["^#Infinitive #Gerund$",[nd]],["^will #Infinitive #Gerund$",[n0]],["^have #PastTense #Gerund$",[Sa]],["^will have #PastTense #Gerund$",[Sa]]],"simple-present":[["^#PresentTense$",[nd]],["^#Infinitive$",[nd]]],"simple-past":[["^#PastTense$",[Sa]]],"simple-future":[["^will #Adverb? #Infinitive",[n0]]],"present-progressive":[["^(is|are|am) #Gerund$",[nd,Uv]]],"past-progressive":[["^(was|were) #Gerund$",[Sa,Uv]]],"future-progressive":[["^will be #Gerund$",[n0,Uv]]],"present-perfect":[["^(has|have) #PastTense$",[Sa,Vv]]],"past-perfect":[["^had #PastTense$",[Sa,Vv]],["^had #PastTense to #Infinitive",[Sa,Vv]]],"future-perfect":[["^will have #PastTense$",[n0,Vv]]],"present-perfect-progressive":[["^(has|have) been #Gerund$",[Sa,Uv]]],"past-perfect-progressive":[["^had been #Gerund$",[Sa,Uv]]],"future-perfect-progressive":[["^will have been #Gerund$",[n0,Uv]]],"passive-past":[["(got|were|was) #Passive",[Sa,Jm]],["^(was|were) being #Passive",[Sa,Jm]],["^(had|have) been #Passive",[Sa,Jm]]],"passive-present":[["^(is|are|am) #Passive",[nd,Jm]],["^(is|are|am) being #Passive",[nd,Jm]],["^has been #Passive",[nd,Jm]]],"passive-future":[["will have been #Passive",[n0,Jm,t6]],["will be being? #Passive",[n0,Jm,t6]]],"present-conditional":[["would be #PastTense",[nd,t6]]],"past-conditional":[["would have been #PastTense",[Sa,t6]]],"auxiliary-future":[["(is|are|am|was) going to (#Infinitive|#PresentTense)",[n0]]],"auxiliary-past":[["^did #Infinitive$",[Sa,ZUt]],["^used to #Infinitive$",[Sa,Vv]]],"auxiliary-present":[["^(does|do) #Infinitive$",[nd,Vv,JUt]]],"modal-past":[["^(could|must|should|shall) have #PastTense$",[Sa]]],"modal-infinitive":[["^#Modal #Infinitive$",[]]],infinitive:[["^#Infinitive$",[]]]};let oz=[];Object.keys(Nle).map(t=>
1211{Nle[t].forEach(e=>{oz.push({name:t,match:e[0],data:eVt(e[1])})})});const tVt=function(t,e){return t=t.clone(),e.adverbs.post&&e.adverbs.post.found&&t.remove(e.adverbs.post),e.adverbs.pre&&e.adverbs.pre.found&&t.remove(e.adverbs.pre),t.has("#Negative")&&(t=t.remove("#Negative")),t.has("#Prefix")&&(t=t.remove("#Prefix")),e.root.has("#PhrasalVerb #Particle")&&t.remove("#Particle$"),t=t.not("#Adverb"),t},nVt=function(t){return!!(t.has("#Infinitive")&&t.growLeft("to").has("^to #Infinitive"))},l0=function(t,e){let n={};t=tVt(t,e);for(let r=0;r<oz.length;r+=1){let i=oz[r];if(t.has(i.match)===!0){n.form=i.name,Object.assign(n,i.data);break}}return n.form||t.has("^#Verb$")&&(n.form="infinitive"),n.tense||(n.tense=e.root.has("#PastTense")?"PastTense":"PresentTense"),n.copula=e.root.has("#Copula"),n.isInfinitive=nVt(t),n},Rle=function(t){return t.length<=1?!1:(t.parse()[0]||{}).isSubordinate},rVt=function(t){let e=t.clauses();return e=e.filter((n,r)=>!(n.has("^(if|unless|while|but|for|per|at|by|that|which|who|from)")||r>0&&n.has("^#Verb . #Noun+$")||r>0&&n.has("^#Adverb"))),e.length===0?t:e},iVt=function(t){let e=t.before();e=rVt(e);let n=e.nouns(),r=n.last(),i=r.match("(i|he|she|we|you|they)");if(i.found)return i.nouns();let s=n.if("^(that|this|those)");return s.found||n.found===!1&&(s=e.match("^(that|this|those)"),s.found)?s:(r=n.last(),Rle(r)&&(n.remove(r),r=n.last()),Rle(r)&&(n.remove(r),r=n.last()),r)},sVt=function(t,e){return e.has("(are|were|does)")||t.has("(those|they|we)")?!0:t.found&&t.isPlural?t.isPlural().found:!1},np=function(t){let e=iVt(t);return{subject:e,plural:sVt(e,t)}},xs=t=>t,ak=(t,e)=>{let n=np(t),r=n.subject;return r.has("i")||r.has("we")?!0:n.plural},oVt=(t,e)=>{let{subject:n,plural:r}=np(t);return r||n.has("we")?"were":"was"},lk=function(t,e){if(t.has("were"))return"are";let{subject:n,plural:r}=np(t);return n.has("i")?"am":n.has("we")||r?"are":"is"},zG=function(t,e){let n=np(t),r=n.subject;return r.has("i")||r.has("we")||n.plural?"do":"does"},Bu=function(t){if(t.has("#Infinitive"))return"Infinitive";if(t.has("#Participle"))return"Participle";if(t.has("#PastTense"))return"PastTense";if(t.has("#Gerund"))return"Gerund";if(t.has("#PresentTense"))return"PresentTense"},az=function(t,e){const{toInfinitive:n}=t.methods.two.transform.verb;let r=e.root.text({keepPunct:!1});return r=n(r,t.model,Bu(t)),r&&t.replace(e.root,r),t},Lle=t=>t.has("will not")?t.replace("will not","have not"):t.remove("will"),Ble=function(t){if(!t||!t.isView)return[];const e={normal:!0,terms:!1,text:!1};return t.json(e).map(n=>n.normal)},Fle=function(t){return!t||!t.isView?"":t.text("normal")},aVt=function(t){const{toInfinitive:e}=t.methods.two.transform.verb;let n=t.text("normal");return e(n,t.model,Bu(t))},lVt=function(t){let e=id(t);t=t.clone().toView();const n=l0(t,e);return{root:e.root.text(),preAdverbs:Ble(e.adverbs.pre),postAdverbs:Ble(e.adverbs.post),auxiliary:Fle(e.auxiliary),negative:e.negative.found,prefix:Fle(e.prefix),infinitive:aVt(e.root),grammar:n}},cVt={tags:!0},uVt=function(t,e){const{toInfinitive:n}=t.methods.two.transform.verb,{root:r,auxiliary:i}=e;let s=i.terms().harden(),o=r.text("normal");if(o=n(o,t.model,Bu(r)),o&&t.replace(r,o,cVt).tag("Verb").firstTerm().tag("Infinitive"),s.found&&t.remove(s),e.negative.found){t.has("not")||t.prepend("not");let a=zG(t);t.prepend(a)}return t.fullSentence().compute(["freeze","lexicon","preTagger","postTagger","unfreeze","chunks"]),t},rh={tags:!0},d0={noAux:(t,e)=>(e.auxiliary.found&&(t=t.remove(e.auxiliary)),t),simple:(t,e)=>{const{conjugate:n,toInfinitive:r}=t.methods.two.transform.verb,i=e.root;if(i.has("#Modal"))return t;let s=i.text({keepPunct:!1});return s=r(s,t.model,Bu(i)),s=n(s,t.model).PastTense,s=s==="been"?"was":s,s==="was"&&(s=oVt(t)),s&&t.replace(i,s,rh),t},both:function(t,e){return e.negative.found?(t.replace("will","did"),t):(t=d0.simple(t,e),t=d0.noAux(t,e),t)},hasHad:t=>(t.replace("has","had",rh),t),hasParticiple:(t,e)=>{const{conjugate:n,toInfinitive:r}=t.methods.two.transform.verb,i=e.root;let s=i.text("normal");return s=r(s,t.model,Bu(i)),n(s,t.model).Participle}}
1211,$le={infinitive:d0.simple,"simple-present":d0.simple,"simple-past":xs,"simple-future":d0.both,"present-progressive":t=>(t.replace("are","were",rh),t.replace("(is|are|am)","was",rh),t),"past-progressive":xs,"future-progressive":(t,e)=>(t.match(e.root).insertBefore("was"),t.remove("(will|be)"),t),"present-perfect":d0.hasHad,"past-perfect":xs,"future-perfect":(t,e)=>(t.match(e.root).insertBefore("had"),t.has("will")&&(t=Lle(t)),t.remove("have"),t),"present-perfect-progressive":d0.hasHad,"past-perfect-progressive":xs,"future-perfect-progressive":t=>(t.remove("will"),t.replace("have","had",rh),t),"passive-past":t=>(t.replace("have","had",rh),t),"passive-present":t=>(t.replace("(is|are)","was",rh),t),"passive-future":(t,e)=>(e.auxiliary.has("will be")&&(t.match(e.root).insertBefore("had been"),t.remove("(will|be)")),e.auxiliary.has("will have been")&&(t.replace("have","had",rh),t.remove("will")),t),"present-conditional":t=>(t.replace("be","have been"),t),"past-conditional":xs,"auxiliary-future":t=>(t.replace("(is|are|am)","was",rh),t),"auxiliary-past":xs,"auxiliary-present":t=>(t.replace("(do|does)","did",rh),t),"modal-infinitive":(t,e)=>(t.has("can")?t.replace("can","could",rh):(d0.simple(t,e),t.match("#Modal").insertAfter("have").tag("Auxiliary")),t),"modal-past":xs,"want-infinitive":t=>(t.replace("(want|wants)","wanted",rh),t.remove("will"),t),"gerund-phrase":(t,e)=>(e.root=e.root.not("#Gerund$"),d0.simple(t,e),Lle(t),t)},hVt=function(t,e,n){return $le.hasOwnProperty(n)&&(t=$le[n](t,e),t.fullSentence().compute(["tagger","chunks"])),t},lz=function(t,e){let n=np(t),r=n.subject;return r.has("(i|we|you)")?"have":n.plural===!1||r.has("he")||r.has("she")||r.has("#Person")?"has":"have"},cz=(t,e)=>{const{conjugate:n,toInfinitive:r}=t.methods.two.transform.verb,{root:i,auxiliary:s}=e;if(i.has("#Modal"))return t;let o=i.text({keepPunct:!1});o=r(o,t.model,Bu(i));let a=n(o,t.model);if(o=a.Participle||a.PastTense,o){t=t.replace(i,o);let l=lz(t);t.prepend(l).match(l).tag("Auxiliary"),t.remove(s)}return t},jle={infinitive:cz,"simple-present":cz,"simple-future":(t,e)=>t.replace("will",lz(t)),"present-perfect":xs,"past-perfect":xs,"future-perfect":(t,e)=>t.replace("will have",lz(t)),"present-perfect-progressive":xs,"past-perfect-progressive":xs,"future-perfect-progressive":xs},dVt=function(t,e,n){return jle.hasOwnProperty(n)?(t=jle[n](t,e),t.fullSentence().compute(["tagger","chunks"]),t):(t=cz(t,e),t.fullSentence().compute(["tagger","chunks"]),t)},g0={tags:!0},Wv=(t,e)=>{const{conjugate:n,toInfinitive:r}=t.methods.two.transform.verb,i=e.root;let s=i.text("normal");return s=r(s,t.model,Bu(i)),ak(t)===!1&&(s=n(s,t.model).PresentTense),i.has("#Copula")&&(s=lk(t)),s&&(t=t.replace(i,s,g0),t.not("#Particle").tag("PresentTense")),t},zle=(t,e)=>{const{conjugate:n,toInfinitive:r}=t.methods.two.transform.verb,i=e.root;let s=i.text("normal");return s=r(s,t.model,Bu(i)),ak(t)===!1&&(s=n(s,t.model).Gerund),s&&(t=t.replace(i,s,g0),t.not("#Particle").tag("Gerund")),t},fVt=(t,e)=>{const{toInfinitive:n}=t.methods.two.transform.verb,r=e.root;let i=e.root.text("normal");return i=n(i,t.model,Bu(r)),i&&(t=t.replace(e.root,i,g0)),t},Hle={infinitive:Wv,"simple-present":(t,e)=>{const{conjugate:n}=t.methods.two.transform.verb;let{root:r}=e;if(r.has("#Infinitive")){let s=np(t).subject;if(ak(t)||s.has("i"))return t;let o=r.text("normal"),a=n(o,t.model).PresentTense;o!==a&&t.replace(r,a,g0)}else return Wv(t,e);return t},"simple-past":Wv,"simple-future":(t,e)=>{const{root:n,auxiliary:r}=e;if(r.has("will")&&n.has("be")){let i=lk(t);t.replace(n,i),t=t.remove("will"),t.replace("not "+i,i+" not")}else Wv(t,e),t=t.remove("will");return t},"present-progressive":xs,"past-progressive":(t,e)=>{let n=lk(t);return t.replace("(were|was)",n,g0)},"future-progressive":t=>(t.match("will").insertBefore("is"),t.remove("be"),t.remove("will")),"present-perfect":(t,e)=>(Wv(t,e),t=t.remove("(have|had|has)"),t),"past-perfect":(t,e)=>{let r=np(t).subject;return ak(t)||r.has("i")?(t=az(t,e),t.remove("had"),t):(t.replace("had","has",g0),t)},"future-perfect":t=>(t.match("will").insertBefore("has"),t.remove("have").remove("will")),"present-perfect-progressive":xs,"past-perfect-progressive":t=>t.replace("had","has",g0),"future-perfect-progressive":t=>(t.match("will").insertBefore("has"),t.remove("have").remove("will")),"passive-past":(t,e)=>{let n=lk(t);return t.has("(had|have|has)")&&t.has("been")?(t.replace("(had|have|has)",n,g0),t.replace("been","being"),t):t.replace("(got|was|were)",n)},"passive-present":xs,"passive-future":t=>(t.replace("will","is"),t.replace("be","being")),"present-conditional":xs,"past-conditional":t=>(t.replace("been","be"),t.remove("have")),"auxiliary-future":(t,e)=>(zle(t,e),t.remove("(going|to)"),t),"auxiliary-past":(t,e)=>{if(e.auxiliary.has("did")){let n=zG(t);return t.replace(e.auxiliary,n),t}return zle(t,e),t.replace(e.auxiliary,"is"),t},"auxiliary-present":xs,"modal-infinitive":xs,"modal-past":(t,e)=>(fVt(t,e),t.remove("have")),"gerund-phrase":(t,e)=>(e.root=e.root.not("#Gerund$"),Wv(t,e),t.remove("(will|have)")),"want-infinitive":(t,e)=>{let n="wants";return ak(t)&&(n="want"),t.replace("(want|wanted|wants)",n,g0),t.remove("will"),t}},pVt=function(t,e,n){return Hle.hasOwnProperty(n)&&(t=Hle[n](t,e),t.fullSentence().compute(["tagger","chunks"])),t},_Ee={tags:!0},n6=(t,e)=>{const{toInfinitive:n}=t.methods.two.transform.verb,{root:r,auxiliary:i}=e;if(r.has("#Modal"))return t;let s=r.text("normal");return s=n(s,t.model,Bu(r)),s&&(t=t.replace(r,s,_Ee),t.not("#Particle").tag("Verb")),t.prepend("will").match("will").tag("Auxiliary"),t.remove(i),t},Ule=(t,e)=>{const{conjugate:n,toInfinitive:r}=t.methods.two.transform.verb,{root:i,auxiliary:s}=e;let o=i.text("normal");return o=r(o,t.model,Bu(i)),o&&(o=n(o,t.model).Gerund,t.replace(i,o,_Ee),t.not("#Particle").tag("PresentTense")),t.remove(s),t.prepend("will be").match("will be").tag("Auxiliary"),t},Vle={infinitive:n6,"simple-present":n6,"simple-past":n6,"simple-future":xs,"present-progressive":Ule,"past-progressive":Ule,"future-progressive":xs,"present-perfect":t=>(t.match("(have|has)").replaceWith("will have"),t),"past-perfect":t=>t.replace("(had|has)","will have"),"future-perfect":xs,"present-perfect-progressive":t=>t.replace("has","will have"),"past-perfect-progressive":t=>t.replace("had","will have"),"future-perfect-progressive":xs,"passive-past":t=>t.has("got")?t.replace("got","will get"):t.has("(was|were)")?(t.replace("(was|were)","will be"),t.remove("being")):t.has("(have|has|had) been")?t.replace("(have|has|had) been","will be"):t,"passive-present":t=>(t.replace("being","will be"),t.remove("(is|are|am)"),t),"passive-future":xs,"present-conditional":t=>t.replace("would","will"),"past-conditional":t=>t.replace("would","will"),"auxiliary-future":xs,"auxiliary-past":t=>t.has("used")&&t.has("to")?(t.replace("used","will"),t.remove("to")):(t.replace("did","will"),t),"auxiliary-present":t=>t.replace("(do|does)","will"),"modal-infinitive":xs,"modal-past":xs,"gerund-phrase":(t,e)=>(e.root=e.root.not("#Gerund$"),n6(t,e),t.remove("(had|have)")),"want-infinitive":t=>(t.replace("(want|wants|wanted)","will want"),t)},mVt=function(t,e,n){return t.has("will")||t.has("going to")||Vle.hasOwnProperty(n)&&(t=Vle[n](t,e),t.fullSentence().compute(["tagger","chunks"])),t},gVt={tags:!0},yVt=function(t,e){const{toInfinitive:n,conjugate:r}=t.methods.two.transform.verb,{root:i,auxiliary:s}=e;if(t.has("#Gerund"))return t;let o=i.text("normal");o=n(o,t.model,Bu(i));let a=r(o,t.model).Gerund;if(a){let l=lk(t);t.replace(i,a,gVt),t.remove(s),t.prepend(l)}return t.replace("not is","is not"),t.replace("not are","are not"),t.fullSentence().compute(["tagger","chunks"]),t},Wle={tags:!0},cL=function(t,e){let n=zG(t);return t.prepend(n+" not"),t},FA=function(t){let e=t.match("be");
1211return e.found?(e.prepend("not"),t):(e=t.match("(is|was|am|are|will|were)"),e.found&&e.append("not"),t)},$A=t=>t.has("(is|was|am|are|will|were|be)"),qle={"simple-present":(t,e)=>$A(t)===!0?FA(t):(t=az(t,e),t=cL(t),t),"simple-past":(t,e)=>$A(t)===!0?FA(t):(t=az(t,e),t.prepend("did not"),t),imperative:t=>(t.prepend("do not"),t),infinitive:(t,e)=>$A(t)===!0?FA(t):cL(t),"passive-past":t=>{if(t.has("got"))return t.replace("got","get",Wle),t.prepend("did not"),t;let e=t.match("(was|were|had|have)");return e.found&&e.append("not"),t},"auxiliary-past":t=>{if(t.has("used"))return t.prepend("did not"),t;let e=t.match("(did|does|do)");return e.found&&e.append("not"),t},"want-infinitive":(t,e)=>(t=cL(t),t=t.replace("wants","want",Wle),t)},bVt=function(t,e,n){if(t.has("#Negative"))return t;if(qle.hasOwnProperty(n))return t=qle[n](t,e),t;let r=t.matchOne("be");return r.found?(r.prepend("not"),t):$A(t)===!0?FA(t):(r=t.matchOne("(will|had|have|has|did|does|do|#Modal)"),r.found&&r.append("not"),t)},vVt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewType="Verbs"}parse(r){return this.getNth(r).map(id)}json(r,i){return this.getNth(i).map(a=>{let l=a.toView().json(r)[0]||{};return l.verb=lVt(a),l},[])}subjects(r){return this.getNth(r).map(i=>(id(i),np(i).subject))}adverbs(r){return this.getNth(r).map(i=>i.match("#Adverb"))}isSingular(r){return this.getNth(r).filter(i=>np(i).plural!==!0)}isPlural(r){return this.getNth(r).filter(i=>np(i).plural===!0)}isImperative(r){return this.getNth(r).filter(i=>i.has("#Imperative"))}toInfinitive(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return uVt(i,s,o.form)})}toPresentTense(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return o.isInfinitive?i:pVt(i,s,o.form)})}toPastTense(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return o.isInfinitive?i:hVt(i,s,o.form)})}toFutureTense(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return o.isInfinitive?i:mVt(i,s,o.form)})}toGerund(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return o.isInfinitive?i:yVt(i,s,o.form)})}toPastParticiple(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return o.isInfinitive?i:dVt(i,s,o.form)})}conjugate(r){const{conjugate:i,toInfinitive:s}=this.world.methods.two.transform.verb;return this.getNth(r).map(o=>{let a=id(o),l=l0(o,a);l.form==="imperative"&&(l.form="simple-present");let c=a.root.text("normal");if(!a.root.has("#Infinitive")){let u=Bu(a.root);c=s(c,o.model,u)||c}return i(c,o.model)},[])}isNegative(){return this.if("#Negative")}isPositive(){return this.ifNo("#Negative")}toPositive(){let r=this.match("do not #Verb");return r.found&&r.remove("do not"),this.remove("#Negative")}toNegative(r){return this.getNth(r).map(i=>{let s=id(i),o=l0(i,s);return bVt(i,s,o.form)})}update(r){let i=new e(this.document,r);return i._cache=this._cache,i}}e.prototype.toPast=e.prototype.toPastTense,e.prototype.toPresent=e.prototype.toPresentTense,e.prototype.toFuture=e.prototype.toFutureTense,t.prototype.verbs=function(n){let r=qUt(this);return r=r.getNth(n),new e(this.document,r.pointer)}},xVt={api:vVt},uz=function(t,e){let n=e.match(t);if(n.found){let r=n.pronouns().refersTo();if(r.found)return r}return e.none()},Gle=function(t){if(!t.found)return t;let[e]=t.fullPointer[0];return e&&e>0?t.update([[e-1]]):t.none()},wVt=function(t,e){return e==="m"?t.filter(n=>!n.presumedFemale().found):e==="f"?t.filter(n=>!n.presumedMale().found):t},Kle=function(t,e){let n=t.people();return n=wVt(n,e),n.found||(n=t.nouns("#Actor"),n.found)?n.last():e==="f"?uz("(she|her|hers)",t):e==="m"?uz("(he|him|his)",t):t.none()},SVt=function(t){let e=t.nouns(),n=e.isPlural().notIf("#Pronoun");if(n.found)return n.last();let r=uz("(they|their|theirs)",t);return r.found?r:(n=e.match("(somebody|nobody|everybody|anybody|someone|noone|everyone|anyone)"),n.found?n.last():t.none())},kVt=function(t,e){if(e&&e.found){let n=t.docs[0][0];n.reference=e.ptrs[0]}},uL=function(t,e){let n=t.before(),r=e(n);return r.found||(n=Gle(t),r=e(n),r.found)||(n=Gle(n),r=e(n),r.found)?r:t.none()},CVt=function(t){t.pronouns().if("(he|him|his|she|her|hers|they|their|theirs|it|its)").forEach(n=>{let r=null;n.has("(he|him|his)")?r=uL(n,i=>Kle(i,"m")):n.has("(she|her|hers)")?r=uL(n,i=>Kle(i,"f")):n.has("(they|their|theirs)")&&(r=uL(n,SVt)),r&&r.found&&kVt(n,r)})},_Vt=function(t){class e extends t{constructor(r,i,s){super(r,i,s),this.viewT
1211ype="Pronouns"}hasReference(){return this.compute("coreference"),this.filter(r=>r.docs[0][0].reference)}refersTo(){return this.compute("coreference"),this.map(r=>{if(!r.found)return r.none();let i=r.docs[0][0];return i.reference?r.update([i.reference]):r.none()})}update(r){let i=new e(this.document,r);return i._cache=this._cache,i}}t.prototype.pronouns=function(n){let r=this.match("#Pronoun");return r=r.getNth(n),new e(r.document,r.pointer)}},TVt={compute:{coreference:CVt},api:_Vt};gr.plugin(Hzt);gr.plugin(Wzt);gr.plugin(oHt);gr.plugin(TVt);gr.plugin(_Ht);gr.plugin(PHt);gr.plugin(UHt);gr.plugin(bUt);gr.plugin(wUt);gr.plugin(RUt);gr.plugin(WUt);gr.plugin(xVt);const TEe=_.createContext({scrollProgress:0,incrementScrollProgress:()=>{},resetScrollProgress:()=>{},scrollBottomRef:{current:null},shouldAutoScroll:!1,setShouldAutoScroll:()=>{}}),HG=()=>_.useContext(TEe),EEe=({children:t})=>{const[e,n]=_.useState(0),[r,i]=_.useState(!1),s=_.useRef(null),o={scrollProgress:e,incrementScrollProgress(){n(a=>a+1)},resetScrollProgress(){n(0)},scrollBottomRef:s,shouldAutoScroll:r,setShouldAutoScroll:i};return x.jsx(TEe.Provider,{value:o,children:t})},AEe=_.createContext({cost:0,incrementCost:()=>{}}),PEe=()=>_.useContext(AEe),EVt=({children:t})=>{const[e,n]=Adt("cost",0),r=_.useCallback(s=>{n(e+s)},[e,n]),i={cost:e,incrementCost:r};return x.jsx(AEe.Provider,{value:i,children:t})},r6=()=>{};function UG(){const{settings:t}=Ks(),{incrementCost:e}=PEe(),{incrementScrollProgress:n,resetScrollProgress:r,setShouldAutoScroll:i}=HG(),[s,o]=_.useState(),a=_.useRef(),l=_.useRef(),c=_.useRef(),u=_.useRef(),[h,d]=_.useState(!1),p=_.useRef(h);_.useEffect(()=>{p.current=h},[h]);const{addToAudioQueue:g,audioQueueDisabledRef:y,enableAudioQueue:b}=b1(),{error:w}=Eo(),{isTextToSpeechSupported:S,textToSpeech:T}=x_(),D=_.useCallback(async(E,{model:O=t.model,functions:P,functionToCall:$}={})=>{const W=new Pu({model:O,text:""});o(W),i(!0),r();const H=25;let K=0,Z="";const oe=Tme(E,{model:O,functions:P,functionToCall:$,onPause(){d(!0)},onResume(){d(!1)},onData({currentText:te}){if(!p.current){try{Z=te.slice(K);const{sentences:re}=UV(Z);if(S&&t.textToSpeech.announceMessages&&!y?.current){if(re.length>1){const Y=re[0],z=T(Y,t.textToSpeech.voice);g(z),K+=Y.length}else if(gr(Z).terms().out("array").length>=H){const Y=gr(Z).clauses().out("array")[0],z=T(Y,t.textToSpeech.voice);g(z),K+=Y.length}}}catch(re){console.error(re),w({title:"Error generating audio",message:re.message})}o(new Pu({id:W.id,date:W.date,model:W.model,text:te})),n()}}});return a.current=oe.pause,l.current=oe.resume,c.current=oe.togglePause,u.current=oe.cancel,oe.promise.then(te=>(te.id=W.id,te.date=W.date,t.countTokens?Promise.all([te,Eme([...E,te])]):Promise.resolve([te,0]))).then(([te,re])=>{if(re){const Y=xXe(re,t.model);e(Y)}return te}).finally(()=>{if(o(void 0),d(!1),r(),i(!1),S&&t.textToSpeech.announceMessages&&!y?.current&&Z.length)try{const te=T(Z,t.textToSpeech.voice);g(te)}catch(te){console.error(te),w({title:"Error generating audio",message:te.message})}b()})},[t.model,t.textToSpeech.announceMessages,t.textToSpeech.voice,t.countTokens,i,r,n,S,y,T,g,w,e,b]);return{streamingMessage:s,callChatApi:D,paused:h,pause:a.current??r6,resume:l.current??r6,togglePause:c.current??r6,cancel:u.current??r6}}function AVt({isPaused:t,onTogglePause:e,onCancel:n}){return x.jsxs(cm,{children:[x.jsx(Br,{variant:"outline",size:"lg",isRound:!0,"aria-label":"Cancel",onClick:()=>n(),icon:x.jsx(xye,{})}),t?x.jsx(Br,{size:"lg",isRound:!0,"aria-label":"Resume",onClick:()=>e(),icon:x.jsx(wlt,{})},"resume"):x.jsx(Br,{size:"lg",isRound:!0,"aria-label":"Pause",onClick:()=>e(),icon:x.jsx(xlt,{})},"pause")]})}function PVt({isPaused:t,onTogglePause:e,onCancel:n}){return x.jsxs(cm,{children:[x.jsx(Yr,{variant:"outline",size:"xs",onClick:()=>n(),children:"Cancel"}),t?x.jsx(Yr,{size:"xs",onClick:()=>e(),children:"Resume"},"resume"):x.jsx(Yr,{size:"xs",onClick:()=>e(),children:"Pause"},"pause")]})}function OEe({message:t,chatId:e,isPaused:n,onTogglePause:r,onCancel:i}){const{scrollBottomRef:s}=HG(),o=gp();return x.jsxs(x.Fragment,{children:[x.jsx(IEe,{message:t,chatId:e,editing:!1,onEditingChange:()=>{},isLoading:!0,heading:t.model.prettyModel},t.id),x.jsx(Sn,{textAlign:"center",ref:s,children:o?x.jsx(AVt,{isPaused:n,onTogglePause:r,onCancel:i}):x.jsx(PVt,{isPaused:n,onTogglePause:r,onCancel:i})})]})}function VG({model:t,size:e}
1211){const{id:n,logoUrl:r,logoBg:i,prettyModel:s}=t;return n.includes("gpt-4")?x.jsx(kd,{size:e,bg:"#A96CF9",src:r,title:s}):n.includes("gpt-3.5-turbo")?x.jsx(kd,{size:e,bg:"#75AB9C",src:r,title:s}):x.jsx(kd,{size:e,bg:i,showBorder:!0,borderColor:"gray.100",_dark:{borderColor:"gray.600"},src:r,name:s,title:s})}function OVt({message:t,chatId:e,isDisabled:n}){const{error:r}=Eo(),{versions:i}=t;if(i?.length<=1)return null;const s=o=>{t.switchVersion(o),t.save(e).catch(a=>{console.warn("Unable to switch versions",a),r({title:"Error Updating Message to Version",message:a.message})})};return x.jsxs(YC,{placement:"bottom-end",children:[x.jsx(QC,{as:Br,size:"xs",variant:"ghost",isDisabled:n,icon:x.jsx(Sye,{title:`${i.length} Versions`}),children:"Versions"}),x.jsx(aO,{children:i.sort((o,a)=>a.date.getTime()-o.date.getTime()).map(o=>{const{id:a,model:l,date:c}=o;return x.jsx(mg,{value:a,onClick:()=>s(a),icon:x.jsx(VG,{model:l,size:"xs"}),children:x.jsxs(Ffe,{children:[x.jsx(Sn,{children:x.jsx("strong",{children:l.prettyModel})}),x.jsx(Sn,{children:tV(c)}),x.jsx(Sn,{children:t.currentVersion?.id===a?x.jsx("strong",{children:"â"}):" "})]})},a)})})]})}function IVt(t){const{streamingMessage:e,callChatApi:n,cancel:r,paused:i,togglePause:s}=UG(),[o,a]=_.useState(t.message),[l,c]=_.useState(!1),{settings:u}=Ks(),{error:h}=Eo();_.useEffect(()=>{a(t.message)},[t.message]);const d=_.useCallback(async p=>{if(u.currentProvider.apiKey)try{const g=await Vs.find(t.chatId);if(!g)throw new Error(`Unable to find chat with chatId=${t.chatId}`);const y=g.messages({includeAppMessages:!1,includeSystemMessages:!0}),b=y.findIndex(E=>E.id===o.id);if(!b)throw new Error(`Unable to find message within chat with id=${o.id}`);const w=y.slice(0,b),S=new Date;c(!0);const T=await n(w,{model:p}),D=new B4({date:S,model:T.model,text:T.text});o.addVersion(D),o.switchVersion(D.id),await o.save(g.id)}catch(g){h({title:"Retry Error",message:g.message}),console.warn("Unable to retry message",{model:p,err:g})}finally{c(!1)}},[t.chatId,u.currentProvider.apiKey,o,n,h]);return e?x.jsx(OEe,{message:e,chatId:t.chatId,isPaused:i,onTogglePause:s,onCancel:r}):_.createElement(_1,{...t,key:o.id,message:o,hidePreviews:l,isLoading:t.isLoading||l,avatar:x.jsx(VG,{model:o.model,size:"sm"}),heading:`${o.model.prettyModel} ${l?" (retrying...)":""}`,headingMenu:!o.readonly&&x.jsx(OVt,{message:o,chatId:t.chatId,isDisabled:l}),onRetryClick:l?void 0:d,onDeleteClick:l?void 0:t.onDeleteClick,disableFork:l,disableEdit:o.readonly??l})}const IEe=_.memo(IVt),DVt=`## Getting Started with ChatCraft 1212 1213Welcome to ChatCraft, your open-source web companion for coding with Large Language Models (LLMs). Designed with developers in mind, ChatCraft transforms the way you interact with GPT models, making it effortless to read, write, debug, and enhance your code. 1214 1215We think ChatCraft is the best platform for learning, experimenting, and getting creative with code. Here's a few of the reasons why we think you'll agree: 1216 1217| Feature | ChatCraft | ChatGPT | Copilot | 1218| ------------------------------------- |:---------:|:-------:|:-------:| 1219| Optimized for conversations about code | â | â | â | 1220| Work with models from multiple AI vendors | â |â | â | 1221| Previews for Mermaid/Nomnoml Diagrams, HTML | â | â | â | 1222| Edit Generated AI Replies | â | â | â | 1223| Use Custom System Prompts | â | â | â | 1224| Easy to retry with different AI models| â | â | â | 1225| Edit/Run Generated Code and Custom Functions | â | â | â | 1226| Open Source | â | â | â | 1227 1228[Learn more about ChatCraft on GitHub](https://github.com/tarasglek/chatcraft.org) 1229 1230## Quick Start Instructions 1231 1232You can begin using ChatCraft today by following these steps: 12331. Choose an **AI provider** below: we support both [OpenAI](https://openai.com/) and [OpenRouter](https://
1233openrouter.ai/). OpenAI supports various versions of ChatGPT (\`gpt-3.5-turbo\`) and GPT-4 models, while OpenRouter adds support for even more models from vendors like Anthropic, Google, and Meta. It's easy to switch providers later, or go back-and-forth. 12343. Enter an **API Key**. ChatCraft is a _"bring your own API Key"_ web app. No matter which provider you choose, ChatCraft needs an API Key to start making API calls on your behalf. API Keys are never shared, and get stored in your browser's local storage. 12354. Start chatting with AI! Type your question in the textbox at the bottom of the screen and click the **Ask** button to prompt a particular model (switch to a different model whenever you like). 12365. Copy, edit, delete, or retry any AI response with a different model until you get the results you need. 12376. Every chat is saved to a local, offline database in your browser, which you can search (top of UI) or navigate by opening the sidebar with the hamburger menu in the top-left. 1238 1239## Enter AI Provider's API Key 1240 1241Please choose your API provider and enter your API Key below to get started! 1242`;function MVt(t){const{settings:e,setSettings:n}=Ks(),[r,i]=_.useState(!1),[s,o]=_.useState(!1),[a,l]=_.useState(e.currentProvider),{providers:c}=v_();_.useEffect(()=>{l(e.currentProvider)},[e.currentProvider]);const u={...H3,...c},h=new Us({...t.message,text:DVt}),d=y=>{const b=y.target.value,w=R4(a.apiUrl,b,a.name,a.defaultModel);l(w),u[w.name]=w,n({...e,providers:{...e.providers,[w.name]:w}})},p=y=>{y.preventDefault(),typeof a.apiKey=="string"&&(a instanceof Og?n({...e,currentProvider:new Og}):(i(!0),a.validateApiKey(a.apiKey).then(b=>{b?(o(!1),n({...e,currentProvider:a})):o(!0)}).catch(b=>{console.warn("Error validating API Key",b),o(!0)}).finally(()=>i(!1))))},g=x.jsx(nO,{pb:6,children:u?x.jsx("form",{onSubmit:p,children:x.jsxs(Nu,{gap:4,children:[x.jsxs(as,{children:[x.jsx(Ho,{children:"Provider API URL"}),x.jsx(n8,{value:a.name,onChange:y=>{l(u[y.target.value]),o(!1)},children:Object.values(u).map(y=>x.jsxs("option",{value:y.name,children:[y.name," (",y.apiUrl,")"]},y.name))})]}),x.jsxs(as,{isInvalid:s,children:[x.jsxs(Ho,{children:[a.name," API Key "]}),x.jsxs(qt,{gap:4,align:"center",children:[x.jsx(tA,{flex:"1",size:"md",bg:"white",_dark:{bg:"gray.700"},isDisabled:a instanceof Og,value:a.apiKey||"",onChange:d}),x.jsx(Yr,{type:"submit",size:"sm",isLoading:r,children:"Save"})]}),a instanceof m1&&x.jsxs(Yr,{mt:"3",size:"sm",onClick:a.openRouterPkceRedirect,children:["Get API key from OpenRouter"," "]}),x.jsxs(md,{children:["Unable to verify API Key with ",a.name,"."]})]})]})}):x.jsx(Sn,{children:"Loading providers..."})});return x.jsx(_1,{...t,message:h,footer:g})}const NVt=_.memo(MVt);class jc{constructor(e,n,r){this.command=e,this.helpTitle=n,this.helpDescription=r}static parseCommand(e){const n=e.match(/^\/(\w+)(?:\s+(.*))?$/);if(!n)return null;const[,r,i]=n,s=i?i.split(/\s+/):[];return{command:r,args:s}}static isCommand(e){return/^\/(\w+)(?:\s+(.*))?$/.test(e)}}class Mc{static commands=new Map;static registerCommand(e){this.commands.set(e.command,e)}static getCommand(e){const n=jc.parseCommand(e);if(!n)return null;const r=this.commands.get(n.command);return r?(i,s)=>r.execute(i,s,n.args):null}static getCommands(){return Array.from(this.commands.values())}static isCommand(e){return jc.isCommand(e)}}function hL(t){return`## Commands 1243 1244 You can use "slash" commands to help accomplish various tasks. Any prompt that begins 1245 with a "/" (e.g., "/help") will be interpreted as a command that ChatCraft should run. 1246 Some commands accept arguments as well. 1247 1248 | Command | Description | 1249 |-----|------| 1250 ${t.map(e=>`| ${e.helpTitle} | ${e.helpDescription} |`).join(` 1251`)} 1252 `}function RVt(t){return`## ChatCraft.org Help 1253 1254 ChatCraft.org lets you chat with large language models (LLM) from various vendors and 1255 store your chat history locally in your browser. It has many many [features](https://github.com/tarasglek/chatcraft.org/blob/main/README.md) 1256 designed to make it easy for software developers to discuss their code with AI and each other. 1257 1258 ## How to Chat 1259 1260 You can ask questions, copy/paste code, get help with error messages, etc. 1261 1262 If you'd like to use your voice instead of typing, press and hold the microphone 1263 icon, ask your question, and release when done. Your voice will be transcribed by 1264 OpenAI and added to the chat as text. You can also cancel an audio recording by 1265 sliding the icon to the left and releasing. 1266 1267 ## Examples 1268 1269 Here are a few examples to get you started: 1270 1271 ### Example 1: Learning Technologies and Concepts 1272 1273 > I'm trying to learn React, and a I need a basic intro with some diagrams and links 1274 1275 You can ask for code examples, links to tutorials, diagrams and more. You can also 1276 try copy/pasting some text for a web site and asking for more explanation: 1277 1278 > I don't understand what this paragraph means, explain it in more simple terms: 1279 > 1280 > ...paste the text that you don't understand here... 1281 1282 ### Example 2: Writing Code with AI 1283 1284 > Give me a regular expression for working with license plates in the US. I'm working in python. 1285
1286 When you know what you want to do, but not **how** exactly, talking with AI can help 1287 you accomplish your task more quickly. 1288 1289 All code has bugs, even code written by AI. You'll often need to ask for clarification 1290 or edit the code yourself to get to your desired end goal. 1291 1292 ### Example 3: Solving Tasks 1293 1294 > I need to trim the first 5 seconds from a video. I'm on a Mac and want to use ffmpeg. 1295 1296 AI is great at helping find the syntax for common problems without wasting time searching 1297 through documentation. 1298 1299 ### Example 4: Understanding Code and Errors 1300 1301 > I'm writing the function below, and when I run it I get an error. What does it mean? 1302 > 1303 > \`\`\` 1304 > ...function... 1305 > \`\`\` 1306 > 1307 > \`\`\` 1308 > ...text of error message 1309 > \`\`\` 1310 1311 When you're stuck on a problem and need "another set of eyes," asking AI to read through 1312 your code and errors can help you find your bug. 1313 1314 ## Markdown support 1315 1316 If you're [comfortable with Markdown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax), you can 1317 use it anywhere in your prompt, and the LLMs will do the same. ChatCraft knows how to render Markdown. 1318 1319 For example, similar to GitHub, if you [wrap code in triple-backtick code blocks](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks), ChatCraft will 1320 properly display it for you. You can also specify the language to use (e.g., typescript): 1321 1322 \`\`\`typescript 1323 function greeting(name: string) { 1324 return "Hello " + name; 1325 } 1326 \`\`\` 1327 1328 You can also use [headings](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#headings), [lists](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#lists), [tables](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables#creating-a-table), [links](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#links), 1329 etc. to create more readable text. 1330 1331 ${t} 1332 1333 ## Functions 1334 1335 Some models support function calling (e.g, OpenAI models). ChatCraft provides a way 1336 to write, load, and run these functions using a special syntax. Functions are ES6 Modules 1337 written in TypeScript. 1338 1339 To create a function within ChatCraft, use the [/f/new](/f/new) URL, which will create 1340 a new function and load the editor. 1341 1342 You can also host your function module somewhere (e.g., [gist.github.com](https:/gist.github.com)) 1343 and have ChatCraft load it dynamically. 1344 1345 During your chat, you can ask a model to use your function by using the following syntax in your prompt: 1346 1347 - \`@fn:name\` - use a function called 'name' stored locally within ChatCraft (i.e., written in editor) 1348 - \`@fn-url:url\` - use a function hosted at the given 'url'. ChatCraft will attempt to load and parse it. 1349 1350 Functions mentioned in the chat's System Prompt are suggestions for the LLM, whereas a function 1351 you define in a message is an instruction to use the function. For example, the following 1352 prompt will cause the LLM to use the sum function: 1353 1354 > add 1334134, 1324134, and 135223452 @fn:sum 1355 1356 If you instead wanted to make the LLM aware of the sum function, and let it choose when to use it, 1357 customize the System Prompt to include it: 1358 1359 > - When you need to add numbers, use @fn:sum 1360 1361 ## Getting More Help 1362 1363 ChatCraft is still very young and evolving quickly. If you want to talk more about a problem, 1364 have an idea for a feature, or think you've found a bug, get in touch with us: 1365 1366 - [GitHub](https://github.com/tarasglek/chatcraft.org) 1367 - [Discord](https://discord.gg/PE2GWHnR) 1368 `}function LVt(t){const e=_.useMemo(()=>Mc.getCommands(),[]),n=t.onlyCommands&&t.queriedCommand&&jc.isCommand(t.queriedCommand),r=t.onlyCommands&&t.queriedCommand?.length&&!n?`**"${t.queriedCommand}" is not a valid command!** 1369 1370${hL(e)}`:t.onlyCommands?hL(e):RVt(hL(e)),i=new Us({...t.message,text:r});return x.jsx(_1,{...t,message:i})}const Yle=_.memo(LVt);class DEe extends jc{constructor(){super("commands","/commands","Shows a list of **supported commands** in ChatCraft")}static getQueriedCommand(e){return e.split(":")[2]}async execute(e,n,r){return e.addMessage(new Us({text:`app:commands:${r?.join(" ")}`}))}}function BVt(t){const{message:e}=t,n="ChatCraft",r=x.jsx(kd,{size:"sm",src:"/apple-touch-icon.png",title:"ChatCraft",showBorder:!0,borderColor:"gray.100",_dark:{borderColor:"gray.600"}});return Us.isInstructions(e)?x.jsx(NVt,{...t,avatar:r,heading:n,disableFork:!0,disableEdit:!0}):Us.isHelp(e)?x.jsx(Yle,{...t,avatar:r,heading:n,disableFork:!0,disableEdit:!0}):Us.isCommandsHelp(e)?x.jsx(Yle,{...t,onlyCommands:!0,queriedCommand:DEe.getQueriedCommand(e.text),avatar:r,heading:n,disableFork:!0,disableEdit:!0}):x.jsx(_1,{...t,avatar:r,heading:n,disableFork:!0,disableEdit:!0})}const FVt=_.memo(BVt);class rb{text;date;usage;constructor({text:e,date:n,usage:r}){this.text=e,this.date=n??new Date,this.usage=r??1}get title(){return this.text.split(` 1371`)[0].substring(0,42)}static async find(e){const n=await vr.starred.get(e);if(n)return new rb(n)}async save(){const e=await vr.starred.get(this.text);return e?e.text:vr.starred.put(this.toDB())}static async delete(e){if(await rb.find(e))return vr.starred.delete(e)}static exists(e){return rb.find(e).then(Boolean)}toDB(){return{text:this.text,date:this.date,usage:this.usage}}}function $Vt({onChange:t,promptMessage:e}){const{error:n}=Eo(),r=vg("get-starred-prompts",async()=>await vr.starred.orderBy("usage").reverse().toArray().then(l=>l.map(c=>c.text)).catch(l=>{console.error("Failed to query the starred table:",l)})||[J8()],[],[]),i=vg("check-starred-prompt",()=>rb.exists(e.text).catch(a=>(console.warn("Unable to query 'starred' table for PK",a),n({title:"Error while checking for presence of Starred System Prompt in db",message:a.message}),!1)),[e]),s=()=>{i?rb.delete(e.text).catch(a=>{console.warn("Unable to remove text from 'starred' table",a),n({title:"Error while removing Starred System Prompt from db",message:a.message})}):new rb({text:e.text}).save().catch(l=>{console.warn("Unable to save text to 'starred' table",l),n({title:"Error while saving Starred System Prompt to db",message:l.message})})},o=i?"Unstar System Prompt to forget it":"Star System Prompt to save for future use";return x.jsxs(qt,{align:"center",children:[x.jsx(Br,{size:"sm","aria-label":o,title:o,icon:i?x.jsx(glt,{}):x.jsx(_lt,{}),variant:"ghost",onClick:s}),r?.length!=0&&x.jsxs(YC,{placement:"bottom",isLazy:!0,children:[x.jsx(QC,{as:Br,size:"sm",variant:"ghost",icon:x.jsx(Sye,{title:`${r.length} Previous System Prompts`})}),x.jsx(aO,{zIndex:2,children:r.map((a,l,c)=>x.jsxs(Sn,{children:[x.jsx(mg,{value:a,onClick:()=>t(a),children:x.jsx(nO,{children:x.jsx(zr,{noOfLines:3,my:2,title:a,children:a})})}),l<c.length-1&&x.jsx(wk,{})]},a))})]})]})}function jVt(t){const{chatId:e,message:n}=t,r=Vat(n),{error:i}=Eo(),s=x.jsx(kd,{size:"sm",src:"/apple-touch-icon.png",title:"ChatCraft",showBorder:!0,borderColor:"gray.100",_dark:{borderColor:"gray.600"}}),o=a=>{n.text=a,n.save(e).catch(l=>{console.warn("Unable to update system prompt",l),i({title:"Error Switching System Prompt",message:l.message})})};return x.jsx(_1,{...t,avatar:s,heading:"System Prompt",headingMenu:x.jsx($Vt,{onChange:o,promptMessage:n}),summaryText:r})}const zVt=_.memo(jVt);function HVt(t){const{message:e,...n}=t,{model:r}=e;return x.jsx(_1,{...n,message:e,avatar:x.jsx(VG,{model:r,size:"sm"}),heading:r.prettyModel,disableFork:!0,disableEdit:!0})}const UVt=_.memo(HVt);function MEe(t){return yn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3"},child:[]},{tag:"path",attr:{d:"M9 11.2h5.7"},child:[]}]})(t)}function VVt(t){const{message:e,onPrompt:n,...r}=t,i=H1e(e.func.id,e.func.name),{settings:s,setSettings:o}=Ks(),a=x.jsx(kd,{size:"sm",icon:x.jsx(MEe,{fontSize:"1.3rem"}),bg:"orange.500",title:i}),l=n&&x.jsxs(qt,{justify:"space-between",w:"100%",children:[x.jsx(zr,{fontSize:"sm",children:"Send result for processing"}),x.jsxs(qt,{gap:2,align:"center",children:[x.jsx(tO,{isChecked:s.alwaysSendFunctionResult,onCh
1371ange:c=>o({...s,alwaysSendFunctionResult:c.target.checked}),size:"sm",children:"Always send"}),!s.alwaysSendFunctionResult&&x.jsx(Yr,{size:"xs",onClick:()=>n(),children:"Send"})]})]});return x.jsx(_1,{...r,message:e,avatar:a,footer:l,heading:`Result: ${i}`,disableFork:!0,disableEdit:!0})}const WVt=_.memo(VVt);function qVt({message:t,chatId:e,isLoading:n,hidePreviews:r,onResubmitClick:i,onDeleteBeforeClick:s,onDeleteClick:o,onDeleteAfterClick:a,onPrompt:l,hasMessagesAfter:c,disableFork:u,disableEdit:h}){const[d,p]=_.useState(!1),g=_.useCallback(y=>{p(y)},[p]);if(t instanceof Pu)return x.jsx(IEe,{message:t,chatId:e,editing:d,onEditingChange:g,isLoading:n,hidePreviews:r,onPrompt:l,onDeleteBeforeClick:s,onDeleteClick:o,onDeleteAfterClick:a,hasMessagesAfter:c,disableFork:u,disableEdit:t.readonly??h});if(t instanceof Go){const{user:y}=t;return x.jsx(NBt,{message:t,chatId:e,editing:d,onEditingChange:g,name:y?.name||"User",avatarUrl:y?.avatarUrl,isLoading:n,hidePreviews:r,onPrompt:l,onResubmitClick:i,onDeleteBeforeClick:s,onDeleteClick:o,onDeleteAfterClick:a,hasMessagesAfter:c,disableFork:u,disableEdit:t.readonly??h})}return t instanceof Us?x.jsx(FVt,{message:t,chatId:e,editing:d,onEditingChange:g,isLoading:n,hidePreviews:r,onPrompt:l,onDeleteBeforeClick:s,onDeleteClick:o,onDeleteAfterClick:a,hasMessagesAfter:c,disableFork:!0,disableEdit:t.readonly??h}):t instanceof Fc?x.jsx(zVt,{message:t,chatId:e,editing:d,onEditingChange:g,isLoading:n,hidePreviews:r,onPrompt:l,onDeleteClick:o,onDeleteAfterClick:a,hasMessagesAfter:c,disableEdit:t.readonly??h}):t instanceof L0?x.jsx(UVt,{message:t,chatId:e,editing:!1,onEditingChange:()=>{},isLoading:n,hidePreviews:r,onPrompt:l,onDeleteBeforeClick:s,onDeleteClick:o,onDeleteAfterClick:a,hasMessagesAfter:c}):t instanceof B0?x.jsx(WVt,{message:t,chatId:e,editing:!1,onEditingChange:()=>{},isLoading:n,hidePreviews:r,onPrompt:l,onDeleteBeforeClick:s,onDeleteClick:o,onDeleteAfterClick:a,hasMessagesAfter:c}):(console.warn(`Message type ${t.type} not yet supported`),null)}const hz=_.memo(qVt);function GVt({chat:t,newMessage:e,isLoading:n,onRemoveMessage:r,isPaused:i,onTogglePause:s,onCancel:o,onPrompt:a}){const{colorMode:l}=lm(),{settings:c}=Ks(),{error:u}=Eo(),h=t.messages(),d=t.id;_.useLayoutEffect(()=>{vCe.initialize({startOnLoad:!1,theme:l==="dark"?"dark":"default",securityLevel:"loose"})},[l]);const p=_.useCallback(r,[r]),g=_.useCallback(async(w,S)=>{try{S==="before"?await t.removeMessagesBefore(w):await t.removeMessagesAfter(w)}catch(T){u({title:"Error Deleting Messages",message:T.message})}},[t,u]),y=_.useMemo(()=>{if(!(h.length===1&&h[0]instanceof Fc&&!c.currentProvider.apiKey))return h.map((w,S,T)=>{const D=S>=2,E=S<T.length-1;return x.jsx(hz,{message:w,chatId:d,isLoading:n,onResubmitClick:async O=>{await g(w.id,"after"),a(O)},onDeleteBeforeClick:D?()=>g(w.id,"before"):void 0,onDeleteClick:()=>p(w),onDeleteAfterClick:E?()=>g(w.id,"after"):void 0,onPrompt:a,hasMessagesAfter:E},w.id)})},[h,c.currentProvider.apiKey,d,a,n,p,g]),b=_.useMemo(()=>{if(!c.currentProvider.apiKey){const w=Us.instructions();return x.jsx(hz,{message:w,chatId:d,isLoading:n,onPrompt:a,disableFork:!0,disableEdit:!0})}},[c.currentProvider.apiKey,d,a,n]);return x.jsx(Sn,{minHeight:"100%",scrollBehavior:"smooth",children:x.jsxs(x.Fragment,{children:[y,b,e&&x.jsx(OEe,{message:e,chatId:d,isPaused:i,onTogglePause:s,onCancel:o})]})})}function KVt({chat:t,user:e}){const{settings:n}=Ks(),[r,i]=_.useState(""),[s,o]=_.useState(),[a,l]=_.useState(t.summary),[c,u]=_.useState(!1),[h,d]=_.useState(!1),[,p]=JV(),{callChatApi:g}=UG(),y=!!navigator.share,b=async()=>{d(!0);try{const{url:E}=await t.share(e,a);if(!E)throw new Error("Unable to create Share URL");i(E)}catch(E){console.error(E),o(E.message)}finally{d(!1)}},w=_.useCallback(async E=>{const O=new Fc({text:"You are an expert at writing short summaries."}),P=new Go({text:'Summarize this chat in 25 words or fewer. Respond only with the summary text and focus on the main content, not mentioning the process or participants. For example: "Using a React context and hook to keep track of user state after login."'}),$=E.messages({includeAppMessages:!1,includeSystemMessages:!1});try{const{text:W}=await g([O,...$,P]);return W.trim()}catch(W){throw console.error("Error summarizing chat",W),W}},[g]),S=_.useCallback(async()=>
1371{if(n.currentProvider.apiKey)try{u(!0);const E=await w(t);l(E)}catch(E){console.error(E),o(E.message)}finally{u(!1)}},[n.currentProvider.apiKey,t,u,w]),T=_.useCallback(()=>{p(r)},[r,p]),D=async E=>{await navigator.share({title:"ChatCraft Chat",text:t.summary,url:E}).catch(console.error)};return x.jsxs(Nu,{gap:2,children:[x.jsxs(as,{children:[x.jsx(Ho,{children:"Summary"}),x.jsx(JC,{value:a,onChange:E=>l(E.target.value),children:t.summary})]}),x.jsxs(as,{children:[x.jsxs(Ho,{children:["Enter your own ",x.jsx("strong",{children:"Summary"}),", or click ",x.jsx("strong",{children:"Summarize"})," to generate one automatically."]}),x.jsxs(cm,{w:"100%",justifyContent:"space-between",children:[x.jsx(Yr,{variant:"outline",onClick:()=>S(),isDisabled:!n.currentProvider.apiKey,isLoading:c,loadingText:"Summarizing...",children:"Summarize"}),x.jsx(Yr,{onClick:()=>b(),isLoading:h,loadingText:"Sharing...",children:"Share Chat"})]}),s&&x.jsx(md,{children:s})]}),r&&x.jsx(x.Fragment,{children:x.jsxs(as,{children:[x.jsx(Ho,{children:"Public Share URL"}),x.jsxs(qt,{gap:1,children:[x.jsx(fl,{autoFocus:!1,type:"url",defaultValue:r,readOnly:!0,flex:1})," ",y&&x.jsx(Br,{icon:x.jsx(WV,{}),"aria-label":"Share URL",variant:"ghost",onClick:()=>D(r)}),x.jsx(Br,{icon:x.jsx(y_,{}),"aria-label":"Copy URL",variant:"ghost",onClick:()=>T()})]}),x.jsx(pc,{children:"Anyone can access the chat using this URL."})]})})]})}function YVt({onLoginClick:t}){return x.jsx(Nu,{gap:2,children:x.jsxs(as,{children:[x.jsx(Ho,{children:"Create Public URL"}),x.jsxs(Yr,{onClick:()=>t(),children:[x.jsx(wye,{})," ",x.jsx(zr,{ml:2,children:"Sign in with GitHub"})]}),x.jsx(pc,{children:"To avoid abuse and spam, we ask that users authenticate with an existing GitHub account before creating public URLs."})]})})}function NEe({chat:t,isOpen:e,onClose:n}){const{user:r,login:i}=Lw();return x.jsxs(lb,{isOpen:e,onClose:n,size:"lg",children:[x.jsx(hb,{}),x.jsxs(Ix,{children:[x.jsx(Dx,{children:"Sharing"}),x.jsx(ub,{}),x.jsx(cb,{children:r?x.jsx(KVt,{chat:t,user:r}):x.jsx(YVt,{onLoginClick:()=>i(t.id)})}),x.jsx(eU,{})]})]})}const REe="image/*,text/*,.pdf,application/pdf,*.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,.json,application/json,.jsonl,application/x-jsonlines,application/jsonl,application/markdown";function dL(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>{const s=i.target?.result;typeof s=="string"?e(s):n(new Error(`Unable to read text from file ${t.name}`))},r.readAsText(t,"utf-8")})}function QVt(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>{const s=i.target?.result;s instanceof ArrayBuffer?e(s):n(new Error(`Unable to read binary file ${t.name}`))},r.readAsArrayBuffer(t)})}async function XVt(t){try{const e=await ge(()=>import("./index-BkrRqNIr.js").then(i=>i.i),[]),n=await QVt(t);return(await e.extractRawText({arrayBuffer:n})).value}catch(e){throw console.error("Error reading DOCX",e),new Error("Unable to parse DOCX file: "+e.message)}}const JVt={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",cs:"csharp",go:"go",rs:"rust",php:"php",swift:"swift",kt:"kotlin",scala:"scala",html:"html",htm:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",yaml:"yaml",yml:"yaml",json:"json",jsonl:"json",xml:"xml",r:"r",csv:"csv"},ZVt={"text/typescript":"typescript","application/typescript":"typescript","text/javascript":"javascript","application/javascript":"javascript","text/python":"python","text/x-python":"python","text/x-ruby":"ruby","text/java":"java","text/x-c":"c","text/x-c++":"cpp","text/x-csharp":"csharp","text/x-go":"go","text/x-rust":"rust","text/x-php":"php","text/x-swift":"swift","text/x-kotlin":"kotlin","text/html":"html","text/css":"css","text/x-sql":"sql","application/json":"json","text/xml":"xml","application/xml":"xml","application/x-jsonlines":"json","text/x-jsonlines":"json"};function eWt(t,e){const n=t.split(".").pop()?.toLowerCase()||"";return JVt[n]||ZVt[e]}function Qle(t,e,n){const r=eWt(t,e);return cd(n,r)}function x3(t){if(typeof t=="string"){if(!t.trim().length)throw new Error("Empty contents",{cause:{code:"EmptyFile"}})}else if(!t.data.content.trim().length)throw new Error("Empty contents",{cause:{code:"EmptyFile"}})}async function tWt(t,e){if(t.type.startsWith("image/"))return await cXe(t,{compressionFactor:e.compressionFactor,maxSizeMB:e.maxCompressedFileSizeMB,maxWidthOrHeight:e.maxImageDimension});if(t.type==="application/pdf"){const n=await My.pdfToMarkdown(t);return x3(n),n}if(t.name.endsWith(".jsonl")){const n=await dL(t);return x3(n),Qle(t.name,"application/x-jsonlines",n)}if(t.type==="application/markdown"||t.type==="text/markdown"){const n=await dL(t);return x3(n),n}if(t.type.startsWith("text/")||t.type==="application/json"){const n=await dL(t);return x3(n),Qle(t.name,t.type,n)}if(t.type==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"){const n=await XVt(t);return x3(n),n}throw new Error(`Unsupported file type: ${t.name} (${t.type})`)}function LEe({chat:t,onImageImport:e}){const{info:n,error:r,progress:i,closeToast:s}=Eo(),o=Rc(),a=_.useCallback(async(c,u)=>{const h=c.type.startsWith("image/"),d=c.type==="application/pdf",p=c.type==="application/vnd.openxmlformats-officedocument.wordprocessingml.document",g=d?u.data.content:u,y=xme(c.name,t.files());y!==c.name&&(c=new File([c],y,{type:c.type,lastModified:c.lastModified}));const b=await dd.findOrCreate(c,{text:g});if(await t.addFile(b),!b.hasChunks())try{await b.generateChunks(),console.log(`Generated ${b.chunks?.length||0} chunks for file: ${b.name}`)}catch(w){throw new Error(`Error generating chunks: ${w}, continue without chunking...`)}h?await new Promise(w=>{e(g),setTimeout(w,0)}):(d||p||!h)&&await t.addMessage(new Go({text:`${g} 1372`}))},[t,e]);return _.useCallback(async c=>{if(!c?.length)return;let u=0;const h=i({title:`Processing file${c.length>
13721?"s":""}`,progressPercentage:0});try{for(const d of c)try{const p=await tWt(d,o);await a(d,p)}catch(p){p.cause?.code==="EmptyFile"?n({title:"Warning: empty file",message:`The file ${d.name} was empty after processing, skipping import.`}):p.cause?.code==="FreeTierExceeded"?r({title:"Jina Reader API Free Tier Limit Exceeded",message:p.message}):r({title:"Unable to import file",message:p.message||"Unknown error occurred while importing file"})}finally{i({id:h,title:`Processing file${c.length>1?"s":""}`,progressPercentage:Math.floor(++u*100/c.length),updateOnly:!0})}}finally{s(h)}},[s,n,r,i,a,o])}function nWt({chat:t}){const{isOpen:e,onOpen:n,onClose:r}=Id();return x.jsxs(x.Fragment,{children:[x.jsx(os,{icon:x.jsx(WV,{}),onClick:n,children:"Share"}),x.jsx(NEe,{chat:t,isOpen:e,onClose:r})]})}function t9({chat:t,forkUrl:e,variant:n="outline",onAttachFiles:r,iconOnly:i=!1,isDisabled:s=!1}){const o=SKe(),{info:a,error:l}=Eo(),[,c]=JV(),u=_.useRef(null),{settings:h}=Ks(),d=_.useCallback(async E=>{!r||!E.target.files?.length||await r(Array.from(E.target.files)).catch(O=>l({title:"Unable to Attach Files",message:O.message}))},[r,l]),p=_.useCallback(()=>{u.current?.click()},[u]),g=_.useCallback(()=>{t&&o.submit({},{method:"post",action:`/c/${t.id}/delete`})},[t,o]),y=_.useCallback(()=>{if(!t)return;const E=t.toMarkdown();c(E),a({title:"Chat copied to clipboard as Markdown"})},[t,c,a]),b=_.useCallback(()=>{if(!t)return;const E=h.model.name,O=t.toOpenAiFormat(E);c(JSON.stringify(O,null,2)),a({title:"Chat copied to clipboard as JSON"})},[t,h,c,a]),w=_.useCallback(()=>{if(!t)return;const E=h.model.name,O=t.toOpenAiFormat(E);c(f8(O)),a({title:"Chat copied to clipboard as YAML"})},[t,h,c,a]),S=_.useCallback(()=>{if(!t)return;const E=t.toMarkdown();xd(E,"message.md","text/markdown"),a({title:"Exported",message:"Chat was exported as a Markdown file"})},[a,t]),T=_.useCallback(()=>{if(!t)return;const E=h.model.name,O=t.toOpenAiFormat(E);xd(JSON.stringify(O,null,2),"chat.json","application/json"),a({title:"Exported",message:"Chat was exported as an OpenAI formatted JSON file"})},[a,h,t]),D=_.useCallback(()=>{if(!t)return;const E=h.model.name,O=t.toOpenAiFormat(E);xd(f8(O),"chat.yaml","application/yaml"),a({title:"Exported",message:"Chat was exported as an OpenAI formatted YAML file"})},[a,h,t]);return x.jsxs(LI,{isDisabled:s,menuButton:i?x.jsx(Br,{"aria-label":"Options menu",isDisabled:s,size:"md",fontSize:"1.25rem",variant:"outline",icon:x.jsx(gF,{}),isRound:!0}):x.jsx(Yr,{isDisabled:s,size:"sm",variant:n,leftIcon:x.jsx(gF,{}),children:"Options"}),children:[x.jsx(DA,{to:"/new",children:"Clear"}),x.jsx(DA,{to:"/new",target:"_blank",children:"New Window"}),!!e&&x.jsx(DA,{to:e,target:"_blank",children:"Duplicate..."}),x.jsx(H0,{}),x.jsxs(Q4,{label:"Copy",icon:x.jsx(y_,{}),children:[x.jsx(os,{isDisabled:!t,onClick:()=>y(),children:"Copy as Markdown"}),x.jsx(os,{isDisabled:!t,onClick:()=>b(),children:"Copy as JSON"}),x.jsx(os,{isDisabled:!t,onClick:()=>w(),children:"Copy as YAML"})]}),x.jsxs(Q4,{label:"Export",icon:x.jsx(VV,{}),children:[x.jsx(os,{isDisabled:!t,onClick:S,children:"Export as Markdown"}),x.jsx(os,{isDisabled:!t,onClick:T,children:"Export as JSON"}),x.jsx(os,{isDisabled:!t,onClick:D,children:"Export as YAML"})]}),!!t&&x.jsx(nWt,{chat:t}),x.jsx(H0,{}),!!r&&x.jsxs(x.Fragment,{children:[x.jsx(fl,{multiple:!0,type:"file",ref:u,hidden:!0,onChange:d,accept:REe}),x.jsx(os,{icon:x.jsx(plt,{}),onClick:p,children:"Attach Files..."}),x.jsx(H0,{})]}),!t?.readonly&&x.jsx(os,{color:"red.400",icon:x.jsx(ix,{}),isDisabled:!t,onClick:()=>g(),children:"Delete Chat"})]})}const WG=_.forwardRef((t,e)=>x.jsx(JC,{minH:"unset",overflow:"hidden",w:"100%",maxH:"36vh",resize:"none",ref:e,minRows:1,as:xCe,...t}));WG.displayName="AutoResizingTextarea";const dz=["audio/webm","audio/mp4"];async function rWt(){try{return await navigator.mediaDevices.getUserMedia({audio:!0,video:!1})}catch(t){throw t.name==="NotAllowedError"?new Error("SpeechRecognition error: audio recording permission denied."):t}}function iWt(t){let e=dz[0];for(const n of dz){e=n;try{return{mediaRecorder:new MediaRecorder(t,{mimeType:e}),mimeType:e}}catch(r){if(r.name==="NotSupportedError")continue;throw r}}throw new Error("SpeechRecognition error: no supported mime-type found")}class sWt{_recordingPromise=null;_mediaRecorder=null;_mediaStream=null;_mimeType=null;_sttModel;_openai;
1372constructor(e,n){this._sttModel=e,this._openai=n}async init(){const e=await rWt(),{mediaRecorder:n,mimeType:r}=iWt(e);this._mediaRecorder=n,this._mediaStream=e,this._mimeType=r}get isInitialized(){return!!this._mediaRecorder&&!!this._mediaStream&&!!this._mimeType}get isRecording(){return this.isInitialized&&this._recordingPromise!==null}async start(){if(!this.isInitialized)throw new Error("SpeechRecognition error: start() called before init()");if(this.isRecording)throw new Error("SpeechRecognition error: start() called while already recording");if(this._recordingPromise=new Promise((e,n)=>{const r=[];if(!this._mediaRecorder){n(new Error(`SpeechRecognition error: no supported mimeType found in: ${dz}`));return}this._mediaRecorder.ondataavailable=({data:i})=>{if(!this.isRecording){this._cleanup();return}i.size>0&&r.push(i)},this._mediaRecorder.onstop=()=>{if(!this.isRecording){this._cleanup();return}const i=this._mimeType;if(!i)throw new Error("SpeechRecognition error: start() called with no mime type available");const s=i.split(";")[0].replace("/","."),o=new File(r,s,{type:i});e(o)}}),!this._mediaRecorder)throw new Error("SpeechRecognition error: start() called with no MediaRecorder available");this._mediaRecorder.start(1e3)}_stopRecording(){const e=this._mediaRecorder;e&&e.state!=="inactive"&&e.stop()}async transcribe(e){return(await new Mr.Audio.Transcriptions(this._openai).create({file:e,model:this._sttModel})).text}async stop(){if(!this._recordingPromise)throw new Error("SpeechRecognition error: stop() called while no recording in progress");this._stopRecording();const e=await this._recordingPromise;return this._recordingPromise=null,this._cleanup(),e.size>0?this.transcribe(e):null}cancel(){this._cleanup()}_cleanup(){this._stopRecording(),this._mediaRecorder=null,this._mediaStream?.getTracks().forEach(e=>e.stop()),this._mediaStream=null,this._mimeType=null}}function BEe({onRecording:t,onTranscribing:e,onCancel:n,onTranscriptionAvailable:r,isDisabled:i=!1}){const s=gp(),[o,a]=_.useState(!1),l=_.useRef(null),c=_.useRef(null),{error:u}=Eo(),{clearAudioQueue:h}=b1(),{getSpeechToTextClient:d,isSpeechToTextSupported:p,allProvidersWithModels:g}=pm(),y=async()=>{h();const D=await d();if(!D)throw new Error("No configured provider supports STT");const E=g.find(P=>P.apiUrl===D.baseURL),O=E?.models.find(P=>v8(P.name))?.name;if(!O)throw new Error(`Can't find "${O}" in "${E?.name}"'s models list`);c.current=new sWt(O,D);try{await c.current.init()}catch{u({title:"Audio Transcription",message:"Audio transcription requires microphone access. If your browser supports it, please allow this page to access to your microphone in order to record and transcribe speech."})}if(!c.current?.isInitialized){c.current=null;return}try{await c.current.start(),a(!0),t()}catch(P){console.error(P),u({title:"Speech Recognition Error",message:`Unable to start audio recording: ${P.message}`}),c.current=null,a(!1),n()}},b=async()=>{a(!1);const D=c.current;if(!D?.isRecording){c.current=null;return}try{e();const E=await D.stop();E&&r(E)}catch(E){console.error(E),u({title:"Error Transcribing Speech",message:`There was an error while transcribing: ${E.message}`})}finally{c.current=null}},w=()=>{c.current?.cancel(),c.current=null,a(!1),n()},S=()=>{o?b():y()},T=_.useMemo(()=>p?o?"Finish Recording":"Start Recording":"No configured provider supports speech to text conversion!",[o,p]);return x.jsx(Cd,{label:T,placement:"top",children:x.jsx(Br,{isRound:!0,isDisabled:!p||i,icon:x.jsx(_ye,{}),variant:o?"solid":s?"outline":"ghost",colorScheme:o?"red":"blue","aria-label":"Record speech",size:"md",transition:"all 150ms ease-in-out",fontSize:"1.25rem",ref:l,onClick:S,onBlur:()=>w()})})}const IP=Sze({config:{initialColorMode:"system",useSystemColorMode:!1},styles:{global:{html:{height:"100%"},body:{height:"100%"},main:{height:"100%",overflow:"hidden"}}}},kze({colorScheme:"blue"})),i6={sm:{width:5,height:5},md:{width:6,height:6},lg:{width:7,height:7}},oWt=({size:t,variant:e="bouncingBall",playAnimation:n=!0})=>{const r=_.useMemo(()=>({sm:8,md:10,lg:12}),[]),i=_.useMemo(()=>({bouncingBall:{y:["0rem","-0.25rem","0rem"]},dancingBars:{scaleY:[4,2,2.5,2.25,2.5,2,3,2.5,2,3,2,4,2]}}),[]),s={bouncingBall:{width:i6[t].width,height:i6[t].height,backgroundColor:ws("white","black"),borderRadius:"50%"},dancingBars:{width:i6[t].width,height:i6[t].height,backgroundColor:ws("white","black"),borderRadius:"10% / 50%"}},o=_.useMemo(()=>({bouncingBall:{duration:.3,ease:"easeInOut",repeatDelay:.5,repeat:1/0},dancingBars:{duration:1.5,ease:"easeInOut",repeat:1/0}}),[]);return x.jsx(qt,{width:r[t],height:r[t],backgroundColor:ws("blue.500","blue.200"),_hover:{backgroundColor:ws("blue.600","blue.300")},padding:"0.25rem",border:"none",justifyContent:"space-around",alignItems:"center",children:[0,.1,.2].map(a=>x.jsx(Rh.span,{variants:i,animate:n?i[e]:null,style:s[e],transition:{delay:a,...o[e]}},`animated-child-${a}`))})},aWt=1;function lWt({clearOnly:t=!1,size:e="sm",buttonProps:n={},variant:r}){const{disableAudioQueue:i,clearAudioQueue:s,isPlaying:o}=b1(),a=_.useCallback(()=>{t?s():i()},[s,t,i]),[l,c]=_.useState(!1);return x.jsx(Sn,{as:Rh.div,exit:{scale:0},children:x.jsx(Cd,{label:"ChatCraft is speaking... Click to stop",o
1372penDelay:l?0:aWt,onMouseOver:()=>c(!0),placement:"top",defaultIsOpen:!0,offset:[-50,5],children:x.jsx(Br,{onClick:a,size:e,border:"none",icon:x.jsx(oWt,{playAnimation:o,variant:r,size:e}),...n,"aria-label":"ChatCraft is speaking... Click to stop"})})})}function cWt({isLoading:t}){const{settings:e,setSettings:n}=Ks(),{models:r}=pm();return x.jsxs(cm,{variant:"outline",isAttached:!0,children:[x.jsx(Br,{type:"submit",size:"md",fontSize:"1.375rem",width:"2.75rem",variant:"solid",isRound:!0,"aria-label":"Submit",isLoading:t,icon:x.jsx(Clt,{})}),x.jsx(LI,{position:"anchor",align:"center",viewScroll:"initial",onItemClick:i=>{i.keepOpen=!1},menuStyle:{maxHeight:"85dvh",overflowY:"auto",zIndex:IP.zIndices.dropdown,marginTop:"-90px"},menuButton:({open:i})=>x.jsx("button",{type:"button",style:{width:"2.5rem",height:"2.5rem",fontSize:"1.25rem",borderRadius:"0 50% 50% 0",backgroundColor:i?"#2c5282":"#3182ce",color:"white",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s"},"aria-label":"Choose Model",title:"Choose Model",children:x.jsx(kye,{})}),children:x.jsx(NG,{onItemSelect:i=>{const s=r.find(o=>o.id===i);s&&n({...e,model:s})}})})]})}function uWt({isLoading:t}){const{settings:e,setSettings:n}=Ks(),{models:r}=pm(),{clearAudioQueue:i,isAudioQueueEmpty:s}=b1(),{isTextToSpeechSupported:o}=x_();return x.jsxs(cm,{isAttached:!0,children:[x.jsxs(Yr,{type:"submit",size:"sm",isLoading:t,loadingText:"Sending",children:["Ask ",e.model.prettyModel]}),o&&s?x.jsx(Cd,{label:e.textToSpeech.announceMessages?"Text-to-Speech Enabled":"Text-to-Speech Disabled",children:x.jsx(Yr,{type:"button",size:"sm",onClick:()=>{e.textToSpeech.announceMessages&&i(),n({...e,textToSpeech:{...e.textToSpeech,announceMessages:!e.textToSpeech.announceMessages}})},children:e.textToSpeech.announceMessages?x.jsx(QV,{size:18}):x.jsx(Qye,{size:18})})}):o?x.jsx(lWt,{variant:"dancingBars",size:"sm",clearOnly:!t}):null,x.jsxs(LI,{position:"anchor",align:"end",viewScroll:"initial",onItemClick:a=>{a.keepOpen=!1},menuStyle:{zIndex:IP.zIndices.dropdown,marginTop:"-90px",overflowY:"auto",maxHeight:"80dvh"},menuButton:({open:a})=>x.jsx("button",{type:"button",style:{width:"2rem",height:"2rem",fontSize:"1.25rem",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a?"#2c5282":"#3182ce",color:"white",border:"none",borderRadius:"0 25% 25% 0",cursor:"pointer"},"aria-label":"Choose Model",title:"Choose Model",children:x.jsx(kye,{})}),children:[x.jsx(NG,{onItemSelect:a=>{const l=r.find(c=>c.id===a);l&&n({...e,model:l})}}),x.jsx(H0,{})]})]})}function FEe(t){return gp()?x.jsx(cWt,{...t}):x.jsx(uWt,{...t})}function $Ee({isTranscribing:t,isRecording:e,recordingSeconds:n}){return t?x.jsxs(qt,{alignItems:"center",gap:2,children:[x.jsx(ddt,{})," Transcribing..."]}):e?x.jsxs(qt,{alignItems:"center",gap:2,children:[x.jsx(_ye,{})," Recording...",x.jsx(zr,{children:iXe(n)})]}):x.jsx("span",{})}function hWt({chat:t,forkUrl:e,onSendClick:n,inputPromptRef:r,isLoading:i}){const[s,o]=_.useState(!1),[a,l]=_.useState(!1),[c,u]=_.useState(0),h=s||a?"audio":"text",[d,p]=_.useState([]),g=LEe({chat:t,onImageImport:O=>Sme(O,p)});_.useEffect(()=>{i||r.current?.focus()},[i,r]),_.useEffect(()=>{let O;return s?O=window.setInterval(()=>{u(P=>P+1)},1e3):!s&&c!==0&&(window.clearInterval(O),u(0)),()=>{O&&clearInterval(O)}},[s,c]);const y=O=>{O.preventDefault();const P=r.current?.value.trim()||"";r.current&&(r.current.value=""),p([]),n(P,d)},b=O=>{const{clipboardData:P}=O;if(!P)return;const $=Array.from(P.items||[]),W=$.filter(re=>re.kind==="file").map(re=>re.getAsFile()).filter(re=>re!=null),H=P.getData("text/plain").trim(),K=P.getData("text/html").trim(),Z=P.getData("text/uri-list").trim();if(!($.some(re=>re.type==="text/rtf")&&W.some(re=>re.type.startsWith("image/"))&&$.length>=3)){if(W.some(re=>re.type.startsWith("image/"))&&K){const re=/^[\s]*(?:<meta[^>]+>)?[\s]*<img[^>]+>[\s]*$/i.test(K);if(!K||re){O.preventDefault(),g(W);return}}if(W.some(re=>re.type.startsWith("image/"))&&/^https?:\/\/.*\.(jpg|jpeg|png|gif|webp)/i.test(H)){O.preventDefault(),g(W);return}if(!(H||Z||K)&&W.length){O.preventDefault(),g(W);return}}};_.useEffect(()=>{const O=r.current;return O&&O.addEventListener("paste",b),()=>{O&&O.removeEventListener("paste",b)}},[]);const w=()=>{o(!0),l(!1)},S=()=>{o(!1),l(!0)},T=()=>{o(!1),l(!1)},D=O=>{o(!1),l(!1),n(O,d),p([])},E=O=>{const P=[...d];P.splice(O,1),p(P)};return x.jsx(Sn,{flex:1,w:"100%",h:"100%",my:1,px:2,py:1,pb:"env(safe-area-inset-bottom)",children:x.jsx(ct.form,{onSubmit:y,h:"100%",children:x.jsxs(qt,{alignItems:"end",gap:2,children:[x.jsx(t9,{chat:t,forkUrl:e,variant:"outline",iconOnly:!0,onAttachFiles:g}),x.jsxs(Sn,{flex:1,children:[x.jsx(qt,{flexWrap:"wrap",children:d.map((O,P)=>x.jsxs(Sn,{position:"relative",height:"70px",display:"flex",alignItems:"center",m:2,children:[O===""?x.jsx(Sn,{width:70,height:70,display:"flex",alignItems:"center",justifyContent:"center",children:x.jsx(Pb,{size:"xl"})}):x.jsx(VC,{src:O,alt:`Image# ${P}`,style:{height:"70px",objectFit:"cover"},cursor:"pointer"}),x.jsx(Sn,{display:"flex",alignItems:"center",justifyContent:"center",top:"0",right:"0",backgroundColor:"grey",color:"white",height:"70px",children:x.jsx(zC,{onClick:()=>E(P)})},`${P}-close`)]},P))}),h==="audio"?x.jsx(Sn,{p:2,children:x.jsx($Ee,{isRecording:s,isTranscribing:a,recordingSeconds:c})}):x.jsx(WG,{ref:r,isDisabled:i,autoFocus:!0,bg:"white",_dark:{bg:"gray.700"},overflowY:"auto",placeholder:"Ask about..."})]}),!a&&x.jsx(BEe,{isDisabled:i,onRecording:w,onTranscribing:S,onTranscriptionAvailable:D,onCancel:T}),!s&&x.jsx(FEe,{isLoading:i})]})})})}const dWt
vendor: 41,168 bytes, line 1372
1372=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function
vendor: 16,380 bytes, lines 1372-1376
1372pw(t,e,n){const r=fWt(t),{webkitRelativePath:i}=t,s=typeof e=="string"?e:typeof i=="string"&&i.length>0?i:`./${t.name}`;return typeof r.path!="string"&&Xle(r,"path",s),Xle(r,"relativePath",s),r}function fWt(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const r=e.split(".").pop().toLowerCase(),i=dWt.get(r);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}function Xle(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const pWt=[".DS_Store","Thumbs.db"];function mWt(t){return Vn(this,void 0,void 0,function*(){return DP(t)&&gWt(t.dataTransfer)?xWt(t.dataTransfer,t.type):yWt(t)?bWt(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?vWt(t):[]})}function gWt(t){return DP(t)}function yWt(t){return DP(t)&&DP(t.target)}function DP(t){return typeof t=="object"&&t!==null}function bWt(t){return fz(t.target.files).map(e=>pw(e))}function vWt(t){return Vn(this,void 0,void 0,function*(){return(yield Promise.all(t.map(n=>n.getFile()))).map(n=>pw(n))})}function xWt(t,e){return Vn(this,void 0,void 0,function*(){if(t.items){const n=fz(t.items).filter(i=>i.kind==="file");if(e!=="drop")return n;const r=yield Promise.all(n.map(wWt));return Jle(jEe(r))}return Jle(fz(t.files).map(n=>pw(n)))})}function Jle(t){return t.filter(e=>pWt.indexOf(e.name)===-1)}function fz(t){if(t===null)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function wWt(t){if(typeof t.webkitGetAsEntry!="function")return Zle(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?zEe(e):Zle(t,e)}function jEe(t){return t.reduce((e,n)=>[...e,...Array.isArray(n)?jEe(n):[n]],[])}function Zle(t,e){return Vn(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const s=yield t.getAsFileSystemHandle();if(s===null)throw new Error(`${t} is not a File`);if(s!==void 0){const o=yield s.getFile();return o.handle=s,pw(o)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return pw(r,(n=e?.fullPath)!==null&&n!==void 0?n:void 0)})}function SWt(t){return Vn(this,void 0,void 0,function*(){return t.isDirectory?zEe(t):kWt(t)})}function zEe(t){const e=t.createReader();return new Promise((n,r)=>{const i=[];function s(){e.readEntries(o=>Vn(this,void 0,void 0,function*(){if(o.length){const a=Promise.all(o.map(SWt));i.push(a),s()}else try{const a=yield Promise.all(i);n(a)}catch(a){r(a)}}),o=>{r(o)})}s()})}function kWt(t){return Vn(this,void 0,void 0,function*(){return new Promise((e,n)=>{t.file(r=>{const i=pw(r,t.fullPath);e(i)},r=>{n(r)})})})}var s6={},ece;function CWt(){return ece||(ece=1,s6.__esModule=!0,s6.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(n.length===0)return!0;var r=t.name||"",i=(t.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(o){var a=o.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?s===a.replace(/\/.*$/,""):i===a})}return!0}),s6}var _Wt=CWt();const fL=zc(_Wt);function tce(t){return AWt(t)||EWt(t)||UEe(t)||TWt()}function TWt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1373In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EWt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function AWt(t){if(Array.isArray(t))return pz(t)}function nce(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 rce(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nce(Object(n),!0).forEach(function(r){HEe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nce(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HEe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IC(t,e){return IWt(t)||OWt(t,e)||UEe(t,e)||PWt()}function PWt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1374In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UEe(t,e){if(t){if(typeof t=="string")return pz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pz(t,e)}}function pz(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function OWt(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(t);!(i=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function IWt(t){if(Array.isArray(t))return t}var DWt=typeof fL=="function"?fL:fL.default,MWt="file-invalid-type",NWt="file-too-large",RWt="file-too-small",LWt="too-many-files",BWt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=e.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:MWt,message:"File type must be ".concat(r)}},ice=function(e){return{code:NWt,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},sce=function(e){return{code:RWt,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},FWt={code:LWt,message:"Too many files"};function VEe(t,e){var n=t.type==="application/x-moz-file"||DWt(t,e);return[n,n?null:BWt(e)]}function WEe(t,e,n){if(Sy(t.size))if(Sy(e)&&Sy(n)){if(t.size>n)return[!1,ice(n)];if(t.size<e)return[!1,sce(e)]}else{if(Sy(e)&&t.size<e)return[!1,sce(e)];if(Sy(n)&&t.size>n)return[!1,ice(n)]}return[!0,null]}function Sy(t){return t!=null}function $Wt(t){var e=t.files,n=t.accept,r=t.minSize,i=t.maxSize,s=t.multiple,o=t.maxFiles,a=t.validator;return!s&&e.length>1||s&&o>=1&&e.length>o?!1:e.every(function(l){var c=VEe(l,n),u=IC(c,1),h=u[0],d=WEe(l,r,i),p=IC(d,1),g=p[0],y=a?a(l):null;return h&&g&&!y})}function MP(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function o6(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function oce(t){t.preventDefault()}function jWt(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function zWt(t){return t.indexOf("Edge/")!==-1}function HWt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return jWt(t)||zWt(t)}function uf(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return e.some(function(a){return!MP(r)&&a&&a.apply(void 0,[r].concat(s)),MP(r)})}}function UWt(){return"showOpenFilePicker"in window}function VWt(t){if(Sy(t)){var e=Object.entries(t).filter(function(n){var r=IC(n,2),i=r[0],s=r[1],o=!0;return qEe(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(s)||!s.every(GEe))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=IC(r,2),s=i[0],o=i[1];return rce(rce({},n),{},HEe({},s,o))},{});return[{description:"Files",accept:e}]}return t}function WWt(t){if(Sy(t))return Object.entries(t).reduce(function(e,n){var r=IC(n,2),i=r[0],s=r[1];return[].concat(tce(e),[i],tce(s))},[]).filter(function(e){return qEe(e)||GEe(e)}).join(",")}function qWt(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function GWt(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function qEe(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||t==="application/*"||/\w+\/[-+.\w]+/g.test(t)}function GEe(t){return/^.*\.[\w]+$/.test(t)}var KWt=["children"],YWt=["open"],QWt=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],XWt=["refKey","onChange","onClick"];function JWt(t){return tqt(t)||eqt(t)||KEe(t)||ZWt()}function ZWt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 1375In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eqt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tqt(t){if(Array.isArray(t))return mz(t)}function pL(t,e){return iqt(t)||rqt(t,e)||KEe(t,e)||nqt()}function nqt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 1376In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KEe(t,e){if(t){if(typeof t=="string")return mz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mz(t,e)}}function mz(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rqt(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(t);!(i=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function iqt(t){if(Array.isArray(t))return t}function ace(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 to(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ace(Object(n),!0).forEach(function(r){gz(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ace(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NP(t,e){if(t==null)return{};var n=sqt(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function sqt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var qG=_.forwardRef(function(t,e){var n=t.children,r=NP(t,KWt),i=QEe(r),s=i.open,o=NP(i,YWt);return _.useImperativeHandle(e,function(){return{open:s}},[s]),ii.createElement(_.Fragment,null,n(to(to({},o),{},{open:s})))});qG.displayName="Dropzone";var YEe={disabled:!1,getFilesFromEvent:mWt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};qG.defaultProps=YEe;qG.propTypes={children:ss.func,accept:ss.objectOf(ss.arrayOf(ss.string)),multiple:ss.bool,preventDropOnDocument:ss.bool,noClick:ss.bool,noKeyboard:ss.bool,noDrag:ss.bool,noDragEventsBubbling:ss.bool,minSize:ss.number,maxSize:ss.number,maxFiles:ss.number,disabled:ss.bool,getFilesFromEvent:ss.func,onFileDialogCancel:ss.func,onFileDialogOpen:ss.func,useFsAccessApi:ss.bool,autoFocus:ss.bool,onDragEnter:ss.func,onDragLeave:ss.func,onDragOver:ss.func,onDrop:ss.func,onDropAccepted:ss.func,onDropRejected:ss.func,onError:ss.func,validator:ss.func};var yz={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function QEe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=to(to({},YEe),t),n=e.accept,r=e.disabled,i=e.getFilesFromEvent,s=e.maxSize,o=e.minSize,a=e.multiple,l=e.maxFiles,c=e.onDragEnter,u=e.onDragLeave,h=e.onDragOver,d=e.onDrop,p=e.onDropAccepted,g=e.onDropRejected,y=e.onFileDialogCancel,b=e.onFileDialogOpen,w=e.useFsAccessApi,S=e.autoFocus,T=e.preventDropOnDocument,D=e.noClick,E=e.noKeyboard,O=e.noDrag,P=e.noDragEventsBubbling,$=e.onError,W=e.validator,H=_.useMemo(function(){return WWt(n)},[n]),K=_.useMemo(function(){return VWt(n)},[n]),Z=_.useMemo(function(){return typeof b=="function"?b:lce},[b]),oe=_.useMemo(function(){return typeof y=="function"?y:lce},[y]),te=_.useRef(null),re=_.useRef(null),Y=_.useReducer(oqt,yz),z=pL(Y,2),U=z[0],G=z[1],B=U.isFocused,Q=U.isFileDialogActive,ie=_.useRef(typeof window<"u"&&window.isSecureContext&&w&&UWt()),q=function(){!ie.current&&Q&&setTimeout(function(){if(re.current){var zt=re.current.files;zt.length||(G({type:"closeDialog"}),oe())}},300)};_.useEffect(function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}},[re,Q,oe,ie]);var fe=_.useRef([]),ke=function(zt){te.current&&te.current.contains(zt.target)||(zt.preventDefault(),fe.current=[])};_.useEffect(function(){return T&&(document.addEventListener("dragover",oce,!1),document.addEventListener("drop",ke,!1)),function(){T&&(document.removeEventListener("dragover",oce),document.removeEventListener("drop",ke))}},[te,T]),_.useEffect(function(){return!r&&S&&te.current&&te.current.focus(),function(){}},[te,S,r]);var Be=_.useCallback(function(mt){$?$(mt):console.error(mt)},[$]),Qe=_.useCallback(function(mt){mt.preventDefault(),mt.persist(),Cn(mt),fe.current=[].concat(JWt(fe.current),[mt.target]),o6(mt)&&Promise.resolve(i(mt)).then(function(zt){if(!(MP(mt)&&!P)){var ze=zt.length,tt=ze>0&&$Wt({files:zt,accept:H,minSize:o,maxSize:s,multiple:a,maxFiles:l,validator:W}),wt=ze>0&&!tt;G({isDragAccept:tt,isDragReject:wt,isDragActive:!0,type:"setDraggedFiles"}),c&&c(mt)}}).catch(function(zt){return Be(zt)})},[i,c,Be,P,H,o,s,a,l,W]),ft=_.useCallback(function(mt){mt.preventDefault(),mt.persist(),Cn(mt);var zt=o6(mt);if(zt&&mt.dataTransfer)try{mt.dataTransfer.dropEffect="copy"}catch{}return zt&&h&&h(mt),!1},[h,P]),Ne=_.useCallback(function(mt){mt.preventDefault(),mt.persist(),Cn(mt);var zt=fe.current.filter(function(tt){return te.current&&te.current.contains(tt)}),ze=zt.indexOf(mt.target);ze!==-1&&zt.splice(ze,1),fe.current=zt,!(zt.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),o6(mt)&&u&&u(mt))},[te,u,P]),rt=_.useCallback(function(mt,zt){var ze=[],tt=[];mt.forEach(function(wt){var tn=VEe(wt,H),ot=pL(tn,2),jt=ot[0],_r=ot[1],fr=WEe(wt,o,s),Rr=pL(fr,2),Zt=Rr[0],lt=Rr[1],Hr=W?W(wt):null;if(jt&&Zt&&!Hr)ze.push(wt);else{var Un=[_r,lt];Hr&&(Un=Un.concat(Hr)),tt.push({file:wt,errors:Un.filter(function(xn){return xn})})}}),(!a&&ze.length>1||a&&l>=1&&ze.length>l)&&(ze.forEach(function(wt){tt.push({file:wt,errors:[FWt]})}),ze.splice(0)),G({acceptedFiles:ze,fileRejections:tt,isDragReject:tt.length>0,type:"setFiles"}),d&&d(ze,tt,zt),tt.length>0&&g&&g(tt,zt),ze.length>0&&p&&p(ze,zt)},[G,a,H,o,s,l,d,p,g,W]),Mt=_.useCallback(function(mt){mt.preventDefault(),mt.persist(),Cn(mt),fe.current=[],o6(mt)&&Promise.resolve(i(mt)).then(function(zt){MP(mt)&&!P||rt(zt,mt)}).catch(function(zt){return Be(zt)}),G({type:"reset"})},[i,rt,Be,P]),it=_.useCallback(function(){if(ie.current){G({type:"openDialog"}),Z();var mt={multiple:a,types:K};window.showOpenFilePicker(mt).then(function(zt){return i(zt)}).then(function(zt){rt(zt,null),G({type:"closeDialog"})}).catch(function(zt){qWt(zt)?(oe(zt),G({type:"closeDialog"})):GWt(zt)?(ie.current=!1,re.current?(re.current.value=null,re.current.click()):Be(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Be(zt)});return}re.current&&(G({type:"openDialog"}),Z(),re.current.value=null,re.current.click())},[G,Z,oe,w,rt,Be,K,a]),Rt=_.useCallback(function(mt){!te.current||!te.current.isEqualNode(mt.target)||(mt.ke
1376y===" "||mt.key==="Enter"||mt.keyCode===32||mt.keyCode===13)&&(mt.preventDefault(),it())},[te,it]),xt=_.useCallback(function(){G({type:"focus"})},[]),Nn=_.useCallback(function(){G({type:"blur"})},[]),Hn=_.useCallback(function(){D||(HWt()?setTimeout(it,0):it())},[D,it]),$n=function(zt){return r?null:zt},Wn=function(zt){return E?null:$n(zt)},nr=function(zt){return O?null:$n(zt)},Cn=function(zt){P&&zt.stopPropagation()},Nr=_.useMemo(function(){return function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},zt=mt.refKey,ze=zt===void 0?"ref":zt,tt=mt.role,wt=mt.onKeyDown,tn=mt.onFocus,ot=mt.onBlur,jt=mt.onClick,_r=mt.onDragEnter,fr=mt.onDragOver,Rr=mt.onDragLeave,Zt=mt.onDrop,lt=NP(mt,QWt);return to(to(gz({onKeyDown:Wn(uf(wt,Rt)),onFocus:Wn(uf(tn,xt)),onBlur:Wn(uf(ot,Nn)),onClick:$n(uf(jt,Hn)),onDragEnter:nr(uf(_r,Qe)),onDragOver:nr(uf(fr,ft)),onDragLeave:nr(uf(Rr,Ne)),onDrop:nr(uf(Zt,Mt)),role:typeof tt=="string"&&tt!==""?tt:"presentation"},ze,te),!r&&!E?{tabIndex:0}:{}),lt)}},[te,Rt,xt,Nn,Hn,Qe,ft,Ne,Mt,E,O,r]),ki=_.useCallback(function(mt){mt.stopPropagation()},[]),yr=_.useMemo(function(){return function(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},zt=mt.refKey,ze=zt===void 0?"ref":zt,tt=mt.onChange,wt=mt.onClick,tn=NP(mt,XWt),ot=gz({accept:H,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:$n(uf(tt,Mt)),onClick:$n(uf(wt,ki)),tabIndex:-1},ze,re);return to(to({},ot),tn)}},[re,n,a,Mt,r]);return to(to({},U),{},{isFocused:B&&!r,getRootProps:Nr,getInputProps:yr,rootRef:te,inputRef:re,open:$n(it)})}function oqt(t,e){switch(e.type){case"focus":return to(to({},t),{},{isFocused:!0});case"blur":return to(to({},t),{},{isFocused:!1});case"openDialog":return to(to({},yz),{},{isFileDialogActive:!0});case"closeDialog":return to(to({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return to(to({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return to(to({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return to({},yz);default:return t}}function lce(){}function aqt(t){return yn({attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 3c-4.963 0-9 4.038-9 9s4.037 9 9 9 9-4.038 9-9-4.037-9-9-9zm0 16c-3.859 0-7-3.14-7-7s3.141-7 7-7 7 3.14 7 7-3.141 7-7 7zM12.707 12l2.646-2.646c.194-.194.194-.512 0-.707-.195-.194-.513-.194-.707 0l-2.646 2.646-2.646-2.647c-.195-.194-.513-.194-.707 0-.195.195-.195.513 0 .707l2.646 2.647-2.646 2.646c-.195.195-.195.513 0 .707.097.098.225.147.353.147s.256-.049.354-.146l2.646-2.647 2.646 2.646c.098.098.226.147.354.147s.256-.049.354-.146c.194-.194.194-.512 0-.707l-2.647-2.647z"},child:[]}]})(t)}function lqt(t){const[e,n]=_.useState([]),[r,i]=_.useState(!0),[s,o]=_.useState(null),a=_.useCallback(async()=>{try{i(!0);const l=await MV(t);n(l),o(null)}catch(l){o(l instanceof Error?l:new Error("Unknown fs error"))}finally{i(!1)}},[t]);return _.useEffect(()=>{a()},[a]),{files:e,loading:r,error:s,refreshFiles:a}}const cqt={jpg:vte,jpeg:vte,png:hlt,svg:dlt,doc:bte,docx:bte,pdf:ult,txt:flt,csv:llt,xls:wte,xlsx:wte,json:xte,jsonl:xte,md:clt},uqt=({file:t,chat:e,onRefresh:n,fileInputRef:r,totalFiles:i,onClose:s})=>{const o=ws("gray.300","gray.600"),a=l=>{const c=l.split(".").pop()?.toLowerCase()||"",u=cqt[c]||alt;return x.jsx(u,{size:"80px"})};return x.jsxs(Sn,{p:6,borderWidth:"1px",borderRadius:"md",minW:"200px",maxW:"200px",h:"200px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",aspectRatio:"1",position:"relative",_hover:{borderColor:"blue.500","& .hover-buttons":{opacity:1,transform:"translateY(0)"},bg:o},transition:"all 0.2s ease-in-out",children:[x.jsx(Sn,{position:"absolute",top:"40%",left:"50%",transform:"translate(-50%, -50%)",opacity:"0.7",children:a(t.name)}),x.jsx(qt,{className:"hover-buttons",position:"absolute",top:"4",right:"4",gap:2,opacity:0,transition:"all 0.2s ease-in-out",children:x.jsx(Cd,{label:"Delete File",children:x.jsx(Br,{"aria-label":"Remove file",icon:x.jsx(Elt,{}),size:"sm",variant:"ghost",onClick:async()=>
1376{await R1e(t.name,e),i==1&&r?.current&&(r.current.value="",s()),await n()}})})}),x.jsx(qt,{className:"hover-buttons",position:"absolute",top:"4",left:"4",gap:2,opacity:0,transition:"all 0.2s ease-in-out",children:x.jsx(Cd,{label:"Download File",children:x.jsx(Br,{"aria-label":"Download File",icon:x.jsx(eft,{}),size:"sm",variant:"ghost",onClick:async()=>{await Get(t.name,e)}})})}),x.jsxs(Sn,{position:"absolute",bottom:6,width:"full",textAlign:"center",children:[x.jsx(Cd,{label:"Edit Name",children:x.jsxs(ude,{defaultValue:t.name,mx:"auto",w:"90%",onSubmit:async l=>{await qet(t.name,l,e),await n()},children:[x.jsx(fde,{fontSize:"sm",color:"blue.300",noOfLines:1,px:2,cursor:"pointer",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),x.jsx(dde,{fontSize:"sm",color:"blue.300",px:2,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})]})}),x.jsx(zr,{fontSize:"xs",color:"gray.400",children:sXe(t.size)})]})]},t.id)};function hqt({chat:t,onAttachFiles:e}){const{files:n,loading:r,error:i,refreshFiles:s}=lqt(t),o=!!n.length,{isOpen:a,onOpen:l,onClose:c}=Id(),{isOpen:u,onOpen:h,onClose:d}=Id(),{error:p}=Eo(),g=_.useRef(null),[y,b]=_.useState(""),w=_.useCallback(async E=>{if(!e||!E.target.files?.length)return;const P=Array.from(E.target.files).map($=>{const W=xme($.name,n);return new File([$],W,{type:$.type})});await e(P).then(()=>s).catch($=>p({title:"Unable to Attach Files",message:$.message}))},[e,p,s,n]),S=_.useCallback(()=>{g.current&&g.current?.click(),console.log("fileInputRef: ",g.current)},[g]),T=()=>{l()},D=async()=>{try{await Promise.all(n.map(E=>R1e(E.name,t))),await s(),c(),g.current&&(g.current.value="")}catch(E){b(E instanceof Error?E.message:"Failed to delete files"),h()}};return x.jsxs(x.Fragment,{children:[x.jsxs(Cd,{label:"Attach Files...",placement:"top",children:[x.jsx(fl,{multiple:!0,type:"file",ref:g,hidden:!0,onChange:w,accept:REe}),x.jsx(Br,{isRound:!0,icon:x.jsx(odt,{}),variant:"ghost",size:"md",fontSize:"1rem",transition:"all 150ms ease-in-out",onClick:o?T:S,"aria-label":""})]}),x.jsxs(lb,{isCentered:!0,onClose:c,isOpen:a,children:[x.jsx(hb,{}),x.jsxs(Ix,{maxW:"900px",w:"90vw",p:4,position:"absolute",children:[x.jsxs(Dx,{children:[n.length," Attached Files"]}),x.jsx(ub,{}),x.jsx(cb,{maxH:"70vh",overflowY:"auto",children:r?x.jsx(zr,{children:"Loading Files..."}):i?x.jsx(zr,{color:"red.500",children:"Error loading files!"}):x.jsx(Xde,{columns:3,spacing:6,width:"full",children:n.map(E=>x.jsx(uqt,{file:E,chat:t,onRefresh:s,fileInputRef:g,totalFiles:n.length,onClose:c},E.id))})}),x.jsxs(eU,{gap:2,children:[x.jsx(Yr,{onClick:D,maxH:"30",variant:"ghost",color:"red",colorScheme:"red",children:"Remove All"}),x.jsx(Yr,{gap:2,onClick:S,maxH:"30px",children:"Add Files"})]})]})]}),x.jsxs(lb,{isCentered:!0,isOpen:u,onClose:d,size:"sm",children:[x.jsx(hb,{backdropFilter:"blur(2px)"}),x.jsxs(Ix,{children:[x.jsxs(Dx,{color:"red",display:"flex",alignItems:"center",justifyContent:"space-between",children:["Error !",x.jsx(ub,{color:"white"})]}),x.jsx(cb,{color:"red",pb:6,children:y})]})]})]})}function dqt({isVisible:t}){const{settings:e}=Ks(),n=_.useMemo(()=>wme(),[]);return t?x.jsx(zr,{fontSize:"sm",color:"gray",px:2,children:x.jsx("span",{children:e.enterBehaviour==="newline"?x.jsxs("span",{children:[x.jsx(bd,{children:n})," + ",x.jsx(bd,{children:"Enter"})," to send"]}):x.jsxs("span",{children:[x.jsx(bd,{children:"Shift"})," + ",x.jsx(bd,{children:"Enter"})," for newline"]})})}):x.jsx("span",{})}function fqt({chat:t,forkUrl:e,onSendClick:n,inputPromptRef:r,isLoading:i,previousMessage:s}){const[o,a]=_.useState(!0),{settings:l}=Ks(),[c,u]=_.useState(!1),[h,d]=_.useState(!1),[p,g]=_.useState(0),y=c||h?"audio":"text",[b,w]=_.useState([]),[S,T]=_.useState(!1),[D,E]=_.useState(""),O=d1(),P=LEe({chat:t,onImageImport:ie=>Sme(ie,w)}),{getRootProps:$,isDragActive:W}=QEe({onDrop:P,multiple:!0,accept:{"image/*":[],"application/pdf":[".pdf"],"application/json":[],"application/markdown":[],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[],"text/*":[]}});_.useEffect(()=>{r.current?.focus()},[O,r]),_.useEffect(()=>{i||r.current?.focus()},[i,r]),_.useEffect(()=>{r.current?.focus()},[b,S,r]),_.useEffect(()=>{let ie;return c?ie=window.setInterval(()=>{g(q=>q+1)},1e3):!c&&p!==0&&(window.clearInterval(ie),g(0)),()=>{ie&&clearInterval(ie)}},[c,p]),_.useEffect(()=>{const ie=r.current;return ie&&ie.addEventListener("paste",oe),()=>{ie&&ie.removeEventListener("paste",oe)}},[]);const H=ie=>{ie.preventDefault();const q=r.current?.value.trim()||"",fe=[...b];r.current&&(r.current.value=""),a(!0),w([]),n(q,fe)},K=DCe({onMetaEnter:H}),Z=ie=>
1376{switch(ie.key){case"ArrowUp":o&&s&&r.current&&(ie.preventDefault(),r.current.value=s,a(!1));break;case"Enter":l.enterBehaviour==="newline"?K(ie):l.enterBehaviour==="send"&&!ie.shiftKey&&!o&&H(ie);break;default:return}},oe=ie=>{const{clipboardData:q}=ie;if(!q)return;const fe=Array.from(q.items||[]),ke=fe.filter(Mt=>Mt.kind==="file").map(Mt=>Mt.getAsFile()).filter(Mt=>Mt!=null),Be=q.getData("text/plain").trim(),Qe=q.getData("text/html").trim(),ft=q.getData("text/uri-list").trim();if(!(fe.some(Mt=>Mt.type==="text/rtf")&&ke.some(Mt=>Mt.type.startsWith("image/"))&&fe.length>=3)){if(ke.some(Mt=>Mt.type.startsWith("image/"))&&Qe){const Mt=/^[\s]*(?:<meta[^>]+>)?[\s]*<img[^>]+>[\s]*$/i.test(Qe);if(!Qe||Mt){ie.preventDefault(),P(ke);return}}if(ke.some(Mt=>Mt.type.startsWith("image/"))&&/^https?:\/\/.*\.(jpg|jpeg|png|gif|webp)/i.test(Be)){ie.preventDefault(),P(ke);return}if(!(Be||ft||Qe)&&ke.length){ie.preventDefault(),P(ke);return}}},te=()=>{u(!0),d(!1)},re=()=>{u(!1),d(!0)},Y=()=>{u(!1),d(!1)},z=ie=>{n(ie,b),u(!1),d(!1),w([])},U=ie=>{const q=[...b];q.splice(ie,1),w(q)},G=ie=>{E(ie),T(!0)},B=()=>T(!1),Q=ws("blue.200","blue.600");return x.jsxs(qt,{dir:"column",w:"100%",h:"100%",children:[x.jsx(l1,{flex:1,my:3,mx:1,children:x.jsx(ct.form,{onSubmit:H,h:"100%",children:x.jsx(c1,{h:"100%",px:6,py:4,border:"4px solid",borderColor:W?Q:"transparent",borderRadius:".375rem",...$(),children:x.jsxs(Nu,{w:"100%",h:"100%",gap:3,children:[x.jsx(Kf,{h:"100%",bg:"white",_dark:{bg:"gray.700"},children:x.jsxs(qt,{w:"100%",h:"100%",direction:"column",children:[x.jsx(qt,{flexWrap:"wrap",children:b.map((ie,q)=>x.jsxs(Sn,{position:"relative",height:"100px",m:2,children:[ie===""?x.jsx(Sn,{width:100,height:100,display:"flex",alignItems:"center",justifyContent:"center",children:x.jsx(Pb,{size:"xl"})}):x.jsx(VC,{src:ie,alt:`Image# ${q}`,style:{height:"100px",objectFit:"cover"},cursor:"pointer",onClick:()=>G(ie)}),x.jsx(Sn,{position:"absolute",top:"2px",left:"2px",bg:"whiteAlpha.600",borderRadius:"full",p:"1",zIndex:"2",_hover:{bg:"blue.500",color:"white"},children:x.jsx(tde,{size:"1.5em",children:q+1})}),x.jsx(Sn,{position:"absolute",top:"2px",right:"2px",bg:"whiteAlpha.600",borderRadius:"full",p:"1",onClick:()=>U(q),cursor:"pointer",zIndex:"3",_hover:{bg:"red.500",color:"white"},children:x.jsx(aqt,{size:"1.5em"})})]},q))}),x.jsxs(qt,{flexWrap:"wrap",children:[y==="audio"?x.jsx(Sn,{py:2,px:1,flex:1,children:x.jsx($Ee,{isRecording:c,isTranscribing:h,recordingSeconds:p})}):x.jsx(WG,{ref:r,variant:"unstyled",onKeyDown:Z,isDisabled:i,autoFocus:!0,onChange:ie=>{a(ie.target.value.trim().length===0)},bg:"white",_dark:{bg:"gray.700"},placeholder:!i&&!c&&!h?"Ask a question or use /help to learn more":void 0,overflowY:"auto",flex:1}),x.jsx(BEe,{isDisabled:i,onRecording:te,onTranscribing:re,onTranscriptionAvailable:z,onCancel:Y}),x.jsx(hqt,{chat:t,onAttachFiles:P})]})]})}),x.jsxs(qt,{w:"100%",gap:1,justify:"space-between",align:"center",children:[x.jsx(t9,{chat:t,forkUrl:e,variant:"outline",isDisabled:i,onAttachFiles:P}),x.jsxs(qt,{alignItems:"center",gap:2,children:[x.jsx(dqt,{isVisible:!o&&!i}),x.jsx(FEe,{isLoading:i})]})]})]})})})}),x.jsx(MCe,{isOpen:S,onClose:B,imageSrc:D})]})}function pqt(t){const{settings:e}=Ks(),n=gp();return e.currentProvider.apiKey?n?x.jsx(hWt,{...t}):x.jsx(fqt,{...t}):null}function cce({chat:t,url:e,isSelected:n,canEdit:r,onDelete:i}){const s=t.summary||"(no messages)",o=ws(n?"gray.200":void 0,n?"gray.800":void 0),a=ws(n?"gray.300":"gray.100",n?"gray.900":"gray.600"),{error:l}=Eo(),[c,u]=_.useState(!1),[h,d]=_.useState(!1);ebe("Escape",()=>u(!1),{event:"keydown"},[u]);const p=_.useRef(null);_.useEffect(()=>{n||u(!1)},[n,u]),_.useEffect(()=>{p.current&&n&&p.current.scrollIntoView()},[p,n]);const g=D=>{D.preventDefault();const O=new FormData(D.target).get("summary");typeof O=="string"&&(t.summary=O,t.save().catch(P=>{console.warn("Unable to update summary for chat",P),l({title:"Error Updating Chat",message:P.message})}).finally(()=>u(!1)))},y=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric"}).format(t.date),b=new Date,w=b.getFullYear()===t.date.getFullYear()&&b.getMonth()===t.date.getMonth(),S=w&&b.getDate()===t.date.getDate(),T=w&&b.getDate()-1===t.date.getDate();return x.jsxs(qt,{p:1,bg:o,border:"1px solid",borderColor:a,borderRadius:4,direction:"column",ref:p,style:{transition:"background-color 0.2s ease, transform 0.2s ease"},_hover:{bg:ws(n?void 0:"gray.100",n?void 0:"gray.700")},onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[x.jsxs(qt,{justify:"space-between",align:"center",minH:"32px",w:"100%",children:[x.jsx(Td,{to:e,style:{width:"100%"},children:x.jsxs(qt,{align:"center",children:[x.jsx(Sn,{px:2,children:x.jsx(Xye,{})}),x.jsx(zr,{flex:1,fontSize:"sm",as:"strong",children:S?"Today":T?"Yesterday":y})]})}),(n||h)&&!c&&x.jsxs(qt,{children:[r&&x.jsx(Br,{variant:"ghost",size:"sm",icon:x.jsx(uP,{}),"aria-label":"Edit summary",title:"Edit summary",onClick:()=>u(!0)}),x.jsx(Br,{variant:"ghost",size:"sm",icon:x.jsx(ix,{}),"aria-label":"Delete chat",title:"Delete chat",onClick:i})]})]}),x.jsx(Sn,{flex:1,maxW:"100%",minH:"24px",children:c?x.jsx("form",{onSubmit:g,children:x.jsxs(qt,{align:"center",children:[x.jsx(fl,{flex:1,defaultValue:t.summary,type:"text",fontSize:"1rem",name:"summary",bg:"white",_dark:{bg:"gray.700"},size:"sm",borderRadius:4,mx:1,w:"100%",autoFocus:!0}),x.jsxs(qt,{children:[x.jsx(Br,{variant:"ghost",size:"sm",icon:x.jsx(xye,{}),"aria-label":"Cancel",title:"Cancel",onClick:()=>u(!1)}),x.jsx(Br,{type:"submit",variant:"ghost",size:"sm",icon:x.jsx(ylt,{}),"aria-label":"Save",title:"Save"})]})]})}):x.jsx(Td,{to:e,style:{width:"100%"},children:x.jsx(zr,{noOfLines:2,px:2,fontSize:"sm",title:s,w:"100%",children:s})})})]})}function mqt({func:t,url:e,isSelected:n,onDelete:r}){const i=ws(n?"gray.200":void 0,n?"gray.800":void 0),s=ws(n?"gray.300":"gray.100",n?"gray.900":"gray.600"),o=_.useRef(null),[a,l]=_.useState(!1);return _.useEffect(()=>{o.current&&n&&o.current.scrollIntoView()},[o,n]),x.jsxs(qt,{p:1,bg:i,border:"1px solid",borderColor:s,borderRadius:4,direction:"column",ref:o,_hover:{bg:ws(n?void 0:"gray.100",n?void 0:"gray.700")},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[x.jsxs(qt,{justify:"space-between",align:"center",minH:"32px",w:"100%",children:[x.jsx(Td,{to:e,style:{width:"100%"},children:x.jsxs(qt,{align:"center",children:[x.jsx(Sn,{px:2,children:x.jsx(MEe,{})}),x.jsx(zr,{flex:1,fontSize:"sm",as:"strong",children:t.prettyName})]})}),(n||a)&&x.jsx(Br,{variant:"ghost",size:"sm",icon:x.jsx(ix,{}),"aria-label":"Delete function",title:"Delete function",onClick:r})]}),x.jsx(Sn,{flex:1,maxW:"100%",minH:"24px",children:x.jsx(Td,{to:e,style:{width:"100%"},children:x.jsx(zr,{noOfLines:2,px:2,fontSize:"sm",title:t.description,w:"100%",children:t.description})})})]})}function XEe({selectedChat:t,selectedFunction:e}){const{user:n}=Lw(),r=oU(),[i,s]=_.useState(10),[o,a]=ZV("sidebar-accordion-index",0),l=w=>{a(w??0)},c=vg("count-chats",()=>vr.chats.count(),[],0),u=vg("recent-chats",async()=>{const w=await vr.chats.orderBy("date").reverse().limit(i).toArray();return w?(await Promise.all(w.map(({id:T})=>Vs.find(T)))).filter(T=>!!T):[]},[i],[]),h=vg("recent-functions",async()=>{const w=await vr.functions.orderBy("date").reverse().limit(i).toArray();return w?(await Promise.all(w.map(({id:T})=>al.find(T)))).filter(T=>!!T):[]},[i],[]),d=vg("shared-chats",async()=>{const w=await vr.shared.toArray();return w?w.map(S=>Ux.fromDB(S)):[]},[],[]);function p(){const w=Math.min(i+10,c);s(w)}function g(w){Vs.delete(w).then(()=>{t?.id===w&&r("/")}
1376).catch(S=>console.warn("Unable to delete chat",S))}function y(w){al.delete(w).then(()=>{e?.id===w&&r("/")}).catch(S=>console.warn("Unable to delete function",S))}function b(w){n&&Ux.delete(n,w).then(()=>{t?.id===w&&r("/")}).catch(S=>console.warn("Unable to delete shared chat",S))}return x.jsx(qt,{direction:"column",h:"100%",p:2,gap:4,children:x.jsxs(PH,{allowToggle:!0,index:o,onChange:l,children:[x.jsxs(C4,{children:[x.jsxs(W2,{p:2,minH:10,children:[x.jsxs(Qf,{as:"h3",size:"xs",children:["Saved Chats (",gg(c||0),")"]}),x.jsx(Yr,{as:Td,to:"/c/new",ml:1,size:"xs",variant:"ghost",children:"New"}),x.jsx(k4,{ml:"auto"})]}),x.jsxs(_4,{p:0,pb:4,children:[x.jsx(qt,{direction:"column",gap:2,children:u?.length>0&&u.map(w=>x.jsx(cce,{chat:w,url:`/c/${w.id}`,canEdit:!0,isSelected:t?.id===w.id,onDelete:()=>g(w.id)},w.id))}),i<c&&x.jsx(eO,{mt:4,children:x.jsxs(Yr,{size:"xs",variant:"ghost",onClick:()=>p(),children:["(",gg(i)," of ",gg(c),") Show More..."]})})]})]}),x.jsxs(C4,{children:[x.jsxs(W2,{p:2,minH:10,children:[x.jsxs(Qf,{as:"h3",size:"xs",children:["Shared Chats (",gg(d.length||0),")"]}),x.jsx(k4,{ml:"auto"})]}),x.jsx(_4,{p:0,pb:4,children:d?.length?d.map(w=>x.jsx(cce,{chat:w.chat,url:Wat(w.url),isSelected:t?.id===w.id,onDelete:()=>b(w.id)},w.id)):x.jsxs(Nu,{px:2,align:"left",children:[x.jsx(zr,{children:"You don't have any shared chats yet."}),x.jsxs(zr,{children:["Share your first chat by clicking the ",x.jsx("strong",{children:"Share Chat..."})," menu option in the chat header menu."]}),x.jsx(zr,{children:"Anyone with this URL will be able to read or duplicate the chat."})]})})]}),x.jsxs(C4,{children:[x.jsxs(W2,{p:2,minH:10,children:[x.jsxs(qt,{justify:"space-between",align:"center",children:[x.jsxs(Qf,{as:"h3",size:"xs",children:["Functions (",gg(h.length||0),")"]}),h?.length>0&&x.jsx(Yr,{as:Td,to:"/f/new",ml:1,size:"xs",variant:"ghost",children:"New"})]}),x.jsx(k4,{ml:"auto"})]}),x.jsx(_4,{p:0,pb:4,children:h?.length?h.map(w=>x.jsx(mqt,{func:w,url:`/f/${w.id}`,isSelected:e?.id===w.id,onDelete:()=>y(w.id)},w.id)):x.jsxs(Nu,{px:2,align:"left",children:[x.jsx(zr,{children:"You don't have any functions yet."}),x.jsx(zr,{children:"Functions can be called by some models to perform tasks."}),x.jsx(Td,{to:"/f/new",style:{textDecoration:"underline"},children:"Create a function"})]})})]})]})})}function gqt({isSidebarVisible:t,selectedChat:e,selectedFunction:n}){const r=rp` 1377 from { 1378 opacity: 0; 1379 } 1380 1381 to { 1382 opacity: 1; 1383 } 1384 `,i=rp` 1385 from { 1386 transform: scaleX(1); 1387 } 1388 1389 to { 1390 transform: scaleX(0); 1391 } 1392 `,s=`${r} 500ms ease-in-out forwards`,o=`${i} 100ms ease-in-out forwards`;return x.jsx(Sn,{transformOrigin:"left",animation:t?s:o,children:x.jsx(XEe,{selectedChat:e,selectedFunction:n})})}function yqt({searchText:t,handleToggleSidebarVisible:e,isSidebarVisible:n,selectedChat:r,selectedFunction:i}){const s=ws("blue.600","blue.200");return x.jsxs(WWe,{autoFocus:!1,isOpen:n,onClose:e,placement:"left",children:[x.jsx(hb,{}),x.jsxs(Efe,{children:[x.jsxs(Dx,{mt:2,p:2,children:[x.jsx(zr,{position:"relative",top:-1,ml:2,mb:2,fontSize:"lg",fontWeight:"bold",color:s,children:"<ChatCraft />"}),x.jsx(cU,{action:"/s",method:"get",onSubmit:e,children:x.jsxs(Kf,{size:"sm",variant:"outline",children:[x.jsx(fl,{fontSize:"1rem",type:"search",defaultValue:t,name:"q",borderRadius:4,isRequired:!0,placeholder:"Search chat history"}),x.jsx(WC,{children:x.jsx(Br,{size:"sm",height:"2rem","aria-label":"Search",variant:"ghost",icon:x.jsx(YO,{}),type:"submit"})})]})}),x.jsx(ub,{})]}),x.jsx(cb,{m:0,p:0,children:x.jsx(XEe,{selectedChat:r,selectedFunction:i})})]})]})}function JEe(t){return gp()?x.jsx(yqt,{...t}):x.jsx(gqt,{...t})}class bqt extends jc{constructor(){super("new","/new","Creates a new chat.")}async execute(){location.href="/c/new"}}class vqt extends jc{constructor(){super("clear","/clear","Erases all messages in the current chat.")}async execute(e){return e.resetMessages()}}class xqt extends jc{constructor(){super("summary","/summary [max-length]","Uses ChatGPT to create a summary of the current chat. Optionally takes a maximum word length (defaults to 500).")}async execute(e,n,r){const i=Number(r?.[0]??500),s=new Fc({text:`You are an expert at summarizing chat history. You respond ONLY with the summary text and focus on the main content of the chat, NEVER mentioning the process, participants, and DON'T refer to "the chat"; that is, give a content summary and not a statement like "The chat involved..."`}),o=new Go({text:`Summarize in ${i} words or fewer.`}),a=e.messages({includeAppMessages:!1,includeSystemMessages:!1});return Tme([s,...a,o]).promise.then(l=>{const u=`**Command**: summary 1393 1394${l.text}`;e.addMessage(new Go({user:n,text:u}))})}}class wqt extends jc{constructor(){super("help","/help","Shows this help message.")}async execute(e){return e.addMessage(new Us({text:"app:help"}))}}const Sqt=t=>{if(!t)return"text";t=t.toLowerCase().trim();const e={"text/html":"html","text/javascript":"javascript","application/javascript":"javascript","application/xml":"xml","application/atom+xml":"xml","application/rss+xml":"xml","application/json":"json","text/css":"css","text/markdown":"markdown","text/yaml":"yaml","text/x-python":"python"};for(const n in e)if(t.startsWith(n))return e[n];return"text"};class kqt extends jc{constructor(){super("import","/import <url>"," Loads the provided URL and imports the text. Where possible, ChatCraft will try to get raw text vs. HTML from sites like GitHub. NOTE: to prevent abuse, you must be logged into use the import
1394command.")}async execute(e,n,r){if(!n)throw new Error("you must be logged-in before you can use the /import command");if(!(r&&r[0]))throw new Error("must include a URL in command arguments");const[i]=r,s=await fetch(`/api/proxy?url=${encodeURIComponent(i)}`);if(!s.ok)throw new Error(`Unable to proxy request for URL: ${s.statusText}`);const o=Sqt(s.headers.get("Content-Type")),a=(await s.text()).trim(),c=`${`**Command**: import [${i}](${i})`} 1395 1396`+(o==="markdown"?a:`\`\`\`${o} 1397${a} 1398\`\`\``);return e.addMessage(new Go({user:n,text:c}))}}class Cqt extends jc{constructor(){super("image","/image [layout-option]<prompt>","/image [layout-option]<prompt> | Creates an image using the provided prompt. By default, the image will be square, and you can also change the layout to landscape or portrait by specifying `layout=[l\\|landscape\\|p\\|portrait]`")}async execute(e,n,r){const{info:i,loading:s,closeLoading:o}=await uXe();if(!await wXe())throw new Error("Failed to generate image, no image generation models available");if(!(r&&r[0]))throw new Error("must include a prompt");const[a,...l]=r,c=a.startsWith("layout="),u=c?l.join(" "):r.join(" ");let h="square",d="1024x1024";if(c){const b=a.split("=")[1];b=="l"||b=="landscape"?(d="1792x1024",h="landscape"):b=="p"||b=="portrait"?(d="1024x1792",h="portrait"):i({title:`Layout ${b} is not recognized`,message:"generating image using the default layout"})}const p=`(DALL·E 3 result ${c?`[layout ${h}]`:""} of the prompt: ${u})`;let g=[];const y=s({title:"Generating image, please wait."});try{g=await SXe({prompt:u,size:d})}catch(b){throw console.error(`Failed to generate image: ${b.message}`),new Error(`Failed to generate image: ${b.message}`)}finally{o(y)}return e.addMessage(new Go({user:n,text:p,imageUrls:g}))}}class _qt extends jc{constructor(){super("stats","/stats","Shows performance statistics for all operations")}async execute(e){const n=RKe();if(n.size===0)return e.addMessage(new Us({text:"No performance statistics available."}));const i=[`## Performance Statistics 1399`,"| Operation | Count | min/avg/max (ms) | Total (ms) |","|-----------|--------|-----------------|------------|",...Array.from(n.entries()).map(([s,o])=>({name:s,ops:o.operations,min:Number(o.minDuration.toFixed(2)),avg:Number((o.totalDuration/o.operations).toFixed(2)),max:Number(o.maxDuration.toFixed(2)),total:Number(o.totalDuration.toFixed(2))})).sort((s,o)=>o.total-s.total).map(s=>`| ${s.name} | ${s.ops} | ${s.min}/${s.avg}/${s.max} | ${s.total} |`)].join(` 1400`);return e.addMessage(new Us({text:i}))}}class Tqt extends jc{constructor(){super("duck","/duck","Do some SQL queries")}formatSqlQueryAndResult(e,n){return["```sql",e,"```",n]}async execute(e,n,r){let i,s;const o=[];if(r?.length)i=r.join(" "),s=await L1e(i,{chat:e}),o.push(...this.formatSqlQueryAndResult(i,s));else{i="SHOW TABLES;";const l=await Jet();o.push(...this.formatSqlQueryAndResult(i,l));const c=await Zet(e);c&&(i="SELECT * FROM glob('*');",o.push(...this.formatSqlQueryAndResult(i,c)))}const a=o.join(` 1401`);return e.addMessage(new Go({text:a}))}}class Eqt extends jc{constructor(){super("ls","/ls","List files attached to chat")}async execute(e){let n="";const r=e.files();if(!r.length)n+="No files.";else{n+=`Found ${r.length} file(s): 1402 1403`;for(const i of r){const{id:s,name:o,type:a,size:l}=i;n+=[`- \`${o}\``,` - ID: \`${s}\``,` - Type: \`${a}\``,` - Size: \`${gg(l)}\``,""].join(` 1404`)}}return e.addMessage(new Go({text:n}))}}Mc.registerCommand(new bqt);Mc.registerCommand(new vqt);Mc.registerCommand(new xqt);Mc.registerCommand(new wqt);Mc.registerCommand(new DEe);Mc.registerCommand(new kqt);Mc.registerCommand(new Cqt);Mc.registerCommand(new _qt);Mc.registerCommand(new Tqt);Mc.registerCommand(new Eqt);function Aqt(t){const[e,n]=_.useState("");return _.useEffect(()=>{n(t.summary||"New Chat")},[t.summary]),_.useEffect(()=>{document.title=`${e} - ChatCraft`},[e]),e}function Pqt({chat:t}){const{isOpen:e,onClose:n}=Id(),[r,i]=_.useState(null),{cost:s}=PEe(),[o,a]=_.useState(!1),{settings:l}=Ks(),c=Aqt(t),{error:u}=Eo();ebe("Escape",()=>a(!1),{event:"keydown"},[a]),_.useEffect(()=>{a(!1)},[t.id]),_.useEffect(()=>{l.countTokens&&t.tokens().then(i).catch(console.warn)},[l.countTokens,t]);const h=d=>{d.preventDefault();const g=new FormData(d.target).get("summary");typeof g=="string"&&(t.summary=g,t.save().catch(y=>{console.warn("Unable to update summary for chat",y),u({title:"Error Updating Chat",message:y.message})}).finally(()=>a(!1)))};return x.jsxs(x.Fragment,{children:[x.jsxs(l1,{variant:"filled",bg:"gray.200",size:"sm",border:"1px solid",borderColor:"gray.300",_dark:{bg:"gray.800",borderColor:"gray.900"},mt:2,children:[x.jsx(c1,{pb:0,children:x.jsx(Sn,{w:"100%",children:o?x.jsx("form",{onSubmit:h,children:x.jsxs(qt,{align:"center",gap:2,px:2,pb:2,children:[x.jsx(fl,{flex:1,defaultValue:t.summary,type:"text",name:"summary",bg:"white",_dark:{bg:"gray.700"},size:"sm",borderRadius:4,fontSize:"1rem",w:"100%",autoFocus:!0,placeholder:"Chat Summary"}),x.jsxs(cm,{children:[x.jsx(Yr,{variant:"outline",size:"sm",onClick:()=>a(!1),children:"Cancel"}),x.jsx(Yr,{size:"sm",type:"submit",children:"Save"})]})]})}):x.jsxs(qt,{align:"center",gap:2,maxW:"100%",children:[x.jsx(Sn,{children:x.jsx(Xye,{})}),x.jsx(zr,{fontSize:"md",fontWeight:"bold",noOfLines:1,title:c,children:x.jsx(bh,{as:Td,to:`/c/${t.id}`,children:c})}),!t.readonly&&l.currentProvider.apiKey&&x.jsx(Br,{variant:"ghost",size:"sm",icon:x.jsx(uP,{}),"aria-label":"Edit summary",title:"Edit summary",onClick:()=>a(!0)})]})})}),x.jsx(IH,{pt:0,children:x.jsxs(qt,{w:"100%",gap:4,color:"gray.500",_dark:{color:"gray.400"},children:[x.jsx(bh,{as:Td,to:`/c/${t.id}`,children:x.jsx(zr,{fontSize:"sm",ml:6,children:tV(t.date)})}),l.countTokens&&r&&x.jsxs(qt,{gap:2,children:[x.jsxs(r8,{size:"sm",variant:"outline",colorScheme:"gray",children:[gg(r)," Tokens"]}),x.jsx(r8,{size:"sm",variant:"outline",colorScheme:"gray",children:rXe(s)},"token-cost")]})]})})]}),x.jsx(NEe,{chat:t,isOpen:e,onClose:n})]})}function ZEe({chat:t}){const{error:e}
1404=pm(),{streamingMessage:n,callChatApi:r,cancel:i,paused:s,resume:o,togglePause:a}=UG(),{settings:l,setSettings:c}=Ks(),{isOpen:u,onToggle:h}=Id({defaultIsOpen:l.sidebarVisible}),[d,p]=_.useState(!1),{scrollProgress:g,shouldAutoScroll:y,setShouldAutoScroll:b,scrollBottomRef:w}=HG(),S=_.useRef(null),T=_.useRef(null),{error:D}=Eo(),{user:E}=Lw(),{clearAudioQueue:O}=b1(),[P,$]=_.useState(!1),{isOpen:W,onOpen:H,onClose:K}=Id(),{providers:Z}=v_();_.useEffect(()=>{const B=Object.keys(Z).length;$(B===0)},[Z]);const oe=_.useCallback(B=>{B.preventDefault(),T.current?.focus()},[]);_.useEffect(()=>{const B=Q=>{const ie=document.activeElement;if(!(ie instanceof HTMLInputElement||ie instanceof HTMLTextAreaElement))switch(Q.key){case"/":oe(Q);break;default:return}};return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[oe]),_.useEffect(()=>{e&&D({id:"api-error",title:"Error Connecting to AI Provider",message:e.message})},[e,D]);const te=_.useCallback(()=>{const B=!u;h(),c({...l,sidebarVisible:B})},[u,l,c,h]),re=_.useCallback(()=>{const B=S.current;if(!B)return;const Q=w.current;if(Q){const ie=Q.offsetTop+Q.offsetHeight;B.scrollTop=ie-B.offsetHeight}else B.scrollTop=B.scrollHeight},[S,w]);_.useEffect(()=>{y&&re()},[re,g,y,t.date]);const Y=_.useCallback(()=>{const B=S.current;if(!B)return;const Q=100,ie=w.current;let q;if(ie){const fe=ie.offsetTop+ie.offsetHeight;q=B.scrollTop+B.clientHeight>=fe-Q}else q=B.scrollTop+B.clientHeight>=B.scrollHeight-Q;g&&y&&!q&&b(!1),g&&!y&&q&&b(!0)},[w,g,y,b,S]);_.useEffect(()=>{const B=S.current;return B&&B.addEventListener("scroll",Y),()=>{B?.removeEventListener("scroll",Y)}},[S,Y,y]);const z=_.useCallback(async(B,Q)=>{p(!0),B?.toLowerCase()==="help"&&(B="/help");const ie=zw.getMatchingHandler(B??"");if(B&&ie){try{const fe=await ie.executeHandler(B);t.addMessage(new Go({user:E,text:fe})),re()}catch(fe){D({title:"Error running Web Handler",message:fe.message})}p(!1);return}if(B&&Mc.isCommand(B)){const fe=Mc.getCommand(B);if(fe){b(!0);try{await fe(t,E),re()}catch(ke){D({title:"Error Running Command",message:`There was an error running the command: ${ke.message}.`})}}else{const{command:ke}=jc.parseCommand(B),Be=Mc.getCommand(`/commands ${ke}`);b(!0);try{await Be(t,E),re()}catch(Qe){D({title:"Error Running Command",message:`There was an error running the command: ${Qe.message}.`})}}p(!1);return}let q;try{B?(q=new Go({text:B,imageUrls:Q,user:E}),await t.addMessage(q)):Q?.length&&(q=new Go({text:"",imageUrls:Q,user:E}),await t.addMessage(q));const fe=Ne=>{D({title:"Error Loading Function",message:Ne.message})},ke=await t.functions(fe);let Be;if(q&&ke){const Ne=await q.functions(fe);Ne?.length===1&&(Be=Ne[0])}const Qe=t.messages({includeAppMessages:!1});O();const ft=await r(Qe,{functions:ke,functionToCall:Be});if(await t.addMessage(ft),ft instanceof L0){const Ne=await al.find(ft.func.id);if(!Ne){D({title:"Function Error",message:`No such function: ${ft.func.name} (${ft.func.id}`});return}const rt=await Ne.invoke(ft.func.params);await t.addMessage(rt),l.alwaysSendFunctionResult&&await z(),re()}}catch(fe){fe instanceof _me&&fe.incompleteResponse&&await t.addMessage(fe.incompleteResponse),D({title:"Response Error",message:fe.message}),console.error(fe)}finally{p(!1),b(!1)}},[E,t,n,p,b,r,D]);function U(){b(!0),o()}const G=_.useMemo(()=>{if(P)return x.jsxs(kH,{status:"info",variant:"solid",sx:{py:1},display:"flex",justifyContent:"space-between",children:[x.jsxs(Sn,{display:"flex",alignItems:"center",children:[x.jsx(CH,{boxSize:"4"}),x.jsxs(_H,{fontSize:"sm",children:["You are using the default free AI Provider, which has limited features."," ",x.jsx(zr,{as:"span",cursor:"pointer",fontSize:"sm",textDecoration:"underline",onClick:H,children:"Click here"})," ","to add other AI providers."]})]}),x.jsx(zC,{size:"sm",onClick:()=>$(!1)})]})},[H,P]);return x.jsxs(UC,{w:"100%",h:"100%",gridTemplateRows:"min-content 1fr min-content",gridTemplateColumns:{base:"0 1fr",sm:u?"300px 4fr":"0: 1fr"},transition:"150ms",bgGradient:"linear(to-b, white, gray.100)",_dark:{bgGradient:"linear(to-b, gray.600, gray.700)"},children:[x.jsxs(yd,{colSpan:2,children:[G,x.jsx($W,{chatId:t.id,inputPromptRef:T,onToggleSidebar:te})]}
1404),x.jsx(yd,{rowSpan:2,overflowY:"auto",children:x.jsx(JEe,{selectedChat:t,isSidebarVisible:u,handleToggleSidebarVisible:te})}),x.jsx(yd,{overflowY:"auto",ref:S,pos:"relative",children:x.jsxs(qt,{direction:"column",h:"100%",maxH:"100%",maxW:"900px",mx:"auto",px:1,children:[!!g&&!y&&x.jsx(qt,{w:"100%",maxW:"900px",mx:"auto",justify:"center",position:"fixed",top:"5em",zIndex:"500",children:x.jsxs(Yr,{onClick:()=>U(),children:[x.jsx(rlt,{}),x.jsx(zr,{ml:2,children:"Follow Chat"})]})}),x.jsx(Pqt,{chat:t}),x.jsx(yKe,{}),x.jsx(GVt,{chat:t,newMessage:n,isLoading:d,onRemoveMessage:B=>t.removeMessage(B.id),isPaused:s,onTogglePause:a,onCancel:i,onPrompt:z})]})}),x.jsx(yd,{children:x.jsx(Sn,{maxW:"900px",mx:"auto",h:"100%",children:t.readonly?x.jsx(qt,{w:"100%",h:"45px",justify:"end",align:"center",p:2,children:x.jsx(t9,{chat:t,forkUrl:"./fork",variant:"solid"})}):x.jsx(pqt,{chat:t,forkUrl:"./fork",onSendClick:z,isLoading:d,previousMessage:t.messages().at(-1)?.text,inputPromptRef:T})})}),x.jsx(bxe,{isOpen:W,onClose:K,finalFocusRef:T})]})}function Oqt(){const t=lU(),e=vg("find-chat",()=>t?Vs.find(t):void 0,[t]);return e?x.jsx(EEe,{children:x.jsx(ZEe,{chat:e})}):null}function Iqt(){const t=lU();return t?x.jsx(EEe,{children:x.jsx(ZEe,{chat:t})}):null}async function Dqt({request:t}){const n=new URL(t.url).searchParams.get("q");if(!n)return No("/");const r=new RegExp(n,"i");return{searchText:n,messages:await vr.messages.where("text").notEqual("I am a helpful assistant! How can I help?").filter(i=>i.type==="generic"||i.type==="system"?!1:r.test(i.text)).reverse().sortBy("date")}}function Mqt(){const{searchText:t,messages:e}=lU(),n=e?[...new Set(e.map(h=>h.chatId))]:[],r=!!e?.length,{settings:i,setSettings:s}=Ks(),{isOpen:o,onToggle:a}=Id({defaultIsOpen:i.sidebarVisible}),l=_.useRef(null),c=_.useRef(null),u=_.useCallback(()=>{const h=!o;a(),s({...i,sidebarVisible:h})},[o,i,s,a]);return x.jsxs(UC,{w:"100%",h:"100%",gridTemplateRows:"min-content 1fr min-content",gridTemplateColumns:{base:"0 1fr",sm:o?"300px 4fr":"0: 1fr"},transition:"150ms",bgGradient:"linear(to-b, white, gray.100)",_dark:{bgGradient:"linear(to-b, gray.600, gray.700)"},children:[x.jsx(yd,{colSpan:2,children:x.jsx($W,{inputPromptRef:c,searchText:t,onToggleSidebar:u})}),x.jsx(yd,{rowSpan:3,overflowY:"auto",children:x.jsx(JEe,{searchText:t,isSidebarVisible:o,handleToggleSidebarVisible:u})}),x.jsx(yd,{overflowY:"auto",ref:l,pos:"relative",children:x.jsx(qt,{direction:"column",h:"100%",maxH:"100%",maxW:"900px",mx:"auto",px:1,children:r?x.jsxs(x.Fragment,{children:[x.jsx(l1,{variant:"filled",bg:"gray.100",size:"sm",border:"1px solid",borderColor:"gray.200",_dark:{bg:"gray.800",borderColor:"gray.900"},mt:2,children:x.jsx(c1,{children:x.jsx(Qf,{as:"h2",fontSize:"lg",children:x.jsxs(qt,{align:"center",gap:2,children:[x.jsx(vlt,{}),`${e.length} ${e.length>1?"Messages":"Message"} found in ${n.length} ${n.length>1?"Chats":"Chat"}`]})})})}),x.jsx(Sn,{flex:1,children:e.map(h=>x.jsx(hz,{message:Sh.fromDB(h),chatId:h.chatId,isLoading:!1},h.id))})]}):x.jsx(eO,{h:"100%",children:x.jsx(Qf,{as:"h2",size:"sm",mt:4,children:"No Results Found"})})})}),x.jsx(yd,{children:x.jsx(qt,{w:"100%",maxW:"900px",mx:"auto",h:"45px",justify:"end",align:"center",p:2,children:x.jsx(t9,{variant:"solid"})})})]})}function rd(){const t=npe();return console.error(t),x.jsxs(UC,{w:"100%",h:"100%",gridTemplateRows:"min-content 1fr",gridTemplateColumns:"1fr",bgGradient:"linear(to-b, white, gray.100)",_dark:{bgGradient:"linear(to-b, gray.600, gray.700)"},children:[x.jsx(yd,{colSpan:2,children:x.jsx($W,{searchText:"",onToggleSidebar:()=>{}})}),x.jsx(yd,{children:x.jsx(qt,{direction:"column",h:"100%",maxH:"100%",px:1,children:x.jsx(eO,{h:"100%",children:x.jsxs(l1,{size:"md",children:[x.jsx(nde,{children:x.jsxs(qt,{align:"center",gap:2,ml:4,children:[x.jsx(Lh,{as:adt,boxSize:5}),x.jsx(Qf,{as:"h2",size:"md",children:"Error"})]})}),x.jsx(c1,{children:x.jsx(nO,{children:x.jsxs(qt,{direction:"column",gap:4,children:[x.jsx(ade,{colorScheme:"gray",variant:"outline",children:t?t.toString():"Unknown Error"}),x.jsxs(zr,{children:["Please ",x.jsx("strong",{children:"close all other ChatCraft tabs and refresh"}),"."]}),x.jsxs(zr,{children:["If the problem persists,"," ",x.jsx("a",{href:"https://github.com/tarasglek/chatcraft.org",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub Repository",title:"GitHub Repository",style:{textDecoration:"underline"},children:"file an issue"})," ","so we can investigate further. See the DevTools Console for more error info."]})]})})}),x.jsx(IH,{children:x.jsx(Sn,{w:"100%",textAlign:"right",children:x.jsx(Yr,{colorScheme:"red",size:"sm",onClick:()=>{location.href="/"},children:"Refresh"})})})]})})})})]})}const Nqt=_.lazy(()=>ge(()=>import("./index-DxxqtL_v.js"),[])),Rqt=rKe([{path:"/",async loader(){try{const t=await vr.chats.orderBy("date").last();if(t)return No(`/c/${t.id}`)}catch(t){console.warn("Error getting most recent chat",t)}return No("/new")},errorElement:x.jsx(rd,{})},{path:"/new",async loader(){const t=new Vs;return await t.save(),No(`/c/${t.id}`)},errorElement:x.jsx(rd,{})},{path:"/c/new",async loader(){const t=new Vs;return await t.save(),No(`/c/${t.id}`)},errorElement:x.jsx(rd,{})},{path:"/c",element:x.jsx(AM,{to:"/new"})},{path:"/c/new",element:x.jsx(AM,{to:"/new"})},{path:"/c/:id",async loader({params:t}){const{id:e}=t;return e&&!await Vs.find(e)&&await new Vs({id:e}).save(),e},element:x.jsx(Oqt,{}),errorElement:x.jsx(rd,{})},{path:"/c/:id/delete",async action({params:t}){const{id:e}=t;if(e)try{await Vs.delete(e)}catch(n){console.warn("Unable to delete chat",{id:e,err:n})}return No("/")}},{path:"/c/:chatId/fork/:messageId?",async loader({params:t}){const{chatId:e,messageId:n}=t;if(!e)return console.error("No chatId passed to /fork"),No("/new");const r=await Vs.find(e);if(!r)return console.error("Couldn't find chat with given chatId"),No("/new");const i=await r.fork(n);return i?No(`/c/${i.id}`):(console.error("Couldn't fork"),No("/new"))},errorElement:x.jsx(rd,{})},{path:"/c/:user/:chatId",async loader({params:t}){const{user:e,chatId:n}=t;if(!(e&&n))return No("/");try{return mte(e,n)}catch(r){console.warn(`Error loading shared chat ${e}/${n}`,r),No("/")}},element:x.jsx(Iqt,{}),errorElement:x.jsx(rd,{})},{path:"/c/:user/:chatId/fork/:messageId?",async loader({params:t}){const{user:e,chatId:n,messageId:r}=t;if(!e)return console.error("No user info for remote chat to /fork"),No("/new");if(!n)return console.error("No chatId passed to /fork"),No("/new");let i;try{i=await mte(e,n)}catch(o){console.warn(`Error loading shared chat ${e}/${n}`,o),No("/")}if(!i)return console.error("Couldn't load remote chat with given chatId"),No("/new");const s=await i.fork(r);return s?No(`/c/${s.id}`):(console.error("Couldn't fork"),No("/new"))},errorElement:x.jsx(rd,{})},{path:"/s",loader:Dqt,element:x.jsx(Mqt,{}),errorElement:x.jsx(rd,{})},{path:"/f/new",async loader(){const t=await al.parse(bee);return await t.save(),No(`/f/${t.id}`)},errorElement:x.jsx(rd,{})},{path:"/f",element:x.jsx(AM,{to:"/f/new"}),errorElement:x.jsx(rd,{})},{path:"/f/:id",async loader({params:t}){const{id:e}=t;if(e&&!await al.find(e)){const n=await al.parse(bee);n.id=e,await n.save()}return e},element:x.jsx(_.Suspense,{fallback:null,children:x.jsx(Nqt,{})}),errorElement:x.jsx(rd,{})},{path:"/f/:id/delete",async action({params:t}){const{id:e}=t;if(e)try{await al.delete(e)}catch(n){console.warn("Unable to delete function",{id:e,err:n})}return No("/")}}]);Z6e.createRoot(document.querySelector("main")).render(x.jsx(ii.Str
1404ictMode,{children:x.jsx(fje,{theme:IP,children:x.jsx(Tbt,{children:x.jsx(gdt,{children:x.jsx(Pdt,{children:x.jsx(EVt,{children:x.jsx(Xdt,{children:x.jsx(Ydt,{children:x.jsxs(Ebt,{children:[x.jsx(gze,{initialColorMode:IP.config.initialColorMode}),x.jsx(dKe,{router:Rqt})]})})})})})})})})}));export{$Ne as $,PH as A,Sn as B,Fz as C,l1 as D,c1 as E,OH as F,Jhe as G,IH as H,Br as I,nde as J,eO as K,tO as L,Gje as M,sze as N,zC as O,ade as P,lue as Q,RNe as R,tde as S,jNe as T,LNe as U,gze as V,mze as W,lm as X,ws as Y,nO as Z,FNe as _,hje as a,LVe as a$,Yhe as a0,wk as a1,ude as a2,cde as a3,lde as a4,dde as a5,fde as a6,vze as a7,due as a8,qNe as a9,sO as aA,WC as aB,bd as aC,bh as aD,_k as aE,eUe as aF,sB as aG,JHe as aH,ZHe as aI,Jde as aJ,Zde as aK,YC as aL,ww as aM,QC as aN,hfe as aO,dfe as aP,ffe as aQ,mg as aR,aO as aS,TVe as aT,OVe as aU,DVe as aV,MVe as aW,KC as aX,PVe as aY,AVe as aZ,EVe as a_,wze as aa,Sze as ab,pde as ac,kze as ad,qt as ae,Yde as af,as as ag,pc as ah,Ob as ai,ide as aj,MH as ak,sde as al,VHe as am,md as an,UHe as ao,Ho as ap,Qde as aq,UC as ar,yd as as,Xde as at,Lh as au,VC as av,Zhe as aw,fl as ax,Kf as ay,YHe as az,fje as b,ru as b$,NVe as b0,RVe as b1,cb as b2,ub as b3,eU as b4,Dx as b5,hb as b6,WWe as b7,HWe as b8,Efe as b9,mqe as bA,P4 as bB,O4 as bC,cO as bD,uO as bE,dqe as bF,Lfe as bG,Pb as bH,Ffe as bI,Ak as bJ,Nu as bK,N$e as bL,a1 as bM,U$e as bN,Uhe as bO,zNe as bP,UNe as bQ,HNe as bR,lM as bS,L$e as bT,Ot as bU,da as bV,Hc as bW,ct as bX,fB as bY,XC as bZ,BJ as b_,lb as ba,nWe as bb,Bg as bc,Ib as bd,Ix as be,Sfe as bf,JVe as bg,mfe as bh,cfe as bi,Ha as bj,hue as bk,WNe as bl,xw as bm,Ofe as bn,Ife as bo,tqe as bp,dB as bq,oqe as br,iqe as bs,Mfe as bt,Dfe as bu,n8 as bv,Nfe as bw,A4 as bx,I4 as by,yqe as bz,Eqe as c,ji as c$,Hm as c0,FJ as c1,FS as c2,r8 as c3,Cqe as c4,wqe as c5,Sqe as c6,kqe as c7,$fe as c8,JC as c9,Id as cA,d4 as cB,VAe as cC,XAe as cD,JAe as cE,ZAe as cF,Cce as cG,Ss as cH,t8e as cI,n8e as cJ,I0 as cK,r8e as cL,Ng as cM,b8e as cN,Nce as cO,o7e as cP,Cs as cQ,Bqt as cR,Fqt as cS,a7e as cT,Oce as cU,$P as cV,h7e as cW,e7e as cX,Mce as cY,J8e as cZ,Cz as c_,J$e as ca,Ghe as cb,Tqe as cc,cje as cd,Ef as ce,Aqe as cf,Cd as cg,Oqe as ch,Qhe as ci,$We as cj,_fe as ck,NWe as cl,kfe as cm,Tfe as cn,DWe as co,M3 as cp,_y as cq,YL as cr,Sd as cs,Qf as ct,zr as cu,ode as cv,$Ae as cw,zl as cx,BP as cy,Sz as cz,W2 as d,Dc as d$,x8e as d0,l6 as d1,Ni as d2,R8e as d3,kL as d4,L8e as d5,zA as d6,Dce as d7,F8e as d8,th as d9,Fi as dA,pi as dB,pt as dC,Hxe as dD,Wa as dE,nm as dF,Sb as dG,_wt as dH,pkt as dI,Hw as dJ,P3e as dK,AGt as dL,XGt as dM,QGt as dN,Nf as dO,j2t as dP,z2t as dQ,Jxt as dR,Xxt as dS,KCt as dT,zGt as dU,R2t as dV,PGt as dW,q4 as dX,Xvt as dY,U2t as dZ,vq as d_,Y8e as da,V8e as db,f4 as dc,B8e as dd,Ps as de,G8e as df,K8e as dg,Q8e as dh,q8e as di,W8e as dj,y0 as dk,g7e as dl,Xn as dm,v7e as dn,b7e as dp,y7e as dq,T7e as dr,C7e as ds,LMe as dt,RMe as du,F as dv,F2t as dw,$2t as dx,B2t as dy,L2t as dz,k4 as e,nCt as e$,Mxe as e0,hkt as e1,k_t as e2,cse as e3,s2t as e4,iw as e5,EGt as e6,_I as e7,nkt as e8,HW as e9,kke as eA,KGt as eB,xr as eC,fp as eD,Zxt as eE,ca as eF,w1 as eG,tq as eH,X3e as eI,$b as eJ,E3e as eK,l8 as eL,Ect as eM,Qht as eN,yct as eO,qV as eP,Wte as eQ,x_t as eR,GGt as eS,YGt as eT,WGt as eU,On as eV,qGt as eW,n_t as eX,JCt as eY,XCt as eZ,zc as e_,fie as ea,G4t as eb,_A as ec,ukt as ed,M_ as ee,I2t as ef,D_ as eg,gn as eh,Bn as ei,Uxe as ej,U4t as ek,jie as el,$ie as em,FGt as en,MGt as eo,LGt as ep,RGt as eq,IGt as er,Rv as es,cq as et,BGt as eu,DGt as ev,jGt as ew,$Gt as ex,NGt as ey,PCt as ez,C4 as f,Ac as f$,I7 as f0,dI as f1,Ibt as f2,Rve as f3,Bbt as f4,Ze as f5,TGt as f6,Cmt as f7,m7 as f8,Jt as f9,JEe as fA,MEe as fB,blt as fC,Gte as fD,VV as fE,ix as fF,tV as fG,xd as fH,V4t as fI,ii as fJ,ss as fK,vI as fL,wwt as fM,xwt as fN,Lqt as fO,Tte as fP,Pct as fQ,Bye as fR,QO as fS,XO as fT,$lt as fU,Wk as fV,Aye as fW,Oye as fX,hp as fY,Iye as fZ,Cct as f_,_Gt as fa,X1t as fb,wmt as fc,xmt as fd,$ve as fe,Hve as ff,CGt as fg,are as fh,kGt as fi,Rmt as fj,Ka as fk,dt as fl,xGt as fm,_a as fn,_ as fo,cxe as fp,ixe as fq,JV as fr,Eo as fs,SKe as ft,lU as fu,Ks as fv,vg as fw,al as fx,Yht as fy,$W as fz,_4 as g,g3t as g0,iq as g1,jSe as g2,L_ as g3,USe as g4,OGt as g5,Svt as g6,sq as g7,dg as g8,Mie as g9,y1 as gA,Vte as gB,YV as gC,Dye as gD,SF as gE,w3 as gF,Oct as gG,JO as gH,eht as gI,Lb as gJ,ge as gK,k3t as ga,yC as gb,vct as gc,Tct as gd,Wht as ge,GV as gf,uut as gg,Fye as gh,rdt as gi,put as gj,but as gk,b_ as gl,Vx as gm,n7 as gn,_ct as go,$ye as gp,zht as gq,Hht as gr,Nw as g
1404s,hy as gt,Mte as gu,dct as gv,KV as gw,Nht as gx,Uht as gy,Rw as gz,Cje as h,kje as i,x as j,AH as k,_je as l,kH as m,wH as n,SH as o,_H as p,CH as q,qhe as r,kd as s,Yce as t,ZP as u,Mje as v,Yr as w,cm as x,QL as y,Fje as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.