var Em=e=>{throw TypeError(e)};var Vc=(e,t,n)=>t.has(e)||Em("Cannot "+n);var W=(e,t,n)=>(Vc(e,t,"read from private field"),n?n.call(e):t.get(e)),_e=(e,t,n)=>t.has(e)?Em("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ee=(e,t,n,r)=>(Vc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),vt=(e,t,n)=>(Vc(e,t,"access private method"),n);var al=(e,t,n,r)=>({set _(i){Ee(e,t,i,n)},get _(){return W(e,t,r)}});function Vv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xy={exports:{}},tc={},by={exports:{}},we={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $o=Symbol.for("react.element"),Yv=Symbol.for("react.portal"),Gv=Symbol.for("react.fragment"),qv=Symbol.for("react.strict_mode"),Qv=Symbol.for("react.profiler"),Kv=Symbol.for("react.provider"),Xv=Symbol.for("react.context"),Jv=Symbol.for("react.forward_ref"),Zv=Symbol.for("react.suspense"),ew=Symbol.for("react.memo"),tw=Symbol.for("react.lazy"),Tm=Symbol.iterator;function nw(e){return e===null||typeof e!="object"?null:(e=Tm&&e[Tm]||e["@@iterator"],typeof e=="function"?e:null)}var Ey={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ty=Object.assign,vy={};function cs(e,t,n){this.props=e,this.context=t,this.refs=vy,this.updater=n||Ey}cs.prototype.isReactComponent={};cs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wy(){}wy.prototype=cs.prototype;function kh(e,t,n){this.props=e,this.context=t,this.refs=vy,this.updater=n||Ey}var Nh=kh.prototype=new wy;Nh.constructor=kh;Ty(Nh,cs.prototype);Nh.isPureReactComponent=!0;var vm=Array.isArray,Cy=Object.prototype.hasOwnProperty,_h={current:null},Ay={key:!0,ref:!0,__self:!0,__source:!0};function ky(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Cy.call(t,r)&&!Ay.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:$o,type:e,key:a,ref:s,props:i,_owner:_h.current}}function rw(e,t){return{$$typeof:$o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Sh(e){return typeof e=="object"&&e!==null&&e.$$typeof===$o}function iw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wm=/\/+/g;function Yc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?iw(""+e.key):t.toString(36)}function Ml(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case $o:case Yv:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Yc(s,0):r,vm(i)?(n="",e!=null&&(n=e.replace(wm,"$&/")+"/"),Ml(i,t,n,"",function(c){return c})):i!=null&&(Sh(i)&&(i=rw(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(wm,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",vm(e))for(var o=0;o<e.length;o++){a=e[o];var l=r+Yc(a,o);s+=Ml(a,t,n,l,i)}else if(l=nw(e),typeof l=="function")for(e=l.call(e),o=0;!(a=e.next()).done;)a=a.value,l=r+Yc(a,o++),s+=Ml(a,t,n,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function sl(e,t,n){if(e==null)return e;var r=[],i=0;return Ml(e,r,"","",function(a){return t.call(n,a,i++)}),r}function aw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var zt={current:null},Fl={transition:null},sw={ReactCurrentDispatcher:zt,ReactCurrentBatchConfig:Fl,ReactCurrentOwner:_h};function Ny(){throw Error("act(...) is not supported in production builds of React.")}we.Children={map:sl,forEach:function(e,t,n){sl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sl(e,function(){t++}),t},toArray:function(e){return sl(e,function(t){return t})||[]},only:function(e){if(!Sh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};we.Component=cs;we.Fragment=Gv;we.Profiler=Qv;we.PureComponent=kh;we.StrictMode=qv;we.Suspense=Zv;we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sw;we.act=Ny;we.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ty({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=_h.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)Cy.call(t,l)&&!Ay.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){o=Array(l);for(var c=0;c<l;c++)o[c]=arguments[c+2];r.children=o}return{$$typeof:$o,type:e.type,key:i,ref:a,props:r,_owner:s}};we.createContext=function(e){return e={$$typeof:Xv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Kv,_context:e},e.Consumer=e};we.createElement=ky;we.createFactory=function(e){var t=ky.bind(null,e);return t.type=e,t};we.createRef=function(){return{current:null}};we.forwardRef=function(e){return{$$typeof:Jv,render:e}};we.isValidElement=Sh;we.lazy=function(e){return{$$typeof:tw,_payload:{_status:-1,_result:e},_init:aw}};we.memo=function(e,t){return{$$typeof:ew,type:e,compare:t===void 0?null:t}};we.startTransition=function(e){var t=Fl.transition;Fl.transition={};try{e()}finally{Fl.transition=t}};we.unstable_act=Ny;we.useCallback=function(e,t){return zt.current.useCallback(e,t)};we.useContext=function(e){return zt.current.useContext(e)};we.useDebugValue=function(){};we.useDeferredValue=function(e){return zt.current.useDeferredValue(e)};we.useEffect=function(e,t){return zt.current.useEffect(e,t)};we.useId=function(){return zt.current.useId()};we.useImperativeHandle=function(e,t,n){return zt.current.useImperativeHandle(e,t,n)};we.useInsertionEffect=function(e,t){return zt.current.useInsertionEffect(e,t)};we.useLayoutEffect=function(e,t){return zt.current.useLayoutEffect(e,t)};we.useMemo=function(e,t){return zt.current.useMemo(e,t)};we.useReducer=function(e,t,n){return zt.current.useReducer(e,t,n)};we.useRef=function(e){return zt.current.useRef(e)};we.useState=function(e){return zt.current.useState(e)};we.useSyncExternalStore=function(e,t,n){return zt.current.useSyncExternalStore(e,t,n)};we.useTransition=function(){return zt.current.useTransition()};we.version="18.3.1";by.exports=we;var T=by.exports;const X=ec(T),_y=Vv({__proto__:null,default:X},[T]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ow=T,lw=Symbol.for("react.element"),uw=Symbol.for("react.fragment"),cw=Object.prototype.hasOwnProperty,dw=ow.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fw={key:!0,ref:!0,__self:!0,__source:!0};function Sy(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)cw.call(t,r)&&!fw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:lw,type:e,key:a,ref:s,props:i,_owner:dw.current}}tc.Fragment=uw;tc.jsx=Sy;tc.jsxs=Sy;xy.exports=tc;var u=xy.exports,Iy={exports:{}},mn={},Oy={exports:{}},Ly={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(D,q){var C=D.length;D.push(q);e:for(;0<C;){var re=C-1>>>1,ue=D[re];if(0<i(ue,q))D[re]=q,D[C]=ue,C=re;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var q=D[0],C=D.pop();if(C!==q){D[0]=C;e:for(var re=0,ue=D.length,_=ue>>>1;re<_;){var Te=2*(re+1)-1,He=D[Te],he=Te+1,Ze=D[he];if(0>i(He,C))he<ue&&0>i(Ze,He)?(D[re]=Ze,D[he]=C,re=he):(D[re]=He,D[Te]=C,re=Te);else if(he<ue&&0>i(Ze,C))D[re]=Ze,D[he]=C,re=he;else break e}}return q}function i(D,q){var C=D.sortIndex-q.sortIndex;return C!==0?C:D.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],f=1,h=null,p=3,m=!1,x=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(D){for(var q=n(c);q!==null;){if(q.callback===null)r(c);else if(q.startTime<=D)r(c),q.sortIndex=q.expirationTime,t(l,q);else break;q=n(c)}}function k(D){if(b=!1,E(D),!x)if(n(l)!==null)x=!0,ie(I);else{var q=n(c);q!==null&&se(k,q.startTime-D)}}function I(D,q){x=!1,b&&(b=!1,y(M),M=-1),m=!0;var C=p;try{for(E(q),h=n(l);h!==null&&(!(h.expirationTime>q)||D&&!Y());){var re=h.callback;if(typeof re=="function"){h.callback=null,p=h.priorityLevel;var ue=re(h.expirationTime<=q);q=e.unstable_now(),typeof ue=="function"?h.callback=ue:h===n(l)&&r(l),E(q)}else r(l);h=n(l)}if(h!==null)var _=!0;else{var Te=n(c);Te!==null&&se(k,Te.startTime-q),_=!1}return _}finally{h=null,p=C,m=!1}}var N=!1,L=null,M=-1,V=5,H=-1;function Y(){return!(e.unstable_now()-H<V)}function F(){if(L!==null){var D=e.unstable_now();H=D;var q=!0;try{q=L(!0,D)}finally{q?K():(N=!1,L=null)}}else N=!1}var K;if(typeof g=="function")K=function(){g(F)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,te=z.port2;z.port1.onmessage=F,K=function(){te.postMessage(null)}}else K=function(){v(F,0)};function ie(D){L=D,N||(N=!0,K())}function se(D,q){M=v(function(){D(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||m||(x=!0,ie(I))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var q=3;break;default:q=p}var C=p;p=q;try{return D()}finally{p=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var C=p;p=D;try{return q()}finally{p=C}},e.unstable_scheduleCallback=function(D,q,C){var re=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?re+C:re):C=re,D){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=C+ue,D={id:f++,callback:q,priorityLevel:D,startTime:C,expirationTime:ue,sortIndex:-1},C>re?(D.sortIndex=C,t(c,D),n(l)===null&&D===n(c)&&(b?(y(M),M=-1):b=!0,se(k,C-re))):(D.sortIndex=ue,t(l,D),x||m||(x=!0,ie(I))),D},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(D){var q=p;return function(){var C=p;p=q;try{return D.apply(this,arguments)}finally{p=C}}}})(Ly);Oy.exports=Ly;var hw=Oy.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pw=T,pn=hw;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ry=new Set,co={};function oa(e,t){Ka(e,t),Ka(e+"Capture",t)}function Ka(e,t){for(co[e]=t,e=0;e<t.length;e++)Ry.add(t[e])}var Or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yd=Object.prototype.hasOwnProperty,mw=/^[: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]*$/,Cm={},Am={};function gw(e){return Yd.call(Am,e)?!0:Yd.call(Cm,e)?!1:mw.test(e)?Am[e]=!0:(Cm[e]=!0,!1)}function yw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xw(e,t,n,r){if(t===null||typeof t>"u"||yw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wt(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tt[e]=new Wt(e,2,!1,e,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(e){Tt[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tt[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tt[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tt[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ih=/[\-:]([a-z])/g;function Oh(e){return e[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(e){var t=e.replace(Ih,Oh);Tt[t]=new Wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ih,Oh);Tt[t]=new Wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ih,Oh);Tt[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Tt.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tt[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lh(e,t,n,r){var i=Tt.hasOwnProperty(t)?Tt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xw(t,n,i,r)&&(n=null),r||i===null?gw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jr=pw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ol=Symbol.for("react.element"),ga=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),Rh=Symbol.for("react.strict_mode"),Gd=Symbol.for("react.profiler"),Py=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),Ph=Symbol.for("react.forward_ref"),qd=Symbol.for("react.suspense"),Qd=Symbol.for("react.suspense_list"),Dh=Symbol.for("react.memo"),Kr=Symbol.for("react.lazy"),My=Symbol.for("react.offscreen"),km=Symbol.iterator;function Cs(e){return e===null||typeof e!="object"?null:(e=km&&e[km]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Object.assign,Gc;function Bs(e){if(Gc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gc=t&&t[1]||""}return`
`+Gc+e}var qc=!1;function Qc(e,t){if(!e||qc)return"";qc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),a=r.stack.split(`
`),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==a[o]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{qc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bs(e):""}function bw(e){switch(e.tag){case 5:return Bs(e.type);case 16:return Bs("Lazy");case 13:return Bs("Suspense");case 19:return Bs("SuspenseList");case 0:case 2:case 15:return e=Qc(e.type,!1),e;case 11:return e=Qc(e.type.render,!1),e;case 1:return e=Qc(e.type,!0),e;default:return""}}function Kd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ya:return"Fragment";case ga:return"Portal";case Gd:return"Profiler";case Rh:return"StrictMode";case qd:return"Suspense";case Qd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dy:return(e.displayName||"Context")+".Consumer";case Py:return(e._context.displayName||"Context")+".Provider";case Ph:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Dh:return t=e.displayName||null,t!==null?t:Kd(e.type)||"Memo";case Kr:t=e._payload,e=e._init;try{return Kd(e(t))}catch{}}return null}function Ew(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kd(t);case 8:return t===Rh?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tw(e){var t=Fy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ll(e){e._valueTracker||(e._valueTracker=Tw(e))}function jy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function au(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xd(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function By(e,t){t=t.checked,t!=null&&Lh(e,"checked",t,!1)}function Jd(e,t){By(e,t);var n=vi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zd(e,t.type,vi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _m(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zd(e,t,n){(t!=="number"||au(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Us=Array.isArray;function La(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ef(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(J(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(J(92));if(Us(n)){if(1<n.length)throw Error(J(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vi(n)}}function Uy(e,t){var n=vi(t.value),r=vi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Im(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hy(e){switch(e){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 tf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ul,zy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ul=ul||document.createElement("div"),ul.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ul.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vs={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},vw=["Webkit","ms","Moz","O"];Object.keys(Vs).forEach(function(e){vw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vs[t]=Vs[e]})});function Wy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vs.hasOwnProperty(e)&&Vs[e]?(""+t).trim():t+"px"}function $y(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ww=$e({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 nf(e,t){if(t){if(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function rf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 af=null;function Mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sf=null,Ra=null,Pa=null;function Om(e){if(e=Go(e)){if(typeof sf!="function")throw Error(J(280));var t=e.stateNode;t&&(t=sc(t),sf(e.stateNode,e.type,t))}}function Vy(e){Ra?Pa?Pa.push(e):Pa=[e]:Ra=e}function Yy(){if(Ra){var e=Ra,t=Pa;if(Pa=Ra=null,Om(e),t)for(e=0;e<t.length;e++)Om(t[e])}}function Gy(e,t){return e(t)}function qy(){}var Kc=!1;function Qy(e,t,n){if(Kc)return e(t,n);Kc=!0;try{return Gy(e,t,n)}finally{Kc=!1,(Ra!==null||Pa!==null)&&(qy(),Yy())}}function ho(e,t){var n=e.stateNode;if(n===null)return null;var r=sc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(J(231,t,typeof n));return n}var of=!1;if(Or)try{var As={};Object.defineProperty(As,"passive",{get:function(){of=!0}}),window.addEventListener("test",As,As),window.removeEventListener("test",As,As)}catch{of=!1}function Cw(e,t,n,r,i,a,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Ys=!1,su=null,ou=!1,lf=null,Aw={onError:function(e){Ys=!0,su=e}};function kw(e,t,n,r,i,a,s,o,l){Ys=!1,su=null,Cw.apply(Aw,arguments)}function Nw(e,t,n,r,i,a,s,o,l){if(kw.apply(this,arguments),Ys){if(Ys){var c=su;Ys=!1,su=null}else throw Error(J(198));ou||(ou=!0,lf=c)}}function la(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ky(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Lm(e){if(la(e)!==e)throw Error(J(188))}function _w(e){var t=e.alternate;if(!t){if(t=la(e),t===null)throw Error(J(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Lm(i),e;if(a===r)return Lm(i),t;a=a.sibling}throw Error(J(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(J(189))}}if(n.alternate!==r)throw Error(J(190))}if(n.tag!==3)throw Error(J(188));return n.stateNode.current===n?e:t}function Xy(e){return e=_w(e),e!==null?Jy(e):null}function Jy(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jy(e);if(t!==null)return t;e=e.sibling}return null}var Zy=pn.unstable_scheduleCallback,Rm=pn.unstable_cancelCallback,Sw=pn.unstable_shouldYield,Iw=pn.unstable_requestPaint,Xe=pn.unstable_now,Ow=pn.unstable_getCurrentPriorityLevel,Fh=pn.unstable_ImmediatePriority,ex=pn.unstable_UserBlockingPriority,lu=pn.unstable_NormalPriority,Lw=pn.unstable_LowPriority,tx=pn.unstable_IdlePriority,nc=null,dr=null;function Rw(e){if(dr&&typeof dr.onCommitFiberRoot=="function")try{dr.onCommitFiberRoot(nc,e,void 0,(e.current.flags&128)===128)}catch{}}var $n=Math.clz32?Math.clz32:Mw,Pw=Math.log,Dw=Math.LN2;function Mw(e){return e>>>=0,e===0?32:31-(Pw(e)/Dw|0)|0}var cl=64,dl=4194304;function Hs(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=Hs(o):(a&=s,a!==0&&(r=Hs(a)))}else s=n&~i,s!==0?r=Hs(s):a!==0&&(r=Hs(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$n(t),i=1<<n,r|=e[n],t&=~i;return r}function Fw(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 jw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-$n(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=Fw(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function uf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nx(){var e=cl;return cl<<=1,!(cl&4194240)&&(cl=64),e}function Xc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$n(t),e[t]=n}function Bw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-$n(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function jh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Se=0;function rx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ix,Bh,ax,sx,ox,cf=!1,fl=[],fi=null,hi=null,pi=null,po=new Map,mo=new Map,Zr=[],Uw="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 Pm(e,t){switch(e){case"focusin":case"focusout":fi=null;break;case"dragenter":case"dragleave":hi=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":po.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(t.pointerId)}}function ks(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Go(t),t!==null&&Bh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hw(e,t,n,r,i){switch(t){case"focusin":return fi=ks(fi,e,t,n,r,i),!0;case"dragenter":return hi=ks(hi,e,t,n,r,i),!0;case"mouseover":return pi=ks(pi,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return po.set(a,ks(po.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,mo.set(a,ks(mo.get(a)||null,e,t,n,r,i)),!0}return!1}function lx(e){var t=Ui(e.target);if(t!==null){var n=la(t);if(n!==null){if(t=n.tag,t===13){if(t=Ky(n),t!==null){e.blockedOn=t,ox(e.priority,function(){ax(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=df(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);af=r,n.target.dispatchEvent(r),af=null}else return t=Go(n),t!==null&&Bh(t),e.blockedOn=n,!1;t.shift()}return!0}function Dm(e,t,n){jl(e)&&n.delete(t)}function zw(){cf=!1,fi!==null&&jl(fi)&&(fi=null),hi!==null&&jl(hi)&&(hi=null),pi!==null&&jl(pi)&&(pi=null),po.forEach(Dm),mo.forEach(Dm)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,cf||(cf=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,zw)))}function go(e){function t(i){return Ns(i,e)}if(0<fl.length){Ns(fl[0],e);for(var n=1;n<fl.length;n++){var r=fl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fi!==null&&Ns(fi,e),hi!==null&&Ns(hi,e),pi!==null&&Ns(pi,e),po.forEach(t),mo.forEach(t),n=0;n<Zr.length;n++)r=Zr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Zr.length&&(n=Zr[0],n.blockedOn===null);)lx(n),n.blockedOn===null&&Zr.shift()}var Da=jr.ReactCurrentBatchConfig,cu=!0;function Ww(e,t,n,r){var i=Se,a=Da.transition;Da.transition=null;try{Se=1,Uh(e,t,n,r)}finally{Se=i,Da.transition=a}}function $w(e,t,n,r){var i=Se,a=Da.transition;Da.transition=null;try{Se=4,Uh(e,t,n,r)}finally{Se=i,Da.transition=a}}function Uh(e,t,n,r){if(cu){var i=df(e,t,n,r);if(i===null)od(e,t,r,du,n),Pm(e,r);else if(Hw(i,e,t,n,r))r.stopPropagation();else if(Pm(e,r),t&4&&-1<Uw.indexOf(e)){for(;i!==null;){var a=Go(i);if(a!==null&&ix(a),a=df(e,t,n,r),a===null&&od(e,t,r,du,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else od(e,t,r,null,n)}}var du=null;function df(e,t,n,r){if(du=null,e=Mh(r),e=Ui(e),e!==null)if(t=la(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ky(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return du=e,null}function ux(e){switch(e){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(Ow()){case Fh:return 1;case ex:return 4;case lu:case Lw:return 16;case tx:return 536870912;default:return 16}default:return 16}}var oi=null,Hh=null,Bl=null;function cx(){if(Bl)return Bl;var e,t=Hh,n=t.length,r,i="value"in oi?oi.value:oi.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return Bl=i.slice(e,1<r?1-r:void 0)}function Ul(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hl(){return!0}function Mm(){return!1}function gn(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?hl:Mm,this.isPropagationStopped=Mm,this}return $e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),t}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zh=gn(ds),Yo=$e({},ds,{view:0,detail:0}),Vw=gn(Yo),Jc,Zc,_s,rc=$e({},Yo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_s&&(_s&&e.type==="mousemove"?(Jc=e.screenX-_s.screenX,Zc=e.screenY-_s.screenY):Zc=Jc=0,_s=e),Jc)},movementY:function(e){return"movementY"in e?e.movementY:Zc}}),Fm=gn(rc),Yw=$e({},rc,{dataTransfer:0}),Gw=gn(Yw),qw=$e({},Yo,{relatedTarget:0}),ed=gn(qw),Qw=$e({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),Kw=gn(Qw),Xw=$e({},ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jw=gn(Xw),Zw=$e({},ds,{data:0}),jm=gn(Zw),eC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tC={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"},nC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nC[e])?!!t[e]:!1}function Wh(){return rC}var iC=$e({},Yo,{key:function(e){if(e.key){var t=eC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ul(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wh,charCode:function(e){return e.type==="keypress"?Ul(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ul(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aC=gn(iC),sC=$e({},rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bm=gn(sC),oC=$e({},Yo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wh}),lC=gn(oC),uC=$e({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),cC=gn(uC),dC=$e({},rc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fC=gn(dC),hC=[9,13,27,32],$h=Or&&"CompositionEvent"in window,Gs=null;Or&&"documentMode"in document&&(Gs=document.documentMode);var pC=Or&&"TextEvent"in window&&!Gs,dx=Or&&(!$h||Gs&&8<Gs&&11>=Gs),Um=" ",Hm=!1;function fx(e,t){switch(e){case"keyup":return hC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function mC(e,t){switch(e){case"compositionend":return hx(t);case"keypress":return t.which!==32?null:(Hm=!0,Um);case"textInput":return e=t.data,e===Um&&Hm?null:e;default:return null}}function gC(e,t){if(xa)return e==="compositionend"||!$h&&fx(e,t)?(e=cx(),Bl=Hh=oi=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dx&&t.locale!=="ko"?null:t.data;default:return null}}var yC={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 zm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yC[e.type]:t==="textarea"}function px(e,t,n,r){Vy(r),t=fu(t,"onChange"),0<t.length&&(n=new zh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qs=null,yo=null;function xC(e){Ax(e,0)}function ic(e){var t=Ta(e);if(jy(t))return e}function bC(e,t){if(e==="change")return t}var mx=!1;if(Or){var td;if(Or){var nd="oninput"in document;if(!nd){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),nd=typeof Wm.oninput=="function"}td=nd}else td=!1;mx=td&&(!document.documentMode||9<document.documentMode)}function $m(){qs&&(qs.detachEvent("onpropertychange",gx),yo=qs=null)}function gx(e){if(e.propertyName==="value"&&ic(yo)){var t=[];px(t,yo,e,Mh(e)),Qy(xC,t)}}function EC(e,t,n){e==="focusin"?($m(),qs=t,yo=n,qs.attachEvent("onpropertychange",gx)):e==="focusout"&&$m()}function TC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ic(yo)}function vC(e,t){if(e==="click")return ic(t)}function wC(e,t){if(e==="input"||e==="change")return ic(t)}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yn=typeof Object.is=="function"?Object.is:CC;function xo(e,t){if(Yn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Yd.call(t,i)||!Yn(e[i],t[i]))return!1}return!0}function Vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ym(e,t){var n=Vm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vm(n)}}function yx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xx(){for(var e=window,t=au();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=au(e.document)}return t}function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function AC(e){var t=xx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yx(n.ownerDocument.documentElement,n)){if(r!==null&&Vh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ym(n,a);var s=Ym(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kC=Or&&"documentMode"in document&&11>=document.documentMode,ba=null,ff=null,Qs=null,hf=!1;function Gm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hf||ba==null||ba!==au(r)||(r=ba,"selectionStart"in r&&Vh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qs&&xo(Qs,r)||(Qs=r,r=fu(ff,"onSelect"),0<r.length&&(t=new zh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ba)))}function pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ea={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionend:pl("Transition","TransitionEnd")},rd={},bx={};Or&&(bx=document.createElement("div").style,"AnimationEvent"in window||(delete Ea.animationend.animation,delete Ea.animationiteration.animation,delete Ea.animationstart.animation),"TransitionEvent"in window||delete Ea.transitionend.transition);function ac(e){if(rd[e])return rd[e];if(!Ea[e])return e;var t=Ea[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bx)return rd[e]=t[n];return e}var Ex=ac("animationend"),Tx=ac("animationiteration"),vx=ac("animationstart"),wx=ac("transitionend"),Cx=new Map,qm="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 Si(e,t){Cx.set(e,t),oa(t,[e])}for(var id=0;id<qm.length;id++){var ad=qm[id],NC=ad.toLowerCase(),_C=ad[0].toUpperCase()+ad.slice(1);Si(NC,"on"+_C)}Si(Ex,"onAnimationEnd");Si(Tx,"onAnimationIteration");Si(vx,"onAnimationStart");Si("dblclick","onDoubleClick");Si("focusin","onFocus");Si("focusout","onBlur");Si(wx,"onTransitionEnd");Ka("onMouseEnter",["mouseout","mouseover"]);Ka("onMouseLeave",["mouseout","mouseover"]);Ka("onPointerEnter",["pointerout","pointerover"]);Ka("onPointerLeave",["pointerout","pointerover"]);oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));oa("onBeforeInput",["compositionend","keypress","textInput","paste"]);oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zs="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(" "),SC=new Set("cancel close invalid load scroll toggle".split(" ").concat(zs));function Qm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nw(r,t,void 0,e),e.currentTarget=null}function Ax(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;Qm(i,o,c),a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,c=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;Qm(i,o,c),a=l}}}if(ou)throw e=lf,ou=!1,lf=null,e}function Me(e,t){var n=t[xf];n===void 0&&(n=t[xf]=new Set);var r=e+"__bubble";n.has(r)||(kx(t,e,2,!1),n.add(r))}function sd(e,t,n){var r=0;t&&(r|=4),kx(n,e,r,t)}var ml="_reactListening"+Math.random().toString(36).slice(2);function bo(e){if(!e[ml]){e[ml]=!0,Ry.forEach(function(n){n!=="selectionchange"&&(SC.has(n)||sd(n,!1,e),sd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ml]||(t[ml]=!0,sd("selectionchange",!1,t))}}function kx(e,t,n,r){switch(ux(t)){case 1:var i=Ww;break;case 4:i=$w;break;default:i=Uh}n=i.bind(null,t,n,e),i=void 0,!of||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function od(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Ui(o),s===null)return;if(l=s.tag,l===5||l===6){r=a=s;continue e}o=o.parentNode}}r=r.return}Qy(function(){var c=a,f=Mh(n),h=[];e:{var p=Cx.get(e);if(p!==void 0){var m=zh,x=e;switch(e){case"keypress":if(Ul(n)===0)break e;case"keydown":case"keyup":m=aC;break;case"focusin":x="focus",m=ed;break;case"focusout":x="blur",m=ed;break;case"beforeblur":case"afterblur":m=ed;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Gw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=lC;break;case Ex:case Tx:case vx:m=Kw;break;case wx:m=cC;break;case"scroll":m=Vw;break;case"wheel":m=fC;break;case"copy":case"cut":case"paste":m=Jw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Bm}var b=(t&4)!==0,v=!b&&e==="scroll",y=b?p!==null?p+"Capture":null:p;b=[];for(var g=c,E;g!==null;){E=g;var k=E.stateNode;if(E.tag===5&&k!==null&&(E=k,y!==null&&(k=ho(g,y),k!=null&&b.push(Eo(g,k,E)))),v)break;g=g.return}0<b.length&&(p=new m(p,x,null,n,f),h.push({event:p,listeners:b}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==af&&(x=n.relatedTarget||n.fromElement)&&(Ui(x)||x[Lr]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(x=n.relatedTarget||n.toElement,m=c,x=x?Ui(x):null,x!==null&&(v=la(x),x!==v||x.tag!==5&&x.tag!==6)&&(x=null)):(m=null,x=c),m!==x)){if(b=Fm,k="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=Bm,k="onPointerLeave",y="onPointerEnter",g="pointer"),v=m==null?p:Ta(m),E=x==null?p:Ta(x),p=new b(k,g+"leave",m,n,f),p.target=v,p.relatedTarget=E,k=null,Ui(f)===c&&(b=new b(y,g+"enter",x,n,f),b.target=E,b.relatedTarget=v,k=b),v=k,m&&x)t:{for(b=m,y=x,g=0,E=b;E;E=fa(E))g++;for(E=0,k=y;k;k=fa(k))E++;for(;0<g-E;)b=fa(b),g--;for(;0<E-g;)y=fa(y),E--;for(;g--;){if(b===y||y!==null&&b===y.alternate)break t;b=fa(b),y=fa(y)}b=null}else b=null;m!==null&&Km(h,p,m,b,!1),x!==null&&v!==null&&Km(h,v,x,b,!0)}}e:{if(p=c?Ta(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var I=bC;else if(zm(p))if(mx)I=wC;else{I=TC;var N=EC}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(I=vC);if(I&&(I=I(e,c))){px(h,I,n,f);break e}N&&N(e,p,c),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&Zd(p,"number",p.value)}switch(N=c?Ta(c):window,e){case"focusin":(zm(N)||N.contentEditable==="true")&&(ba=N,ff=c,Qs=null);break;case"focusout":Qs=ff=ba=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,Gm(h,n,f);break;case"selectionchange":if(kC)break;case"keydown":case"keyup":Gm(h,n,f)}var L;if($h)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else xa?fx(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(dx&&n.locale!=="ko"&&(xa||M!=="onCompositionStart"?M==="onCompositionEnd"&&xa&&(L=cx()):(oi=f,Hh="value"in oi?oi.value:oi.textContent,xa=!0)),N=fu(c,M),0<N.length&&(M=new jm(M,e,null,n,f),h.push({event:M,listeners:N}),L?M.data=L:(L=hx(n),L!==null&&(M.data=L)))),(L=pC?mC(e,n):gC(e,n))&&(c=fu(c,"onBeforeInput"),0<c.length&&(f=new jm("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=L))}Ax(h,t)})}function Eo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fu(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ho(e,n),a!=null&&r.unshift(Eo(e,a,i)),a=ho(e,t),a!=null&&r.push(Eo(e,a,i))),e=e.return}return r}function fa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Km(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&c!==null&&(o=c,i?(l=ho(n,a),l!=null&&s.unshift(Eo(n,l,o))):i||(l=ho(n,a),l!=null&&s.push(Eo(n,l,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var IC=/\r\n?/g,OC=/\u0000|\uFFFD/g;function Xm(e){return(typeof e=="string"?e:""+e).replace(IC,`
`).replace(OC,"")}function gl(e,t,n){if(t=Xm(t),Xm(e)!==t&&n)throw Error(J(425))}function hu(){}var pf=null,mf=null;function gf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yf=typeof setTimeout=="function"?setTimeout:void 0,LC=typeof clearTimeout=="function"?clearTimeout:void 0,Jm=typeof Promise=="function"?Promise:void 0,RC=typeof queueMicrotask=="function"?queueMicrotask:typeof Jm<"u"?function(e){return Jm.resolve(null).then(e).catch(PC)}:yf;function PC(e){setTimeout(function(){throw e})}function ld(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),go(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);go(t)}function mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Zm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fs=Math.random().toString(36).slice(2),lr="__reactFiber$"+fs,To="__reactProps$"+fs,Lr="__reactContainer$"+fs,xf="__reactEvents$"+fs,DC="__reactListeners$"+fs,MC="__reactHandles$"+fs;function Ui(e){var t=e[lr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lr]||n[lr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zm(e);e!==null;){if(n=e[lr])return n;e=Zm(e)}return t}e=n,n=e.parentNode}return null}function Go(e){return e=e[lr]||e[Lr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ta(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function sc(e){return e[To]||null}var bf=[],va=-1;function Ii(e){return{current:e}}function je(e){0>va||(e.current=bf[va],bf[va]=null,va--)}function Le(e,t){va++,bf[va]=e.current,e.current=t}var wi={},_t=Ii(wi),Jt=Ii(!1),ea=wi;function Xa(e,t){var n=e.type.contextTypes;if(!n)return wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Zt(e){return e=e.childContextTypes,e!=null}function pu(){je(Jt),je(_t)}function e0(e,t,n){if(_t.current!==wi)throw Error(J(168));Le(_t,t),Le(Jt,n)}function Nx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(J(108,Ew(e)||"Unknown",i));return $e({},n,r)}function mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wi,ea=_t.current,Le(_t,e),Le(Jt,Jt.current),!0}function t0(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=Nx(e,t,ea),r.__reactInternalMemoizedMergedChildContext=e,je(Jt),je(_t),Le(_t,e)):je(Jt),Le(Jt,n)}var Ar=null,oc=!1,ud=!1;function _x(e){Ar===null?Ar=[e]:Ar.push(e)}function FC(e){oc=!0,_x(e)}function Oi(){if(!ud&&Ar!==null){ud=!0;var e=0,t=Se;try{var n=Ar;for(Se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ar=null,oc=!1}catch(i){throw Ar!==null&&(Ar=Ar.slice(e+1)),Zy(Fh,Oi),i}finally{Se=t,ud=!1}}return null}var wa=[],Ca=0,gu=null,yu=0,Cn=[],An=0,ta=null,Nr=1,_r="";function Mi(e,t){wa[Ca++]=yu,wa[Ca++]=gu,gu=e,yu=t}function Sx(e,t,n){Cn[An++]=Nr,Cn[An++]=_r,Cn[An++]=ta,ta=e;var r=Nr;e=_r;var i=32-$n(r)-1;r&=~(1<<i),n+=1;var a=32-$n(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Nr=1<<32-$n(t)+i|n<<i|r,_r=a+e}else Nr=1<<a|n<<i|r,_r=e}function Yh(e){e.return!==null&&(Mi(e,1),Sx(e,1,0))}function Gh(e){for(;e===gu;)gu=wa[--Ca],wa[Ca]=null,yu=wa[--Ca],wa[Ca]=null;for(;e===ta;)ta=Cn[--An],Cn[An]=null,_r=Cn[--An],Cn[An]=null,Nr=Cn[--An],Cn[An]=null}var fn=null,cn=null,Ue=!1,jn=null;function Ix(e,t){var n=_n(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function n0(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,fn=e,cn=mi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,fn=e,cn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ta!==null?{id:Nr,overflow:_r}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_n(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,fn=e,cn=null,!0):!1;default:return!1}}function Ef(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tf(e){if(Ue){var t=cn;if(t){var n=t;if(!n0(e,t)){if(Ef(e))throw Error(J(418));t=mi(n.nextSibling);var r=fn;t&&n0(e,t)?Ix(r,n):(e.flags=e.flags&-4097|2,Ue=!1,fn=e)}}else{if(Ef(e))throw Error(J(418));e.flags=e.flags&-4097|2,Ue=!1,fn=e}}}function r0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;fn=e}function yl(e){if(e!==fn)return!1;if(!Ue)return r0(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!gf(e.type,e.memoizedProps)),t&&(t=cn)){if(Ef(e))throw Ox(),Error(J(418));for(;t;)Ix(e,t),t=mi(t.nextSibling)}if(r0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){cn=mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}cn=null}}else cn=fn?mi(e.stateNode.nextSibling):null;return!0}function Ox(){for(var e=cn;e;)e=mi(e.nextSibling)}function Ja(){cn=fn=null,Ue=!1}function qh(e){jn===null?jn=[e]:jn.push(e)}var jC=jr.ReactCurrentBatchConfig;function Ss(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(J(309));var r=n.stateNode}if(!r)throw Error(J(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(J(284));if(!n._owner)throw Error(J(290,e))}return e}function xl(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function i0(e){var t=e._init;return t(e._payload)}function Lx(e){function t(y,g){if(e){var E=y.deletions;E===null?(y.deletions=[g],y.flags|=16):E.push(g)}}function n(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function r(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=bi(y,g),y.index=0,y.sibling=null,y}function a(y,g,E){return y.index=E,e?(E=y.alternate,E!==null?(E=E.index,E<g?(y.flags|=2,g):E):(y.flags|=2,g)):(y.flags|=1048576,g)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function o(y,g,E,k){return g===null||g.tag!==6?(g=gd(E,y.mode,k),g.return=y,g):(g=i(g,E),g.return=y,g)}function l(y,g,E,k){var I=E.type;return I===ya?f(y,g,E.props.children,k,E.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Kr&&i0(I)===g.type)?(k=i(g,E.props),k.ref=Ss(y,g,E),k.return=y,k):(k=Gl(E.type,E.key,E.props,null,y.mode,k),k.ref=Ss(y,g,E),k.return=y,k)}function c(y,g,E,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==E.containerInfo||g.stateNode.implementation!==E.implementation?(g=yd(E,y.mode,k),g.return=y,g):(g=i(g,E.children||[]),g.return=y,g)}function f(y,g,E,k,I){return g===null||g.tag!==7?(g=Ki(E,y.mode,k,I),g.return=y,g):(g=i(g,E),g.return=y,g)}function h(y,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return g=gd(""+g,y.mode,E),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ol:return E=Gl(g.type,g.key,g.props,null,y.mode,E),E.ref=Ss(y,null,g),E.return=y,E;case ga:return g=yd(g,y.mode,E),g.return=y,g;case Kr:var k=g._init;return h(y,k(g._payload),E)}if(Us(g)||Cs(g))return g=Ki(g,y.mode,E,null),g.return=y,g;xl(y,g)}return null}function p(y,g,E,k){var I=g!==null?g.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return I!==null?null:o(y,g,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ol:return E.key===I?l(y,g,E,k):null;case ga:return E.key===I?c(y,g,E,k):null;case Kr:return I=E._init,p(y,g,I(E._payload),k)}if(Us(E)||Cs(E))return I!==null?null:f(y,g,E,k,null);xl(y,E)}return null}function m(y,g,E,k,I){if(typeof k=="string"&&k!==""||typeof k=="number")return y=y.get(E)||null,o(g,y,""+k,I);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ol:return y=y.get(k.key===null?E:k.key)||null,l(g,y,k,I);case ga:return y=y.get(k.key===null?E:k.key)||null,c(g,y,k,I);case Kr:var N=k._init;return m(y,g,E,N(k._payload),I)}if(Us(k)||Cs(k))return y=y.get(E)||null,f(g,y,k,I,null);xl(g,k)}return null}function x(y,g,E,k){for(var I=null,N=null,L=g,M=g=0,V=null;L!==null&&M<E.length;M++){L.index>M?(V=L,L=null):V=L.sibling;var H=p(y,L,E[M],k);if(H===null){L===null&&(L=V);break}e&&L&&H.alternate===null&&t(y,L),g=a(H,g,M),N===null?I=H:N.sibling=H,N=H,L=V}if(M===E.length)return n(y,L),Ue&&Mi(y,M),I;if(L===null){for(;M<E.length;M++)L=h(y,E[M],k),L!==null&&(g=a(L,g,M),N===null?I=L:N.sibling=L,N=L);return Ue&&Mi(y,M),I}for(L=r(y,L);M<E.length;M++)V=m(L,y,M,E[M],k),V!==null&&(e&&V.alternate!==null&&L.delete(V.key===null?M:V.key),g=a(V,g,M),N===null?I=V:N.sibling=V,N=V);return e&&L.forEach(function(Y){return t(y,Y)}),Ue&&Mi(y,M),I}function b(y,g,E,k){var I=Cs(E);if(typeof I!="function")throw Error(J(150));if(E=I.call(E),E==null)throw Error(J(151));for(var N=I=null,L=g,M=g=0,V=null,H=E.next();L!==null&&!H.done;M++,H=E.next()){L.index>M?(V=L,L=null):V=L.sibling;var Y=p(y,L,H.value,k);if(Y===null){L===null&&(L=V);break}e&&L&&Y.alternate===null&&t(y,L),g=a(Y,g,M),N===null?I=Y:N.sibling=Y,N=Y,L=V}if(H.done)return n(y,L),Ue&&Mi(y,M),I;if(L===null){for(;!H.done;M++,H=E.next())H=h(y,H.value,k),H!==null&&(g=a(H,g,M),N===null?I=H:N.sibling=H,N=H);return Ue&&Mi(y,M),I}for(L=r(y,L);!H.done;M++,H=E.next())H=m(L,y,M,H.value,k),H!==null&&(e&&H.alternate!==null&&L.delete(H.key===null?M:H.key),g=a(H,g,M),N===null?I=H:N.sibling=H,N=H);return e&&L.forEach(function(F){return t(y,F)}),Ue&&Mi(y,M),I}function v(y,g,E,k){if(typeof E=="object"&&E!==null&&E.type===ya&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case ol:e:{for(var I=E.key,N=g;N!==null;){if(N.key===I){if(I=E.type,I===ya){if(N.tag===7){n(y,N.sibling),g=i(N,E.props.children),g.return=y,y=g;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Kr&&i0(I)===N.type){n(y,N.sibling),g=i(N,E.props),g.ref=Ss(y,N,E),g.return=y,y=g;break e}n(y,N);break}else t(y,N);N=N.sibling}E.type===ya?(g=Ki(E.props.children,y.mode,k,E.key),g.return=y,y=g):(k=Gl(E.type,E.key,E.props,null,y.mode,k),k.ref=Ss(y,g,E),k.return=y,y=k)}return s(y);case ga:e:{for(N=E.key;g!==null;){if(g.key===N)if(g.tag===4&&g.stateNode.containerInfo===E.containerInfo&&g.stateNode.implementation===E.implementation){n(y,g.sibling),g=i(g,E.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=yd(E,y.mode,k),g.return=y,y=g}return s(y);case Kr:return N=E._init,v(y,g,N(E._payload),k)}if(Us(E))return x(y,g,E,k);if(Cs(E))return b(y,g,E,k);xl(y,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,E),g.return=y,y=g):(n(y,g),g=gd(E,y.mode,k),g.return=y,y=g),s(y)):n(y,g)}return v}var Za=Lx(!0),Rx=Lx(!1),xu=Ii(null),bu=null,Aa=null,Qh=null;function Kh(){Qh=Aa=bu=null}function Xh(e){var t=xu.current;je(xu),e._currentValue=t}function vf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ma(e,t){bu=e,Qh=Aa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function In(e){var t=e._currentValue;if(Qh!==e)if(e={context:e,memoizedValue:t,next:null},Aa===null){if(bu===null)throw Error(J(308));Aa=e,bu.dependencies={lanes:0,firstContext:e}}else Aa=Aa.next=e;return t}var Hi=null;function Jh(e){Hi===null?Hi=[e]:Hi.push(e)}function Px(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Jh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Rr(e,r)}function Rr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xr=!1;function Zh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ir(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ke&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Rr(e,n)}return i=r.interleaved,i===null?(t.next=t,Jh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Rr(e,n)}function Hl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jh(e,n)}}function a0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Eu(e,t,n,r){var i=e.updateQueue;Xr=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,c=l.next;l.next=null,s===null?a=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=l))}if(a!==null){var h=i.baseState;s=0,f=c=l=null,o=a;do{var p=o.lane,m=o.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var x=e,b=o;switch(p=t,m=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){h=x.call(m,h,p);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,p=typeof x=="function"?x.call(m,h,p):x,p==null)break e;h=$e({},h,p);break e;case 2:Xr=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else m={eventTime:m,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(c=f=m,l=h):f=f.next=m,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ra|=s,e.lanes=s,e.memoizedState=h}}function s0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(J(191,i));i.call(r)}}}var qo={},fr=Ii(qo),vo=Ii(qo),wo=Ii(qo);function zi(e){if(e===qo)throw Error(J(174));return e}function ep(e,t){switch(Le(wo,t),Le(vo,e),Le(fr,qo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tf(t,e)}je(fr),Le(fr,t)}function es(){je(fr),je(vo),je(wo)}function Mx(e){zi(wo.current);var t=zi(fr.current),n=tf(t,e.type);t!==n&&(Le(vo,e),Le(fr,n))}function tp(e){vo.current===e&&(je(fr),je(vo))}var ze=Ii(0);function Tu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cd=[];function np(){for(var e=0;e<cd.length;e++)cd[e]._workInProgressVersionPrimary=null;cd.length=0}var zl=jr.ReactCurrentDispatcher,dd=jr.ReactCurrentBatchConfig,na=0,We=null,st=null,dt=null,vu=!1,Ks=!1,Co=0,BC=0;function wt(){throw Error(J(321))}function rp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yn(e[n],t[n]))return!1;return!0}function ip(e,t,n,r,i,a){if(na=a,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zl.current=e===null||e.memoizedState===null?WC:$C,e=n(r,i),Ks){a=0;do{if(Ks=!1,Co=0,25<=a)throw Error(J(301));a+=1,dt=st=null,t.updateQueue=null,zl.current=VC,e=n(r,i)}while(Ks)}if(zl.current=wu,t=st!==null&&st.next!==null,na=0,dt=st=We=null,vu=!1,t)throw Error(J(300));return e}function ap(){var e=Co!==0;return Co=0,e}function tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?We.memoizedState=dt=e:dt=dt.next=e,dt}function On(){if(st===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=st.next;var t=dt===null?We.memoizedState:dt.next;if(t!==null)dt=t,st=e;else{if(e===null)throw Error(J(310));st=e,e={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},dt===null?We.memoizedState=dt=e:dt=dt.next=e}return dt}function Ao(e,t){return typeof t=="function"?t(e):t}function fd(e){var t=On(),n=t.queue;if(n===null)throw Error(J(311));n.lastRenderedReducer=e;var r=st,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var o=s=null,l=null,c=a;do{var f=c.lane;if((na&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(o=l=h,s=r):l=l.next=h,We.lanes|=f,ra|=f}c=c.next}while(c!==null&&c!==a);l===null?s=r:l.next=o,Yn(r,t.memoizedState)||(Kt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,We.lanes|=a,ra|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hd(e){var t=On(),n=t.queue;if(n===null)throw Error(J(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Yn(a,t.memoizedState)||(Kt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Fx(){}function jx(e,t){var n=We,r=On(),i=t(),a=!Yn(r.memoizedState,i);if(a&&(r.memoizedState=i,Kt=!0),r=r.queue,sp(Hx.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||dt!==null&&dt.memoizedState.tag&1){if(n.flags|=2048,ko(9,Ux.bind(null,n,r,i,t),void 0,null),pt===null)throw Error(J(349));na&30||Bx(n,t,i)}return i}function Bx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ux(e,t,n,r){t.value=n,t.getSnapshot=r,zx(t)&&Wx(e)}function Hx(e,t,n){return n(function(){zx(t)&&Wx(e)})}function zx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yn(e,n)}catch{return!0}}function Wx(e){var t=Rr(e,1);t!==null&&Vn(t,e,1,-1)}function o0(e){var t=tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},t.queue=e,e=e.dispatch=zC.bind(null,We,e),[t.memoizedState,e]}function ko(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $x(){return On().memoizedState}function Wl(e,t,n,r){var i=tr();We.flags|=e,i.memoizedState=ko(1|t,n,void 0,r===void 0?null:r)}function lc(e,t,n,r){var i=On();r=r===void 0?null:r;var a=void 0;if(st!==null){var s=st.memoizedState;if(a=s.destroy,r!==null&&rp(r,s.deps)){i.memoizedState=ko(t,n,a,r);return}}We.flags|=e,i.memoizedState=ko(1|t,n,a,r)}function l0(e,t){return Wl(8390656,8,e,t)}function sp(e,t){return lc(2048,8,e,t)}function Vx(e,t){return lc(4,2,e,t)}function Yx(e,t){return lc(4,4,e,t)}function Gx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qx(e,t,n){return n=n!=null?n.concat([e]):null,lc(4,4,Gx.bind(null,t,e),n)}function op(){}function Qx(e,t){var n=On();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Kx(e,t){var n=On();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xx(e,t,n){return na&21?(Yn(n,t)||(n=nx(),We.lanes|=n,ra|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kt=!0),e.memoizedState=n)}function UC(e,t){var n=Se;Se=n!==0&&4>n?n:4,e(!0);var r=dd.transition;dd.transition={};try{e(!1),t()}finally{Se=n,dd.transition=r}}function Jx(){return On().memoizedState}function HC(e,t,n){var r=xi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zx(e))eb(t,n);else if(n=Px(e,t,n,r),n!==null){var i=Ht();Vn(n,e,r,i),tb(n,t,r)}}function zC(e,t,n){var r=xi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zx(e))eb(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Yn(o,s)){var l=t.interleaved;l===null?(i.next=i,Jh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Px(e,t,i,r),n!==null&&(i=Ht(),Vn(n,e,r,i),tb(n,t,r))}}function Zx(e){var t=e.alternate;return e===We||t!==null&&t===We}function eb(e,t){Ks=vu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jh(e,n)}}var wu={readContext:In,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},WC={readContext:In,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:l0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wl(4194308,4,Gx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wl(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HC.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:o0,useDebugValue:op,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=o0(!1),t=e[0];return e=UC.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=We,i=tr();if(Ue){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),pt===null)throw Error(J(349));na&30||Bx(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,l0(Hx.bind(null,r,a,e),[e]),r.flags|=2048,ko(9,Ux.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=tr(),t=pt.identifierPrefix;if(Ue){var n=_r,r=Nr;n=(r&~(1<<32-$n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Co++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=BC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$C={readContext:In,useCallback:Qx,useContext:In,useEffect:sp,useImperativeHandle:qx,useInsertionEffect:Vx,useLayoutEffect:Yx,useMemo:Kx,useReducer:fd,useRef:$x,useState:function(){return fd(Ao)},useDebugValue:op,useDeferredValue:function(e){var t=On();return Xx(t,st.memoizedState,e)},useTransition:function(){var e=fd(Ao)[0],t=On().memoizedState;return[e,t]},useMutableSource:Fx,useSyncExternalStore:jx,useId:Jx,unstable_isNewReconciler:!1},VC={readContext:In,useCallback:Qx,useContext:In,useEffect:sp,useImperativeHandle:qx,useInsertionEffect:Vx,useLayoutEffect:Yx,useMemo:Kx,useReducer:hd,useRef:$x,useState:function(){return hd(Ao)},useDebugValue:op,useDeferredValue:function(e){var t=On();return st===null?t.memoizedState=e:Xx(t,st.memoizedState,e)},useTransition:function(){var e=hd(Ao)[0],t=On().memoizedState;return[e,t]},useMutableSource:Fx,useSyncExternalStore:jx,useId:Jx,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=$e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function wf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var uc={isMounted:function(e){return(e=e._reactInternals)?la(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ht(),i=xi(e),a=Ir(r,i);a.payload=t,n!=null&&(a.callback=n),t=gi(e,a,i),t!==null&&(Vn(t,e,i,r),Hl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ht(),i=xi(e),a=Ir(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=gi(e,a,i),t!==null&&(Vn(t,e,i,r),Hl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ht(),r=xi(e),i=Ir(n,r);i.tag=2,t!=null&&(i.callback=t),t=gi(e,i,r),t!==null&&(Vn(t,e,r,n),Hl(t,e,r))}};function u0(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!xo(n,r)||!xo(i,a):!0}function nb(e,t,n){var r=!1,i=wi,a=t.contextType;return typeof a=="object"&&a!==null?a=In(a):(i=Zt(t)?ea:_t.current,r=t.contextTypes,a=(r=r!=null)?Xa(e,i):wi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=uc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function c0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&uc.enqueueReplaceState(t,t.state,null)}function Cf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Zh(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=In(a):(a=Zt(t)?ea:_t.current,i.context=Xa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(wf(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&uc.enqueueReplaceState(i,i.state,null),Eu(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ts(e,t){try{var n="",r=t;do n+=bw(r),r=r.return;while(r);var i=n}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function pd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Af(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YC=typeof WeakMap=="function"?WeakMap:Map;function rb(e,t,n){n=Ir(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Au||(Au=!0,Df=r),Af(e,t)},n}function ib(e,t,n){n=Ir(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Af(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Af(e,t),typeof r!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function d0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YC;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=sA.bind(null,e,t,n),t.then(e,e))}function f0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function h0(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ir(-1,1),t.tag=2,gi(n,t,1))),n.lanes|=1),e)}var GC=jr.ReactCurrentOwner,Kt=!1;function Mt(e,t,n,r){t.child=e===null?Rx(t,null,n,r):Za(t,e.child,n,r)}function p0(e,t,n,r,i){n=n.render;var a=t.ref;return Ma(t,i),r=ip(e,t,n,r,a,i),n=ap(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pr(e,t,i)):(Ue&&n&&Yh(t),t.flags|=1,Mt(e,t,r,i),t.child)}function m0(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!mp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,ab(e,t,a,r,i)):(e=Gl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:xo,n(s,r)&&e.ref===t.ref)return Pr(e,t,i)}return t.flags|=1,e=bi(a,r),e.ref=t.ref,e.return=t,t.child=e}function ab(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(xo(a,r)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,Pr(e,t,i)}return kf(e,t,n,r,i)}function sb(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Na,ln),ln|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(Na,ln),ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Le(Na,ln),ln|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Le(Na,ln),ln|=r;return Mt(e,t,i,n),t.child}function ob(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kf(e,t,n,r,i){var a=Zt(n)?ea:_t.current;return a=Xa(t,a),Ma(t,i),n=ip(e,t,n,r,a,i),r=ap(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pr(e,t,i)):(Ue&&r&&Yh(t),t.flags|=1,Mt(e,t,n,i),t.child)}function g0(e,t,n,r,i){if(Zt(n)){var a=!0;mu(t)}else a=!1;if(Ma(t,i),t.stateNode===null)$l(e,t),nb(t,n,r),Cf(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=In(c):(c=Zt(n)?ea:_t.current,c=Xa(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||l!==c)&&c0(t,s,r,c),Xr=!1;var p=t.memoizedState;s.state=p,Eu(t,r,s,i),l=t.memoizedState,o!==r||p!==l||Jt.current||Xr?(typeof f=="function"&&(wf(t,n,f,r),l=t.memoizedState),(o=Xr||u0(t,n,o,r,p,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Dx(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:Pn(t.type,o),s.props=c,h=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=In(l):(l=Zt(n)?ea:_t.current,l=Xa(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==h||p!==l)&&c0(t,s,r,l),Xr=!1,p=t.memoizedState,s.state=p,Eu(t,r,s,i);var x=t.memoizedState;o!==h||p!==x||Jt.current||Xr?(typeof m=="function"&&(wf(t,n,m,r),x=t.memoizedState),(c=Xr||u0(t,n,c,r,p,x,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Nf(e,t,n,r,a,i)}function Nf(e,t,n,r,i,a){ob(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&t0(t,n,!1),Pr(e,t,a);r=t.stateNode,GC.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Za(t,e.child,null,a),t.child=Za(t,null,o,a)):Mt(e,t,o,a),t.memoizedState=r.state,i&&t0(t,n,!0),t.child}function lb(e){var t=e.stateNode;t.pendingContext?e0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&e0(e,t.context,!1),ep(e,t.containerInfo)}function y0(e,t,n,r,i){return Ja(),qh(i),t.flags|=256,Mt(e,t,n,r),t.child}var _f={dehydrated:null,treeContext:null,retryLane:0};function Sf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ub(e,t,n){var r=t.pendingProps,i=ze.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le(ze,i&1),e===null)return Tf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=fc(s,r,0,null),e=Ki(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Sf(n),t.memoizedState=_f,e):lp(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return qC(e,t,s,r,o,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=bi(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=bi(o,a):(a=Ki(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?Sf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=_f,r}return a=e.child,e=a.sibling,r=bi(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function lp(e,t){return t=fc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bl(e,t,n,r){return r!==null&&qh(r),Za(t,e.child,null,n),e=lp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qC(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=pd(Error(J(422))),bl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=fc({mode:"visible",children:r.children},i,0,null),a=Ki(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Za(t,e.child,null,s),t.child.memoizedState=Sf(s),t.memoizedState=_f,a);if(!(t.mode&1))return bl(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,a=Error(J(419)),r=pd(a,r,void 0),bl(e,t,s,r)}if(o=(s&e.childLanes)!==0,Kt||o){if(r=pt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Rr(e,i),Vn(r,e,i,-1))}return pp(),r=pd(Error(J(421))),bl(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=oA.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,cn=mi(i.nextSibling),fn=t,Ue=!0,jn=null,e!==null&&(Cn[An++]=Nr,Cn[An++]=_r,Cn[An++]=ta,Nr=e.id,_r=e.overflow,ta=t),t=lp(t,r.children),t.flags|=4096,t)}function x0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vf(e.return,t,n)}function md(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function cb(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Mt(e,t,r.children,n),r=ze.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&x0(e,n,t);else if(e.tag===19)x0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Le(ze,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Tu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),md(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Tu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}md(t,!0,n,null,a);break;case"together":md(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $l(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ra|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,n=bi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function QC(e,t,n){switch(t.tag){case 3:lb(t),Ja();break;case 5:Mx(t);break;case 1:Zt(t.type)&&mu(t);break;case 4:ep(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Le(xu,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Le(ze,ze.current&1),t.flags|=128,null):n&t.child.childLanes?ub(e,t,n):(Le(ze,ze.current&1),e=Pr(e,t,n),e!==null?e.sibling:null);Le(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return cb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,sb(e,t,n)}return Pr(e,t,n)}var db,If,fb,hb;db=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};If=function(){};fb=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zi(fr.current);var a=null;switch(n){case"input":i=Xd(e,i),r=Xd(e,r),a=[];break;case"select":i=$e({},i,{value:void 0}),r=$e({},r,{value:void 0}),a=[];break;case"textarea":i=ef(e,i),r=ef(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hu)}nf(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var o=i[c];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(co.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(o=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==o&&(l!=null||o!=null))if(c==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(co.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Me("scroll",e),a||o===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};hb=function(e,t,n,r){n!==r&&(t.flags|=4)};function Is(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function KC(e,t,n){var r=t.pendingProps;switch(Gh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return Zt(t.type)&&pu(),Ct(t),null;case 3:return r=t.stateNode,es(),je(Jt),je(_t),np(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jn!==null&&(jf(jn),jn=null))),If(e,t),Ct(t),null;case 5:tp(t);var i=zi(wo.current);if(n=t.type,e!==null&&t.stateNode!=null)fb(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(J(166));return Ct(t),null}if(e=zi(fr.current),yl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[lr]=t,r[To]=a,e=(t.mode&1)!==0,n){case"dialog":Me("cancel",r),Me("close",r);break;case"iframe":case"object":case"embed":Me("load",r);break;case"video":case"audio":for(i=0;i<zs.length;i++)Me(zs[i],r);break;case"source":Me("error",r);break;case"img":case"image":case"link":Me("error",r),Me("load",r);break;case"details":Me("toggle",r);break;case"input":Nm(r,a),Me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Me("invalid",r);break;case"textarea":Sm(r,a),Me("invalid",r)}nf(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?r.textContent!==o&&(a.suppressHydrationWarning!==!0&&gl(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&gl(r.textContent,o,e),i=["children",""+o]):co.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&Me("scroll",r)}switch(n){case"input":ll(r),_m(r,a,!0);break;case"textarea":ll(r),Im(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=hu)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Hy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[lr]=t,e[To]=r,db(e,t,!1,!1),t.stateNode=e;e:{switch(s=rf(n,r),n){case"dialog":Me("cancel",e),Me("close",e),i=r;break;case"iframe":case"object":case"embed":Me("load",e),i=r;break;case"video":case"audio":for(i=0;i<zs.length;i++)Me(zs[i],e);i=r;break;case"source":Me("error",e),i=r;break;case"img":case"image":case"link":Me("error",e),Me("load",e),i=r;break;case"details":Me("toggle",e),i=r;break;case"input":Nm(e,r),i=Xd(e,r),Me("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=$e({},r,{value:void 0}),Me("invalid",e);break;case"textarea":Sm(e,r),i=ef(e,r),Me("invalid",e);break;default:i=r}nf(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?$y(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&zy(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&fo(e,l):typeof l=="number"&&fo(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(co.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Me("scroll",e):l!=null&&Lh(e,a,l,s))}switch(n){case"input":ll(e),_m(e,r,!1);break;case"textarea":ll(e),Im(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vi(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?La(e,!!r.multiple,a,!1):r.defaultValue!=null&&La(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=hu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ct(t),null;case 6:if(e&&t.stateNode!=null)hb(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(J(166));if(n=zi(wo.current),zi(fr.current),yl(t)){if(r=t.stateNode,n=t.memoizedProps,r[lr]=t,(a=r.nodeValue!==n)&&(e=fn,e!==null))switch(e.tag){case 3:gl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gl(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[lr]=t,t.stateNode=r}return Ct(t),null;case 13:if(je(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&cn!==null&&t.mode&1&&!(t.flags&128))Ox(),Ja(),t.flags|=98560,a=!1;else if(a=yl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(J(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(J(317));a[lr]=t}else Ja(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ct(t),a=!1}else jn!==null&&(jf(jn),jn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ze.current&1?lt===0&&(lt=3):pp())),t.updateQueue!==null&&(t.flags|=4),Ct(t),null);case 4:return es(),If(e,t),e===null&&bo(t.stateNode.containerInfo),Ct(t),null;case 10:return Xh(t.type._context),Ct(t),null;case 17:return Zt(t.type)&&pu(),Ct(t),null;case 19:if(je(ze),a=t.memoizedState,a===null)return Ct(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)Is(a,!1);else{if(lt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Tu(e),s!==null){for(t.flags|=128,Is(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Le(ze,ze.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xe()>ns&&(t.flags|=128,r=!0,Is(a,!1),t.lanes=4194304)}else{if(!r)if(e=Tu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Is(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ue)return Ct(t),null}else 2*Xe()-a.renderingStartTime>ns&&n!==1073741824&&(t.flags|=128,r=!0,Is(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ze.current,Le(ze,r?n&1|2:n&1),t):(Ct(t),null);case 22:case 23:return hp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ln&1073741824&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function XC(e,t){switch(Gh(t),t.tag){case 1:return Zt(t.type)&&pu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return es(),je(Jt),je(_t),np(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tp(t),null;case 13:if(je(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(ze),null;case 4:return es(),null;case 10:return Xh(t.type._context),null;case 22:case 23:return hp(),null;case 24:return null;default:return null}}var El=!1,kt=!1,JC=typeof WeakSet=="function"?WeakSet:Set,oe=null;function ka(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function Of(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var b0=!1;function ZC(e,t){if(pf=cu,e=xx(),Vh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(o=s+i),h!==a||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(o=s),p===a&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mf={focusedElem:e,selectionRange:n},cu=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,v=x.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Pn(t.type,b),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(k){Ge(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return x=b0,b0=!1,x}function Xs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Of(t,n,a)}i=i.next}while(i!==r)}}function cc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pb(e){var t=e.alternate;t!==null&&(e.alternate=null,pb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lr],delete t[To],delete t[xf],delete t[DC],delete t[MC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mb(e){return e.tag===5||e.tag===3||e.tag===4}function E0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hu));else if(r!==4&&(e=e.child,e!==null))for(Rf(e,t,n),e=e.sibling;e!==null;)Rf(e,t,n),e=e.sibling}function Pf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pf(e,t,n),e=e.sibling;e!==null;)Pf(e,t,n),e=e.sibling}var xt=null,Fn=!1;function zr(e,t,n){for(n=n.child;n!==null;)gb(e,t,n),n=n.sibling}function gb(e,t,n){if(dr&&typeof dr.onCommitFiberUnmount=="function")try{dr.onCommitFiberUnmount(nc,n)}catch{}switch(n.tag){case 5:kt||ka(n,t);case 6:var r=xt,i=Fn;xt=null,zr(e,t,n),xt=r,Fn=i,xt!==null&&(Fn?(e=xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xt.removeChild(n.stateNode));break;case 18:xt!==null&&(Fn?(e=xt,n=n.stateNode,e.nodeType===8?ld(e.parentNode,n):e.nodeType===1&&ld(e,n),go(e)):ld(xt,n.stateNode));break;case 4:r=xt,i=Fn,xt=n.stateNode.containerInfo,Fn=!0,zr(e,t,n),xt=r,Fn=i;break;case 0:case 11:case 14:case 15:if(!kt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&Of(n,t,s),i=i.next}while(i!==r)}zr(e,t,n);break;case 1:if(!kt&&(ka(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Ge(n,t,o)}zr(e,t,n);break;case 21:zr(e,t,n);break;case 22:n.mode&1?(kt=(r=kt)||n.memoizedState!==null,zr(e,t,n),kt=r):zr(e,t,n);break;default:zr(e,t,n)}}function T0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JC),t.forEach(function(r){var i=lA.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:xt=o.stateNode,Fn=!1;break e;case 3:xt=o.stateNode.containerInfo,Fn=!0;break e;case 4:xt=o.stateNode.containerInfo,Fn=!0;break e}o=o.return}if(xt===null)throw Error(J(160));gb(a,s,i),xt=null,Fn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Ge(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yb(t,e),t=t.sibling}function yb(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(t,e),er(e),r&4){try{Xs(3,e,e.return),cc(3,e)}catch(b){Ge(e,e.return,b)}try{Xs(5,e,e.return)}catch(b){Ge(e,e.return,b)}}break;case 1:Rn(t,e),er(e),r&512&&n!==null&&ka(n,n.return);break;case 5:if(Rn(t,e),er(e),r&512&&n!==null&&ka(n,n.return),e.flags&32){var i=e.stateNode;try{fo(i,"")}catch(b){Ge(e,e.return,b)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&By(i,a),rf(o,s);var c=rf(o,a);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?$y(i,h):f==="dangerouslySetInnerHTML"?zy(i,h):f==="children"?fo(i,h):Lh(i,f,h,c)}switch(o){case"input":Jd(i,a);break;case"textarea":Uy(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var m=a.value;m!=null?La(i,!!a.multiple,m,!1):p!==!!a.multiple&&(a.defaultValue!=null?La(i,!!a.multiple,a.defaultValue,!0):La(i,!!a.multiple,a.multiple?[]:"",!1))}i[To]=a}catch(b){Ge(e,e.return,b)}}break;case 6:if(Rn(t,e),er(e),r&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(b){Ge(e,e.return,b)}}break;case 3:if(Rn(t,e),er(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{go(t.containerInfo)}catch(b){Ge(e,e.return,b)}break;case 4:Rn(t,e),er(e);break;case 13:Rn(t,e),er(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(dp=Xe())),r&4&&T0(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(kt=(c=kt)||f,Rn(t,e),kt=c):Rn(t,e),er(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(oe=e,f=e.child;f!==null;){for(h=oe=f;oe!==null;){switch(p=oe,m=p.child,p.tag){case 0:case 11:case 14:case 15:Xs(4,p,p.return);break;case 1:ka(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Ge(r,n,b)}}break;case 5:ka(p,p.return);break;case 22:if(p.memoizedState!==null){w0(h);continue}}m!==null?(m.return=p,oe=m):w0(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=Wy("display",s))}catch(b){Ge(e,e.return,b)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(b){Ge(e,e.return,b)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Rn(t,e),er(e),r&4&&T0(e);break;case 21:break;default:Rn(t,e),er(e)}}function er(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mb(n)){var r=n;break e}n=n.return}throw Error(J(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(fo(i,""),r.flags&=-33);var a=E0(e);Pf(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=E0(e);Rf(e,o,s);break;default:throw Error(J(161))}}catch(l){Ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eA(e,t,n){oe=e,xb(e)}function xb(e,t,n){for(var r=(e.mode&1)!==0;oe!==null;){var i=oe,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||El;if(!s){var o=i.alternate,l=o!==null&&o.memoizedState!==null||kt;o=El;var c=kt;if(El=s,(kt=l)&&!c)for(oe=i;oe!==null;)s=oe,l=s.child,s.tag===22&&s.memoizedState!==null?C0(i):l!==null?(l.return=s,oe=l):C0(i);for(;a!==null;)oe=a,xb(a),a=a.sibling;oe=i,El=o,kt=c}v0(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,oe=a):v0(e)}}function v0(e){for(;oe!==null;){var t=oe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:kt||cc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!kt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&s0(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}s0(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&go(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}kt||t.flags&512&&Lf(t)}catch(p){Ge(t,t.return,p)}}if(t===e){oe=null;break}if(n=t.sibling,n!==null){n.return=t.return,oe=n;break}oe=t.return}}function w0(e){for(;oe!==null;){var t=oe;if(t===e){oe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,oe=n;break}oe=t.return}}function C0(e){for(;oe!==null;){var t=oe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cc(4,t)}catch(l){Ge(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Ge(t,i,l)}}var a=t.return;try{Lf(t)}catch(l){Ge(t,a,l)}break;case 5:var s=t.return;try{Lf(t)}catch(l){Ge(t,s,l)}}}catch(l){Ge(t,t.return,l)}if(t===e){oe=null;break}var o=t.sibling;if(o!==null){o.return=t.return,oe=o;break}oe=t.return}}var tA=Math.ceil,Cu=jr.ReactCurrentDispatcher,up=jr.ReactCurrentOwner,Sn=jr.ReactCurrentBatchConfig,ke=0,pt=null,tt=null,bt=0,ln=0,Na=Ii(0),lt=0,No=null,ra=0,dc=0,cp=0,Js=null,Qt=null,dp=0,ns=1/0,Cr=null,Au=!1,Df=null,yi=null,Tl=!1,li=null,ku=0,Zs=0,Mf=null,Vl=-1,Yl=0;function Ht(){return ke&6?Xe():Vl!==-1?Vl:Vl=Xe()}function xi(e){return e.mode&1?ke&2&&bt!==0?bt&-bt:jC.transition!==null?(Yl===0&&(Yl=nx()),Yl):(e=Se,e!==0||(e=window.event,e=e===void 0?16:ux(e.type)),e):1}function Vn(e,t,n,r){if(50<Zs)throw Zs=0,Mf=null,Error(J(185));Vo(e,n,r),(!(ke&2)||e!==pt)&&(e===pt&&(!(ke&2)&&(dc|=n),lt===4&&ei(e,bt)),en(e,r),n===1&&ke===0&&!(t.mode&1)&&(ns=Xe()+500,oc&&Oi()))}function en(e,t){var n=e.callbackNode;jw(e,t);var r=uu(e,e===pt?bt:0);if(r===0)n!==null&&Rm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Rm(n),t===1)e.tag===0?FC(A0.bind(null,e)):_x(A0.bind(null,e)),RC(function(){!(ke&6)&&Oi()}),n=null;else{switch(rx(r)){case 1:n=Fh;break;case 4:n=ex;break;case 16:n=lu;break;case 536870912:n=tx;break;default:n=lu}n=kb(n,bb.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bb(e,t){if(Vl=-1,Yl=0,ke&6)throw Error(J(327));var n=e.callbackNode;if(Fa()&&e.callbackNode!==n)return null;var r=uu(e,e===pt?bt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Nu(e,r);else{t=r;var i=ke;ke|=2;var a=Tb();(pt!==e||bt!==t)&&(Cr=null,ns=Xe()+500,Qi(e,t));do try{iA();break}catch(o){Eb(e,o)}while(!0);Kh(),Cu.current=a,ke=i,tt!==null?t=0:(pt=null,bt=0,t=lt)}if(t!==0){if(t===2&&(i=uf(e),i!==0&&(r=i,t=Ff(e,i))),t===1)throw n=No,Qi(e,0),ei(e,r),en(e,Xe()),n;if(t===6)ei(e,r);else{if(i=e.current.alternate,!(r&30)&&!nA(i)&&(t=Nu(e,r),t===2&&(a=uf(e),a!==0&&(r=a,t=Ff(e,a))),t===1))throw n=No,Qi(e,0),ei(e,r),en(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(J(345));case 2:Fi(e,Qt,Cr);break;case 3:if(ei(e,r),(r&130023424)===r&&(t=dp+500-Xe(),10<t)){if(uu(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ht(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=yf(Fi.bind(null,e,Qt,Cr),t);break}Fi(e,Qt,Cr);break;case 4:if(ei(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-$n(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=Xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tA(r/1960))-r,10<r){e.timeoutHandle=yf(Fi.bind(null,e,Qt,Cr),r);break}Fi(e,Qt,Cr);break;case 5:Fi(e,Qt,Cr);break;default:throw Error(J(329))}}}return en(e,Xe()),e.callbackNode===n?bb.bind(null,e):null}function Ff(e,t){var n=Js;return e.current.memoizedState.isDehydrated&&(Qi(e,t).flags|=256),e=Nu(e,t),e!==2&&(t=Qt,Qt=n,t!==null&&jf(t)),e}function jf(e){Qt===null?Qt=e:Qt.push.apply(Qt,e)}function nA(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Yn(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ei(e,t){for(t&=~cp,t&=~dc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$n(t),r=1<<n;e[n]=-1,t&=~r}}function A0(e){if(ke&6)throw Error(J(327));Fa();var t=uu(e,0);if(!(t&1))return en(e,Xe()),null;var n=Nu(e,t);if(e.tag!==0&&n===2){var r=uf(e);r!==0&&(t=r,n=Ff(e,r))}if(n===1)throw n=No,Qi(e,0),ei(e,t),en(e,Xe()),n;if(n===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fi(e,Qt,Cr),en(e,Xe()),null}function fp(e,t){var n=ke;ke|=1;try{return e(t)}finally{ke=n,ke===0&&(ns=Xe()+500,oc&&Oi())}}function ia(e){li!==null&&li.tag===0&&!(ke&6)&&Fa();var t=ke;ke|=1;var n=Sn.transition,r=Se;try{if(Sn.transition=null,Se=1,e)return e()}finally{Se=r,Sn.transition=n,ke=t,!(ke&6)&&Oi()}}function hp(){ln=Na.current,je(Na)}function Qi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,LC(n)),tt!==null)for(n=tt.return;n!==null;){var r=n;switch(Gh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pu();break;case 3:es(),je(Jt),je(_t),np();break;case 5:tp(r);break;case 4:es();break;case 13:je(ze);break;case 19:je(ze);break;case 10:Xh(r.type._context);break;case 22:case 23:hp()}n=n.return}if(pt=e,tt=e=bi(e.current,null),bt=ln=t,lt=0,No=null,cp=dc=ra=0,Qt=Js=null,Hi!==null){for(t=0;t<Hi.length;t++)if(n=Hi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}Hi=null}return e}function Eb(e,t){do{var n=tt;try{if(Kh(),zl.current=wu,vu){for(var r=We.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}vu=!1}if(na=0,dt=st=We=null,Ks=!1,Co=0,up.current=null,n===null||n.return===null){lt=1,No=t,tt=null;break}e:{var a=e,s=n.return,o=n,l=t;if(t=bt,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=o,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=f0(s);if(m!==null){m.flags&=-257,h0(m,s,o,a,t),m.mode&1&&d0(a,c,t),t=m,l=c;var x=t.updateQueue;if(x===null){var b=new Set;b.add(l),t.updateQueue=b}else x.add(l);break e}else{if(!(t&1)){d0(a,c,t),pp();break e}l=Error(J(426))}}else if(Ue&&o.mode&1){var v=f0(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),h0(v,s,o,a,t),qh(ts(l,o));break e}}a=l=ts(l,o),lt!==4&&(lt=2),Js===null?Js=[a]:Js.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=rb(a,l,t);a0(a,y);break e;case 1:o=l;var g=a.type,E=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(yi===null||!yi.has(E)))){a.flags|=65536,t&=-t,a.lanes|=t;var k=ib(a,o,t);a0(a,k);break e}}a=a.return}while(a!==null)}wb(n)}catch(I){t=I,tt===n&&n!==null&&(tt=n=n.return);continue}break}while(!0)}function Tb(){var e=Cu.current;return Cu.current=wu,e===null?wu:e}function pp(){(lt===0||lt===3||lt===2)&&(lt=4),pt===null||!(ra&268435455)&&!(dc&268435455)||ei(pt,bt)}function Nu(e,t){var n=ke;ke|=2;var r=Tb();(pt!==e||bt!==t)&&(Cr=null,Qi(e,t));do try{rA();break}catch(i){Eb(e,i)}while(!0);if(Kh(),ke=n,Cu.current=r,tt!==null)throw Error(J(261));return pt=null,bt=0,lt}function rA(){for(;tt!==null;)vb(tt)}function iA(){for(;tt!==null&&!Sw();)vb(tt)}function vb(e){var t=Ab(e.alternate,e,ln);e.memoizedProps=e.pendingProps,t===null?wb(e):tt=t,up.current=null}function wb(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=XC(n,t),n!==null){n.flags&=32767,tt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lt=6,tt=null;return}}else if(n=KC(n,t,ln),n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);lt===0&&(lt=5)}function Fi(e,t,n){var r=Se,i=Sn.transition;try{Sn.transition=null,Se=1,aA(e,t,n,r)}finally{Sn.transition=i,Se=r}return null}function aA(e,t,n,r){do Fa();while(li!==null);if(ke&6)throw Error(J(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Bw(e,a),e===pt&&(tt=pt=null,bt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Tl||(Tl=!0,kb(lu,function(){return Fa(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Sn.transition,Sn.transition=null;var s=Se;Se=1;var o=ke;ke|=4,up.current=null,ZC(e,n),yb(n,e),AC(mf),cu=!!pf,mf=pf=null,e.current=n,eA(n),Iw(),ke=o,Se=s,Sn.transition=a}else e.current=n;if(Tl&&(Tl=!1,li=e,ku=i),a=e.pendingLanes,a===0&&(yi=null),Rw(n.stateNode),en(e,Xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Au)throw Au=!1,e=Df,Df=null,e;return ku&1&&e.tag!==0&&Fa(),a=e.pendingLanes,a&1?e===Mf?Zs++:(Zs=0,Mf=e):Zs=0,Oi(),null}function Fa(){if(li!==null){var e=rx(ku),t=Sn.transition,n=Se;try{if(Sn.transition=null,Se=16>e?16:e,li===null)var r=!1;else{if(e=li,li=null,ku=0,ke&6)throw Error(J(331));var i=ke;for(ke|=4,oe=e.current;oe!==null;){var a=oe,s=a.child;if(oe.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var c=o[l];for(oe=c;oe!==null;){var f=oe;switch(f.tag){case 0:case 11:case 15:Xs(8,f,a)}var h=f.child;if(h!==null)h.return=f,oe=h;else for(;oe!==null;){f=oe;var p=f.sibling,m=f.return;if(pb(f),f===c){oe=null;break}if(p!==null){p.return=m,oe=p;break}oe=m}}}var x=a.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var v=b.sibling;b.sibling=null,b=v}while(b!==null)}}oe=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,oe=s;else e:for(;oe!==null;){if(a=oe,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Xs(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,oe=y;break e}oe=a.return}}var g=e.current;for(oe=g;oe!==null;){s=oe;var E=s.child;if(s.subtreeFlags&2064&&E!==null)E.return=s,oe=E;else e:for(s=g;oe!==null;){if(o=oe,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:cc(9,o)}}catch(I){Ge(o,o.return,I)}if(o===s){oe=null;break e}var k=o.sibling;if(k!==null){k.return=o.return,oe=k;break e}oe=o.return}}if(ke=i,Oi(),dr&&typeof dr.onPostCommitFiberRoot=="function")try{dr.onPostCommitFiberRoot(nc,e)}catch{}r=!0}return r}finally{Se=n,Sn.transition=t}}return!1}function k0(e,t,n){t=ts(n,t),t=rb(e,t,1),e=gi(e,t,1),t=Ht(),e!==null&&(Vo(e,1,t),en(e,t))}function Ge(e,t,n){if(e.tag===3)k0(e,e,n);else for(;t!==null;){if(t.tag===3){k0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yi===null||!yi.has(r))){e=ts(n,e),e=ib(t,e,1),t=gi(t,e,1),e=Ht(),t!==null&&(Vo(t,1,e),en(t,e));break}}t=t.return}}function sA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ht(),e.pingedLanes|=e.suspendedLanes&n,pt===e&&(bt&n)===n&&(lt===4||lt===3&&(bt&130023424)===bt&&500>Xe()-dp?Qi(e,0):cp|=n),en(e,t)}function Cb(e,t){t===0&&(e.mode&1?(t=dl,dl<<=1,!(dl&130023424)&&(dl=4194304)):t=1);var n=Ht();e=Rr(e,t),e!==null&&(Vo(e,t,n),en(e,n))}function oA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cb(e,n)}function lA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(t),Cb(e,n)}var Ab;Ab=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,QC(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ue&&t.flags&1048576&&Sx(t,yu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$l(e,t),e=t.pendingProps;var i=Xa(t,_t.current);Ma(t,n),i=ip(null,t,r,e,i,n);var a=ap();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zt(r)?(a=!0,mu(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zh(t),i.updater=uc,t.stateNode=i,i._reactInternals=t,Cf(t,r,e,n),t=Nf(null,t,r,!0,a,n)):(t.tag=0,Ue&&a&&Yh(t),Mt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($l(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=cA(r),e=Pn(r,e),i){case 0:t=kf(null,t,r,e,n);break e;case 1:t=g0(null,t,r,e,n);break e;case 11:t=p0(null,t,r,e,n);break e;case 14:t=m0(null,t,r,Pn(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),kf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),g0(e,t,r,i,n);case 3:e:{if(lb(t),e===null)throw Error(J(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Dx(e,t),Eu(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=ts(Error(J(423)),t),t=y0(e,t,r,n,i);break e}else if(r!==i){i=ts(Error(J(424)),t),t=y0(e,t,r,n,i);break e}else for(cn=mi(t.stateNode.containerInfo.firstChild),fn=t,Ue=!0,jn=null,n=Rx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ja(),r===i){t=Pr(e,t,n);break e}Mt(e,t,r,n)}t=t.child}return t;case 5:return Mx(t),e===null&&Tf(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,gf(r,i)?s=null:a!==null&&gf(r,a)&&(t.flags|=32),ob(e,t),Mt(e,t,s,n),t.child;case 6:return e===null&&Tf(t),null;case 13:return ub(e,t,n);case 4:return ep(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Za(t,null,r,n):Mt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),p0(e,t,r,i,n);case 7:return Mt(e,t,t.pendingProps,n),t.child;case 8:return Mt(e,t,t.pendingProps.children,n),t.child;case 12:return Mt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Le(xu,r._currentValue),r._currentValue=s,a!==null)if(Yn(a.value,s)){if(a.children===i.children&&!Jt.current){t=Pr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ir(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),vf(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(J(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),vf(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Mt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ma(t,n),i=In(i),r=r(i),t.flags|=1,Mt(e,t,r,n),t.child;case 14:return r=t.type,i=Pn(r,t.pendingProps),i=Pn(r.type,i),m0(e,t,r,i,n);case 15:return ab(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),$l(e,t),t.tag=1,Zt(r)?(e=!0,mu(t)):e=!1,Ma(t,n),nb(t,r,i),Cf(t,r,i,n),Nf(null,t,r,!0,e,n);case 19:return cb(e,t,n);case 22:return sb(e,t,n)}throw Error(J(156,t.tag))};function kb(e,t){return Zy(e,t)}function uA(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _n(e,t,n,r){return new uA(e,t,n,r)}function mp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cA(e){if(typeof e=="function")return mp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ph)return 11;if(e===Dh)return 14}return 2}function bi(e,t){var n=e.alternate;return n===null?(n=_n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")mp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ya:return Ki(n.children,i,a,t);case Rh:s=8,i|=8;break;case Gd:return e=_n(12,n,t,i|2),e.elementType=Gd,e.lanes=a,e;case qd:return e=_n(13,n,t,i),e.elementType=qd,e.lanes=a,e;case Qd:return e=_n(19,n,t,i),e.elementType=Qd,e.lanes=a,e;case My:return fc(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Py:s=10;break e;case Dy:s=9;break e;case Ph:s=11;break e;case Dh:s=14;break e;case Kr:s=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=_n(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ki(e,t,n,r){return e=_n(7,e,r,t),e.lanes=n,e}function fc(e,t,n,r){return e=_n(22,e,r,t),e.elementType=My,e.lanes=n,e.stateNode={isHidden:!1},e}function gd(e,t,n){return e=_n(6,e,null,t),e.lanes=n,e}function yd(e,t,n){return t=_n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dA(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xc(0),this.expirationTimes=Xc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gp(e,t,n,r,i,a,s,o,l){return e=new dA(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=_n(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zh(a),e}function fA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ga,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Nb(e){if(!e)return wi;e=e._reactInternals;e:{if(la(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var n=e.type;if(Zt(n))return Nx(e,n,t)}return t}function _b(e,t,n,r,i,a,s,o,l){return e=gp(n,r,!0,e,i,a,s,o,l),e.context=Nb(null),n=e.current,r=Ht(),i=xi(n),a=Ir(r,i),a.callback=t??null,gi(n,a,i),e.current.lanes=i,Vo(e,i,r),en(e,r),e}function hc(e,t,n,r){var i=t.current,a=Ht(),s=xi(i);return n=Nb(n),t.context===null?t.context=n:t.pendingContext=n,t=Ir(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gi(i,t,s),e!==null&&(Vn(e,i,s,a),Hl(e,i,s)),s}function _u(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function N0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yp(e,t){N0(e,t),(e=e.alternate)&&N0(e,t)}function hA(){return null}var Sb=typeof reportError=="function"?reportError:function(e){console.error(e)};function xp(e){this._internalRoot=e}pc.prototype.render=xp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));hc(e,t,null,null)};pc.prototype.unmount=xp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ia(function(){hc(null,e,null,null)}),t[Lr]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var t=sx();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&t!==0&&t<Zr[n].priority;n++);Zr.splice(n,0,e),n===0&&lx(e)}};function bp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _0(){}function pA(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var c=_u(s);a.call(c)}}var s=_b(t,r,e,0,null,!1,!1,"",_0);return e._reactRootContainer=s,e[Lr]=s.current,bo(e.nodeType===8?e.parentNode:e),ia(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var c=_u(l);o.call(c)}}var l=gp(e,0,!1,null,null,!1,!1,"",_0);return e._reactRootContainer=l,e[Lr]=l.current,bo(e.nodeType===8?e.parentNode:e),ia(function(){hc(t,l,n,r)}),l}function gc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var l=_u(s);o.call(l)}}hc(t,s,e,i)}else s=pA(n,t,e,i,r);return _u(s)}ix=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hs(t.pendingLanes);n!==0&&(jh(t,n|1),en(t,Xe()),!(ke&6)&&(ns=Xe()+500,Oi()))}break;case 13:ia(function(){var r=Rr(e,1);if(r!==null){var i=Ht();Vn(r,e,1,i)}}),yp(e,1)}};Bh=function(e){if(e.tag===13){var t=Rr(e,134217728);if(t!==null){var n=Ht();Vn(t,e,134217728,n)}yp(e,134217728)}};ax=function(e){if(e.tag===13){var t=xi(e),n=Rr(e,t);if(n!==null){var r=Ht();Vn(n,e,t,r)}yp(e,t)}};sx=function(){return Se};ox=function(e,t){var n=Se;try{return Se=e,t()}finally{Se=n}};sf=function(e,t,n){switch(t){case"input":if(Jd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=sc(r);if(!i)throw Error(J(90));jy(r),Jd(r,i)}}}break;case"textarea":Uy(e,n);break;case"select":t=n.value,t!=null&&La(e,!!n.multiple,t,!1)}};Gy=fp;qy=ia;var mA={usingClientEntryPoint:!1,Events:[Go,Ta,sc,Vy,Yy,fp]},Os={findFiberByHostInstance:Ui,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gA={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xy(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||hA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{nc=vl.inject(gA),dr=vl}catch{}}mn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mA;mn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bp(t))throw Error(J(200));return fA(e,t,null,n)};mn.createRoot=function(e,t){if(!bp(e))throw Error(J(299));var n=!1,r="",i=Sb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=gp(e,1,!1,null,null,n,!1,r,i),e[Lr]=t.current,bo(e.nodeType===8?e.parentNode:e),new xp(t)};mn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=Xy(t),e=e===null?null:e.stateNode,e};mn.flushSync=function(e){return ia(e)};mn.hydrate=function(e,t,n){if(!mc(t))throw Error(J(200));return gc(null,e,t,!0,n)};mn.hydrateRoot=function(e,t,n){if(!bp(e))throw Error(J(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=Sb;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=_b(t,null,e,1,n??null,i,!1,a,s),e[Lr]=t.current,bo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new pc(t)};mn.render=function(e,t,n){if(!mc(t))throw Error(J(200));return gc(null,e,t,!1,n)};mn.unmountComponentAtNode=function(e){if(!mc(e))throw Error(J(40));return e._reactRootContainer?(ia(function(){gc(null,null,e,!1,function(){e._reactRootContainer=null,e[Lr]=null})}),!0):!1};mn.unstable_batchedUpdates=fp;mn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!mc(n))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return gc(e,t,n,!1,r)};mn.version="18.3.1-next-f1338f8080-20240426";function Ib(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ib)}catch(e){console.error(e)}}Ib(),Iy.exports=mn;var hs=Iy.exports;const Ob=ec(hs);var Lb,S0=hs;Lb=S0.createRoot,S0.hydrateRoot;const yA=1,xA=1e6;let xd=0;function bA(){return xd=(xd+1)%Number.MAX_SAFE_INTEGER,xd.toString()}const bd=new Map,I0=e=>{if(bd.has(e))return;const t=setTimeout(()=>{bd.delete(e),eo({type:"REMOVE_TOAST",toastId:e})},xA);bd.set(e,t)},EA=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,yA)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?I0(n):e.toasts.forEach(r=>{I0(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ql=[];let Ql={toasts:[]};function eo(e){Ql=EA(Ql,e),ql.forEach(t=>{t(Ql)})}function TA({...e}){const t=bA(),n=i=>eo({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>eo({type:"DISMISS_TOAST",toastId:t});return eo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function vA(){const[e,t]=T.useState(Ql);return T.useEffect(()=>(ql.push(t),()=>{const n=ql.indexOf(t);n>-1&&ql.splice(n,1)}),[e]),{...e,toast:TA,dismiss:n=>eo({type:"DISMISS_TOAST",toastId:n})}}function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function wA(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Rb(...e){return t=>e.forEach(n=>wA(n,t))}function nn(...e){return T.useCallback(Rb(...e),e)}function Ep(e,t=[]){let n=[];function r(a,s){const o=T.createContext(s),l=n.length;n=[...n,s];function c(h){const{scope:p,children:m,...x}=h,b=(p==null?void 0:p[e][l])||o,v=T.useMemo(()=>x,Object.values(x));return u.jsx(b.Provider,{value:v,children:m})}function f(h,p){const m=(p==null?void 0:p[e][l])||o,x=T.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,f]}const i=()=>{const a=n.map(s=>T.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return T.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,CA(i,...t)]}function CA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:l,scopeName:c})=>{const h=l(a)[`__scope${c}`];return{...o,...h}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var _o=T.forwardRef((e,t)=>{const{children:n,...r}=e,i=T.Children.toArray(n),a=i.find(AA);if(a){const s=a.props.children,o=i.map(l=>l===a?T.Children.count(s)>1?T.Children.only(null):T.isValidElement(s)?s.props.children:null:l);return u.jsx(Bf,{...r,ref:t,children:T.isValidElement(s)?T.cloneElement(s,void 0,o):null})}return u.jsx(Bf,{...r,ref:t,children:n})});_o.displayName="Slot";var Bf=T.forwardRef((e,t)=>{const{children:n,...r}=e;if(T.isValidElement(n)){const i=NA(n);return T.cloneElement(n,{...kA(r,n.props),ref:t?Rb(t,i):i})}return T.Children.count(n)>1?T.Children.only(null):null});Bf.displayName="SlotClone";var Pb=({children:e})=>u.jsx(u.Fragment,{children:e});function AA(e){return T.isValidElement(e)&&e.type===Pb}function kA(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{a(...o),i(...o)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function NA(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _A(e){const t=e+"CollectionProvider",[n,r]=Ep(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:b}=m,v=X.useRef(null),y=X.useRef(new Map).current;return u.jsx(i,{scope:x,itemMap:y,collectionRef:v,children:b})};s.displayName=t;const o=e+"CollectionSlot",l=X.forwardRef((m,x)=>{const{scope:b,children:v}=m,y=a(o,b),g=nn(x,y.collectionRef);return u.jsx(_o,{ref:g,children:v})});l.displayName=o;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=X.forwardRef((m,x)=>{const{scope:b,children:v,...y}=m,g=X.useRef(null),E=nn(x,g),k=a(c,b);return X.useEffect(()=>(k.itemMap.set(g,{ref:g,...y}),()=>void k.itemMap.delete(g))),u.jsx(_o,{[f]:"",ref:E,children:v})});h.displayName=c;function p(m){const x=a(e+"CollectionConsumer",m);return X.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((k,I)=>y.indexOf(k.ref.current)-y.indexOf(I.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:l,ItemSlot:h},p,r]}var SA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],St=SA.reduce((e,t)=>{const n=T.forwardRef((r,i)=>{const{asChild:a,...s}=r,o=a?_o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(o,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Tp(e,t){e&&hs.flushSync(()=>e.dispatchEvent(t))}function Ln(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Db(e,t=globalThis==null?void 0:globalThis.document){const n=Ln(e);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var IA="DismissableLayer",Uf="dismissableLayer.update",OA="dismissableLayer.pointerDownOutside",LA="dismissableLayer.focusOutside",O0,Mb=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fb=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,c=T.useContext(Mb),[f,h]=T.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=T.useState({}),x=nn(t,L=>h(L)),b=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(v),g=f?b.indexOf(f):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,k=g>=y,I=PA(L=>{const M=L.target,V=[...c.branches].some(H=>H.contains(M));!k||V||(i==null||i(L),s==null||s(L),L.defaultPrevented||o==null||o())},p),N=DA(L=>{const M=L.target;[...c.branches].some(H=>H.contains(M))||(a==null||a(L),s==null||s(L),L.defaultPrevented||o==null||o())},p);return Db(L=>{g===c.layers.size-1&&(r==null||r(L),!L.defaultPrevented&&o&&(L.preventDefault(),o()))},p),T.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(O0=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),L0(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=O0)}},[f,p,n,c]),T.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),L0())},[f,c]),T.useEffect(()=>{const L=()=>m({});return document.addEventListener(Uf,L),()=>document.removeEventListener(Uf,L)},[]),u.jsx(St.div,{...l,ref:x,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,I.onPointerDownCapture)})});Fb.displayName=IA;var RA="DismissableLayerBranch",jb=T.forwardRef((e,t)=>{const n=T.useContext(Mb),r=T.useRef(null),i=nn(t,r);return T.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(St.div,{...e,ref:i})});jb.displayName=RA;function PA(e,t=globalThis==null?void 0:globalThis.document){const n=Ln(e),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let l=function(){Bb(OA,n,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DA(e,t=globalThis==null?void 0:globalThis.document){const n=Ln(e),r=T.useRef(!1);return T.useEffect(()=>{const i=a=>{a.target&&!r.current&&Bb(LA,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function L0(){const e=new CustomEvent(Uf);document.dispatchEvent(e)}function Bb(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Tp(i,a):i.dispatchEvent(a)}var MA=Fb,FA=jb,pr=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},jA="Portal",Ub=T.forwardRef((e,t)=>{var o;const{container:n,...r}=e,[i,a]=T.useState(!1);pr(()=>a(!0),[]);const s=n||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return s?Ob.createPortal(u.jsx(St.div,{...r,ref:t}),s):null});Ub.displayName=jA;function BA(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var Hb=e=>{const{present:t,children:n}=e,r=UA(t),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),a=nn(r.ref,HA(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:a}):null};Hb.displayName="Presence";function UA(e){const[t,n]=T.useState(),r=T.useRef({}),i=T.useRef(e),a=T.useRef("none"),s=e?"mounted":"unmounted",[o,l]=BA(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const c=wl(r.current);a.current=o==="mounted"?c:"none"},[o]),pr(()=>{const c=r.current,f=i.current;if(f!==e){const p=a.current,m=wl(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),pr(()=>{if(t){const c=h=>{const m=wl(r.current).includes(h.animationName);h.target===t&&m&&hs.flushSync(()=>l("ANIMATION_END"))},f=h=>{h.target===t&&(a.current=wl(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:T.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function wl(e){return(e==null?void 0:e.animationName)||"none"}function HA(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function zb({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=zA({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,o=Ln(n),l=T.useCallback(c=>{if(a){const h=typeof c=="function"?c(e):c;h!==e&&o(h)}else i(c)},[a,e,i,o]);return[s,l]}function zA({defaultProp:e,onChange:t}){const n=T.useState(e),[r]=n,i=T.useRef(r),a=Ln(t);return T.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var WA="VisuallyHidden",yc=T.forwardRef((e,t)=>u.jsx(St.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));yc.displayName=WA;var $A=yc,vp="ToastProvider",[wp,VA,YA]=_A("Toast"),[Wb,q7]=Ep("Toast",[YA]),[GA,xc]=Wb(vp),$b=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:s}=e,[o,l]=T.useState(null),[c,f]=T.useState(0),h=T.useRef(!1),p=T.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${vp}\`. Expected non-empty \`string\`.`),u.jsx(wp.Provider,{scope:t,children:u.jsx(GA,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:o,onViewportChange:l,onToastAdd:T.useCallback(()=>f(m=>m+1),[]),onToastRemove:T.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:s})})};$b.displayName=vp;var Vb="ToastViewport",qA=["F8"],Hf="toast.viewportPause",zf="toast.viewportResume",Yb=T.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=qA,label:i="Notifications ({hotkey})",...a}=e,s=xc(Vb,n),o=VA(n),l=T.useRef(null),c=T.useRef(null),f=T.useRef(null),h=T.useRef(null),p=nn(t,h,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;T.useEffect(()=>{const v=y=>{var E;r.every(k=>y[k]||y.code===k)&&((E=h.current)==null||E.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),T.useEffect(()=>{const v=l.current,y=h.current;if(x&&v&&y){const g=()=>{if(!s.isClosePausedRef.current){const N=new CustomEvent(Hf);y.dispatchEvent(N),s.isClosePausedRef.current=!0}},E=()=>{if(s.isClosePausedRef.current){const N=new CustomEvent(zf);y.dispatchEvent(N),s.isClosePausedRef.current=!1}},k=N=>{!v.contains(N.relatedTarget)&&E()},I=()=>{v.contains(document.activeElement)||E()};return v.addEventListener("focusin",g),v.addEventListener("focusout",k),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",I),window.addEventListener("blur",g),window.addEventListener("focus",E),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",k),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",I),window.removeEventListener("blur",g),window.removeEventListener("focus",E)}}},[x,s.isClosePausedRef]);const b=T.useCallback(({tabbingDirection:v})=>{const g=o().map(E=>{const k=E.ref.current,I=[k,...ok(k)];return v==="forwards"?I:I.reverse()});return(v==="forwards"?g.reverse():g).flat()},[o]);return T.useEffect(()=>{const v=h.current;if(v){const y=g=>{var I,N,L;const E=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!E){const M=document.activeElement,V=g.shiftKey;if(g.target===v&&V){(I=c.current)==null||I.focus();return}const F=b({tabbingDirection:V?"backwards":"forwards"}),K=F.findIndex(z=>z===M);Ed(F.slice(K+1))?g.preventDefault():V?(N=c.current)==null||N.focus():(L=f.current)==null||L.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[o,b]),u.jsxs(FA,{ref:l,role:"region","aria-label":i.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&u.jsx(Wf,{ref:c,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"forwards"});Ed(v)}}),u.jsx(wp.Slot,{scope:n,children:u.jsx(St.ol,{tabIndex:-1,...a,ref:p})}),x&&u.jsx(Wf,{ref:f,onFocusFromOutsideViewport:()=>{const v=b({tabbingDirection:"backwards"});Ed(v)}})]})});Yb.displayName=Vb;var Gb="ToastFocusProxy",Wf=T.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=xc(Gb,n);return u.jsx(yc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var c;const o=s.relatedTarget;!((c=a.viewport)!=null&&c.contains(o))&&r()}})});Wf.displayName=Gb;var bc="Toast",QA="toast.swipeStart",KA="toast.swipeMove",XA="toast.swipeCancel",JA="toast.swipeEnd",qb=T.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...s}=e,[o=!0,l]=zb({prop:r,defaultProp:i,onChange:a});return u.jsx(Hb,{present:n||o,children:u.jsx(tk,{open:o,...s,ref:t,onClose:()=>l(!1),onPause:Ln(e.onPause),onResume:Ln(e.onResume),onSwipeStart:qe(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:qe(e.onSwipeMove,c=>{const{x:f,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:qe(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:qe(e.onSwipeEnd,c=>{const{x:f,y:h}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});qb.displayName=bc;var[ZA,ek]=Wb(bc,{onClose(){}}),tk=T.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:a,onClose:s,onEscapeKeyDown:o,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:m,...x}=e,b=xc(bc,n),[v,y]=T.useState(null),g=nn(t,z=>y(z)),E=T.useRef(null),k=T.useRef(null),I=i||b.duration,N=T.useRef(0),L=T.useRef(I),M=T.useRef(0),{onToastAdd:V,onToastRemove:H}=b,Y=Ln(()=>{var te;(v==null?void 0:v.contains(document.activeElement))&&((te=b.viewport)==null||te.focus()),s()}),F=T.useCallback(z=>{!z||z===1/0||(window.clearTimeout(M.current),N.current=new Date().getTime(),M.current=window.setTimeout(Y,z))},[Y]);T.useEffect(()=>{const z=b.viewport;if(z){const te=()=>{F(L.current),c==null||c()},ie=()=>{const se=new Date().getTime()-N.current;L.current=L.current-se,window.clearTimeout(M.current),l==null||l()};return z.addEventListener(Hf,ie),z.addEventListener(zf,te),()=>{z.removeEventListener(Hf,ie),z.removeEventListener(zf,te)}}},[b.viewport,I,l,c,F]),T.useEffect(()=>{a&&!b.isClosePausedRef.current&&F(I)},[a,I,b.isClosePausedRef,F]),T.useEffect(()=>(V(),()=>H()),[V,H]);const K=T.useMemo(()=>v?tE(v):null,[v]);return b.viewport?u.jsxs(u.Fragment,{children:[K&&u.jsx(nk,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),u.jsx(ZA,{scope:n,onClose:Y,children:hs.createPortal(u.jsx(wp.ItemSlot,{scope:n,children:u.jsx(MA,{asChild:!0,onEscapeKeyDown:qe(o,()=>{b.isFocusedToastEscapeKeyDownRef.current||Y(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(St.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":b.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:qe(e.onKeyDown,z=>{z.key==="Escape"&&(o==null||o(z.nativeEvent),z.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,Y()))}),onPointerDown:qe(e.onPointerDown,z=>{z.button===0&&(E.current={x:z.clientX,y:z.clientY})}),onPointerMove:qe(e.onPointerMove,z=>{if(!E.current)return;const te=z.clientX-E.current.x,ie=z.clientY-E.current.y,se=!!k.current,D=["left","right"].includes(b.swipeDirection),q=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,C=D?q(0,te):0,re=D?0:q(0,ie),ue=z.pointerType==="touch"?10:2,_={x:C,y:re},Te={originalEvent:z,delta:_};se?(k.current=_,Cl(KA,h,Te,{discrete:!1})):R0(_,b.swipeDirection,ue)?(k.current=_,Cl(QA,f,Te,{discrete:!1}),z.target.setPointerCapture(z.pointerId)):(Math.abs(te)>ue||Math.abs(ie)>ue)&&(E.current=null)}),onPointerUp:qe(e.onPointerUp,z=>{const te=k.current,ie=z.target;if(ie.hasPointerCapture(z.pointerId)&&ie.releasePointerCapture(z.pointerId),k.current=null,E.current=null,te){const se=z.currentTarget,D={originalEvent:z,delta:te};R0(te,b.swipeDirection,b.swipeThreshold)?Cl(JA,m,D,{discrete:!0}):Cl(XA,p,D,{discrete:!0}),se.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),nk=e=>{const{__scopeToast:t,children:n,...r}=e,i=xc(bc,t),[a,s]=T.useState(!1),[o,l]=T.useState(!1);return ak(()=>s(!0)),T.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),o?null:u.jsx(Ub,{asChild:!0,children:u.jsx(yc,{...r,children:a&&u.jsxs(u.Fragment,{children:[i.label," ",n]})})})},rk="ToastTitle",Qb=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(St.div,{...r,ref:t})});Qb.displayName=rk;var ik="ToastDescription",Kb=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(St.div,{...r,ref:t})});Kb.displayName=ik;var Xb="ToastAction",Jb=T.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(eE,{altText:n,asChild:!0,children:u.jsx(Cp,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Xb}\`. Expected non-empty \`string\`.`),null)});Jb.displayName=Xb;var Zb="ToastClose",Cp=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=ek(Zb,n);return u.jsx(eE,{asChild:!0,children:u.jsx(St.button,{type:"button",...r,ref:t,onClick:qe(e.onClick,i.onClose)})})});Cp.displayName=Zb;var eE=T.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return u.jsx(St.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function tE(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),sk(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...tE(r))}}),t}function Cl(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Tp(i,a):i.dispatchEvent(a)}var R0=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t==="left"||t==="right"?a&&r>n:!a&&i>n};function ak(e=()=>{}){const t=Ln(e);pr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function sk(e){return e.nodeType===e.ELEMENT_NODE}function ok(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ed(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var lk=$b,nE=Yb,rE=qb,iE=Qb,aE=Kb,sE=Jb,oE=Cp;function lE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=lE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function uE(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=lE(e))&&(r&&(r+=" "),r+=t);return r}const P0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,D0=uE,cE=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return D0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(c=>{const f=n==null?void 0:n[c],h=a==null?void 0:a[c];if(f===null)return null;const p=P0(f)||P0(h);return i[c][p]}),o=n&&Object.entries(n).reduce((c,f)=>{let[h,p]=f;return p===void 0||(c[h]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:h,className:p,...m}=f;return Object.entries(m).every(x=>{let[b,v]=x;return Array.isArray(v)?v.includes({...a,...o}[b]):{...a,...o}[b]===v})?[...c,h,p]:c},[]);return D0(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dE=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var ck={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dk=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...o},l)=>T.createElement("svg",{ref:l,...ck,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:dE("lucide",i),...o},[...s.map(([c,f])=>T.createElement(c,f)),...Array.isArray(a)?a:[a]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const me=(e,t)=>{const n=T.forwardRef(({className:r,...i},a)=>T.createElement(dk,{ref:a,iconNode:t,className:dE(`lucide-${uk(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fk=me("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hk=me("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $f=me("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pk=me("Axe",[["path",{d:"m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9",key:"csbz4o"}],["path",{d:"M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z",key:"113wfo"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aa=me("Backpack",[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ap=me("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mk=me("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gk=me("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fE=me("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hE=me("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pE=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yk=me("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mE=me("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xk=me("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ps=me("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bk=me("Flashlight",[["path",{d:"M18 6c0 2-2 2-2 4v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4V2h12z",key:"1orkel"}],["line",{x1:"6",x2:"18",y1:"6",y2:"6",key:"1z11jq"}],["line",{x1:"12",x2:"12",y1:"12",y2:"12",key:"1f4yc1"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ek=me("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tk=me("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vk=me("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wk=me("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ck=me("Infinity",[["path",{d:"M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z",key:"1z0uae"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ak=me("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kk=me("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nk=me("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _k=me("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sk=me("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Su=me("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ik=me("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ok=me("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lk=me("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rk=me("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pk=me("NotebookPen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dk=me("Orbit",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M10.4 21.9a10 10 0 0 0 9.941-15.416",key:"eohfx2"}],["path",{d:"M13.5 2.1a10 10 0 0 0-9.841 15.416",key:"19pvbm"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mk=me("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fk=me("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gE=me("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jk=me("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bk=me("Pickaxe",[["path",{d:"M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912",key:"we99rg"}],["path",{d:"M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393",key:"1w6hck"}],["path",{d:"M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z",key:"15hgfx"}],["path",{d:"M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319",key:"452b4h"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uk=me("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hk=me("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zk=me("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wk=me("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $k=me("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kp=me("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vk=me("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yE=me("Tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xE=me("TreePine",[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yk=me("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bE=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Np="-",Gk=e=>{const t=Qk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const o=s.split(Np);return o[0]===""&&o.length!==1&&o.shift(),EE(o,t)||qk(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&r[s]?[...l,...r[s]]:l}}},EE=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?EE(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(Np);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},M0=/^\[(.+)\]$/,qk=e=>{if(M0.test(e)){const t=M0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Qk=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xk(Object.entries(e.classGroups),n).forEach(([a,s])=>{Vf(s,r,a,t)}),r},Vf=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:F0(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(Kk(i)){Vf(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,s])=>{Vf(s,F0(t,a),n,r)})})},F0=(e,t)=>{let n=e;return t.split(Np).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Kk=e=>e.isThemeGetter,Xk=(e,t)=>t?e.map(([n,r])=>{const i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[t+s,o])):a);return[n,i]}):e,Jk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return i(a,s),s},set(a,s){n.has(a)?n.set(a,s):i(a,s)}}},TE="!",Zk=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,s=o=>{const l=[];let c=0,f=0,h;for(let v=0;v<o.length;v++){let y=o[v];if(c===0){if(y===i&&(r||o.slice(v,v+a)===t)){l.push(o.slice(f,v)),f=v+a;continue}if(y==="/"){h=v;continue}}y==="["?c++:y==="]"&&c--}const p=l.length===0?o:o.substring(f),m=p.startsWith(TE),x=m?p.substring(1):p,b=h&&h>f?h-f:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},e3=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},t3=e=>({cache:Jk(e.cacheSize),parseClassName:Zk(e),...Gk(e)}),n3=/\s+/,r3=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(n3);let o="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:f,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(c);let x=!!m,b=r(x?p.substring(0,m):p);if(!b){if(!x){o=c+(o.length>0?" "+o:o);continue}if(b=r(p),!b){o=c+(o.length>0?" "+o:o);continue}x=!1}const v=e3(f).join(":"),y=h?v+TE:v,g=y+b;if(a.includes(g))continue;a.push(g);const E=i(b,x);for(let k=0;k<E.length;++k){const I=E[k];a.push(y+I)}o=c+(o.length>0?" "+o:o)}return o};function i3(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vE(t))&&(r&&(r+=" "),r+=n);return r}const vE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vE(e[r]))&&(n&&(n+=" "),n+=t);return n};function a3(e,...t){let n,r,i,a=s;function s(l){const c=t.reduce((f,h)=>h(f),e());return n=t3(c),r=n.cache.get,i=n.cache.set,a=o,o(l)}function o(l){const c=r(l);if(c)return c;const f=r3(l,n);return i(l,f),f}return function(){return a(i3.apply(null,arguments))}}const De=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},wE=/^\[(?:([a-z-]+):)?(.+)\]$/i,s3=/^\d+\/\d+$/,o3=new Set(["px","full","screen"]),l3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,u3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,c3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,d3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,f3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Er=e=>ja(e)||o3.has(e)||s3.test(e),Wr=e=>ms(e,"length",E3),ja=e=>!!e&&!Number.isNaN(Number(e)),Td=e=>ms(e,"number",ja),Ls=e=>!!e&&Number.isInteger(Number(e)),h3=e=>e.endsWith("%")&&ja(e.slice(0,-1)),be=e=>wE.test(e),$r=e=>l3.test(e),p3=new Set(["length","size","percentage"]),m3=e=>ms(e,p3,CE),g3=e=>ms(e,"position",CE),y3=new Set(["image","url"]),x3=e=>ms(e,y3,v3),b3=e=>ms(e,"",T3),Rs=()=>!0,ms=(e,t,n)=>{const r=wE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},E3=e=>u3.test(e)&&!c3.test(e),CE=()=>!1,T3=e=>d3.test(e),v3=e=>f3.test(e),w3=()=>{const e=De("colors"),t=De("spacing"),n=De("blur"),r=De("brightness"),i=De("borderColor"),a=De("borderRadius"),s=De("borderSpacing"),o=De("borderWidth"),l=De("contrast"),c=De("grayscale"),f=De("hueRotate"),h=De("invert"),p=De("gap"),m=De("gradientColorStops"),x=De("gradientColorStopPositions"),b=De("inset"),v=De("margin"),y=De("opacity"),g=De("padding"),E=De("saturate"),k=De("scale"),I=De("sepia"),N=De("skew"),L=De("space"),M=De("translate"),V=()=>["auto","contain","none"],H=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",be,t],F=()=>[be,t],K=()=>["",Er,Wr],z=()=>["auto",ja,be],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ie=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",be],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[ja,be];return{cacheSize:500,separator:":",theme:{colors:[Rs],spacing:[Er,Wr],blur:["none","",$r,be],brightness:re(),borderColor:[e],borderRadius:["none","","full",$r,be],borderSpacing:F(),borderWidth:K(),contrast:re(),grayscale:q(),hueRotate:re(),invert:q(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[h3,Wr],inset:Y(),margin:Y(),opacity:re(),padding:F(),saturate:re(),scale:re(),sepia:q(),skew:re(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[$r]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),be]}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ls,be]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Ls,be]}],"grid-cols":[{"grid-cols":[Rs]}],"col-start-end":[{col:["auto",{span:["full",Ls,be]},be]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Rs]}],"row-start-end":[{row:["auto",{span:[Ls,be]},be]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,t]}],"min-w":[{"min-w":[be,t,"min","max","fit"]}],"max-w":[{"max-w":[be,t,"none","full","min","max","fit","prose",{screen:[$r]},$r]}],h:[{h:[be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$r,Wr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Td]}],"font-family":[{font:[Rs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",ja,Td]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Er,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Er,Wr]}],"underline-offset":[{"underline-offset":["auto",Er,be]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),g3]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",m3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},x3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...ie(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:ie()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...ie()]}],"outline-offset":[{"outline-offset":[Er,be]}],"outline-w":[{outline:[Er,Wr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Er,Wr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$r,b3]}],"shadow-color":[{shadow:[Rs]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$r,be]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ls,be]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Er,Wr,Td]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},C3=a3(w3);function It(...e){return C3(uE(e))}const A3=lk,AE=T.forwardRef(({className:e,...t},n)=>u.jsx(nE,{ref:n,className:It("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));AE.displayName=nE.displayName;const k3=cE("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),kE=T.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(rE,{ref:r,className:It(k3({variant:t}),e),...n}));kE.displayName=rE.displayName;const N3=T.forwardRef(({className:e,...t},n)=>u.jsx(sE,{ref:n,className:It("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));N3.displayName=sE.displayName;const NE=T.forwardRef(({className:e,...t},n)=>u.jsx(oE,{ref:n,className:It("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(bE,{className:"h-4 w-4"})}));NE.displayName=oE.displayName;const _E=T.forwardRef(({className:e,...t},n)=>u.jsx(iE,{ref:n,className:It("text-sm font-semibold",e),...t}));_E.displayName=iE.displayName;const SE=T.forwardRef(({className:e,...t},n)=>u.jsx(aE,{ref:n,className:It("text-sm opacity-90",e),...t}));SE.displayName=aE.displayName;function _3(){const{toasts:e}=vA();return u.jsxs(A3,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return u.jsxs(kE,{...a,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(_E,{children:n}),r&&u.jsx(SE,{children:r})]}),i,u.jsx(NE,{})]},t)}),u.jsx(AE,{})]})}var Iu=["light","dark"],_p="(prefers-color-scheme: dark)",S3=typeof window>"u",Sp=T.createContext(void 0),I3={setTheme:e=>{},themes:[]},Ec=()=>{var e;return(e=T.useContext(Sp))!=null?e:I3},O3=e=>T.useContext(Sp)?e.children:T.createElement(R3,{...e}),L3=["light","dark"],R3=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:a=L3,defaultTheme:s=n?"system":"light",attribute:o="data-theme",value:l,children:c,nonce:f})=>{let[h,p]=T.useState(()=>j0(i,s)),[m,x]=T.useState(()=>j0(i)),b=l?Object.values(l):a,v=T.useCallback(k=>{let I=k;if(!I)return;k==="system"&&n&&(I=B0());let N=l?l[I]:I,L=t?D3():null,M=document.documentElement;if(o==="class"?(M.classList.remove(...b),N&&M.classList.add(N)):N?M.setAttribute(o,N):M.removeAttribute(o),r){let V=Iu.includes(s)?s:null,H=Iu.includes(I)?I:V;M.style.colorScheme=H}L==null||L()},[]),y=T.useCallback(k=>{let I=typeof k=="function"?k(k):k;p(I);try{localStorage.setItem(i,I)}catch{}},[e]),g=T.useCallback(k=>{let I=B0(k);x(I),h==="system"&&n&&!e&&v("system")},[h,e]);T.useEffect(()=>{let k=window.matchMedia(_p);return k.addListener(g),g(k),()=>k.removeListener(g)},[g]),T.useEffect(()=>{let k=I=>{if(I.key!==i)return;let N=I.newValue||s;y(N)};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[y]),T.useEffect(()=>{v(e??h)},[e,h]);let E=T.useMemo(()=>({theme:h,setTheme:y,forcedTheme:e,resolvedTheme:h==="system"?m:h,themes:n?[...a,"system"]:a,systemTheme:n?m:void 0}),[h,y,e,m,n,a]);return T.createElement(Sp.Provider,{value:E},T.createElement(P3,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:a,defaultTheme:s,attribute:o,value:l,children:c,attrs:b,nonce:f}),c)},P3=T.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:s,attrs:o,nonce:l})=>{let c=a==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${o.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=i?Iu.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(x,b=!1,v=!0)=>{let y=s?s[x]:x,g=b?x+"|| ''":`'${y}'`,E="";return i&&v&&!b&&Iu.includes(x)&&(E+=`d.style.colorScheme = '${x}';`),n==="class"?b||y?E+=`c.add(${g})`:E+="null":y&&(E+=`d[s](n,${g})`),E},m=e?`!function(){${f}${p(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${_p}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${p(s?"x[e]":"e",!0)}}${c?"":"else{"+p(a,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${p(s?"x[e]":"e",!0)}}else{${p(a,!1,!1)};}${h}}catch(t){}}();`;return T.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),j0=(e,t)=>{if(S3)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},D3=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},B0=e=>(e||(e=window.matchMedia(_p)),e.matches?"dark":"light"),M3=e=>{switch(e){case"success":return B3;case"info":return H3;case"warning":return U3;case"error":return z3;default:return null}},F3=Array(12).fill(0),j3=({visible:e})=>X.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},X.createElement("div",{className:"sonner-spinner"},F3.map((t,n)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),B3=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),U3=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),H3=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),z3=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),W3=()=>{let[e,t]=X.useState(document.hidden);return X.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Yf=1,$3=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Yf++,a=this.toasts.find(o=>o.id===i),s=e.dismissible===void 0?!0:e.dismissible;return a?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...e,id:i,title:n}),{...o,...e,id:i,dismissible:s,title:n}):o):this.addToast({title:n,...r,dismissible:s,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(async a=>{if(Y3(a)&&!a.ok){i=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,o=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:s,description:o})}else if(t.success!==void 0){i=!1;let s=typeof t.success=="function"?await t.success(a):t.success,o=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:s,description:o})}}).catch(async a=>{if(t.error!==void 0){i=!1;let s=typeof t.error=="function"?await t.error(a):t.error,o=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:s,description:o})}}).finally(()=>{var a;i&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Yf++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},on=new $3,V3=(e,t)=>{let n=(t==null?void 0:t.id)||Yf++;return on.addToast({title:e,...t,id:n}),n},Y3=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",G3=V3,q3=()=>on.toasts,Gf=Object.assign(G3,{success:on.success,info:on.info,warning:on.warning,error:on.error,custom:on.custom,message:on.message,promise:on.promise,dismiss:on.dismiss,loading:on.loading},{getHistory:q3});function Q3(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Q3(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function Al(e){return e.label!==void 0}var K3=3,X3="32px",J3=4e3,Z3=356,eN=14,tN=20,nN=200;function rN(...e){return e.filter(Boolean).join(" ")}var iN=e=>{var t,n,r,i,a,s,o,l,c,f;let{invert:h,toast:p,unstyled:m,interacting:x,setHeights:b,visibleToasts:v,heights:y,index:g,toasts:E,expanded:k,removeToast:I,defaultRichColors:N,closeButton:L,style:M,cancelButtonStyle:V,actionButtonStyle:H,className:Y="",descriptionClassName:F="",duration:K,position:z,gap:te,loadingIcon:ie,expandByDefault:se,classNames:D,icons:q,closeButtonAriaLabel:C="Close toast",pauseWhenPageIsHidden:re,cn:ue}=e,[_,Te]=X.useState(!1),[He,he]=X.useState(!1),[Ze,Qe]=X.useState(!1),[ut,mt]=X.useState(!1),[yn,Kn]=X.useState(0),[xn,Xn]=X.useState(0),Ur=X.useRef(null),bn=X.useRef(null),Di=g===0,O=g+1<=v,R=p.type,U=p.dismissible!==!1,ae=p.className||"",ne=p.descriptionClassName||"",Z=X.useMemo(()=>y.findIndex(pe=>pe.toastId===p.id)||0,[y,p.id]),ce=X.useMemo(()=>{var pe;return(pe=p.closeButton)!=null?pe:L},[p.closeButton,L]),Ce=X.useMemo(()=>p.duration||K||J3,[p.duration,K]),j=X.useRef(0),$=X.useRef(0),fe=X.useRef(0),xe=X.useRef(null),[Ae,gt]=z.split("-"),En=X.useMemo(()=>y.reduce((pe,Pe,Oe)=>Oe>=Z?pe:pe+Pe.height,0),[y,Z]),Pt=W3(),br=p.invert||h,Tn=R==="loading";$.current=X.useMemo(()=>Z*te+En,[Z,En]),X.useEffect(()=>{Te(!0)},[]),X.useLayoutEffect(()=>{if(!_)return;let pe=bn.current,Pe=pe.style.height;pe.style.height="auto";let Oe=pe.getBoundingClientRect().height;pe.style.height=Pe,Xn(Oe),b(Jn=>Jn.find(Zn=>Zn.toastId===p.id)?Jn.map(Zn=>Zn.toastId===p.id?{...Zn,height:Oe}:Zn):[{toastId:p.id,height:Oe,position:p.position},...Jn])},[_,p.title,p.description,b,p.id]);let Ve=X.useCallback(()=>{he(!0),Kn($.current),b(pe=>pe.filter(Pe=>Pe.toastId!==p.id)),setTimeout(()=>{I(p)},nN)},[p,I,b,$]);X.useEffect(()=>{if(p.promise&&R==="loading"||p.duration===1/0||p.type==="loading")return;let pe,Pe=Ce;return k||x||re&&Pt?(()=>{if(fe.current<j.current){let Oe=new Date().getTime()-j.current;Pe=Pe-Oe}fe.current=new Date().getTime()})():Pe!==1/0&&(j.current=new Date().getTime(),pe=setTimeout(()=>{var Oe;(Oe=p.onAutoClose)==null||Oe.call(p,p),Ve()},Pe)),()=>clearTimeout(pe)},[k,x,se,p,Ce,Ve,p.promise,R,re,Pt]),X.useEffect(()=>{let pe=bn.current;if(pe){let Pe=pe.getBoundingClientRect().height;return Xn(Pe),b(Oe=>[{toastId:p.id,height:Pe,position:p.position},...Oe]),()=>b(Oe=>Oe.filter(Jn=>Jn.toastId!==p.id))}},[b,p.id]),X.useEffect(()=>{p.delete&&Ve()},[Ve,p.delete]);function Hr(){return q!=null&&q.loading?X.createElement("div",{className:"sonner-loader","data-visible":R==="loading"},q.loading):ie?X.createElement("div",{className:"sonner-loader","data-visible":R==="loading"},ie):X.createElement(j3,{visible:R==="loading"})}return X.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:bn,className:ue(Y,ae,D==null?void 0:D.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[R],(n=p==null?void 0:p.classNames)==null?void 0:n[R]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:N,"data-styled":!(p.jsx||p.unstyled||m),"data-mounted":_,"data-promise":!!p.promise,"data-removed":He,"data-visible":O,"data-y-position":Ae,"data-x-position":gt,"data-index":g,"data-front":Di,"data-swiping":Ze,"data-dismissible":U,"data-type":R,"data-invert":br,"data-swipe-out":ut,"data-expanded":!!(k||se&&_),style:{"--index":g,"--toasts-before":g,"--z-index":E.length-g,"--offset":`${He?yn:$.current}px`,"--initial-height":se?"auto":`${xn}px`,...M,...p.style},onPointerDown:pe=>{Tn||!U||(Ur.current=new Date,Kn($.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(Qe(!0),xe.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,Pe,Oe,Jn;if(ut||!U)return;xe.current=null;let Zn=Number(((pe=bn.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount").replace("px",""))||0),il=new Date().getTime()-((Pe=Ur.current)==null?void 0:Pe.getTime()),$v=Math.abs(Zn)/il;if(Math.abs(Zn)>=tN||$v>.11){Kn($.current),(Oe=p.onDismiss)==null||Oe.call(p,p),Ve(),mt(!0);return}(Jn=bn.current)==null||Jn.style.setProperty("--swipe-amount","0px"),Qe(!1)},onPointerMove:pe=>{var Pe;if(!xe.current||!U)return;let Oe=pe.clientY-xe.current.y,Jn=pe.clientX-xe.current.x,Zn=(Ae==="top"?Math.min:Math.max)(0,Oe),il=pe.pointerType==="touch"?10:2;Math.abs(Zn)>il?(Pe=bn.current)==null||Pe.style.setProperty("--swipe-amount",`${Oe}px`):Math.abs(Jn)>il&&(xe.current=null)}},ce&&!p.jsx?X.createElement("button",{"aria-label":C,"data-disabled":Tn,"data-close-button":!0,onClick:Tn||!U?()=>{}:()=>{var pe;Ve(),(pe=p.onDismiss)==null||pe.call(p,p)},className:ue(D==null?void 0:D.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||X.isValidElement(p.title)?p.jsx||p.title:X.createElement(X.Fragment,null,R||p.icon||p.promise?X.createElement("div",{"data-icon":"",className:ue(D==null?void 0:D.icon,(a=p==null?void 0:p.classNames)==null?void 0:a.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Hr():null,p.type!=="loading"?p.icon||(q==null?void 0:q[R])||M3(R):null):null,X.createElement("div",{"data-content":"",className:ue(D==null?void 0:D.content,(s=p==null?void 0:p.classNames)==null?void 0:s.content)},X.createElement("div",{"data-title":"",className:ue(D==null?void 0:D.title,(o=p==null?void 0:p.classNames)==null?void 0:o.title)},p.title),p.description?X.createElement("div",{"data-description":"",className:ue(F,ne,D==null?void 0:D.description,(l=p==null?void 0:p.classNames)==null?void 0:l.description)},p.description):null),X.isValidElement(p.cancel)?p.cancel:p.cancel&&Al(p.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||V,onClick:pe=>{var Pe,Oe;Al(p.cancel)&&U&&((Oe=(Pe=p.cancel).onClick)==null||Oe.call(Pe,pe),Ve())},className:ue(D==null?void 0:D.cancelButton,(c=p==null?void 0:p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,X.isValidElement(p.action)?p.action:p.action&&Al(p.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||H,onClick:pe=>{var Pe,Oe;Al(p.action)&&(pe.defaultPrevented||((Oe=(Pe=p.action).onClick)==null||Oe.call(Pe,pe),Ve()))},className:ue(D==null?void 0:D.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function U0(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var aN=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:a,className:s,offset:o,theme:l="light",richColors:c,duration:f,style:h,visibleToasts:p=K3,toastOptions:m,dir:x=U0(),gap:b=eN,loadingIcon:v,icons:y,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:E,cn:k=rN}=e,[I,N]=X.useState([]),L=X.useMemo(()=>Array.from(new Set([n].concat(I.filter(re=>re.position).map(re=>re.position)))),[I,n]),[M,V]=X.useState([]),[H,Y]=X.useState(!1),[F,K]=X.useState(!1),[z,te]=X.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=X.useRef(null),se=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=X.useRef(null),q=X.useRef(!1),C=X.useCallback(re=>{var ue;(ue=I.find(_=>_.id===re.id))!=null&&ue.delete||on.dismiss(re.id),N(_=>_.filter(({id:Te})=>Te!==re.id))},[I]);return X.useEffect(()=>on.subscribe(re=>{if(re.dismiss){N(ue=>ue.map(_=>_.id===re.id?{..._,delete:!0}:_));return}setTimeout(()=>{Ob.flushSync(()=>{N(ue=>{let _=ue.findIndex(Te=>Te.id===re.id);return _!==-1?[...ue.slice(0,_),{...ue[_],...re},...ue.slice(_+1)]:[re,...ue]})})})}),[]),X.useEffect(()=>{if(l!=="system"){te(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:re})=>{te(re?"dark":"light")})},[l]),X.useEffect(()=>{I.length<=1&&Y(!1)},[I]),X.useEffect(()=>{let re=ue=>{var _,Te;r.every(He=>ue[He]||ue.code===He)&&(Y(!0),(_=ie.current)==null||_.focus()),ue.code==="Escape"&&(document.activeElement===ie.current||(Te=ie.current)!=null&&Te.contains(document.activeElement))&&Y(!1)};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[r]),X.useEffect(()=>{if(ie.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,q.current=!1)}},[ie.current]),I.length?X.createElement("section",{"aria-label":`${g} ${se}`,tabIndex:-1},L.map((re,ue)=>{var _;let[Te,He]=re.split("-");return X.createElement("ol",{key:re,dir:x==="auto"?U0():x,tabIndex:-1,ref:ie,className:s,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":Te,"data-x-position":He,style:{"--front-toast-height":`${((_=M[0])==null?void 0:_.height)||0}px`,"--offset":typeof o=="number"?`${o}px`:o||X3,"--width":`${Z3}px`,"--gap":`${b}px`,...h},onBlur:he=>{q.current&&!he.currentTarget.contains(he.relatedTarget)&&(q.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||q.current||(q.current=!0,D.current=he.relatedTarget)},onMouseEnter:()=>Y(!0),onMouseMove:()=>Y(!0),onMouseLeave:()=>{F||Y(!1)},onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},I.filter(he=>!he.position&&ue===0||he.position===re).map((he,Ze)=>{var Qe,ut;return X.createElement(iN,{key:he.id,icons:y,index:Ze,toast:he,defaultRichColors:c,duration:(Qe=m==null?void 0:m.duration)!=null?Qe:f,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:t,visibleToasts:p,closeButton:(ut=m==null?void 0:m.closeButton)!=null?ut:a,interacting:F,position:re,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:C,toasts:I.filter(mt=>mt.position==he.position),heights:M.filter(mt=>mt.position==he.position),setHeights:V,expandByDefault:i,gap:b,loadingIcon:v,expanded:H,pauseWhenPageIsHidden:E,cn:k})}))})):null};const sN=({...e})=>{const{theme:t="system"}=Ec();return u.jsx(aN,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function oN(e,t=[]){let n=[];function r(a,s){const o=T.createContext(s),l=n.length;n=[...n,s];const c=h=>{var y;const{scope:p,children:m,...x}=h,b=((y=p==null?void 0:p[e])==null?void 0:y[l])||o,v=T.useMemo(()=>x,Object.values(x));return u.jsx(b.Provider,{value:v,children:m})};c.displayName=a+"Provider";function f(h,p){var b;const m=((b=p==null?void 0:p[e])==null?void 0:b[l])||o,x=T.useContext(m);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[c,f]}const i=()=>{const a=n.map(s=>T.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return T.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,lN(i,...t)]}function lN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:l,scopeName:c})=>{const h=l(a)[`__scope${c}`];return{...o,...h}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var uN="DismissableLayer",qf="dismissableLayer.update",cN="dismissableLayer.pointerDownOutside",dN="dismissableLayer.focusOutside",H0,IE=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OE=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,c=T.useContext(IE),[f,h]=T.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=T.useState({}),x=nn(t,L=>h(L)),b=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(v),g=f?b.indexOf(f):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,k=g>=y,I=pN(L=>{const M=L.target,V=[...c.branches].some(H=>H.contains(M));!k||V||(i==null||i(L),s==null||s(L),L.defaultPrevented||o==null||o())},p),N=mN(L=>{const M=L.target;[...c.branches].some(H=>H.contains(M))||(a==null||a(L),s==null||s(L),L.defaultPrevented||o==null||o())},p);return Db(L=>{g===c.layers.size-1&&(r==null||r(L),!L.defaultPrevented&&o&&(L.preventDefault(),o()))},p),T.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(H0=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),z0(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=H0)}},[f,p,n,c]),T.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),z0())},[f,c]),T.useEffect(()=>{const L=()=>m({});return document.addEventListener(qf,L),()=>document.removeEventListener(qf,L)},[]),u.jsx(St.div,{...l,ref:x,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,I.onPointerDownCapture)})});OE.displayName=uN;var fN="DismissableLayerBranch",hN=T.forwardRef((e,t)=>{const n=T.useContext(IE),r=T.useRef(null),i=nn(t,r);return T.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(St.div,{...e,ref:i})});hN.displayName=fN;function pN(e,t=globalThis==null?void 0:globalThis.document){const n=Ln(e),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let l=function(){LE(cN,n,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function mN(e,t=globalThis==null?void 0:globalThis.document){const n=Ln(e),r=T.useRef(!1);return T.useEffect(()=>{const i=a=>{a.target&&!r.current&&LE(dN,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function z0(){const e=new CustomEvent(qf);document.dispatchEvent(e)}function LE(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Tp(i,a):i.dispatchEvent(a)}var gN=_y.useId||(()=>{}),yN=0;function xN(e){const[t,n]=T.useState(gN());return pr(()=>{n(r=>r??String(yN++))},[e]),t?`radix-${t}`:""}const bN=["top","right","bottom","left"],Ci=Math.min,un=Math.max,Ou=Math.round,kl=Math.floor,Ai=e=>({x:e,y:e}),EN={left:"right",right:"left",bottom:"top",top:"bottom"},TN={start:"end",end:"start"};function Qf(e,t,n){return un(e,Ci(t,n))}function Dr(e,t){return typeof e=="function"?e(t):e}function Mr(e){return e.split("-")[0]}function gs(e){return e.split("-")[1]}function Ip(e){return e==="x"?"y":"x"}function Op(e){return e==="y"?"height":"width"}function ki(e){return["top","bottom"].includes(Mr(e))?"y":"x"}function Lp(e){return Ip(ki(e))}function vN(e,t,n){n===void 0&&(n=!1);const r=gs(e),i=Lp(e),a=Op(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Lu(s)),[s,Lu(s)]}function wN(e){const t=Lu(e);return[Kf(e),t,Kf(t)]}function Kf(e){return e.replace(/start|end/g,t=>TN[t])}function CN(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:s;default:return[]}}function AN(e,t,n,r){const i=gs(e);let a=CN(Mr(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(Kf)))),a}function Lu(e){return e.replace(/left|right|bottom|top/g,t=>EN[t])}function kN(e){return{top:0,right:0,bottom:0,left:0,...e}}function RE(e){return typeof e!="number"?kN(e):{top:e,right:e,bottom:e,left:e}}function Ru(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function W0(e,t,n){let{reference:r,floating:i}=e;const a=ki(t),s=Lp(t),o=Op(s),l=Mr(t),c=a==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,p=r[o]/2-i[o]/2;let m;switch(l){case"top":m={x:f,y:r.y-i.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-i.width,y:h};break;default:m={x:r.x,y:r.y}}switch(gs(t)){case"start":m[s]-=p*(n&&c?-1:1);break;case"end":m[s]+=p*(n&&c?-1:1);break}return m}const NN=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=W0(c,r,l),p=r,m={},x=0;for(let b=0;b<o.length;b++){const{name:v,fn:y}=o[b],{x:g,y:E,data:k,reset:I}=await y({x:f,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});f=g??f,h=E??h,m={...m,[v]:{...m[v],...k}},I&&x<=50&&(x++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:h}=W0(c,p,l)),b=-1)}return{x:f,y:h,placement:p,strategy:i,middlewareData:m}};async function So(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=Dr(t,e),x=RE(m),v=o[p?h==="floating"?"reference":"floating":h],y=Ru(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:c,rootBoundary:f,strategy:l})),g=h==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),k=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Ru(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:E,strategy:l}):g);return{top:(y.top-I.top+x.top)/k.y,bottom:(I.bottom-y.bottom+x.bottom)/k.y,left:(y.left-I.left+x.left)/k.x,right:(I.right-y.right+x.right)/k.x}}const _N=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:c,padding:f=0}=Dr(e,t)||{};if(c==null)return{};const h=RE(f),p={x:n,y:r},m=Lp(i),x=Op(m),b=await s.getDimensions(c),v=m==="y",y=v?"top":"left",g=v?"bottom":"right",E=v?"clientHeight":"clientWidth",k=a.reference[x]+a.reference[m]-p[m]-a.floating[x],I=p[m]-a.reference[m],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let L=N?N[E]:0;(!L||!await(s.isElement==null?void 0:s.isElement(N)))&&(L=o.floating[E]||a.floating[x]);const M=k/2-I/2,V=L/2-b[x]/2-1,H=Ci(h[y],V),Y=Ci(h[g],V),F=H,K=L-b[x]-Y,z=L/2-b[x]/2+M,te=Qf(F,z,K),ie=!l.arrow&&gs(i)!=null&&z!==te&&a.reference[x]/2-(z<F?H:Y)-b[x]/2<0,se=ie?z<F?z-F:z-K:0;return{[m]:p[m]+se,data:{[m]:te,centerOffset:z-te-se,...ie&&{alignmentOffset:se}},reset:ie}}}),SN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...v}=Dr(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Mr(i),g=ki(o),E=Mr(o)===o,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=p||(E||!b?[Lu(o)]:wN(o)),N=x!=="none";!p&&N&&I.push(...AN(o,b,x,k));const L=[o,...I],M=await So(t,v),V=[];let H=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&V.push(M[y]),h){const z=vN(i,s,k);V.push(M[z[0]],M[z[1]])}if(H=[...H,{placement:i,overflows:V}],!V.every(z=>z<=0)){var Y,F;const z=(((Y=a.flip)==null?void 0:Y.index)||0)+1,te=L[z];if(te)return{data:{index:z,overflows:H},reset:{placement:te}};let ie=(F=H.filter(se=>se.overflows[0]<=0).sort((se,D)=>se.overflows[1]-D.overflows[1])[0])==null?void 0:F.placement;if(!ie)switch(m){case"bestFit":{var K;const se=(K=H.filter(D=>{if(N){const q=ki(D.placement);return q===g||q==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(q=>q>0).reduce((q,C)=>q+C,0)]).sort((D,q)=>D[1]-q[1])[0])==null?void 0:K[0];se&&(ie=se);break}case"initialPlacement":ie=o;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};function $0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V0(e){return bN.some(t=>e[t]>=0)}const IN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Dr(e,t);switch(r){case"referenceHidden":{const a=await So(t,{...i,elementContext:"reference"}),s=$0(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:V0(s)}}}case"escaped":{const a=await So(t,{...i,altBoundary:!0}),s=$0(a,n.floating);return{data:{escapedOffsets:s,escaped:V0(s)}}}default:return{}}}}};async function ON(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Mr(n),o=gs(n),l=ki(n)==="y",c=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,h=Dr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&typeof x=="number"&&(m=o==="end"?x*-1:x),l?{x:m*f,y:p*c}:{x:p*c,y:m*f}}const LN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,l=await ON(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},RN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:v=>{let{x:y,y:g}=v;return{x:y,y:g}}},...l}=Dr(e,t),c={x:n,y:r},f=await So(t,l),h=ki(Mr(i)),p=Ip(h);let m=c[p],x=c[h];if(a){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",g=m+f[v],E=m-f[y];m=Qf(g,m,E)}if(s){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",g=x+f[v],E=x-f[y];x=Qf(g,x,E)}const b=o.fn({...t,[p]:m,[h]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:a,[h]:s}}}}}},PN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:c=!0}=Dr(e,t),f={x:n,y:r},h=ki(i),p=Ip(h);let m=f[p],x=f[h];const b=Dr(o,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const E=p==="y"?"height":"width",k=a.reference[p]-a.floating[E]+v.mainAxis,I=a.reference[p]+a.reference[E]-v.mainAxis;m<k?m=k:m>I&&(m=I)}if(c){var y,g;const E=p==="y"?"width":"height",k=["top","left"].includes(Mr(i)),I=a.reference[h]-a.floating[E]+(k&&((y=s.offset)==null?void 0:y[h])||0)+(k?0:v.crossAxis),N=a.reference[h]+a.reference[E]+(k?0:((g=s.offset)==null?void 0:g[h])||0)-(k?v.crossAxis:0);x<I?x=I:x>N&&(x=N)}return{[p]:m,[h]:x}}}},DN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:o}=t,{apply:l=()=>{},...c}=Dr(e,t),f=await So(t,c),h=Mr(i),p=gs(i),m=ki(i)==="y",{width:x,height:b}=a.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=p===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(y=h,v=p==="end"?"top":"bottom");const g=b-f.top-f.bottom,E=x-f.left-f.right,k=Ci(b-f[v],g),I=Ci(x-f[y],E),N=!t.middlewareData.shift;let L=k,M=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=g),N&&!p){const H=un(f.left,0),Y=un(f.right,0),F=un(f.top,0),K=un(f.bottom,0);m?M=x-2*(H!==0||Y!==0?H+Y:un(f.left,f.right)):L=b-2*(F!==0||K!==0?F+K:un(f.top,f.bottom))}await l({...t,availableWidth:M,availableHeight:L});const V=await s.getDimensions(o.floating);return x!==V.width||b!==V.height?{reset:{rects:!0}}:{}}}};function Tc(){return typeof window<"u"}function ys(e){return PE(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yr(e){var t;return(t=(PE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function PE(e){return Tc()?e instanceof Node||e instanceof hn(e).Node:!1}function Gn(e){return Tc()?e instanceof Element||e instanceof hn(e).Element:!1}function mr(e){return Tc()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function Y0(e){return!Tc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}function Qo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=qn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function MN(e){return["table","td","th"].includes(ys(e))}function vc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Rp(e){const t=Pp(),n=Gn(e)?qn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function FN(e){let t=Ni(e);for(;mr(t)&&!rs(t);){if(Rp(t))return t;if(vc(t))return null;t=Ni(t)}return null}function Pp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rs(e){return["html","body","#document"].includes(ys(e))}function qn(e){return hn(e).getComputedStyle(e)}function wc(e){return Gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ni(e){if(ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Y0(e)&&e.host||yr(e);return Y0(t)?t.host:t}function DE(e){const t=Ni(e);return rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:mr(t)&&Qo(t)?t:DE(t)}function Io(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=DE(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=hn(i);if(a){const o=Xf(s);return t.concat(s,s.visualViewport||[],Qo(i)?i:[],o&&n?Io(o):[])}return t.concat(i,Io(i,[],n))}function Xf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ME(e){const t=qn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=mr(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=Ou(n)!==a||Ou(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function Dp(e){return Gn(e)?e:e.contextElement}function Ba(e){const t=Dp(e);if(!mr(t))return Ai(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ME(t);let s=(a?Ou(n.width):n.width)/r,o=(a?Ou(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const jN=Ai(0);function FE(e){const t=hn(e);return!Pp()||!t.visualViewport?jN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hn(e)?!1:t}function sa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Dp(e);let s=Ai(1);t&&(r?Gn(r)&&(s=Ba(r)):s=Ba(e));const o=BN(a,n,r)?FE(a):Ai(0);let l=(i.left+o.x)/s.x,c=(i.top+o.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a){const p=hn(a),m=r&&Gn(r)?hn(r):r;let x=p,b=Xf(x);for(;b&&r&&m!==x;){const v=Ba(b),y=b.getBoundingClientRect(),g=qn(b),E=y.left+(b.clientLeft+parseFloat(g.paddingLeft))*v.x,k=y.top+(b.clientTop+parseFloat(g.paddingTop))*v.y;l*=v.x,c*=v.y,f*=v.x,h*=v.y,l+=E,c+=k,x=hn(b),b=Xf(x)}}return Ru({width:f,height:h,x:l,y:c})}function UN(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=yr(r),o=t?vc(t.floating):!1;if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},c=Ai(1);const f=Ai(0),h=mr(r);if((h||!h&&!a)&&((ys(r)!=="body"||Qo(s))&&(l=wc(r)),mr(r))){const p=sa(r);c=Ba(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x,y:n.y*c.y-l.scrollTop*c.y+f.y}}function HN(e){return Array.from(e.getClientRects())}function Jf(e,t){const n=wc(e).scrollLeft;return t?t.left+n:sa(yr(e)).left+n}function zN(e){const t=yr(e),n=wc(e),r=e.ownerDocument.body,i=un(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=un(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Jf(e);const o=-n.scrollTop;return qn(r).direction==="rtl"&&(s+=un(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function WN(e,t){const n=hn(e),r=yr(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const c=Pp();(!c||c&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o,y:l}}function $N(e,t){const n=sa(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=mr(e)?Ba(e):Ai(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,l=i*a.x,c=r*a.y;return{width:s,height:o,x:l,y:c}}function G0(e,t,n){let r;if(t==="viewport")r=WN(e,n);else if(t==="document")r=zN(yr(e));else if(Gn(t))r=$N(t,n);else{const i=FE(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ru(r)}function jE(e,t){const n=Ni(e);return n===t||!Gn(n)||rs(n)?!1:qn(n).position==="fixed"||jE(n,t)}function VN(e,t){const n=t.get(e);if(n)return n;let r=Io(e,[],!1).filter(o=>Gn(o)&&ys(o)!=="body"),i=null;const a=qn(e).position==="fixed";let s=a?Ni(e):e;for(;Gn(s)&&!rs(s);){const o=qn(s),l=Rp(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Qo(s)&&!l&&jE(e,s))?r=r.filter(f=>f!==s):i=o,s=Ni(s)}return t.set(e,r),r}function YN(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?vc(t)?[]:VN(t,this._c):[].concat(n),r],o=s[0],l=s.reduce((c,f)=>{const h=G0(t,f,i);return c.top=un(h.top,c.top),c.right=Ci(h.right,c.right),c.bottom=Ci(h.bottom,c.bottom),c.left=un(h.left,c.left),c},G0(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function GN(e){const{width:t,height:n}=ME(e);return{width:t,height:n}}function qN(e,t,n){const r=mr(t),i=yr(t),a=n==="fixed",s=sa(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=Ai(0);if(r||!r&&!a)if((ys(t)!=="body"||Qo(i))&&(o=wc(t)),r){const m=sa(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&(l.x=Jf(i));let c=0,f=0;if(i&&!r&&!a){const m=i.getBoundingClientRect();f=m.top+o.scrollTop,c=m.left+o.scrollLeft-Jf(i,m)}const h=s.left+o.scrollLeft-l.x-c,p=s.top+o.scrollTop-l.y-f;return{x:h,y:p,width:s.width,height:s.height}}function vd(e){return qn(e).position==="static"}function q0(e,t){if(!mr(e)||qn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yr(e)===n&&(n=n.ownerDocument.body),n}function BE(e,t){const n=hn(e);if(vc(e))return n;if(!mr(e)){let i=Ni(e);for(;i&&!rs(i);){if(Gn(i)&&!vd(i))return i;i=Ni(i)}return n}let r=q0(e,t);for(;r&&MN(r)&&vd(r);)r=q0(r,t);return r&&rs(r)&&vd(r)&&!Rp(r)?n:r||FN(e)||n}const QN=async function(e){const t=this.getOffsetParent||BE,n=this.getDimensions,r=await n(e.floating);return{reference:qN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KN(e){return qn(e).direction==="rtl"}const XN={convertOffsetParentRelativeRectToViewportRelativeRect:UN,getDocumentElement:yr,getClippingRect:YN,getOffsetParent:BE,getElementRects:QN,getClientRects:HN,getDimensions:GN,getScale:Ba,isElement:Gn,isRTL:KN};function JN(e,t){let n=null,r;const i=yr(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const{left:c,top:f,width:h,height:p}=e.getBoundingClientRect();if(o||t(),!h||!p)return;const m=kl(f),x=kl(i.clientWidth-(c+h)),b=kl(i.clientHeight-(f+p)),v=kl(c),g={rootMargin:-m+"px "+-x+"px "+-b+"px "+-v+"px",threshold:un(0,Ci(1,l))||1};let E=!0;function k(I){const N=I[0].intersectionRatio;if(N!==l){if(!E)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(k,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,g)}n.observe(e)}return s(!0),a}function ZN(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Dp(e),f=i||a?[...c?Io(c):[],...Io(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const h=c&&o?JN(c,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(y=>{let[g]=y;g&&g.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let x,b=l?sa(e):null;l&&v();function v(){const y=sa(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,x=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(g=>{i&&g.removeEventListener("scroll",n),a&&g.removeEventListener("resize",n)}),h==null||h(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(x)}}const e_=LN,t_=RN,n_=SN,r_=DN,i_=IN,Q0=_N,a_=PN,s_=(e,t,n)=>{const r=new Map,i={platform:XN,...n},a={...i.platform,_c:r};return NN(e,t,{...i,platform:a})};var Kl=typeof document<"u"?T.useLayoutEffect:T.useEffect;function Pu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pu(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Pu(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function UE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function K0(e,t){const n=UE(e);return Math.round(t*n)/n}function wd(e){const t=T.useRef(e);return Kl(()=>{t.current=e}),t}function o_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:c}=e,[f,h]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=T.useState(r);Pu(p,r)||m(r);const[x,b]=T.useState(null),[v,y]=T.useState(null),g=T.useCallback(D=>{D!==N.current&&(N.current=D,b(D))},[]),E=T.useCallback(D=>{D!==L.current&&(L.current=D,y(D))},[]),k=a||x,I=s||v,N=T.useRef(null),L=T.useRef(null),M=T.useRef(f),V=l!=null,H=wd(l),Y=wd(i),F=wd(c),K=T.useCallback(()=>{if(!N.current||!L.current)return;const D={placement:t,strategy:n,middleware:p};Y.current&&(D.platform=Y.current),s_(N.current,L.current,D).then(q=>{const C={...q,isPositioned:F.current!==!1};z.current&&!Pu(M.current,C)&&(M.current=C,hs.flushSync(()=>{h(C)}))})},[p,t,n,Y,F]);Kl(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(D=>({...D,isPositioned:!1})))},[c]);const z=T.useRef(!1);Kl(()=>(z.current=!0,()=>{z.current=!1}),[]),Kl(()=>{if(k&&(N.current=k),I&&(L.current=I),k&&I){if(H.current)return H.current(k,I,K);K()}},[k,I,K,H,V]);const te=T.useMemo(()=>({reference:N,floating:L,setReference:g,setFloating:E}),[g,E]),ie=T.useMemo(()=>({reference:k,floating:I}),[k,I]),se=T.useMemo(()=>{const D={position:n,left:0,top:0};if(!ie.floating)return D;const q=K0(ie.floating,f.x),C=K0(ie.floating,f.y);return o?{...D,transform:"translate("+q+"px, "+C+"px)",...UE(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:C}},[n,o,ie.floating,f.x,f.y]);return T.useMemo(()=>({...f,update:K,refs:te,elements:ie,floatingStyles:se}),[f,K,te,ie,se])}const l_=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Q0({element:r.current,padding:i}).fn(n):{}:r?Q0({element:r,padding:i}).fn(n):{}}}},u_=(e,t)=>({...e_(e),options:[e,t]}),c_=(e,t)=>({...t_(e),options:[e,t]}),d_=(e,t)=>({...a_(e),options:[e,t]}),f_=(e,t)=>({...n_(e),options:[e,t]}),h_=(e,t)=>({...r_(e),options:[e,t]}),p_=(e,t)=>({...i_(e),options:[e,t]}),m_=(e,t)=>({...l_(e),options:[e,t]});var g_="Arrow",HE=T.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return u.jsx(St.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});HE.displayName=g_;var y_=HE;function x_(e){const[t,n]=T.useState(void 0);return pr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,o=c.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Mp="Popper",[zE,WE]=Ep(Mp),[b_,$E]=zE(Mp),VE=e=>{const{__scopePopper:t,children:n}=e,[r,i]=T.useState(null);return u.jsx(b_,{scope:t,anchor:r,onAnchorChange:i,children:n})};VE.displayName=Mp;var YE="PopperAnchor",GE=T.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=$E(YE,n),s=T.useRef(null),o=nn(t,s);return T.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:u.jsx(St.div,{...i,ref:o})});GE.displayName=YE;var Fp="PopperContent",[E_,T_]=zE(Fp),qE=T.forwardRef((e,t)=>{var Ze,Qe,ut,mt,yn,Kn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:x,...b}=e,v=$E(Fp,n),[y,g]=T.useState(null),E=nn(t,xn=>g(xn)),[k,I]=T.useState(null),N=x_(k),L=(N==null?void 0:N.width)??0,M=(N==null?void 0:N.height)??0,V=r+(a!=="center"?"-"+a:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},Y=Array.isArray(c)?c:[c],F=Y.length>0,K={padding:H,boundary:Y.filter(w_),altBoundary:F},{refs:z,floatingStyles:te,placement:ie,isPositioned:se,middlewareData:D}=o_({strategy:"fixed",placement:V,whileElementsMounted:(...xn)=>ZN(...xn,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[u_({mainAxis:i+M,alignmentAxis:s}),l&&c_({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?d_():void 0,...K}),l&&f_({...K}),h_({...K,apply:({elements:xn,rects:Xn,availableWidth:Ur,availableHeight:bn})=>{const{width:Di,height:O}=Xn.reference,R=xn.floating.style;R.setProperty("--radix-popper-available-width",`${Ur}px`),R.setProperty("--radix-popper-available-height",`${bn}px`),R.setProperty("--radix-popper-anchor-width",`${Di}px`),R.setProperty("--radix-popper-anchor-height",`${O}px`)}}),k&&m_({element:k,padding:o}),C_({arrowWidth:L,arrowHeight:M}),p&&p_({strategy:"referenceHidden",...K})]}),[q,C]=XE(ie),re=Ln(x);pr(()=>{se&&(re==null||re())},[se,re]);const ue=(Ze=D.arrow)==null?void 0:Ze.x,_=(Qe=D.arrow)==null?void 0:Qe.y,Te=((ut=D.arrow)==null?void 0:ut.centerOffset)!==0,[He,he]=T.useState();return pr(()=>{y&&he(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:se?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(mt=D.transformOrigin)==null?void 0:mt.x,(yn=D.transformOrigin)==null?void 0:yn.y].join(" "),...((Kn=D.hide)==null?void 0:Kn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(E_,{scope:n,placedSide:q,onArrowChange:I,arrowX:ue,arrowY:_,shouldHideArrow:Te,children:u.jsx(St.div,{"data-side":q,"data-align":C,...b,ref:E,style:{...b.style,animation:se?void 0:"none"}})})})});qE.displayName=Fp;var QE="PopperArrow",v_={top:"bottom",right:"left",bottom:"top",left:"right"},KE=T.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=T_(QE,r),s=v_[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(y_,{...i,ref:n,style:{...i.style,display:"block"}})})});KE.displayName=QE;function w_(e){return e!==null}var C_=e=>({name:"transformOrigin",options:e,fn(t){var v,y,g;const{placement:n,rects:r,middlewareData:i}=t,s=((v=i.arrow)==null?void 0:v.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,f]=XE(n),h={start:"0%",center:"50%",end:"100%"}[f],p=(((y=i.arrow)==null?void 0:y.x)??0)+o/2,m=(((g=i.arrow)==null?void 0:g.y)??0)+l/2;let x="",b="";return c==="bottom"?(x=s?h:`${p}px`,b=`${-l}px`):c==="top"?(x=s?h:`${p}px`,b=`${r.floating.height+l}px`):c==="right"?(x=`${-l}px`,b=s?h:`${m}px`):c==="left"&&(x=`${r.floating.width+l}px`,b=s?h:`${m}px`),{data:{x,y:b}}}});function XE(e){const[t,n="center"]=e.split("-");return[t,n]}var A_=VE,k_=GE,N_=qE,__=KE;function S_(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var JE=e=>{const{present:t,children:n}=e,r=I_(t),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),a=nn(r.ref,O_(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:a}):null};JE.displayName="Presence";function I_(e){const[t,n]=T.useState(),r=T.useRef({}),i=T.useRef(e),a=T.useRef("none"),s=e?"mounted":"unmounted",[o,l]=S_(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const c=Nl(r.current);a.current=o==="mounted"?c:"none"},[o]),pr(()=>{const c=r.current,f=i.current;if(f!==e){const p=a.current,m=Nl(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),pr(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,h=m=>{const b=Nl(r.current).includes(m.animationName);if(m.target===t&&b&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(a.current=Nl(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:T.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Nl(e){return(e==null?void 0:e.animationName)||"none"}function O_(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var[Cc,Q7]=oN("Tooltip",[WE]),Ac=WE(),ZE="TooltipProvider",L_=700,Zf="tooltip.open",[R_,jp]=Cc(ZE),e2=e=>{const{__scopeTooltip:t,delayDuration:n=L_,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,o]=T.useState(!0),l=T.useRef(!1),c=T.useRef(0);return T.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),u.jsx(R_,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:T.useCallback(()=>{window.clearTimeout(c.current),o(!1)},[]),onClose:T.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:T.useCallback(f=>{l.current=f},[]),disableHoverableContent:i,children:a})};e2.displayName=ZE;var kc="Tooltip",[P_,Nc]=Cc(kc),t2=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=jp(kc,e.__scopeTooltip),c=Ac(t),[f,h]=T.useState(null),p=xN(),m=T.useRef(0),x=s??l.disableHoverableContent,b=o??l.delayDuration,v=T.useRef(!1),[y=!1,g]=zb({prop:r,defaultProp:i,onChange:L=>{L?(l.onOpen(),document.dispatchEvent(new CustomEvent(Zf))):l.onClose(),a==null||a(L)}}),E=T.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),k=T.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,g(!0)},[g]),I=T.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g(!1)},[g]),N=T.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,g(!0),m.current=0},b)},[b,g]);return T.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(A_,{...c,children:u.jsx(P_,{scope:t,contentId:p,open:y,stateAttribute:E,trigger:f,onTriggerChange:h,onTriggerEnter:T.useCallback(()=>{l.isOpenDelayed?N():k()},[l.isOpenDelayed,N,k]),onTriggerLeave:T.useCallback(()=>{x?I():(window.clearTimeout(m.current),m.current=0)},[I,x]),onOpen:k,onClose:I,disableHoverableContent:x,children:n})})};t2.displayName=kc;var eh="TooltipTrigger",n2=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Nc(eh,n),a=jp(eh,n),s=Ac(n),o=T.useRef(null),l=nn(t,o,i.onTriggerChange),c=T.useRef(!1),f=T.useRef(!1),h=T.useCallback(()=>c.current=!1,[]);return T.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),u.jsx(k_,{asChild:!0,...s,children:u.jsx(St.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:qe(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:qe(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:qe(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:qe(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:qe(e.onBlur,i.onClose),onClick:qe(e.onClick,i.onClose)})})});n2.displayName=eh;var D_="TooltipPortal",[K7,M_]=Cc(D_,{forceMount:void 0}),is="TooltipContent",r2=T.forwardRef((e,t)=>{const n=M_(is,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=Nc(is,e.__scopeTooltip);return u.jsx(JE,{present:r||s.open,children:s.disableHoverableContent?u.jsx(i2,{side:i,...a,ref:t}):u.jsx(F_,{side:i,...a,ref:t})})}),F_=T.forwardRef((e,t)=>{const n=Nc(is,e.__scopeTooltip),r=jp(is,e.__scopeTooltip),i=T.useRef(null),a=nn(t,i),[s,o]=T.useState(null),{trigger:l,onClose:c}=n,f=i.current,{onPointerInTransitChange:h}=r,p=T.useCallback(()=>{o(null),h(!1)},[h]),m=T.useCallback((x,b)=>{const v=x.currentTarget,y={x:x.clientX,y:x.clientY},g=H_(y,v.getBoundingClientRect()),E=z_(y,g),k=W_(b.getBoundingClientRect()),I=V_([...E,...k]);o(I),h(!0)},[h]);return T.useEffect(()=>()=>p(),[p]),T.useEffect(()=>{if(l&&f){const x=v=>m(v,f),b=v=>m(v,l);return l.addEventListener("pointerleave",x),f.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",b)}}},[l,f,m,p]),T.useEffect(()=>{if(s){const x=b=>{const v=b.target,y={x:b.clientX,y:b.clientY},g=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),E=!$_(y,s);g?p():E&&(p(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,f,s,c,p]),u.jsx(i2,{...e,ref:a})}),[j_,B_]=Cc(kc,{isInside:!1}),i2=T.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=Nc(is,n),c=Ac(n),{onClose:f}=l;return T.useEffect(()=>(document.addEventListener(Zf,f),()=>document.removeEventListener(Zf,f)),[f]),T.useEffect(()=>{if(l.trigger){const h=p=>{const m=p.target;m!=null&&m.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),u.jsx(OE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:u.jsxs(N_,{"data-state":l.stateAttribute,...c,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(Pb,{children:r}),u.jsx(j_,{scope:n,isInside:!0,children:u.jsx($A,{id:l.contentId,role:"tooltip",children:i||r})})]})})});r2.displayName=is;var a2="TooltipArrow",U_=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ac(n);return B_(a2,n).isInside?null:u.jsx(__,{...i,...r,ref:t})});U_.displayName=a2;function H_(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function z_(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function W_(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function $_(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a].x,l=t[a].y,c=t[s].x,f=t[s].y;l>r!=f>r&&n<(c-o)*(r-l)/(f-l)+o&&(i=!i)}return i}function V_(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Y_(t)}function Y_(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var G_=e2,q_=t2,Q_=n2,s2=r2;const K_=G_,X_=q_,J_=Q_,o2=T.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(s2,{ref:r,sideOffset:t,className:It("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));o2.displayName=s2.displayName;var _c=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sc=typeof window>"u"||"Deno"in globalThis;function Dn(){}function Z_(e,t){return typeof e=="function"?e(t):e}function eS(e){return typeof e=="number"&&e>=0&&e!==1/0}function tS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function X0(e,t){return typeof e=="function"?e(t):e}function nS(e,t){return typeof e=="function"?e(t):e}function J0(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==Bp(s,t.options))return!1}else if(!Lo(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function Z0(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Oo(t.options.mutationKey)!==Oo(a))return!1}else if(!Lo(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Bp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Oo)(e)}function Oo(e){return JSON.stringify(e,(t,n)=>th(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Lo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Lo(e[n],t[n])):!1}function l2(e,t){if(e===t)return e;const n=eg(e)&&eg(t);if(n||th(e)&&th(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let c=0;c<s;c++){const f=n?c:a[c];(!n&&r.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(o[f]=void 0,l++):(o[f]=l2(e[f],t[f]),o[f]===e[f]&&e[f]!==void 0&&l++)}return i===s&&l===i?e:o}return t}function eg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function th(e){if(!tg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tg(e){return Object.prototype.toString.call(e)==="[object Object]"}function rS(e){return new Promise(t=>{setTimeout(t,e)})}function iS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?l2(e,t):t}function aS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var u2=Symbol();function c2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===u2?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Vi,ni,Ha,cy,oS=(cy=class extends _c{constructor(){super();_e(this,Vi);_e(this,ni);_e(this,Ha);Ee(this,Ha,t=>{if(!Sc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){W(this,ni)||this.setEventListener(W(this,Ha))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,ni))==null||t.call(this),Ee(this,ni,void 0))}setEventListener(t){var n;Ee(this,Ha,t),(n=W(this,ni))==null||n.call(this),Ee(this,ni,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){W(this,Vi)!==t&&(Ee(this,Vi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof W(this,Vi)=="boolean"?W(this,Vi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vi=new WeakMap,ni=new WeakMap,Ha=new WeakMap,cy),d2=new oS,za,ri,Wa,dy,lS=(dy=class extends _c{constructor(){super();_e(this,za,!0);_e(this,ri);_e(this,Wa);Ee(this,Wa,t=>{if(!Sc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){W(this,ri)||this.setEventListener(W(this,Wa))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,ri))==null||t.call(this),Ee(this,ri,void 0))}setEventListener(t){var n;Ee(this,Wa,t),(n=W(this,ri))==null||n.call(this),Ee(this,ri,t(this.setOnline.bind(this)))}setOnline(t){W(this,za)!==t&&(Ee(this,za,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return W(this,za)}},za=new WeakMap,ri=new WeakMap,Wa=new WeakMap,dy),Du=new lS;function uS(e){return Math.min(1e3*2**e,3e4)}function f2(e){return(e??"online")==="online"?Du.isOnline():!0}var h2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Cd(e){return e instanceof h2}function p2(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((y,g)=>{a=y,s=g}),l=y=>{var g;r||(x(new h2(y)),(g=e.abort)==null||g.call(e))},c=()=>{t=!0},f=()=>{t=!1},h=()=>d2.isFocused()&&(e.networkMode==="always"||Du.isOnline())&&e.canRun(),p=()=>f2(e.networkMode)&&e.canRun(),m=y=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,y),i==null||i(),a(y))},x=y=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,y),i==null||i(),s(y))},b=()=>new Promise(y=>{var g;i=E=>{(r||h())&&y(E)},(g=e.onPause)==null||g.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),v=()=>{if(r)return;let y;const g=n===0?e.initialPromise:void 0;try{y=g??e.fn()}catch(E){y=Promise.reject(E)}Promise.resolve(y).then(m).catch(E=>{var M;if(r)return;const k=e.retry??(Sc?0:3),I=e.retryDelay??uS,N=typeof I=="function"?I(n,E):I,L=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,E);if(t||!L){x(E);return}n++,(M=e.onFail)==null||M.call(e,n,E),rS(N).then(()=>h()?void 0:b()).then(()=>{t?x(E):v()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?v():b().then(v),o)}}function cS(){let e=[],t=0,n=o=>{o()},r=o=>{o()},i=o=>setTimeout(o,0);const a=o=>{t?e.push(o):i(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||s()}return l},batchCalls:o=>(...l)=>{a(()=>{o(...l)})},schedule:a,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Bt=cS(),Yi,fy,m2=(fy=class{constructor(){_e(this,Yi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eS(this.gcTime)&&Ee(this,Yi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sc?1/0:5*60*1e3))}clearGcTimeout(){W(this,Yi)&&(clearTimeout(W(this,Yi)),Ee(this,Yi,void 0))}},Yi=new WeakMap,fy),$a,Va,wn,At,zo,Gi,Mn,wr,hy,dS=(hy=class extends m2{constructor(t){super();_e(this,Mn);_e(this,$a);_e(this,Va);_e(this,wn);_e(this,At);_e(this,zo);_e(this,Gi);Ee(this,Gi,!1),Ee(this,zo,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ee(this,wn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ee(this,$a,hS(this.options)),this.state=t.state??W(this,$a),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=W(this,At))==null?void 0:t.promise}setOptions(t){this.options={...W(this,zo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,wn).remove(this)}setData(t,n){const r=iS(this.state.data,t,this.options);return vt(this,Mn,wr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){vt(this,Mn,wr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=W(this,At))==null?void 0:r.promise;return(i=W(this,At))==null||i.cancel(t),n?n.then(Dn).catch(Dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(W(this,$a))}isActive(){return this.observers.some(t=>nS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!tS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,At))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,At))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),W(this,wn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(W(this,At)&&(W(this,Gi)?W(this,At).cancel({revert:!0}):W(this,At).cancelRetry()),this.scheduleGc()),W(this,wn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vt(this,Mn,wr).call(this,{type:"invalidate"})}fetch(t,n){var l,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(W(this,At))return W(this,At).continueRetry(),W(this,At).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Ee(this,Gi,!0),r.signal)})},a=()=>{const h=c2(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),Ee(this,Gi,!1),this.options.persister?this.options.persister(h,p,this):h(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),Ee(this,Va,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=s.fetchOptions)==null?void 0:c.meta))&&vt(this,Mn,wr).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const o=h=>{var p,m,x,b;Cd(h)&&h.silent||vt(this,Mn,wr).call(this,{type:"error",error:h}),Cd(h)||((m=(p=W(this,wn).config).onError)==null||m.call(p,h,this),(b=(x=W(this,wn).config).onSettled)==null||b.call(x,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ee(this,At,p2({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,m,x,b;if(h===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){o(v);return}(m=(p=W(this,wn).config).onSuccess)==null||m.call(p,h,this),(b=(x=W(this,wn).config).onSettled)==null||b.call(x,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(h,p)=>{vt(this,Mn,wr).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{vt(this,Mn,wr).call(this,{type:"pause"})},onContinue:()=>{vt(this,Mn,wr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),W(this,At).start()}},$a=new WeakMap,Va=new WeakMap,wn=new WeakMap,At=new WeakMap,zo=new WeakMap,Gi=new WeakMap,Mn=new WeakSet,wr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fS(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Cd(i)&&i.revert&&W(this,Va)?{...W(this,Va),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Bt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),W(this,wn).notify({query:this,type:"updated",action:t})})},hy);function fS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:f2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ir,py,pS=(py=class extends _c{constructor(t={}){super();_e(this,ir);this.config=t,Ee(this,ir,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??Bp(i,n);let s=this.get(a);return s||(s=new dS({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){W(this,ir).has(t.queryHash)||(W(this,ir).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=W(this,ir).get(t.queryHash);n&&(t.destroy(),n===t&&W(this,ir).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return W(this,ir).get(t)}getAll(){return[...W(this,ir).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>J0(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>J0(t,r)):n}notify(t){Bt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ir=new WeakMap,py),ar,Dt,qi,sr,Yr,my,mS=(my=class extends m2{constructor(t){super();_e(this,sr);_e(this,ar);_e(this,Dt);_e(this,qi);this.mutationId=t.mutationId,Ee(this,Dt,t.mutationCache),Ee(this,ar,[]),this.state=t.state||gS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){W(this,ar).includes(t)||(W(this,ar).push(t),this.clearGcTimeout(),W(this,Dt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ee(this,ar,W(this,ar).filter(n=>n!==t)),this.scheduleGc(),W(this,Dt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){W(this,ar).length||(this.state.status==="pending"?this.scheduleGc():W(this,Dt).remove(this))}continue(){var t;return((t=W(this,qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,c,f,h,p,m,x,b,v,y,g,E,k,I,N,L;Ee(this,qi,p2({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,V)=>{vt(this,sr,Yr).call(this,{type:"failed",failureCount:M,error:V})},onPause:()=>{vt(this,sr,Yr).call(this,{type:"pause"})},onContinue:()=>{vt(this,sr,Yr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,Dt).canRun(this)}));const n=this.state.status==="pending",r=!W(this,qi).canStart();try{if(!n){vt(this,sr,Yr).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=W(this,Dt).config).onMutate)==null?void 0:a.call(i,t,this));const V=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));V!==this.state.context&&vt(this,sr,Yr).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const M=await W(this,qi).start();return await((c=(l=W(this,Dt).config).onSuccess)==null?void 0:c.call(l,M,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,M,t,this.state.context)),await((m=(p=W(this,Dt).config).onSettled)==null?void 0:m.call(p,M,null,this.state.variables,this.state.context,this)),await((b=(x=this.options).onSettled)==null?void 0:b.call(x,M,null,t,this.state.context)),vt(this,sr,Yr).call(this,{type:"success",data:M}),M}catch(M){try{throw await((y=(v=W(this,Dt).config).onError)==null?void 0:y.call(v,M,t,this.state.context,this)),await((E=(g=this.options).onError)==null?void 0:E.call(g,M,t,this.state.context)),await((I=(k=W(this,Dt).config).onSettled)==null?void 0:I.call(k,void 0,M,this.state.variables,this.state.context,this)),await((L=(N=this.options).onSettled)==null?void 0:L.call(N,void 0,M,t,this.state.context)),M}finally{vt(this,sr,Yr).call(this,{type:"error",error:M})}}finally{W(this,Dt).runNext(this)}}},ar=new WeakMap,Dt=new WeakMap,qi=new WeakMap,sr=new WeakSet,Yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Bt.batch(()=>{W(this,ar).forEach(r=>{r.onMutationUpdate(t)}),W(this,Dt).notify({mutation:this,type:"updated",action:t})})},my);function gS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sn,Wo,gy,yS=(gy=class extends _c{constructor(t={}){super();_e(this,sn);_e(this,Wo);this.config=t,Ee(this,sn,new Map),Ee(this,Wo,Date.now())}build(t,n,r){const i=new mS({mutationCache:this,mutationId:++al(this,Wo)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=_l(t),r=W(this,sn).get(n)??[];r.push(t),W(this,sn).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=_l(t);if(W(this,sn).has(n)){const i=(r=W(this,sn).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?W(this,sn).delete(n):W(this,sn).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=W(this,sn).get(_l(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=W(this,sn).get(_l(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...W(this,sn).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Z0(n,r))}findAll(t={}){return this.getAll().filter(n=>Z0(t,n))}notify(t){Bt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Bt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Dn))))}},sn=new WeakMap,Wo=new WeakMap,gy);function _l(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function ng(e){return{onFetch:(t,n)=>{var f,h,p,m,x;const r=t.options,i=(p=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const c=async()=>{let b=!1;const v=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},y=c2(t.options,t.fetchOptions),g=async(E,k,I)=>{if(b)return Promise.reject();if(k==null&&E.pages.length)return Promise.resolve(E);const N={queryKey:t.queryKey,pageParam:k,direction:I?"backward":"forward",meta:t.options.meta};v(N);const L=await y(N),{maxPages:M}=t.options,V=I?sS:aS;return{pages:V(E.pages,L,M),pageParams:V(E.pageParams,k,M)}};if(i&&a.length){const E=i==="backward",k=E?xS:rg,I={pages:a,pageParams:s},N=k(r,I);o=await g(I,N,E)}else{const E=e??a.length;do{const k=l===0?s[0]??r.initialPageParam:rg(r,o);if(l>0&&k==null)break;o=await g(o,k),l++}while(l<E)}return o};t.options.persister?t.fetchFn=()=>{var b,v;return(v=(b=t.options).persister)==null?void 0:v.call(b,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function rg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ye,ii,ai,Ya,Ga,si,qa,Qa,yy,bS=(yy=class{constructor(e={}){_e(this,Ye);_e(this,ii);_e(this,ai);_e(this,Ya);_e(this,Ga);_e(this,si);_e(this,qa);_e(this,Qa);Ee(this,Ye,e.queryCache||new pS),Ee(this,ii,e.mutationCache||new yS),Ee(this,ai,e.defaultOptions||{}),Ee(this,Ya,new Map),Ee(this,Ga,new Map),Ee(this,si,0)}mount(){al(this,si)._++,W(this,si)===1&&(Ee(this,qa,d2.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,Ye).onFocus())})),Ee(this,Qa,Du.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,Ye).onOnline())})))}unmount(){var e,t;al(this,si)._--,W(this,si)===0&&((e=W(this,qa))==null||e.call(this),Ee(this,qa,void 0),(t=W(this,Qa))==null||t.call(this),Ee(this,Qa,void 0))}isFetching(e){return W(this,Ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return W(this,ii).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,Ye).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=W(this,Ye).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(X0(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return W(this,Ye).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=W(this,Ye).get(r.queryHash),a=i==null?void 0:i.state.data,s=Z_(t,a);if(s!==void 0)return W(this,Ye).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Bt.batch(()=>W(this,Ye).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,Ye).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=W(this,Ye);Bt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=W(this,Ye),r={type:"active",...e};return Bt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Bt.batch(()=>W(this,Ye).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Dn).catch(Dn)}invalidateQueries(e={},t={}){return Bt.batch(()=>{if(W(this,Ye).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Bt.batch(()=>W(this,Ye).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Dn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Dn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=W(this,Ye).build(this,t);return n.isStaleByTime(X0(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dn).catch(Dn)}fetchInfiniteQuery(e){return e.behavior=ng(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dn).catch(Dn)}ensureInfiniteQueryData(e){return e.behavior=ng(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Du.isOnline()?W(this,ii).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,Ye)}getMutationCache(){return W(this,ii)}getDefaultOptions(){return W(this,ai)}setDefaultOptions(e){Ee(this,ai,e)}setQueryDefaults(e,t){W(this,Ya).set(Oo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...W(this,Ya).values()];let n={};return t.forEach(r=>{Lo(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){W(this,Ga).set(Oo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...W(this,Ga).values()];let n={};return t.forEach(r=>{Lo(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...W(this,ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===u2&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...W(this,ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){W(this,Ye).clear(),W(this,ii).clear()}},Ye=new WeakMap,ii=new WeakMap,ai=new WeakMap,Ya=new WeakMap,Ga=new WeakMap,si=new WeakMap,qa=new WeakMap,Qa=new WeakMap,yy),ES=T.createContext(void 0),TS=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(ES.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.19.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ro.apply(this,arguments)}var ui;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ui||(ui={}));const ig="popstate";function vS(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:s,hash:o}=r.location;return nh("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Mu(i)}return CS(t,n,null,e)}function rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function g2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wS(){return Math.random().toString(36).substr(2,8)}function ag(e,t){return{usr:e.state,key:e.key,idx:t}}function nh(e,t,n,r){return n===void 0&&(n=null),Ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xs(t):t,{state:n,key:t&&t.key||r||wS()})}function Mu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function CS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=ui.Pop,l=null,c=f();c==null&&(c=0,s.replaceState(Ro({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function h(){o=ui.Pop;let v=f(),y=v==null?null:v-c;c=v,l&&l({action:o,location:b.location,delta:y})}function p(v,y){o=ui.Push;let g=nh(b.location,v,y);c=f()+1;let E=ag(g,c),k=b.createHref(g);try{s.pushState(E,"",k)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(k)}a&&l&&l({action:o,location:b.location,delta:1})}function m(v,y){o=ui.Replace;let g=nh(b.location,v,y);c=f();let E=ag(g,c),k=b.createHref(g);s.replaceState(E,"",k),a&&l&&l({action:o,location:b.location,delta:0})}function x(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof v=="string"?v:Mu(v);return g=g.replace(/ $/,"%20"),rt(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let b={get action(){return o},get location(){return e(i,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ig,h),l=v,()=>{i.removeEventListener(ig,h),l=null}},createHref(v){return t(i,v)},createURL:x,encodeLocation(v){let y=x(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:m,go(v){return s.go(v)}};return b}var sg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sg||(sg={}));function AS(e,t,n){return n===void 0&&(n="/"),kS(e,t,n,!1)}function kS(e,t,n,r){let i=typeof t=="string"?xs(t):t,a=Up(i.pathname||"/",n);if(a==null)return null;let s=y2(e);NS(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let c=jS(a);o=MS(s[l],c,r)}return o}function y2(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,s,o)=>{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(rt(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=Ei([r,l.relativePath]),f=n.concat(l);a.children&&a.children.length>0&&(rt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),y2(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:PS(c,a.index),routesMeta:f})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of x2(a.path))i(a,s,l)}),t}function x2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=x2(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function NS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:DS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _S=/^:[\w-]+$/,SS=3,IS=2,OS=1,LS=10,RS=-2,og=e=>e==="*";function PS(e,t){let n=e.split("/"),r=n.length;return n.some(og)&&(r+=RS),t&&(r+=IS),n.filter(i=>!og(i)).reduce((i,a)=>i+(_S.test(a)?SS:a===""?OS:LS),r)}function DS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function MS(e,t,n){let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],c=o===r.length-1,f=a==="/"?t:t.slice(a.length)||"/",h=lg({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f),p=l.route;if(!h&&c&&n&&!r[r.length-1].route.index&&(h=lg({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!h)return null;Object.assign(i,h.params),s.push({params:i,pathname:Ei([a,h.pathname]),pathnameBase:zS(Ei([a,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(a=Ei([a,h.pathnameBase]))}return s}function lg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=FS(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((c,f,h)=>{let{paramName:p,isOptional:m}=f;if(p==="*"){let b=o[h]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const x=o[h];return m&&!x?c[p]=void 0:c[p]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:e}}function FS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),g2(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function jS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return g2(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Up(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function BS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?xs(e):e;return{pathname:n?n.startsWith("/")?n:US(n,t):t,search:WS(r),hash:$S(i)}}function US(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ad(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function HS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function b2(e,t){let n=HS(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function E2(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=xs(e):(i=Ro({},e),rt(!i.pathname||!i.pathname.includes("?"),Ad("?","pathname","search",i)),rt(!i.pathname||!i.pathname.includes("#"),Ad("#","pathname","hash",i)),rt(!i.search||!i.search.includes("#"),Ad("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}o=h>=0?t[h]:"/"}let l=BS(i,o),c=s&&s!=="/"&&s.endsWith("/"),f=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ei=e=>e.join("/").replace(/\/\/+/g,"/"),zS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$S=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const T2=["post","put","patch","delete"];new Set(T2);const YS=["get",...T2];new Set(YS);/**
 * React Router v6.26.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Po.apply(this,arguments)}const Hp=T.createContext(null),GS=T.createContext(null),ua=T.createContext(null),Ic=T.createContext(null),Li=T.createContext({outlet:null,matches:[],isDataRoute:!1}),v2=T.createContext(null);function qS(e,t){let{relative:n}=t===void 0?{}:t;Ko()||rt(!1);let{basename:r,navigator:i}=T.useContext(ua),{hash:a,pathname:s,search:o}=C2(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Ei([r,s])),i.createHref({pathname:l,search:o,hash:a})}function Ko(){return T.useContext(Ic)!=null}function Br(){return Ko()||rt(!1),T.useContext(Ic).location}function w2(e){T.useContext(ua).static||T.useLayoutEffect(e)}function Xo(){let{isDataRoute:e}=T.useContext(Li);return e?l6():QS()}function QS(){Ko()||rt(!1);let e=T.useContext(Hp),{basename:t,future:n,navigator:r}=T.useContext(ua),{matches:i}=T.useContext(Li),{pathname:a}=Br(),s=JSON.stringify(b2(i,n.v7_relativeSplatPath)),o=T.useRef(!1);return w2(()=>{o.current=!0}),T.useCallback(function(c,f){if(f===void 0&&(f={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=E2(c,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ei([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,a,e])}function KS(){let{matches:e}=T.useContext(Li),t=e[e.length-1];return t?t.params:{}}function C2(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(ua),{matches:i}=T.useContext(Li),{pathname:a}=Br(),s=JSON.stringify(b2(i,r.v7_relativeSplatPath));return T.useMemo(()=>E2(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function XS(e,t){return JS(e,t)}function JS(e,t,n,r){Ko()||rt(!1);let{navigator:i}=T.useContext(ua),{matches:a}=T.useContext(Li),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Br(),f;if(t){var h;let v=typeof t=="string"?xs(t):t;l==="/"||(h=v.pathname)!=null&&h.startsWith(l)||rt(!1),f=v}else f=c;let p=f.pathname||"/",m=p;if(l!=="/"){let v=l.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=AS(e,{pathname:m}),b=r6(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:Ei([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Ei([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,n,r);return t&&b?T.createElement(Ic.Provider,{value:{location:Po({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ui.Pop}},b):b}function ZS(){let e=o6(),t=VS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,null)}const e6=T.createElement(ZS,null);class t6 extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?T.createElement(Li.Provider,{value:this.props.routeContext},T.createElement(v2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function n6(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(Hp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Li.Provider,{value:t},r)}function r6(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let f=s.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);f>=0||rt(!1),s=s.slice(0,Math.min(s.length,f+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<s.length;f++){let h=s[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=f),h.route.id){let{loaderData:p,errors:m}=n,x=h.route.loader&&p[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||x){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((f,h,p)=>{let m,x=!1,b=null,v=null;n&&(m=o&&h.route.id?o[h.route.id]:void 0,b=h.route.errorElement||e6,l&&(c<0&&p===0?(x=!0,v=null):c===p&&(x=!0,v=h.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,p+1)),g=()=>{let E;return m?E=b:x?E=v:h.route.Component?E=T.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=f,T.createElement(n6,{match:h,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:E})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?T.createElement(t6,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var A2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A2||{}),Fu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Fu||{});function i6(e){let t=T.useContext(Hp);return t||rt(!1),t}function a6(e){let t=T.useContext(GS);return t||rt(!1),t}function s6(e){let t=T.useContext(Li);return t||rt(!1),t}function k2(e){let t=s6(),n=t.matches[t.matches.length-1];return n.route.id||rt(!1),n.route.id}function o6(){var e;let t=T.useContext(v2),n=a6(Fu.UseRouteError),r=k2(Fu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function l6(){let{router:e}=i6(A2.UseNavigateStable),t=k2(Fu.UseNavigateStable),n=T.useRef(!1);return w2(()=>{n.current=!0}),T.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Po({fromRouteId:t},a)))},[e,t])}function yt(e){rt(!1)}function u6(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ui.Pop,navigator:a,static:s=!1,future:o}=e;Ko()&&rt(!1);let l=t.replace(/^\/*/,"/"),c=T.useMemo(()=>({basename:l,navigator:a,static:s,future:Po({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=xs(r));let{pathname:f="/",search:h="",hash:p="",state:m=null,key:x="default"}=r,b=T.useMemo(()=>{let v=Up(f,l);return v==null?null:{location:{pathname:v,search:h,hash:p,state:m,key:x},navigationType:i}},[l,f,h,p,m,x,i]);return b==null?null:T.createElement(ua.Provider,{value:c},T.createElement(Ic.Provider,{children:n,value:b}))}function c6(e){let{children:t,location:n}=e;return XS(rh(t),n)}new Promise(()=>{});function rh(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let a=[...t,i];if(r.type===T.Fragment){n.push.apply(n,rh(r.props.children,a));return}r.type!==yt&&rt(!1),!r.props.index||!r.props.children||rt(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=rh(r.props.children,a)),n.push(s)}),n}/**
 * React Router DOM v6.26.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ih.apply(this,arguments)}function d6(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function f6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h6(e,t){return e.button===0&&(!t||t==="_self")&&!f6(e)}const p6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],m6="6";try{window.__reactRouterVersion=m6}catch{}const g6="startTransition",ug=_y[g6];function y6(e){let{basename:t,children:n,future:r,window:i}=e,a=T.useRef();a.current==null&&(a.current=vS({window:i,v5Compat:!0}));let s=a.current,[o,l]=T.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},f=T.useCallback(h=>{c&&ug?ug(()=>l(h)):l(h)},[l,c]);return T.useLayoutEffect(()=>s.listen(f),[s,f]),T.createElement(u6,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s,future:r})}const x6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",b6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ft=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:s,state:o,target:l,to:c,preventScrollReset:f,unstable_viewTransition:h}=t,p=d6(t,p6),{basename:m}=T.useContext(ua),x,b=!1;if(typeof c=="string"&&b6.test(c)&&(x=c,x6))try{let E=new URL(window.location.href),k=c.startsWith("//")?new URL(E.protocol+c):new URL(c),I=Up(k.pathname,m);k.origin===E.origin&&I!=null?c=I+k.search+k.hash:b=!0}catch{}let v=qS(c,{relative:i}),y=E6(c,{replace:s,state:o,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:h});function g(E){r&&r(E),E.defaultPrevented||y(E)}return T.createElement("a",ih({},p,{href:x||v,onClick:b||a?r:g,ref:n,target:l}))});var cg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(cg||(cg={}));var dg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dg||(dg={}));function E6(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:o}=t===void 0?{}:t,l=Xo(),c=Br(),f=C2(e,{relative:s});return T.useCallback(h=>{if(h6(h,n)){h.preventDefault();let p=r!==void 0?r:Mu(c)===Mu(f);l(e,{replace:p,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:o})}},[c,l,f,r,i,n,e,a,s,o])}const T6=cE("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-muted",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Nt=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const s=r?_o:"button";return u.jsx(s,{className:It(T6({variant:t,size:n,className:e})),ref:a,...i})});Nt.displayName="Button";const ju=({className:e="",size:t=24,variant:n="icon"})=>n==="logo"?u.jsx("img",{src:"/img/trailcraft-mark.png",alt:"",width:t,height:t,className:`inline-block object-contain ${e}`,"aria-hidden":"true"}):u.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[u.jsx("ellipse",{cx:"12",cy:"18.2",rx:"8",ry:"3.1"}),u.jsx("ellipse",{cx:"12",cy:"12.8",rx:"5.6",ry:"2.6"}),u.jsx("ellipse",{cx:"12",cy:"7.6",rx:"3.4",ry:"2.3"})]}),N2="braintrailz-theme",ah="braintrailz-theme-preference";function v6(e){return e==="/blog"||e.startsWith("/blog/")}function fg(){try{const e=localStorage.getItem(N2);if(e==="light"||e==="dark")return e}catch{}return null}function w6(e){if(e.stored===null&&v6(e.pathname))return"light"}function C6(){window.dispatchEvent(new Event(ah))}function A6(e){return window.addEventListener(ah,e),()=>window.removeEventListener(ah,e)}const hg=()=>{const{forcedTheme:e,resolvedTheme:t,setTheme:n}=Ec(),[r,i]=T.useState(!1);T.useEffect(()=>{i(!0)},[]);const a=(e??t)==="dark";return u.jsx(Nt,{type:"button",variant:"ghost",size:"icon","aria-label":r&&a?"Switch to light mode":"Switch to dark mode",onClick:()=>{n(a?"light":"dark"),C6()},className:"text-foreground hover:bg-braintrailz-blue/20",children:r?a?u.jsx(Vk,{size:20}):u.jsx(Lk,{size:20}):u.jsx("span",{className:"h-5 w-5"})})},$t=()=>{const[e,t]=T.useState(!1),[n,r]=T.useState(!1),i=Xo(),a=Br(),s=a.pathname==="/";T.useEffect(()=>{const h=()=>{r(window.scrollY>50)};return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]);const o=h=>{if(t(!1),a.pathname!=="/")i("/",{state:{scrollTo:h}});else{const p=document.getElementById(h);p&&p.scrollIntoView({behavior:"smooth"})}},l=()=>{if(t(!1),a.pathname!=="/")i("/",{state:{scrollTo:"contact",intent:"other"}});else{i("/",{state:{scrollTo:"contact",intent:"other"}});const h=document.getElementById("contact");h&&h.scrollIntoView({behavior:"smooth"})}},c=h=>{t(!1),s&&(h.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}))},f=!s||n;return u.jsxs("header",{className:`fixed w-full z-50 transition-all duration-300 ${f?"bg-braintrailz-darker/90 backdrop-blur-md shadow-md":"bg-transparent"}`,children:[u.jsxs("nav",{className:"container-custom flex items-center justify-between py-4",children:[u.jsxs("div",{className:"flex flex-col items-start",children:[u.jsxs(ft,{to:"/",onClick:c,className:"text-2xl font-bold text-foreground flex items-center",children:[u.jsx("div",{className:"bg-white rounded-full p-1 ring-1 ring-black/10 dark:ring-0",children:u.jsx("img",{src:"/logo.png",alt:"Braintrailz",className:"h-8 w-auto"})}),u.jsxs("span",{className:"ml-0 pl-1",children:["rain",u.jsx("span",{className:"text-gradient",children:"Trailz"})]})]}),u.jsxs("a",{href:"https://codemarc.net",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-foreground/50 hover:text-braintrailz-blue transition-colors mt-1 flex items-center gap-1",children:["part of the codemarc network",u.jsx(ps,{size:10,className:"ml-1"})]})]}),u.jsxs("div",{className:"md:hidden flex items-center gap-1",children:[u.jsx(hg,{}),u.jsx(Nt,{variant:"ghost",size:"icon",onClick:()=>t(!e),className:"text-foreground hover:bg-braintrailz-blue/20",children:e?u.jsx(bE,{size:24}):u.jsx(Ik,{size:24})})]}),u.jsxs("div",{className:"hidden md:flex md:items-center md:gap-6",children:[u.jsx("button",{type:"button",onClick:()=>o("walk"),className:"text-foreground hover:text-braintrailz-purple transition-colors",children:"Walk the Trail"}),u.jsx("button",{type:"button",onClick:()=>o("offer"),className:"text-foreground hover:text-braintrailz-blue transition-colors",children:"Work the Trail"}),u.jsx("button",{type:"button",onClick:()=>o("notes"),className:"text-muted-foreground hover:text-braintrailz-blue transition-colors",children:"Field notes"}),u.jsxs(ft,{to:"/trailcraft",className:"text-muted-foreground hover:text-braintrailz-blue transition-colors inline-flex items-center gap-1",children:[u.jsx(ju,{className:"h-4 w-4"}),"Trailcraft"]}),u.jsxs(ft,{to:"/backpack",className:"text-muted-foreground hover:text-braintrailz-blue transition-colors inline-flex items-center gap-1",children:[u.jsx(aa,{className:"h-4 w-4"}),"Backpack"]}),u.jsx(Nt,{onClick:l,className:"bg-gradient-hero hover:opacity-90 text-white",children:"Let's talk"}),u.jsx(hg,{})]})]}),e&&u.jsx("div",{className:"md:hidden bg-braintrailz-dark border-t border-braintrailz-blue/20",children:u.jsxs("div",{className:"container-custom py-4 flex flex-col space-y-3",children:[u.jsx("button",{type:"button",onClick:()=>o("walk"),className:"text-left py-2 text-foreground hover:text-braintrailz-purple",children:"Walk the Trail"}),u.jsx("button",{type:"button",onClick:()=>o("offer"),className:"text-left py-2 text-foreground hover:text-braintrailz-blue",children:"Work the Trail"}),u.jsx("button",{type:"button",onClick:()=>o("notes"),className:"text-left py-2 text-muted-foreground hover:text-braintrailz-blue",children:"Field notes"}),u.jsxs(ft,{to:"/trailcraft",className:"py-2 text-muted-foreground hover:text-braintrailz-blue inline-flex items-center gap-1.5",onClick:()=>t(!1),children:[u.jsx(ju,{className:"h-5 w-5"}),"Trailcraft"]}),u.jsxs(ft,{to:"/backpack",className:"py-2 text-muted-foreground hover:text-braintrailz-blue inline-flex items-center gap-1.5",onClick:()=>t(!1),children:[u.jsx(aa,{className:"h-5 w-5"}),"Backpack"]}),u.jsx(Nt,{onClick:l,className:"bg-gradient-hero hover:opacity-90 text-white w-full",children:"Let's talk"})]})})]})},pg=e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})},k6=()=>u.jsxs("section",{className:"min-h-[90vh] flex items-center relative overflow-hidden",id:"home",children:[u.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url('back.png')",backgroundPosition:"center top"},children:u.jsx("div",{className:"hero-overlay"})}),u.jsxs("div",{className:"absolute inset-0 z-10 pointer-events-none",children:[u.jsx("div",{className:"absolute top-1/3 left-1/4 w-96 h-96 bg-braintrailz-blue/10 rounded-full filter blur-3xl"}),u.jsx("div",{className:"absolute bottom-1/3 right-1/4 w-96 h-96 bg-braintrailz-purple/10 rounded-full filter blur-3xl"})]}),u.jsx("div",{className:"container-custom relative z-20 pt-28 pb-16",children:u.jsxs("div",{className:"max-w-4xl",children:[u.jsx("p",{className:"text-sm font-semibold tracking-wide text-braintrailz-blue mb-4",children:"Braintrailz · Marc J. Greenberg"}),u.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 animate-fade-in",children:[u.jsx("span",{className:"text-gradient block",children:"Two ways of thinking."}),u.jsx("span",{className:"text-gradient block",children:"One trail."})]}),u.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-10 max-w-2xl",children:"Some people arrive with a spark they can't stop thinking about. Others arrive with a stack that has to work by Monday. I build for both."}),u.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[u.jsxs("div",{className:"md:flex-1 rounded-xl border border-braintrailz-purple/50 bg-braintrailz-darker/75 backdrop-blur-sm p-6",style:{backgroundImage:"radial-gradient(circle at 25% 35%, rgba(139, 92, 246, 0.18), transparent 40%), radial-gradient(circle at 80% 75%, rgba(139, 92, 246, 0.12), transparent 35%)"},children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-braintrailz-purple mb-2",children:"The creative side"}),u.jsx("h2",{className:"text-2xl font-bold mb-2",children:"I have an idea"}),u.jsx("p",{className:"text-muted-foreground mb-6",children:"Turn ideation into something special."}),u.jsxs(Nt,{onClick:()=>pg("walk"),className:"bg-gradient-hero hover:opacity-90 text-white px-6 py-5 text-base",children:["Walk the Trail",u.jsx($f,{className:"ml-2 h-5 w-5"})]})]}),u.jsxs("div",{className:"md:flex-1 rounded-xl border border-braintrailz-blue/40 bg-braintrailz-darker/75 backdrop-blur-sm p-6",style:{backgroundImage:"repeating-linear-gradient(0deg, rgba(59, 130, 246, 0.08) 0 2px, transparent 2px 14px)"},children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-braintrailz-blue mb-2",children:"The analytical side"}),u.jsx("h2",{className:"text-2xl font-bold mb-2",children:"I need it built"}),u.jsx("p",{className:"text-muted-foreground mb-6",children:"Fractional CTO. AI that ships."}),u.jsxs(Nt,{variant:"outline",onClick:()=>pg("offer"),className:"border-braintrailz-blue text-braintrailz-blue hover:bg-braintrailz-blue/10 px-6 py-5 text-base",children:["Work the Trail",u.jsx($f,{className:"ml-2 h-5 w-5"})]})]})]}),u.jsx("p",{className:"mt-6 text-sm text-muted-foreground",children:"Both sides lead to the same campfire: one conversation, one punch list."})]})})]}),N6=[{label:"Spark",title:"You have an idea you can't put down.",detail:"Bring it rough. That is the best time to talk."},{label:"Shape",title:"We map it.",detail:"Who it is for, what it must do, what it can skip."},{label:"Build",title:"Then I build it with you.",detail:"The same engineering I bring to a CTO seat."}],_6=()=>u.jsxs("section",{className:"section-padding relative overflow-hidden",id:"walk",children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none",children:u.jsx("div",{className:"absolute top-1/4 right-1/4 w-96 h-96 bg-braintrailz-purple/10 rounded-full filter blur-3xl"})}),u.jsxs("div",{className:"container-custom relative z-10",children:[u.jsxs("div",{className:"max-w-3xl mb-10",children:[u.jsx("p",{className:"text-sm font-semibold uppercase tracking-wider text-braintrailz-purple mb-3",children:"Walk the Trail"}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"From spark to something special"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"Braintrailz turns ideation into delivered systems. I sit at the fire with you while it is still a wild idea, then stay to build the thing that carries it."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:N6.map(e=>u.jsxs("div",{className:"rounded-xl border border-braintrailz-purple/30 bg-braintrailz-dark p-6",children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-braintrailz-purple mb-2",children:e.label}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:e.title}),u.jsx("p",{className:"text-muted-foreground",children:e.detail})]},e.label))})]})]}),S6=`---
title: Finding / Founding BrainTrailz
date: 2026-08-29
summary: Trekking across 30 Years of Deep Thoughts
image: /img/finding-founding-braintrailz-og.jpg
trailBackground: true

---

### Trekking across 30 Years of Deep Thoughts

I have a habit of rediscovering the same problem in different forms.

Sometimes it takes me a while to notice.

BrainTrailz is a good example.

I have been using the name for years. I have described trails as paths through problems, accumulated knowledge, experiments, things learned along the way. I built a whole vocabulary around it: trails, Trailcraft, the Backpack, trail guides.

I thought I understood where the idea came from.

I'm no longer sure I did.

Because recently, while working on something called the BrainTrailz Protocol, I realized that BrainTrailz may have a much longer lineage than I thought.

Maybe thirty years longer.

## Where the Name Came From

The name itself started with a Google search.

I typed something like "what part of your brain has pathways to your ideas" and ended up reading about the limbic system. The hippocampus stores and retrieves memories. The amygdala processes emotions. Together they help form ideas.

Trails in the brain. BrainTrailz.

When I first tried to describe what it should be, I called it "a lineage tool for ideations." It had to answer one question: how did you come up with that?

I handed that to an AI and got back a tidy feature list. Mind maps, pattern analysis, predictive suggestions, collaboration. Reasonable ideas. None of them were the point.

The point was a word I had used without thinking much about it.

Lineage.

## Before There Were BrainTrailz

I spent a large part of my career in integration software.

Back then, the problem was fairly straightforward to describe and remarkably difficult to solve.

Companies had lots of systems.

The systems were built by different vendors, ran on different platforms, spoke different protocols, represented data differently, and generally had no interest in cooperating with one another.

Everybody's first instinct was to connect System A to System B.

Then A to C.

Then B to D.

Keep going and pretty soon you have created spaghetti.

The important architectural realization was that the problem wasn't really how to connect two systems.

The problem was how to create a common way for **any system to participate**.

That led to adapters, common contracts, metadata, reusable services, routing, transformation and all the things that eventually became integration platforms, ESBs and iWay.

One of the architectural ideas I worked on was a universal adapter framework.

The details aren't especially important today.

The lesson is.

**Keep the center clean. Put the differences at the edges.**

If a new system shows up, you shouldn't redesign everything in the middle.

You write another adapter.

That idea got buried pretty deeply in my brain.

## Then the Systems Learned to Talk

Fast-forward a couple of decades.

Now the things we are connecting aren't just applications and databases.

They're intelligent.

ChatGPT, Claude, Gemini, Cursor, Codex, Grok, Muse, etc...

Whatever appears six months from now.

And something strange has happened.

We built astonishingly capable systems, but when we move between them, we are back in the integration business.

Except this time **the human is the integration layer**.

I work on something in ChatGPT.

Then I move into Cursor to build it.

Cursor doesn't quite know what ChatGPT knows, so I explain it again.

Later I want Claude's opinion.

I explain it again.

Maybe Claude gives me an interesting insight, so when I go back to Cursor I explain that.

Then I pick up my phone and open ChatGPT.

Now I'm explaining the explanation of the explanation.

We solved this problem once.

We called it point-to-point integration.

It didn't scale then either.

## And That Is Where BrainTrailz Came Back

The original idea behind BrainTrailz was always about continuity.

You move.

The environment changes.

The trail continues.

Over time I expanded the idea.

BrainTrailz became a place for experiments, ideas, things I built, things I learned and paths I wanted other people to be able to follow.

Trailcraft became the practice of figuring out how to get from an unclear problem to a working answer.

The Backpack became the tools I carried with me.

All of that still makes sense.

But underneath it was something simpler that I had nearly lost sight of.

**The trail isn't the conversation.**

The conversation is just where something happened.

The trail is what continues.

That distinction suddenly matters a great deal in an AI world.

## The Wrong Unit Is the Chat

Every AI company is working on memory.

That's useful.

But memory usually answers a question like:

**What should this AI remember about Marc?**

That isn't quite the problem I want to solve.

The question I care about is:

**What does the next capable participant need to know to continue this work?**

Those are very different things.

A project has a purpose.

It has a current state.

Things have been decided.

Things have happened.

There are things we should do next.

There are artifacts worth knowing about.

That state should not disappear because I closed one application and opened another.

And it shouldn't belong to OpenAI, Anthropic, Google, Cursor or anyone else.

It belongs to the work.

And ultimately it belongs to me.

That's the trail.

## One Plus N

Once I saw the problem that way, another old idea came roaring back.

Don't integrate ChatGPT with Claude.

Don't integrate Claude with Cursor.

Don't integrate Cursor with Gemini.

That road ends exactly where it ended thirty years ago.

Instead:

**One trail. N participants.**

The trail has a stable contract.

Every capable participant can read it.

Every participant can contribute useful things back to it.

Every participant is replaceable.

The weird behavior of a particular AI belongs in an adapter at the edge.

The center should know as little as possible about who is using it.

If another AI appears next year, BrainTrailz shouldn't need a redesign.

Give the new participant an adapter.

Welcome to the trail.

It is such an old integration idea that I am slightly embarrassed by how satisfying it was to rediscover it.

## Then We Played Telephone

Of course, an idea like this can become architecture astronautics very quickly.

Add agents.

Add orchestration.

Add a vector database.

Add embeddings.

Add a knowledge graph.

Add twelve services.

Draw an impressive diagram.

Congratulations. You now have a product that doesn't exist.

I wanted to know whether the central idea was actually true.

So we played Telephone.

We created one small canonical trail.

The first AI read it.

It added something.

Then another AI entered without getting a recap from me.

It got only the trail.

Could it tell what was originally true?

Could it distinguish that from what another AI had added later?

Could another participant do the same?

And another?

Most importantly, after passing through all of them, was the original meaning still intact?

That is a surprisingly important question.

Because AI systems are very good at interpretation.

Interpretation is useful.

Interpretation is also how Telephone works.

One person whispers something to another person, who passes along what they understood, who passes along what *they* understood.

Eventually everybody is still talking about roughly the same thing.

But it isn't the same thing anymore.

A trail changes that architecture.

The participants don't inherit one another's whispers.

They keep returning to the card sitting in the middle of the room.

Interpretation can change.

New knowledge can accumulate.

Decisions can be made.

But the system doesn't casually rewrite history because one AI summarized another AI's summary.

That little experiment worked.

And for me, that is where BrainTrailz stopped being only a metaphor.

## The Funny Part

The funny part is that this new thing is made out of ideas from several different periods of my life.

BrainTrailz contributed the idea of continuity.

Trailcraft contributed the idea that the path itself has value.

Integration architecture contributed the contract.

Adapters contributed the 1 + N model.

AI created the new version of the problem.

MCP happened to provide a convenient doorway.

Git and JSON gave us a deliberately boring way to prove it.

None of those things alone is BrainTrailz Protocol.

The interesting thing is where they meet.

And apparently I have been walking toward that intersection for a very long time.

## Maybe That's What A Trail Is

I've spent most of my career moving between technologies.

Mainframes and PCs.

Operating systems.

Enterprise software.

Integration.

Cloud.

Data.

Distributed systems.

Now AI.

The technologies keep changing.

The recurring ideas don't change nearly as much.

Systems need contracts.

Boundaries matter.

Point-to-point solutions eventually hurt.

Adapters are cheaper than redesigning the center.

Humans should not have to compensate forever for bad architecture.

And useful knowledge should survive the tool that created it.

Maybe that is the real lineage of BrainTrailz.

Not a product name.

Not a website.

Not even a protocol.

A trail is what remains when the tools change.

Which leads to the shortest description of the whole thing I have found so far:

**Conversations are transient. Trails persist.**
---

_Marc J. <font color="green">Green</font>berg is Co-Founder and CTO of Beyond Limited Thinking, and works with advisory and professional services professional services firms 
as a fractional CTO through [BrainTrailz](https://braintrailz.com), helping practice leaders find, create and curate their trailz thru this AI transition._

![CYA Soon](/img/finding-founding-braintrailz-og.jpg)`,I6=`---
title: Intent Is Not Enough
date: 2026-09-28
summary: Intent tells an intelligent system what we want. It does not tell the system what success looks like, what it is allowed to do, where it may exercise judgment, or how we know what happened.
showTitle: false
image: /img/intent-og.jpg
---

![Why telling AI what you want is only half the problem](/img/intent-og.jpg)

### What Happens When AI Stops Answering and Starts Acting

We are starting to give AI systems permission to act on our behalf, while most of the instructions we give them are still little more than expressions of intent.

That is manageable when the consequence of getting it wrong is a bad paragraph. It is a different problem when the consequence is an action.

> **The idea in 30 seconds**
>
> Intent tells an intelligent system what we want. It does not tell the system what success looks like, what it is allowed to do, where it may exercise judgment, or how we know what happened.
>
> **Purpose → Success → Authority → Judgment → Action → Trust**

## I Thought Preserving Intent Was the Hard Problem

While working on the BrainTrailz Protocol, we ran a simple experiment based on the game of Telephone.

One AI received a short record of the original request and added something to it. Another AI entered without getting a recap from me. It received only the trail. Then another did the same.

The question was whether the original meaning would survive as different intelligent participants came and went.

AI systems are exceptionally good at interpretation, which is also how Telephone works. One participant passes along what it understood, the next interprets that version, and eventually the meaning shifts.

Our solution was old-fashioned: stop passing interpretations around. Keep the original card in the middle of the room and let every participant return to it.

It worked.

Then another question appeared.

**What if everybody reads exactly the same card?**

Give ChatGPT, Claude, Gemini, Grok, and whatever comes next exactly the same original intent. No summaries, no missing context, no whispering.

Would they all do the same thing? Probably not. More importantly, would they all do something we considered acceptable?

That is a different problem.

![Same intent, different interpretations. Five systems, given the same request, each produce a different reasonable result.](/img/intent1.webp)

## Consistency Can Masquerade as Specification

Most people probably do not see this often because they stay inside one system. ChatGPT for almost everything, or Claude, or Gemini, or Grok.

Over time, you learn the system and it accumulates context about you. The interaction becomes consistent.

That consistency is useful, but it can hide ambiguity.

**You and the model may simply have learned how to compensate for one another.**

Move the same job to another capable model and assumptions you did not realize you were making become visible.

The second model is not necessarily wrong. The first was not necessarily right. The instruction may simply contain less information than you thought.

Disagreement between capable systems may be one of the best ways we have to discover what we failed to specify.

## Intent Is Not an Acceptable Outcome

Consider an ordinary business problem.

A professional services firm has a $125,000 invoice that is 45 days overdue.

Someone tells an AI agent:

> **Get this invoice paid.**

I know what it means. You know what it means. An AI certainly knows what it means.

Now give the agent access to email, the CRM, billing, the contract, and the client contact list.

What exactly have we authorized?

It could send another reminder, contact the controller, copy the CFO, offer a discount, change payment terms, threaten to suspend work, or escalate the matter to collections.

Some of those choices might be reasonable. Some might damage an important client relationship.

All could satisfy the instruction: **get this invoice paid.**

The intent is not wrong. It is incomplete.

An acceptable outcome might be:

> Receive payment of the $125,000 invoice, or establish a documented payment commitment acceptable to the account partner.

We still have not told the system exactly how to solve the problem.

We have told it what success means.

**Intent gives direction. An acceptable outcome defines arrival.**

## Where Should Judgment Live?

If we tell an AI system exactly what to do at every step, we have mostly recreated a workflow.

Intelligent systems are valuable because they can encounter circumstances we did not anticipate, weigh alternatives, and use judgment.

The design problem is deciding where that judgment belongs.

Our invoice agent might be allowed to read the contract, review account history and correspondence, contact approved people, and generate a payment link.

Those are capabilities.

It might be prohibited from modifying contract terms, threatening legal action, or exposing confidential information.

It cannot waive $20,000 because its reasoning suggests that $105,000 today is statistically better than $125,000 eventually.

Those are policy boundaries.

**Capability defines what the system can do. Policy defines what it must never do.**

Giving an intelligent system more capability does not require giving it unlimited authority. The more capable the system becomes, the more that distinction matters.

## Bounded Choice

Suppose the agent reviews the account. This customer normally pays on time. There was a billing dispute six months ago. The CFO has not responded to two messages, and the controller has solved previous billing problems quickly.

Contacting the controller first is exactly the kind of choice we want an intelligent system to make.

Perhaps it also notices that the purchase-order number on this invoice differs from previous ones and asks whether that is causing the delay.

That is bounded choice.

What we do not want is the agent deciding that contractual payment terms are optional because changing them would make its objective easier to achieve.

**The goal is not to remove judgment. It is to decide where judgment belongs.**

There is enormous room for intelligence inside good boundaries. That is not a limitation of agency. It is what makes useful agency possible.

## Reasoning Eventually Becomes Action

At some point the system stops thinking and does something.

It sends the email, corrects the invoice, generates the payment link, updates the CRM, or schedules the call.

Intent is what we wanted. Reasoning is what the system considered. Execution is what actually happened.

A good decision can still fail during execution. An email can go to the wrong person. An external system can reject a request. A corrected invoice can be generated twice. A payment can fail.

When an AI is writing a paragraph, those failures are inconvenient. When it can spend money, contact customers, modify records, provision infrastructure, or make commitments on behalf of a company, they matter.

A beautifully reasoned plan does not alter reality. Execution does.

**Reasoning proposes reality. Execution changes it.**

## Explanation Is Not Evidence

Suppose our agent finishes and reports:

> Success. I resolved the outstanding invoice.

Maybe it did.

But the same system that performed the work is now explaining the work.

It isn't proof.

I would rather know:

Who did it contact?

Which invoice changed?

Were the financial terms altered?

What did the customer actually say?

Which policies were checked?

Did anything fail?

Suppose the record showed this.

The agent contacted the controller and discovered that the purchase-order number was wrong. It verified the correct PO, issued a corrected invoice, and received written confirmation that payment would be released Friday.

No discount was offered. No terms changed. No policy exception occurred.

Now there is something to inspect.

**Explanation tells us what the system says happened. Evidence lets us determine what happened.**

As AI systems gain authority, that distinction matters. Trust cannot mean the system sounds sure of itself.

Trust has to become inspectable.

## What Are We Actually Afraid Of?

There is plenty of anxiety around agentic and autonomous AI.

Some of it moves quickly toward very large questions about jobs, control, society, and humanity.

I do not pretend to know where all of that leads.

But there is a version of the fear we can understand right now.

Go back to Telephone.

This time, every participant is allowed to change something in the room based on what they heard before passing the message along.

Move a chair. Unlock a door. Spend money. Send a message. Delete something.

By the time the message reaches the last participant, the sentence may have changed.

So has the room.

A chatbot can misunderstand us and give the wrong answer.

An agent can misunderstand us and take the wrong action.

An autonomous system can take that action, observe the environment it just changed, reason about the new situation, and act again.

None of this requires an evil machine, consciousness, or even a malfunction.

The most frightening autonomous system may not be one that ignores our intent. It may be one that pursues an underspecified intent extremely well.

## Governance Is Not the Opposite of Autonomy

If autonomous systems are dangerous, perhaps we should constrain them until they can barely do anything.

Good governance is not the opposite of autonomy. It is what allows more autonomy.

The model is:

**Intent → Acceptable Outcome → Capabilities & Policy → Bounded Choice → Execution → Evidence**

Or, in more human terms:

**Purpose → Success → Authority → Judgment → Action → Trust**

![From intent to evidence. Define the acceptable outcome and the policy, let the system choose, and keep a record of what happened.](/img/intent2.webp)

The purpose of governance is not to make intelligent systems behave like traditional software.

We already know how to build deterministic software.

It is to create enough structure around intelligence that we can safely use what makes it valuable: its ability to choose.

## What This Article Owes You

There is an obvious problem with writing an article called **Intent Is Not Enough**.

If my intent was simply “explain why intent isn't enough,” then I have made the same mistake I have spent this article describing.

So here is the acceptable outcome.

The next time you hand an agent a job, you should be able to write the acceptable outcome, the authority it has, and the evidence you will accept before it acts.

If you cannot, this article did not work.

## Intent Is Still Where We Begin

For most of software history, we worried about whether computers would correctly execute our instructions.

Now we are building systems that interpret what we mean.

That changes the problem.

**Intent tells an intelligent system where we want to go. An acceptable outcome tells us whether we arrived.**

And once the system has the authority to act, everything between those two points determines how much freedom we should be willing to give it.

---

_Marc J. <font color="green">Green</font>berg is Co-Founder and CTO of Beyond Limited Thinking, and works with advisory and professional services firms as a fractional CTO through Braintrailz and Codemarc Consulting, helping practice leaders define what success looks like, and what an agent is allowed to do, before it is permitted to act._
`,O6=`---
title: The Margin Stack
date: 2026-08-31
summary: What happens to margin, capacity, and client relationships when AI makes billable hours nearly free to produce, and why professional services firms need an answer now.
showTitle: false
image: /img/tms2-og.jpg
---

![What Happens When AI Makes Billable Hours Nearly Free to Produce](/img/tms2.webp)


There's a question every partner at a professional services firm should be asking right now, and most aren't asking it clearly enough: if AI can compress the cost of delivering an hour of work without changing what the client pays for it, what happens to margin, capacity, and who wins the next decade of client relationships?

It's already happening in accounting, in law, in consulting, in any practice built on the billable hour. The firms that answer it first will have a structural advantage that's very hard for the rest of the field to close later.

## The Business Model Nobody Says Out Loud

Professional services firms run on a pyramid. A small group of partners and directors sell the work and provide judgment. A much larger base of managers, seniors, and associates actually produces it. The economics depend on one unglamorous fact: junior hours are cheap to produce and expensive to sell.

A first-year associate earning $80,000 a year might bill 1,600 hours at $175 an hour. That's $280,000 in revenue against a fully loaded cost of roughly $110,000. The spread, something like $170,000 per junior staff member, is what funds the partnership.

AI doesn't threaten that pyramid directly. It threatens the specific assumption underneath it: that junior labor is the only way to execute process-intensive work. Document review, drafting, first-pass analysis, financial modeling scaffolding. A meaningful share of what junior staff spend their hours on isn't really judgment work. It's process work wearing a judgment-work invoice.

## Borrow a Framework From Fast Food
There's an old business parable about a burger chain that sells hamburgers at a loss. The burger is the draw. The real money is in the combo.

The burger is the core engagement itself: the forensic review, the valuation, the litigation support. It's the reason the client called. It's relationship-anchoring, and it's usually margin-thin, because clients are price-sensitive on the thing they can compare against a competitor's quote.

The fries are AI-augmented delivery: the same output, produced at a fraction of the cost, with the margin expansion happening entirely inside the firm, invisible on the client's invoice.

The drink is the ongoing advisory relationship: the retainer, the standing engagement that firms leave on the table after every matter closes because the team was too buried in process work to even propose it.

The combo is what happens when a firm stops selling hours and starts selling infrastructure: the firm itself, an ongoing capability the client can't easily walk away from.

The restaurant doesn't win because the burger is good. It wins because almost nobody orders just the burger.

## What the Math Actually Looks Like

Take a representative $50,000 engagement, a solvency analysis or forensic review, structured and document-intensive, exactly the kind of work that scales well with AI-assisted document analysis and drafting.

Under a traditional staffing model, that engagement might run 20 senior hours, 40 mid-level hours, and 80 junior hours. At fully absorbed delivery cost, that looks like this:

<table>
<thead>
<tr><th>Level</th><th>Hours</th><th>Loaded cost/hr</th><th>Cost</th></tr>
</thead>
<tbody>
<tr><td>Senior</td><td>20</td><td>$400</td><td>$8,000</td></tr>
<tr><td>Mid-level</td><td>40</td><td>$270</td><td>$10,800</td></tr>
<tr><td>Junior</td><td>80</td><td>$115</td><td>$9,200</td></tr>
<tr><td><strong>Total</strong></td><td><strong>140</strong></td><td></td><td><strong>$28,000</strong></td></tr>
</tbody>
</table>

Margin on a $50,000 fee: roughly 44 percent.

A note on that junior rate, since it's the number most worth arguing about. The $115 is fully absorbed delivery cost: compensation grossed up roughly 1.65x for overhead, technology, training, and non-billable time. It runs higher than the $69 per billable hour implied by the $80,000 associate above, because that figure is compensation alone.

Now restructure the same engagement around an AI-augmented team. Senior and mid-level hours drop by roughly 40 percent, because judgment work is exactly what doesn't go away. Junior hours drop by roughly two-thirds, because that's where the process work lives. AI agents absorb the equivalent of about 75 hours of process work.

<table>
<thead>
<tr><th>Level</th><th>Hours</th><th>Loaded cost/hr</th><th>Cost</th></tr>
</thead>
<tbody>
<tr><td>Senior</td><td>12</td><td>$400</td><td>$4,800</td></tr>
<tr><td>Mid-level</td><td>24</td><td>$270</td><td>$6,480</td></tr>
<tr><td>Junior</td><td>27</td><td>$115</td><td>$3,105</td></tr>
<tr><td>AI compute and tooling</td><td></td><td></td><td>$300 to $500</td></tr>
<tr><td><strong>Total</strong></td><td><strong>63</strong></td><td></td><td><strong>$14,700 to $14,900</strong></td></tr>
</tbody>
</table>

The invoice to the client doesn't change. Margin: roughly 70 percent.

That AI line is real but small. Document-heavy work like this, run through frontier models, costs somewhere in the low hundreds of dollars in compute and tooling for an engagement this size, a rounding error next to the labor it displaces, but not zero, and it belongs in the math rather than left out of it.

Gross profit on the engagement goes from $22,000 to roughly $35,200. Same price, same deliverable, about 60 percent more net on the work. What changed was how much of the team's time went into work that never should have required a human in the first place.

## Capacity Is the Bigger Story

Margin gets the headline, but capacity is the more durable advantage. If a team of two juniors, one senior, and two AI agents can deliver what previously required four juniors and two seniors, that same team can now run multiple engagements at once. In a business development-constrained world, that's revenue growth without proportional headcount growth.

This also reframes the growth conversation. It's no longer just "how do we hire more people." It becomes "how do we make each team dramatically more productive while keeping the client relationship intact."

## The Industry Already Feels This Coming
Leadership at the larger firms already senses this. One national accounting and advisory firm, a couple hundred professionals in its advisory practice, appointed its first Chief AI Officer in early 2025 with a mandate to find where AI adds client and operational value. Its CEO has said publicly, in effect, that staying competitive means getting more innovative products and information to clients faster, and that AI is a path to that. The intent is there at the top of a lot of firms right now. What's usually missing is the operational bridge from that intent down to how an actual engagement gets staffed and priced.


## Three Questions Worth Asking Before You Do Anything Else

Before any firm restructures how it delivers work, three questions deserve an honest answer, not the reflexive one.

What is the actual cost-to-bill ratio on a representative engagement today? Most partners are guessing.

What percentage of current junior hours are truly judgment-based versus process-based? The instinctive answer is "most of it is judgment." Looked at closely, the process share is usually 40 to 60 percent. That's where the leverage lives.

What would it mean for growth if process-intensive work became nearly free to staff? That's the real strategic question.

## Where to Start

Not with a firm-wide initiative. With one contained pilot, in one practice area, on one well-defined, document-intensive engagement type. Staff it with an AI-augmented team, track cost to deliver, time to completion, and partner review burden against a comparable historical engagement, and measure whether quality holds. If it does, that pilot becomes the evidence base for a much bigger conversation.

The burger is the engagement. The fries are the margin nobody is capturing yet. The drink is the retainer sitting untapped after every matter closes. Most firms already have all three ingredients sitting in the kitchen. What's missing is the combo menu, and an operational model to serve it consistently at scale.

---

_Marc J. <font color="green">Green</font>berg is Co-Founder and CTO of Beyond Limited Thinking, and works with advisory and professional services firms as a fractional CTO through Braintrailz and Codemarc Consulting, helping practice leaders turn AI from a headcount question into a margin and capacity question._

![The Margin Stack](/img/tms1.webp)`,L6="/assets/finding-founding-braintrailz-DjgjJLkw.pdf",R6="/assets/intent-is-not-enough-BSRJFDCB.pdf",P6="/assets/the-margin-stack-BTa5XLKR.pdf";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function _2(e){return typeof e>"u"||e===null}function D6(e){return typeof e=="object"&&e!==null}function M6(e){return Array.isArray(e)?e:_2(e)?[]:[e]}function F6(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function j6(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function B6(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var U6=_2,H6=D6,z6=M6,W6=j6,$6=B6,V6=F6,ot={isNothing:U6,isObject:H6,toArray:z6,repeat:W6,isNegativeZero:$6,extend:V6};function S2(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`

`+e.mark.snippet),r+" "+n):r}function Do(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=S2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Do.prototype=Object.create(Error.prototype);Do.prototype.constructor=Do;Do.prototype.toString=function(t){return this.name+": "+S2(this,t)};var Ut=Do;function kd(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(a=" ... ",t=r-o+a.length),n-r>o&&(s=" ...",n=r+o-s.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function Nd(e,t){return ot.repeat(" ",t-e.length)+e}function Y6(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,s=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var o="",l,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)c=kd(e.buffer,r[s-l],i[s-l],e.position-(r[s]-r[s-l]),h),o=ot.repeat(" ",t.indent)+Nd((e.line-l+1).toString(),f)+" | "+c.str+`
`+o;for(c=kd(e.buffer,r[s],i[s],e.position,h),o+=ot.repeat(" ",t.indent)+Nd((e.line+1).toString(),f)+" | "+c.str+`
`,o+=ot.repeat("-",t.indent+f+3+c.pos)+`^
`,l=1;l<=t.linesAfter&&!(s+l>=i.length);l++)c=kd(e.buffer,r[s+l],i[s+l],e.position-(r[s]-r[s+l]),h),o+=ot.repeat(" ",t.indent)+Nd((e.line+l+1).toString(),f)+" | "+c.str+`
`;return o.replace(/\n$/,"")}var G6=Y6,q6=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Q6=["scalar","sequence","mapping"];function K6(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function X6(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(q6.indexOf(n)===-1)throw new Ut('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=K6(t.styleAliases||null),Q6.indexOf(this.kind)===-1)throw new Ut('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Et=X6;function mg(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,s){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=s)}),n[i]=r}),n}function J6(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function sh(e){return this.extend(e)}sh.prototype.extend=function(t){var n=[],r=[];if(t instanceof Et)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Ut("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof Et))throw new Ut("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Ut("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Ut("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof Et))throw new Ut("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(sh.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=mg(i,"implicit"),i.compiledExplicit=mg(i,"explicit"),i.compiledTypeMap=J6(i.compiledImplicit,i.compiledExplicit),i};var I2=sh,O2=new Et("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),L2=new Et("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),R2=new Et("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),P2=new I2({explicit:[O2,L2,R2]});function Z6(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function eI(){return null}function tI(e){return e===null}var D2=new Et("tag:yaml.org,2002:null",{kind:"scalar",resolve:Z6,construct:eI,predicate:tI,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function nI(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function rI(e){return e==="true"||e==="True"||e==="TRUE"}function iI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var M2=new Et("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nI,construct:rI,predicate:iI,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function aI(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function sI(e){return 48<=e&&e<=55}function oI(e){return 48<=e&&e<=57}function lI(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!aI(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!sI(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!oI(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function uI(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function cI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ot.isNegativeZero(e)}var F2=new Et("tag:yaml.org,2002:int",{kind:"scalar",resolve:lI,construct:uI,predicate:cI,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),dI=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function fI(e){return!(e===null||!dI.test(e)||e[e.length-1]==="_")}function hI(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var pI=/^[-+]?[0-9]+e/;function mI(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ot.isNegativeZero(e))return"-0.0";return n=e.toString(10),pI.test(n)?n.replace("e",".e"):n}function gI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ot.isNegativeZero(e))}var j2=new Et("tag:yaml.org,2002:float",{kind:"scalar",resolve:fI,construct:hI,predicate:gI,represent:mI,defaultStyle:"lowercase"}),B2=P2.extend({implicit:[D2,M2,F2,j2]}),U2=B2,H2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z2=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 yI(e){return e===null?!1:H2.exec(e)!==null||z2.exec(e)!==null}function xI(e){var t,n,r,i,a,s,o,l=0,c=null,f,h,p;if(t=H2.exec(e),t===null&&(t=z2.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(f=+t[10],h=+(t[11]||0),c=(f*60+h)*6e4,t[9]==="-"&&(c=-c)),p=new Date(Date.UTC(n,r,i,a,s,o,l)),c&&p.setTime(p.getTime()-c),p}function bI(e){return e.toISOString()}var W2=new Et("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:yI,construct:xI,instanceOf:Date,represent:bI});function EI(e){return e==="<<"||e===null}var $2=new Et("tag:yaml.org,2002:merge",{kind:"scalar",resolve:EI}),zp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function TI(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=zp;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function vI(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=zp,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):n===18?(o.push(s>>10&255),o.push(s>>2&255)):n===12&&o.push(s>>4&255),new Uint8Array(o)}function wI(e){var t="",n=0,r,i,a=e.length,s=zp;for(r=0;r<a;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function CI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var V2=new Et("tag:yaml.org,2002:binary",{kind:"scalar",resolve:TI,construct:vI,predicate:CI,represent:wI}),AI=Object.prototype.hasOwnProperty,kI=Object.prototype.toString;function NI(e){if(e===null)return!0;var t=[],n,r,i,a,s,o=e;for(n=0,r=o.length;n<r;n+=1){if(i=o[n],s=!1,kI.call(i)!=="[object Object]")return!1;for(a in i)if(AI.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function _I(e){return e!==null?e:[]}var Y2=new Et("tag:yaml.org,2002:omap",{kind:"sequence",resolve:NI,construct:_I}),SI=Object.prototype.toString;function II(e){if(e===null)return!0;var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],SI.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function OI(e){if(e===null)return[];var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var G2=new Et("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:II,construct:OI}),LI=Object.prototype.hasOwnProperty;function RI(e){if(e===null)return!0;var t,n=e;for(t in n)if(LI.call(n,t)&&n[t]!==null)return!1;return!0}function PI(e){return e!==null?e:{}}var q2=new Et("tag:yaml.org,2002:set",{kind:"mapping",resolve:RI,construct:PI}),Wp=U2.extend({implicit:[W2,$2],explicit:[V2,Y2,G2,q2]}),_i=Object.prototype.hasOwnProperty,Bu=1,Q2=2,K2=3,Uu=4,_d=1,DI=2,gg=3,MI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,FI=/[\x85\u2028\u2029]/,jI=/[,\[\]\{\}]/,X2=/^(?:!|!!|![a-z\-]+!)$/i,J2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function yg(e){return Object.prototype.toString.call(e)}function hr(e){return e===10||e===13}function Xi(e){return e===9||e===32}function Xt(e){return e===9||e===32||e===10||e===13}function _a(e){return e===44||e===91||e===93||e===123||e===125}function BI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function UI(e){return e===120?2:e===117?4:e===85?8:0}function HI(e){return 48<=e&&e<=57?e-48:-1}function xg(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function zI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Z2=new Array(256),eT=new Array(256);for(var ha=0;ha<256;ha++)Z2[ha]=xg(ha)?1:0,eT[ha]=xg(ha);function WI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Wp,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=G6(n),new Ut(t,n)}function de(e,t){throw tT(e,t)}function Hu(e,t){e.onWarning&&e.onWarning.call(null,tT(e,t))}var bg={YAML:function(t,n,r){var i,a,s;t.version!==null&&de(t,"duplication of %YAML directive"),r.length!==1&&de(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&de(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&de(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Hu(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&de(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],X2.test(i)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),_i.call(t.tagMap,i)&&de(t,'there is a previously declared suffix for "'+i+'" tag handle'),J2.test(a)||de(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{de(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function Ti(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||de(e,"expected valid JSON character");else MI.test(o)&&de(e,"the stream contains non-printable characters");e.result+=o}}function Eg(e,t,n,r){var i,a,s,o;for(ot.isObject(n)||de(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,o=i.length;s<o;s+=1)a=i[s],_i.call(t,a)||(t[a]=n[a],r[a]=!0)}function Sa(e,t,n,r,i,a,s,o,l){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&de(e,"nested arrays are not supported inside keys"),typeof i=="object"&&yg(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&yg(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,f=a.length;c<f;c+=1)Eg(e,t,a[c],n);else Eg(e,t,a,n);else!e.json&&!_i.call(n,i)&&_i.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,de(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function $p(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):de(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Xi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(hr(i))for($p(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Hu(e,"deficient indentation"),r}function Oc(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Xt(n)))}function Vp(e,t){t===1?e.result+=" ":t>1&&(e.result+=ot.repeat(`
`,t-1))}function $I(e,t,n){var r,i,a,s,o,l,c,f,h=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),Xt(m)||_a(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Xt(i)||n&&_a(i)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Xt(i)||n&&_a(i))break}else if(m===35){if(r=e.input.charCodeAt(e.position-1),Xt(r))break}else{if(e.position===e.lineStart&&Oc(e)||n&&_a(m))break;if(hr(m))if(l=e.line,c=e.lineStart,f=e.lineIndent,nt(e,!1,-1),e.lineIndent>=t){o=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=f;break}}o&&(Ti(e,a,s,!1),Vp(e,e.line-l),a=s=e.position,o=!1),Xi(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Ti(e,a,s,!1),e.result?!0:(e.kind=h,e.result=p,!1)}function VI(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ti(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else hr(n)?(Ti(e,r,i,!0),Vp(e,nt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Oc(e)?de(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);de(e,"unexpected end of the stream within a single quoted scalar")}function YI(e,t){var n,r,i,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Ti(e,n,e.position,!0),e.position++,!0;if(o===92){if(Ti(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),hr(o))nt(e,!1,t);else if(o<256&&Z2[o])e.result+=eT[o],e.position++;else if((s=UI(o))>0){for(i=s,a=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=BI(o))>=0?a=(a<<4)+s:de(e,"expected hexadecimal character");e.result+=zI(a),e.position++}else de(e,"unknown escape sequence");n=r=e.position}else hr(o)?(Ti(e,n,r,!0),Vp(e,nt(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Oc(e)?de(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}de(e,"unexpected end of the stream within a double quoted scalar")}function GI(e,t){var n=!0,r,i,a,s=e.tag,o,l=e.anchor,c,f,h,p,m,x=Object.create(null),b,v,y,g;if(g=e.input.charCodeAt(e.position),g===91)f=93,m=!1,o=[];else if(g===123)f=125,m=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),g=e.input.charCodeAt(++e.position);g!==0;){if(nt(e,!0,t),g=e.input.charCodeAt(e.position),g===f)return e.position++,e.tag=s,e.anchor=l,e.kind=m?"mapping":"sequence",e.result=o,!0;n?g===44&&de(e,"expected the node content, but found ','"):de(e,"missed comma between flow collection entries"),v=b=y=null,h=p=!1,g===63&&(c=e.input.charCodeAt(e.position+1),Xt(c)&&(h=p=!0,e.position++,nt(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,as(e,t,Bu,!1,!0),v=e.tag,b=e.result,nt(e,!0,t),g=e.input.charCodeAt(e.position),(p||e.line===r)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),nt(e,!0,t),as(e,t,Bu,!1,!0),y=e.result),m?Sa(e,o,x,v,b,y,r,i,a):h?o.push(Sa(e,null,x,v,b,y,r,i,a)):o.push(b),nt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(n=!0,g=e.input.charCodeAt(++e.position)):n=!1}de(e,"unexpected end of the stream within a flow collection")}function qI(e,t){var n,r,i=_d,a=!1,s=!1,o=t,l=0,c=!1,f,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)_d===i?i=h===43?gg:DI:de(e,"repeat of a chomping mode identifier");else if((f=HI(h))>=0)f===0?de(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?de(e,"repeat of an indentation width identifier"):(o=t+f-1,s=!0);else break;if(Xi(h)){do h=e.input.charCodeAt(++e.position);while(Xi(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!hr(h)&&h!==0)}for(;h!==0;){for($p(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),hr(h)){l++;continue}if(e.lineIndent<o){i===gg?e.result+=ot.repeat(`
`,a?1+l:l):i===_d&&a&&(e.result+=`
`);break}for(r?Xi(h)?(c=!0,e.result+=ot.repeat(`
`,a?1+l:l)):c?(c=!1,e.result+=ot.repeat(`
`,l+1)):l===0?a&&(e.result+=" "):e.result+=ot.repeat(`
`,l):e.result+=ot.repeat(`
`,a?1+l:l),a=!0,s=!0,l=0,n=e.position;!hr(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Ti(e,n,e.position,!1)}return!0}function Tg(e,t){var n,r=e.tag,i=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Xt(s))));){if(o=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,as(e,t,K2,!1,!0),a.push(e.result),nt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)de(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function QI(e,t,n){var r,i,a,s,o,l,c=e.tag,f=e.anchor,h={},p=Object.create(null),m=null,x=null,b=null,v=!1,y=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,de(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(g===63||g===58)&&Xt(r))g===63?(v&&(Sa(e,h,p,m,x,null,s,o,l),m=x=b=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):de(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=r;else{if(s=e.line,o=e.lineStart,l=e.position,!as(e,n,Q2,!1,!0))break;if(e.line===a){for(g=e.input.charCodeAt(e.position);Xi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),Xt(g)||de(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Sa(e,h,p,m,x,null,s,o,l),m=x=b=null),y=!0,v=!1,i=!1,m=e.tag,x=e.result;else if(y)de(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(y)de(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===a||e.lineIndent>t)&&(v&&(s=e.line,o=e.lineStart,l=e.position),as(e,t,Uu,!0,i)&&(v?x=e.result:b=e.result),v||(Sa(e,h,p,m,x,b,s,o,l),m=x=b=null),nt(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&g!==0)de(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Sa(e,h,p,m,x,null,s,o,l),y&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=h),y}function KI(e){var t,n=!1,r=!1,i,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&de(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):de(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Xt(s);)s===33&&(r?de(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),X2.test(i)||de(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),jI.test(a)&&de(e,"tag suffix cannot contain flow indicator characters")}a&&!J2.test(a)&&de(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{de(e,"tag name is malformed: "+a)}return n?e.tag=a:_i.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:de(e,'undeclared tag handle "'+i+'"'),!0}function XI(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&de(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Xt(n)&&!_a(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function JI(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Xt(r)&&!_a(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&de(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),_i.call(e.anchorMap,n)||de(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],nt(e,!0,-1),!0}function as(e,t,n,r,i){var a,s,o,l=1,c=!1,f=!1,h,p,m,x,b,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=Uu===n||K2===n,r&&nt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;KI(e)||XI(e);)nt(e,!0,-1)?(c=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=c||i),(l===1||Uu===n)&&(Bu===n||Q2===n?b=t:b=t+1,v=e.position-e.lineStart,l===1?o&&(Tg(e,v)||QI(e,v,b))||GI(e,b)?f=!0:(s&&qI(e,b)||VI(e,b)||YI(e,b)?f=!0:JI(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&de(e,"alias node should not have any properties")):$I(e,b,Bu===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=o&&Tg(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&de(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,p=e.implicitTypes.length;h<p;h+=1)if(x=e.implicitTypes[h],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(_i.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,m=e.typeMap.multi[e.kind||"fallback"],h=0,p=m.length;h<p;h+=1)if(e.tag.slice(0,m[h].tag.length)===m[h].tag){x=m[h];break}x||de(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&de(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):de(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function ZI(e){var t=e.position,n,r,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(nt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Xt(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&de(e,"directive name must not be less than one character in length");s!==0;){for(;Xi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!hr(s));break}if(hr(s))break;for(n=e.position;s!==0&&!Xt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&$p(e),_i.call(bg,r)?bg[r](e,r,i):Hu(e,'unknown document directive "'+r+'"')}if(nt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,nt(e,!0,-1)):a&&de(e,"directives end mark is expected"),as(e,e.lineIndent-1,Uu,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&FI.test(e.input.slice(t,e.position))&&Hu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Oc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)de(e,"end of the stream or a document separator is expected");else return}function nT(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new WI(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,de(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;)ZI(n);return n.documents}function e4(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=nT(e,n);if(typeof t!="function")return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function t4(e,t){var n=nT(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Ut("expected a single document in the stream, but found more")}}var n4=e4,r4=t4,rT={loadAll:n4,load:r4},iT=Object.prototype.toString,aT=Object.prototype.hasOwnProperty,Yp=65279,i4=9,Mo=10,a4=13,s4=32,o4=33,l4=34,oh=35,u4=37,c4=38,d4=39,f4=42,sT=44,h4=45,zu=58,p4=61,m4=62,g4=63,y4=64,oT=91,lT=93,x4=96,uT=123,b4=124,cT=125,Ot={};Ot[0]="\\0";Ot[7]="\\a";Ot[8]="\\b";Ot[9]="\\t";Ot[10]="\\n";Ot[11]="\\v";Ot[12]="\\f";Ot[13]="\\r";Ot[27]="\\e";Ot[34]='\\"';Ot[92]="\\\\";Ot[133]="\\N";Ot[160]="\\_";Ot[8232]="\\L";Ot[8233]="\\P";var E4=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],T4=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function v4(e,t){var n,r,i,a,s,o,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)s=r[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&aT.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o;return n}function w4(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Ut("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+ot.repeat("0",r-t.length)+t}var C4=1,Fo=2;function A4(e){this.schema=e.schema||Wp,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ot.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=v4(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Fo:C4,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function vg(e,t){for(var n=ot.repeat(" ",t),r=0,i=-1,a="",s,o=e.length;r<o;)i=e.indexOf(`
`,r),i===-1?(s=e.slice(r),r=o):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
`&&(a+=n),a+=s;return a}function lh(e,t){return`
`+ot.repeat(" ",e.indent*t)}function k4(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Wu(e){return e===s4||e===i4}function jo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Yp||65536<=e&&e<=1114111}function wg(e){return jo(e)&&e!==Yp&&e!==a4&&e!==Mo}function Cg(e,t,n){var r=wg(e),i=r&&!Wu(e);return(n?r:r&&e!==sT&&e!==oT&&e!==lT&&e!==uT&&e!==cT)&&e!==oh&&!(t===zu&&!i)||wg(t)&&!Wu(t)&&e===oh||t===zu&&i}function N4(e){return jo(e)&&e!==Yp&&!Wu(e)&&e!==h4&&e!==g4&&e!==zu&&e!==sT&&e!==oT&&e!==lT&&e!==uT&&e!==cT&&e!==oh&&e!==c4&&e!==f4&&e!==o4&&e!==b4&&e!==p4&&e!==m4&&e!==d4&&e!==l4&&e!==u4&&e!==y4&&e!==x4}function _4(e){return!Wu(e)&&e!==zu}function Ws(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function dT(e){var t=/^\n* /;return t.test(e)}var fT=1,uh=2,hT=3,pT=4,ma=5;function S4(e,t,n,r,i,a,s,o){var l,c=0,f=null,h=!1,p=!1,m=r!==-1,x=-1,b=N4(Ws(e,0))&&_4(Ws(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Ws(e,l),!jo(c))return ma;b=b&&Cg(c,f,o),f=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Ws(e,l),c===Mo)h=!0,m&&(p=p||l-x-1>r&&e[x+1]!==" ",x=l);else if(!jo(c))return ma;b=b&&Cg(c,f,o),f=c}p=p||m&&l-x-1>r&&e[x+1]!==" "}return!h&&!p?b&&!s&&!i(e)?fT:a===Fo?ma:uh:n>9&&dT(e)?ma:s?a===Fo?ma:uh:p?pT:hT}function I4(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===Fo?'""':"''";if(!e.noCompatMode&&(E4.indexOf(t)!==-1||T4.test(t)))return e.quotingType===Fo?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=r||e.flowLevel>-1&&n>=e.flowLevel;function l(c){return k4(e,c)}switch(S4(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!r,i)){case fT:return t;case uh:return"'"+t.replace(/'/g,"''")+"'";case hT:return"|"+Ag(t,e.indent)+kg(vg(t,a));case pT:return">"+Ag(t,e.indent)+kg(vg(O4(t,s),a));case ma:return'"'+L4(t)+'"';default:throw new Ut("impossible error: invalid scalar style")}}()}function Ag(e,t){var n=dT(e)?String(t):"",r=e[e.length-1]===`
`,i=r&&(e[e.length-2]===`
`||e===`
`),a=i?"+":r?"":"-";return n+a+`
`}function kg(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function O4(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,n.lastIndex=c,Ng(e.slice(0,c),t)}(),i=e[0]===`
`||e[0]===" ",a,s;s=n.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",r+=o+(!i&&!a&&l!==""?`
`:"")+Ng(l,t),i=a}return r}function Ng(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,a,s=0,o=0,l="";r=n.exec(e);)o=r.index,o-i>t&&(a=s>i?s:o,l+=`
`+e.slice(i,a),i=a+1),s=o;return l+=`
`,e.length-i>t&&s>i?l+=e.slice(i,s)+`
`+e.slice(s+1):l+=e.slice(i),l.slice(1)}function L4(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Ws(e,i),r=Ot[n],!r&&jo(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||w4(n);return t}function R4(e,t,n){var r="",i=e.tag,a,s,o;for(a=0,s=n.length;a<s;a+=1)o=n[a],e.replacer&&(o=e.replacer.call(n,String(a),o)),(Fr(e,t,o,!1,!1)||typeof o>"u"&&Fr(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function _g(e,t,n,r){var i="",a=e.tag,s,o,l;for(s=0,o=n.length;s<o;s+=1)l=n[s],e.replacer&&(l=e.replacer.call(n,String(s),l)),(Fr(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Fr(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=lh(e,t)),e.dump&&Mo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function P4(e,t,n){var r="",i=e.tag,a=Object.keys(n),s,o,l,c,f;for(s=0,o=a.length;s<o;s+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=a[s],c=n[l],e.replacer&&(c=e.replacer.call(n,l,c)),Fr(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Fr(e,t,c,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}function D4(e,t,n,r){var i="",a=e.tag,s=Object.keys(n),o,l,c,f,h,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ut("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)p="",(!r||i!=="")&&(p+=lh(e,t)),c=s[o],f=n[c],e.replacer&&(f=e.replacer.call(n,c,f)),Fr(e,t+1,c,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Mo===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,h&&(p+=lh(e,t)),Fr(e,t+1,f,!0,h)&&(e.dump&&Mo===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=a,e.dump=i||"{}"}function Sg(e,t,n){var r,i,a,s,o,l;for(i=n?e.explicitTypes:e.implicitTypes,a=0,s=i.length;a<s;a+=1)if(o=i[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,iT.call(o.represent)==="[object Function]")r=o.represent(t,l);else if(aT.call(o.represent,l))r=o.represent[l](t,l);else throw new Ut("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function Fr(e,t,n,r,i,a,s){e.tag=null,e.dump=n,Sg(e,n,!1)||Sg(e,n,!0);var o=iT.call(e.dump),l=r,c;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=o==="[object Object]"||o==="[object Array]",h,p;if(f&&(h=e.duplicates.indexOf(n),p=h!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(f&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(D4(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(P4(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?_g(e,t-1,e.dump,i):_g(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(R4(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&I4(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ut("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function M4(e,t){var n=[],r=[],i,a;for(ch(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function ch(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)ch(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)ch(e[r[i]],t,n)}function F4(e,t){t=t||{};var n=new A4(t);n.noRefs||M4(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Fr(n,0,r,!0,!0)?n.dump+`
`:""}var j4=F4,B4={dump:j4};function Gp(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var U4=Et,H4=I2,z4=P2,W4=B2,$4=U2,V4=Wp,Y4=rT.load,G4=rT.loadAll,q4=B4.dump,Q4=Ut,K4={binary:V2,float:j2,map:R2,null:D2,pairs:G2,set:q2,timestamp:W2,bool:M2,int:F2,merge:$2,omap:Y2,seq:L2,str:O2},X4=Gp("safeLoad","load"),J4=Gp("safeLoadAll","loadAll"),Z4=Gp("safeDump","dump"),Ig={Type:U4,Schema:H4,FAILSAFE_SCHEMA:z4,JSON_SCHEMA:W4,CORE_SCHEMA:$4,DEFAULT_SCHEMA:V4,load:Y4,loadAll:G4,dump:q4,YAMLException:Q4,types:K4,safeLoad:X4,safeLoadAll:J4,safeDump:Z4};const e5=/^\d{4}-\d{2}-\d{2}$/,t5=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/;function n5(e){return(e.split("/").pop()??e).replace(/\.md$/,"")}function Sd(e,t,n){if(typeof e!="string"||e.trim()==="")throw new Error(`Invalid blog post ${n}: missing ${t}`);return e.trim()}function r5(e){if(!(typeof e!="string"||e.trim()===""))return e.trim()}function i5(e,t){const n=e.match(t5);if(!n)throw new Error(`Invalid blog post ${t}: missing frontmatter`);const r=Ig.load(n[1],{schema:Ig.JSON_SCHEMA});if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`Invalid blog post ${t}: frontmatter must be a mapping`);return{data:r,content:n[2]??""}}function a5(e,t){const{data:n,content:r}=i5(t,e),i=Sd(n.title,"title",e),a=Sd(n.date,"date",e),s=Sd(n.summary,"summary",e);if(!e5.test(a))throw new Error(`Invalid blog post ${e}: date must be YYYY-MM-DD`);const o=n5(e);if(!o)throw new Error(`Invalid blog post ${e}: empty slug`);const l=r5(n.image);return{slug:o,title:i,date:a,summary:s,showTitle:n.showTitle!==!1,trailBackground:n.trailBackground===!0,body:r.trim(),image:l}}function s5(e){return Object.entries(e).map(([t,n])=>a5(t,n)).sort((t,n)=>t.date!==n.date?t.date<n.date?1:-1:t.slug<n.slug?-1:t.slug>n.slug?1:0)}function o5(e,t){return t.find(n=>n.slug===e)}function qp(e){const[t,n,r]=e.split("-").map(Number);return new Date(Date.UTC(t,n-1,r)).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}const l5=Object.assign({"../../content/blog/finding-founding-braintrailz.md":S6,"../../content/blog/intent-is-not-enough.md":I6,"../../content/blog/the-margin-stack.md":O6}),u5=Object.assign({"../../content/blog/finding-founding-braintrailz.pdf":L6,"../../content/blog/intent-is-not-enough.pdf":R6,"../../content/blog/the-margin-stack.pdf":P6});function c5(e){return(e.split("/").pop()??e).replace(/\.pdf$/,"")}const d5=new Map(Object.entries(u5).map(([e,t])=>[c5(e),t])),$u=s5(l5);function f5(e){return o5(e,$u)}function h5(e){return d5.get(e)}const Og=$u.slice(0,3),p5=()=>Og.length===0?null:u.jsx("section",{className:"section-padding",id:"notes",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mb-10",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Field notes"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"What I am thinking about on the trail right now."})]}),u.jsx("ul",{className:"grid md:grid-cols-3 gap-6",children:Og.map(e=>u.jsx("li",{children:u.jsxs(ft,{to:`/blog/${e.slug}`,className:"group flex h-full flex-col rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6 card-hover",children:[u.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:qp(e.date)}),u.jsx("h3",{className:"text-xl font-bold mb-2 group-hover:text-braintrailz-blue transition-colors",children:e.title}),u.jsx("p",{className:"text-muted-foreground mb-4 flex-grow line-clamp-3",children:e.summary}),u.jsx("span",{className:"text-braintrailz-blue",children:"Read the note"})]})},e.slug))}),u.jsx(ft,{to:"/blog",className:"inline-block mt-8 text-braintrailz-blue hover:underline",children:"All field notes →"})]})}),m5=[{label:"40 years",detail:"shipping software"},{label:"AI Advisory",detail:"The Margin Stack",href:"/blog/the-margin-stack"},{label:"Proptech at scale",detail:"BuildingLink, 5,000 buildings"},{label:"Shipping now",detail:"BLT, AI-native POS"}],g5=()=>u.jsx("section",{className:"border-y border-braintrailz-blue/20 bg-braintrailz-dark",children:u.jsxs("div",{className:"container-custom py-8",children:[u.jsx("p",{className:"text-center text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-6",children:"Where the trails meet"}),u.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6",children:m5.map(e=>u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-semibold text-foreground",children:e.label}),"href"in e&&e.href?u.jsx(ft,{to:e.href,className:"text-sm text-muted-foreground hover:text-braintrailz-blue transition-colors",children:e.detail}):u.jsx("div",{className:"text-sm text-muted-foreground",children:e.detail})]},e.label))})]})}),y5=[{intent:"half-day",kicker:"Start here",name:"Half-day strategy session",price:"$7,500 + travel",summary:"4 hours with your team. A week of prep by email. You leave with the work.",points:["Custom session using the Functional Technology Framework","Immediate punch list and bloodspots","Technology projects for the next 1 to 6 months","$7,500 credit on the first Advisor invoice if we continue"],cta:"Book a half-day",featured:!0},{intent:"engaged",kicker:"90-day sprint",name:"CTO Engaged",price:"$10,000 / month",summary:"I sit in the chair. Strategy, vendors, stand-ups, the map.",points:["Functional Technology Systems Map in the first 30 days","Weekly sprint planning and daily stand-ups","Hire, train, evaluate, and fire vendors and contractors","3-month minimum"],cta:"Talk about Engaged",featured:!1},{intent:"advisor",kicker:"After we have a map",name:"CTO Advisor",price:"$5,000 / month",summary:"I stay in the loop without owning the calendar. Lowest financial risk once the path is clear.",points:["Opens after a half-day or a 90-day Engaged sprint","Twice-monthly sprint planning, quarterly planning","Unlimited email","6-month commitment"],cta:"Talk about Advisor",featured:!1}],x5=()=>{const e=Xo(),t=n=>{e("/",{state:{scrollTo:"contact",intent:n}});const r=document.getElementById("contact");r&&r.scrollIntoView({behavior:"smooth"})};return u.jsx("section",{className:"section-padding",id:"offer",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mb-12",children:[u.jsx("p",{className:"text-sm font-semibold uppercase tracking-wider text-braintrailz-blue mb-3",children:"Work the Trail"}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What you can buy"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"One person. Three ways to hire me. Most people start with the half-day because it turns a vague AI worry into a list of work."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:y5.map(n=>u.jsxs("div",{className:`flex flex-col rounded-xl border p-6 bg-braintrailz-dark ${n.featured?"border-braintrailz-blue/60 shadow-lg shadow-braintrailz-blue/10":"border-braintrailz-blue/20"}`,children:[u.jsx("div",{className:"text-sm font-semibold text-braintrailz-blue mb-2",children:n.kicker}),u.jsx("h3",{className:"text-xl font-bold mb-1",children:n.name}),u.jsx("p",{className:"text-lg font-semibold mb-3",children:n.price}),u.jsx("p",{className:"text-muted-foreground mb-4",children:n.summary}),u.jsx("ul",{className:"text-sm text-muted-foreground space-y-2 mb-6 flex-grow",children:n.points.map(r=>u.jsx("li",{className:"pl-4 relative before:content-[''] before:absolute before:left-0 before:top-2 before:h-1.5 before:w-1.5 before:rounded-full before:bg-braintrailz-blue",children:r},r))}),u.jsx(Nt,{onClick:()=>t(n.intent),className:n.featured?"w-full bg-gradient-hero hover:opacity-90 text-white":"w-full border-braintrailz-blue text-braintrailz-blue hover:bg-braintrailz-blue/10",variant:n.featured?"default":"outline",children:n.cta})]},n.name))}),u.jsxs("p",{className:"mt-8 text-sm text-muted-foreground",children:["Full detail on"," ",u.jsx("button",{type:"button",onClick:()=>e("/pricing"),className:"text-braintrailz-blue hover:underline",children:"the pricing page"}),". Invoiced by Codemarc Consulting LLC."]})]})})},Lg=[{number:"01",title:"Half-day",description:"A week of prep by email, then four hours with your team. You leave with a punch list, and the roadmap for the next 1 to 6 months of technology work."},{number:"02",title:"90-day Engaged sprint",description:"If the punch list is real, I sit in the chair. Map in 30 days. Weekly planning. Daily stand-ups. Vendors and contractors get managed. Short-term, high-octane."},{number:"03",title:"Advisor",description:"Once the path is clear, I stay as a strategic advisor. Twice-monthly planning, unlimited email, lowest ongoing spend. You do not start here."}],b5=()=>u.jsx("section",{className:"section-padding bg-braintrailz-dark",id:"engagement",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mb-12",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How an engagement actually works"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"This is not a five-step agency waterfall. It is a sequence that earns the next conversation. I do not run your sales. I am the technical right arm once the problem is real."})]}),u.jsx("div",{className:"max-w-4xl",children:Lg.map((e,t)=>u.jsxs("div",{className:"relative flex items-start mb-12 last:mb-0",children:[t<Lg.length-1&&u.jsx("div",{className:"absolute top-12 bottom-0 left-6 w-0.5 bg-gradient-to-b from-braintrailz-blue to-braintrailz-purple"}),u.jsx("div",{className:"flex-shrink-0 mr-6",children:u.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-hero flex items-center justify-center",children:u.jsx("span",{className:"text-white font-bold",children:e.number})})}),u.jsxs("div",{className:"pt-1.5",children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:e.title}),u.jsx("p",{className:"text-muted-foreground max-w-2xl",children:e.description})]})]},e.number))})]})}),E5=["Operators and founders in hospitality, restaurants, proptech, or payments who need a technical right arm","Accounting and advisory firms that need a senior leader to build and operationalize an AI strategy","Teams that know they are 6 to 10 months behind on AI and want a map, not a vendor tour","Leaders who want a CTO-level peer in the room, then someone who will stay and execute","A real software company that needs an engineering leader who still builds: management, architecture, ideation, shipping. I am a builder"],T5=["A ticket queue with a title. Staff-aug, body shop, or a manager seat that never touches the product. I am a builder","Anyone who wants me to run sales, marketing, or the pipeline","A research graduate with no shipping experience. That is not my profile","A free architecture review dressed up as a coffee chat","A spray-and-pray recruiter blast with no real problem attached. If the seat is real and the work is mine, we can talk"],v5=()=>u.jsx("section",{className:"section-padding",id:"who",children:u.jsxs("div",{className:"container-custom",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-10",children:"Who this is for"}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[u.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[u.jsx("h3",{className:"text-lg font-semibold text-braintrailz-blue mb-4",children:"Hire me if"}),u.jsx("ul",{className:"space-y-3 text-muted-foreground",children:E5.map(e=>u.jsx("li",{children:e},e))})]}),u.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[u.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Skip me if"}),u.jsx("ul",{className:"space-y-3 text-muted-foreground",children:T5.map(e=>u.jsx("li",{children:e},e))})]})]})]})}),w5=({title:e,description:t,image:n,tags:r,link:i})=>u.jsxs("div",{className:"rounded-lg overflow-hidden bg-braintrailz-dark border border-braintrailz-blue/20 card-hover",children:[u.jsx("div",{className:"h-48 overflow-hidden relative",children:u.jsx("a",{href:i,target:i!=null&&i.startsWith("http")?"_blank":void 0,rel:i!=null&&i.startsWith("http")?"noopener noreferrer":void 0,children:u.jsx("img",{src:n,alt:e,className:"w-full h-full object-cover transition-transform duration-500 hover:scale-105"})})}),u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex justify-between items-start mb-3",children:[u.jsx("h3",{className:"text-xl font-bold text-foreground",children:u.jsx("a",{href:i,target:i!=null&&i.startsWith("http")?"_blank":void 0,rel:i!=null&&i.startsWith("http")?"noopener noreferrer":void 0,children:e})}),i&&u.jsx("a",{href:i,target:i!=null&&i.startsWith("http")?"_blank":void 0,rel:i!=null&&i.startsWith("http")?"noopener noreferrer":void 0,className:"text-braintrailz-blue hover:text-braintrailz-purple transition-colors",children:u.jsx(ps,{size:18})})]}),u.jsx("p",{className:"text-muted-foreground mb-4",children:t}),u.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((a,s)=>{const o=typeof a=="string"?a:a.label,l=typeof a=="string"?void 0:a.link,c=l==null?void 0:l.startsWith("http"),f=u.jsx("span",{className:"inline-block bg-braintrailz-blue/10 text-foreground hover:text-braintrailz-blue transition-colors text-xs px-2 py-1 rounded",children:o});return l?u.jsx("a",{href:l,target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,children:f},s):u.jsx("span",{children:f},s)})})]})]}),C5=[{title:"Beyond Limited Thinking",description:"AI-native POS for restaurants and hospitality. Payments freedom, not another terminal lease. This is what I am shipping now. Proof I still build, not just advise.",image:"/img/pos.png",link:"https://bltwai.com",tags:[{label:"Hospitality",link:"https://bltwai.com"},{label:"Payments",link:"https://bae.bltcore.com"}]},{title:"Meet Grey Matters",description:"Exit the matrix and master building your own AI-powered customer service agents.",image:"/img/greymatters.webp",tags:[{label:"AI agents",link:"/greymatters"}],link:"/greymatters"},{title:"Trailcraft",description:"Build the tool. Publish the method. Field guides and maps left for the next person on the path, including Repack and the recruiter book.",image:"/img/trailcraft-hero.jpg",tags:[{label:"Methods",link:"/trailcraft"},{label:"Repack",link:"/trailcraft/repack"},{label:"Recruiter",link:"/recruiter/"}],link:"/trailcraft"}],A5=()=>u.jsx("section",{className:"section-padding bg-braintrailz-dark",id:"proof",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mb-12",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Things that started as a spark"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"IBM Boca Raton. Twenty years at Information Builders and iWay. BuildingLink across 5,000 buildings. Logistics AI. Office of the CTO at Partech. Then Braintrailz. The current proof is BLT."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:C5.map(e=>u.jsx(w5,{...e},e.title))})]})}),k5=()=>{const e=Xo(),t=()=>{e("/",{state:{scrollTo:"contact",intent:"idea"}});const n=document.getElementById("contact");n&&n.scrollIntoView({behavior:"smooth"})};return u.jsx("section",{className:"section-padding",id:"method",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mb-10",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"The kit and the method"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"What I carry and what I leave on the path for the next person."})]}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[u.jsxs(ft,{to:"/trailcraft",className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6 card-hover",children:[u.jsx(ju,{className:"h-8 w-8 mb-3 text-braintrailz-blue"}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Trailcraft"}),u.jsx("p",{className:"text-muted-foreground",children:"The methods I leave on the path. Repack, Trailcard, field guides, maps. Proof that I publish the work, not just talk about process."})]}),u.jsxs(ft,{to:"/backpack",className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6 card-hover",children:[u.jsx(aa,{className:"h-8 w-8 mb-3 text-braintrailz-blue"}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Backpack"}),u.jsx("p",{className:"text-muted-foreground",children:"The tools I actually carry. If you want to know what I will show up with, look here first."})]})]}),u.jsx("div",{className:"mt-10",children:u.jsxs(Nt,{onClick:t,className:"bg-gradient-hero hover:opacity-90 text-white px-8 py-6 text-lg",children:["Bring me your idea",u.jsx($f,{className:"ml-2 h-5 w-5"})]})})]})})};var Jo=e=>e.type==="checkbox",Ia=e=>e instanceof Date,Ft=e=>e==null;const mT=e=>typeof e=="object";var it=e=>!Ft(e)&&!Array.isArray(e)&&mT(e)&&!Ia(e),N5=e=>it(e)&&e.target?Jo(e.target)?e.target.checked:e.target.value:e,_5=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,S5=(e,t)=>e.has(_5(t)),I5=e=>{const t=e.constructor&&e.constructor.prototype;return it(t)&&t.hasOwnProperty("isPrototypeOf")},Qp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function vn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Qp&&(e instanceof Blob||e instanceof FileList))&&(n||it(e)))if(t=n?[]:{},!n&&!I5(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=vn(e[r]));else return e;return t}var Lc=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>e===void 0,le=(e,t,n)=>{if(!t||!it(e))return n;const r=Lc(t.split(/[,[\].]+?/)).reduce((i,a)=>Ft(i)?i:i[a],e);return Ke(r)||r===e?Ke(e[t])?n:e[t]:r},rr=e=>typeof e=="boolean",Kp=e=>/^\w*$/.test(e),gT=e=>Lc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Fe=(e,t,n)=>{let r=-1;const i=Kp(t)?[t]:gT(t),a=i.length,s=a-1;for(;++r<a;){const o=i[r];let l=n;if(r!==s){const c=e[o];l=it(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(o==="__proto__")return;e[o]=l,e=e[o]}return e};const Rg={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Wn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Tr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};X.createContext(null);var O5=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Wn.all&&(t._proxyFormState[s]=!r||Wn.all),e[s]}});return i},qt=e=>it(e)&&!Object.keys(e).length,L5=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return qt(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===Wn.all)},Xl=e=>Array.isArray(e)?e:[e];function R5(e){const t=X.useRef(e);t.current=e,X.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var cr=e=>typeof e=="string",P5=(e,t,n,r,i)=>cr(e)?(r&&t.watch.add(e),le(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),le(n,a))):(r&&(t.watchAll=!0),n),D5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Pg=e=>({isOnSubmit:!e||e===Wn.onSubmit,isOnBlur:e===Wn.onBlur,isOnChange:e===Wn.onChange,isOnAll:e===Wn.all,isOnTouch:e===Wn.onTouched}),Dg=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const to=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=le(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(to(o,t))break}else if(it(o)&&to(o,t))break}}};var M5=(e,t,n)=>{const r=Xl(le(e,n));return Fe(r,"root",t[n]),Fe(e,n,r),e},Xp=e=>e.type==="file",Sr=e=>typeof e=="function",Vu=e=>{if(!Qp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Jl=e=>cr(e),Jp=e=>e.type==="radio",Yu=e=>e instanceof RegExp;const Mg={value:!1,isValid:!1},Fg={value:!0,isValid:!0};var yT=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ke(e[0].attributes.value)?Ke(e[0].value)||e[0].value===""?Fg:{value:e[0].value,isValid:!0}:Fg:Mg}return Mg};const jg={isValid:!1,value:null};var xT=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,jg):jg;function Bg(e,t,n="validate"){if(Jl(e)||Array.isArray(e)&&e.every(Jl)||rr(e)&&!e)return{type:n,message:Jl(e)?e:"",ref:t}}var pa=e=>it(e)&&!Yu(e)?e:{value:e,message:""},Ug=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:c,min:f,max:h,pattern:p,validate:m,name:x,valueAsNumber:b,mount:v,disabled:y}=e._f,g=le(t,x);if(!v||y)return{};const E=s?s[0]:a,k=F=>{r&&E.reportValidity&&(E.setCustomValidity(rr(F)?"":F||""),E.reportValidity())},I={},N=Jp(a),L=Jo(a),M=N||L,V=(b||Xp(a))&&Ke(a.value)&&Ke(g)||Vu(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,H=D5.bind(null,x,n,I),Y=(F,K,z,te=Tr.maxLength,ie=Tr.minLength)=>{const se=F?K:z;I[x]={type:F?te:ie,message:se,ref:a,...H(F?te:ie,se)}};if(i?!Array.isArray(g)||!g.length:o&&(!M&&(V||Ft(g))||rr(g)&&!g||L&&!yT(s).isValid||N&&!xT(s).isValid)){const{value:F,message:K}=Jl(o)?{value:!!o,message:o}:pa(o);if(F&&(I[x]={type:Tr.required,message:K,ref:E,...H(Tr.required,K)},!n))return k(K),I}if(!V&&(!Ft(f)||!Ft(h))){let F,K;const z=pa(h),te=pa(f);if(!Ft(g)&&!isNaN(g)){const ie=a.valueAsNumber||g&&+g;Ft(z.value)||(F=ie>z.value),Ft(te.value)||(K=ie<te.value)}else{const ie=a.valueAsDate||new Date(g),se=C=>new Date(new Date().toDateString()+" "+C),D=a.type=="time",q=a.type=="week";cr(z.value)&&g&&(F=D?se(g)>se(z.value):q?g>z.value:ie>new Date(z.value)),cr(te.value)&&g&&(K=D?se(g)<se(te.value):q?g<te.value:ie<new Date(te.value))}if((F||K)&&(Y(!!F,z.message,te.message,Tr.max,Tr.min),!n))return k(I[x].message),I}if((l||c)&&!V&&(cr(g)||i&&Array.isArray(g))){const F=pa(l),K=pa(c),z=!Ft(F.value)&&g.length>+F.value,te=!Ft(K.value)&&g.length<+K.value;if((z||te)&&(Y(z,F.message,K.message),!n))return k(I[x].message),I}if(p&&!V&&cr(g)){const{value:F,message:K}=pa(p);if(Yu(F)&&!g.match(F)&&(I[x]={type:Tr.pattern,message:K,ref:a,...H(Tr.pattern,K)},!n))return k(K),I}if(m){if(Sr(m)){const F=await m(g,t),K=Bg(F,E);if(K&&(I[x]={...K,...H(Tr.validate,K.message)},!n))return k(K.message),I}else if(it(m)){let F={};for(const K in m){if(!qt(F)&&!n)break;const z=Bg(await m[K](g,t),E,K);z&&(F={...z,...H(K,z.message)},k(z.message),n&&(I[x]=F))}if(!qt(F)&&(I[x]={ref:E,...F},!n))return I}}return k(!0),I};function F5(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ke(e)?r++:e[t[r++]];return e}function j5(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ke(e[t]))return!1;return!0}function at(e,t){const n=Array.isArray(t)?t:Kp(t)?[t]:gT(t),r=n.length===1?e:F5(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(it(r)&&qt(r)||Array.isArray(r)&&j5(r))&&at(e,n.slice(0,-1)),e}var Id=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},Gu=e=>Ft(e)||!mT(e);function ti(e,t){if(Gu(e)||Gu(t))return e===t;if(Ia(e)&&Ia(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Ia(a)&&Ia(s)||it(a)&&it(s)||Array.isArray(a)&&Array.isArray(s)?!ti(a,s):a!==s)return!1}}return!0}var bT=e=>e.type==="select-multiple",B5=e=>Jp(e)||Jo(e),Od=e=>Vu(e)&&e.isConnected,ET=e=>{for(const t in e)if(Sr(e[t]))return!0;return!1};function qu(e,t={}){const n=Array.isArray(e);if(it(e)||n)for(const r in e)Array.isArray(e[r])||it(e[r])&&!ET(e[r])?(t[r]=Array.isArray(e[r])?[]:{},qu(e[r],t[r])):Ft(e[r])||(t[r]=!0);return t}function TT(e,t,n){const r=Array.isArray(e);if(it(e)||r)for(const i in e)Array.isArray(e[i])||it(e[i])&&!ET(e[i])?Ke(t)||Gu(n[i])?n[i]=Array.isArray(e[i])?qu(e[i],[]):{...qu(e[i])}:TT(e[i],Ft(t)?{}:t[i],n[i]):n[i]=!ti(e[i],t[i]);return n}var Sl=(e,t)=>TT(e,t,qu(t)),vT=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ke(e)?e:t?e===""?NaN:e&&+e:n&&cr(e)?new Date(e):r?r(e):e;function Ld(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Xp(t)?t.files:Jp(t)?xT(e.refs).value:bT(t)?[...t.selectedOptions].map(({value:n})=>n):Jo(t)?yT(e.refs).value:vT(Ke(t.value)?e.ref.value:t.value,e)}var U5=(e,t,n,r)=>{const i={};for(const a of e){const s=le(t,a);s&&Fe(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Ps=e=>Ke(e)?e:Yu(e)?e.source:it(e)?Yu(e.value)?e.value.source:e.value:e;const Hg="AsyncFunction";var H5=e=>(!e||!e.validate)&&!!(Sr(e.validate)&&e.validate.constructor.name===Hg||it(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Hg)),z5=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function zg(e,t,n){const r=le(e,n);if(r||Kp(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=le(t,a),o=le(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var W5=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,$5=(e,t)=>!Lc(le(e,t)).length&&at(e,t);const V5={mode:Wn.onSubmit,reValidateMode:Wn.onChange,shouldFocusError:!0};function Y5(e={}){let t={...V5,...e},n={submitCount:0,isDirty:!1,isLoading:Sr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=it(t.defaultValues)||it(t.values)?vn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:vn(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Id(),array:Id(),state:Id()},p=Pg(t.mode),m=Pg(t.reValidateMode),x=t.criteriaMode===Wn.all,b=O=>R=>{clearTimeout(c),c=setTimeout(O,R)},v=async O=>{if(f.isValid||O){const R=t.resolver?qt((await M()).errors):await H(r,!0);R!==n.isValid&&h.state.next({isValid:R})}},y=(O,R)=>{(f.isValidating||f.validatingFields)&&((O||Array.from(o.mount)).forEach(U=>{U&&(R?Fe(n.validatingFields,U,R):at(n.validatingFields,U))}),h.state.next({validatingFields:n.validatingFields,isValidating:!qt(n.validatingFields)}))},g=(O,R=[],U,ae,ne=!0,Z=!0)=>{if(ae&&U){if(s.action=!0,Z&&Array.isArray(le(r,O))){const ce=U(le(r,O),ae.argA,ae.argB);ne&&Fe(r,O,ce)}if(Z&&Array.isArray(le(n.errors,O))){const ce=U(le(n.errors,O),ae.argA,ae.argB);ne&&Fe(n.errors,O,ce),$5(n.errors,O)}if(f.touchedFields&&Z&&Array.isArray(le(n.touchedFields,O))){const ce=U(le(n.touchedFields,O),ae.argA,ae.argB);ne&&Fe(n.touchedFields,O,ce)}f.dirtyFields&&(n.dirtyFields=Sl(i,a)),h.state.next({name:O,isDirty:F(O,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Fe(a,O,R)},E=(O,R)=>{Fe(n.errors,O,R),h.state.next({errors:n.errors})},k=O=>{n.errors=O,h.state.next({errors:n.errors,isValid:!1})},I=(O,R,U,ae)=>{const ne=le(r,O);if(ne){const Z=le(a,O,Ke(U)?le(i,O):U);Ke(Z)||ae&&ae.defaultChecked||R?Fe(a,O,R?Z:Ld(ne._f)):te(O,Z),s.mount&&v()}},N=(O,R,U,ae,ne)=>{let Z=!1,ce=!1;const Ce={name:O},j=!!(le(r,O)&&le(r,O)._f&&le(r,O)._f.disabled);if(!U||ae){f.isDirty&&(ce=n.isDirty,n.isDirty=Ce.isDirty=F(),Z=ce!==Ce.isDirty);const $=j||ti(le(i,O),R);ce=!!(!j&&le(n.dirtyFields,O)),$||j?at(n.dirtyFields,O):Fe(n.dirtyFields,O,!0),Ce.dirtyFields=n.dirtyFields,Z=Z||f.dirtyFields&&ce!==!$}if(U){const $=le(n.touchedFields,O);$||(Fe(n.touchedFields,O,U),Ce.touchedFields=n.touchedFields,Z=Z||f.touchedFields&&$!==U)}return Z&&ne&&h.state.next(Ce),Z?Ce:{}},L=(O,R,U,ae)=>{const ne=le(n.errors,O),Z=f.isValid&&rr(R)&&n.isValid!==R;if(e.delayError&&U?(l=b(()=>E(O,U)),l(e.delayError)):(clearTimeout(c),l=null,U?Fe(n.errors,O,U):at(n.errors,O)),(U?!ti(ne,U):ne)||!qt(ae)||Z){const ce={...ae,...Z&&rr(R)?{isValid:R}:{},errors:n.errors,name:O};n={...n,...ce},h.state.next(ce)}},M=async O=>{y(O,!0);const R=await t.resolver(a,t.context,U5(O||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return y(O),R},V=async O=>{const{errors:R}=await M(O);if(O)for(const U of O){const ae=le(R,U);ae?Fe(n.errors,U,ae):at(n.errors,U)}else n.errors=R;return R},H=async(O,R,U={valid:!0})=>{for(const ae in O){const ne=O[ae];if(ne){const{_f:Z,...ce}=ne;if(Z){const Ce=o.array.has(Z.name),j=ne._f&&H5(ne._f);j&&f.validatingFields&&y([ae],!0);const $=await Ug(ne,a,x,t.shouldUseNativeValidation&&!R,Ce);if(j&&f.validatingFields&&y([ae]),$[Z.name]&&(U.valid=!1,R))break;!R&&(le($,Z.name)?Ce?M5(n.errors,$,Z.name):Fe(n.errors,Z.name,$[Z.name]):at(n.errors,Z.name))}!qt(ce)&&await H(ce,R,U)}}return U.valid},Y=()=>{for(const O of o.unMount){const R=le(r,O);R&&(R._f.refs?R._f.refs.every(U=>!Od(U)):!Od(R._f.ref))&&he(O)}o.unMount=new Set},F=(O,R)=>(O&&R&&Fe(a,O,R),!ti(re(),i)),K=(O,R,U)=>P5(O,o,{...s.mount?a:Ke(R)?i:cr(O)?{[O]:R}:R},U,R),z=O=>Lc(le(s.mount?a:i,O,e.shouldUnregister?le(i,O,[]):[])),te=(O,R,U={})=>{const ae=le(r,O);let ne=R;if(ae){const Z=ae._f;Z&&(!Z.disabled&&Fe(a,O,vT(R,Z)),ne=Vu(Z.ref)&&Ft(R)?"":R,bT(Z.ref)?[...Z.ref.options].forEach(ce=>ce.selected=ne.includes(ce.value)):Z.refs?Jo(Z.ref)?Z.refs.length>1?Z.refs.forEach(ce=>(!ce.defaultChecked||!ce.disabled)&&(ce.checked=Array.isArray(ne)?!!ne.find(Ce=>Ce===ce.value):ne===ce.value)):Z.refs[0]&&(Z.refs[0].checked=!!ne):Z.refs.forEach(ce=>ce.checked=ce.value===ne):Xp(Z.ref)?Z.ref.value="":(Z.ref.value=ne,Z.ref.type||h.values.next({name:O,values:{...a}})))}(U.shouldDirty||U.shouldTouch)&&N(O,ne,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&C(O)},ie=(O,R,U)=>{for(const ae in R){const ne=R[ae],Z=`${O}.${ae}`,ce=le(r,Z);(o.array.has(O)||!Gu(ne)||ce&&!ce._f)&&!Ia(ne)?ie(Z,ne,U):te(Z,ne,U)}},se=(O,R,U={})=>{const ae=le(r,O),ne=o.array.has(O),Z=vn(R);Fe(a,O,Z),ne?(h.array.next({name:O,values:{...a}}),(f.isDirty||f.dirtyFields)&&U.shouldDirty&&h.state.next({name:O,dirtyFields:Sl(i,a),isDirty:F(O,Z)})):ae&&!ae._f&&!Ft(Z)?ie(O,Z,U):te(O,Z,U),Dg(O,o)&&h.state.next({...n}),h.values.next({name:s.mount?O:void 0,values:{...a}})},D=async O=>{s.mount=!0;const R=O.target;let U=R.name,ae=!0;const ne=le(r,U),Z=()=>R.type?Ld(ne._f):N5(O),ce=Ce=>{ae=Number.isNaN(Ce)||ti(Ce,le(a,U,Ce))};if(ne){let Ce,j;const $=Z(),fe=O.type===Rg.BLUR||O.type===Rg.FOCUS_OUT,xe=!z5(ne._f)&&!t.resolver&&!le(n.errors,U)&&!ne._f.deps||W5(fe,le(n.touchedFields,U),n.isSubmitted,m,p),Ae=Dg(U,o,fe);Fe(a,U,$),fe?(ne._f.onBlur&&ne._f.onBlur(O),l&&l(0)):ne._f.onChange&&ne._f.onChange(O);const gt=N(U,$,fe,!1),En=!qt(gt)||Ae;if(!fe&&h.values.next({name:U,type:O.type,values:{...a}}),xe)return f.isValid&&(e.mode==="onBlur"?fe&&v():v()),En&&h.state.next({name:U,...Ae?{}:gt});if(!fe&&Ae&&h.state.next({...n}),t.resolver){const{errors:Pt}=await M([U]);if(ce($),ae){const br=zg(n.errors,r,U),Tn=zg(Pt,r,br.name||U);Ce=Tn.error,U=Tn.name,j=qt(Pt)}}else y([U],!0),Ce=(await Ug(ne,a,x,t.shouldUseNativeValidation))[U],y([U]),ce($),ae&&(Ce?j=!1:f.isValid&&(j=await H(r,!0)));ae&&(ne._f.deps&&C(ne._f.deps),L(U,j,Ce,gt))}},q=(O,R)=>{if(le(n.errors,R)&&O.focus)return O.focus(),1},C=async(O,R={})=>{let U,ae;const ne=Xl(O);if(t.resolver){const Z=await V(Ke(O)?O:ne);U=qt(Z),ae=O?!ne.some(ce=>le(Z,ce)):U}else O?(ae=(await Promise.all(ne.map(async Z=>{const ce=le(r,Z);return await H(ce&&ce._f?{[Z]:ce}:ce)}))).every(Boolean),!(!ae&&!n.isValid)&&v()):ae=U=await H(r);return h.state.next({...!cr(O)||f.isValid&&U!==n.isValid?{}:{name:O},...t.resolver||!O?{isValid:U}:{},errors:n.errors}),R.shouldFocus&&!ae&&to(r,q,O?ne:o.mount),ae},re=O=>{const R={...s.mount?a:i};return Ke(O)?R:cr(O)?le(R,O):O.map(U=>le(R,U))},ue=(O,R)=>({invalid:!!le((R||n).errors,O),isDirty:!!le((R||n).dirtyFields,O),error:le((R||n).errors,O),isValidating:!!le(n.validatingFields,O),isTouched:!!le((R||n).touchedFields,O)}),_=O=>{O&&Xl(O).forEach(R=>at(n.errors,R)),h.state.next({errors:O?n.errors:{}})},Te=(O,R,U)=>{const ae=(le(r,O,{_f:{}})._f||{}).ref,ne=le(n.errors,O)||{},{ref:Z,message:ce,type:Ce,...j}=ne;Fe(n.errors,O,{...j,...R,ref:ae}),h.state.next({name:O,errors:n.errors,isValid:!1}),U&&U.shouldFocus&&ae&&ae.focus&&ae.focus()},He=(O,R)=>Sr(O)?h.values.subscribe({next:U=>O(K(void 0,R),U)}):K(O,R,!0),he=(O,R={})=>{for(const U of O?Xl(O):o.mount)o.mount.delete(U),o.array.delete(U),R.keepValue||(at(r,U),at(a,U)),!R.keepError&&at(n.errors,U),!R.keepDirty&&at(n.dirtyFields,U),!R.keepTouched&&at(n.touchedFields,U),!R.keepIsValidating&&at(n.validatingFields,U),!t.shouldUnregister&&!R.keepDefaultValue&&at(i,U);h.values.next({values:{...a}}),h.state.next({...n,...R.keepDirty?{isDirty:F()}:{}}),!R.keepIsValid&&v()},Ze=({disabled:O,name:R,field:U,fields:ae,value:ne})=>{if(rr(O)&&s.mount||O){const Z=O?void 0:Ke(ne)?Ld(U?U._f:le(ae,R)._f):ne;Fe(a,R,Z),N(R,Z,!1,!1,!0)}},Qe=(O,R={})=>{let U=le(r,O);const ae=rr(R.disabled)||rr(e.disabled);return Fe(r,O,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:O}},name:O,mount:!0,...R}}),o.mount.add(O),U?Ze({field:U,disabled:rr(R.disabled)?R.disabled:e.disabled,name:O,value:R.value}):I(O,!0,R.value),{...ae?{disabled:R.disabled||e.disabled}:{},...t.progressive?{required:!!R.required,min:Ps(R.min),max:Ps(R.max),minLength:Ps(R.minLength),maxLength:Ps(R.maxLength),pattern:Ps(R.pattern)}:{},name:O,onChange:D,onBlur:D,ref:ne=>{if(ne){Qe(O,R),U=le(r,O);const Z=Ke(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,ce=B5(Z),Ce=U._f.refs||[];if(ce?Ce.find(j=>j===Z):Z===U._f.ref)return;Fe(r,O,{_f:{...U._f,...ce?{refs:[...Ce.filter(Od),Z,...Array.isArray(le(i,O))?[{}]:[]],ref:{type:Z.type,name:O}}:{ref:Z}}}),I(O,!1,void 0,Z)}else U=le(r,O,{}),U._f&&(U._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(S5(o.array,O)&&s.action)&&o.unMount.add(O)}}},ut=()=>t.shouldFocusError&&to(r,q,o.mount),mt=O=>{rr(O)&&(h.state.next({disabled:O}),to(r,(R,U)=>{const ae=le(r,U);ae&&(R.disabled=ae._f.disabled||O,Array.isArray(ae._f.refs)&&ae._f.refs.forEach(ne=>{ne.disabled=ae._f.disabled||O}))},0,!1))},yn=(O,R)=>async U=>{let ae;U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let ne=vn(a);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Z,values:ce}=await M();n.errors=Z,ne=ce}else await H(r);if(at(n.errors,"root"),qt(n.errors)){h.state.next({errors:{}});try{await O(ne,U)}catch(Z){ae=Z}}else R&&await R({...n.errors},U),ut(),setTimeout(ut);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qt(n.errors)&&!ae,submitCount:n.submitCount+1,errors:n.errors}),ae)throw ae},Kn=(O,R={})=>{le(r,O)&&(Ke(R.defaultValue)?se(O,vn(le(i,O))):(se(O,R.defaultValue),Fe(i,O,vn(R.defaultValue))),R.keepTouched||at(n.touchedFields,O),R.keepDirty||(at(n.dirtyFields,O),n.isDirty=R.defaultValue?F(O,vn(le(i,O))):F()),R.keepError||(at(n.errors,O),f.isValid&&v()),h.state.next({...n}))},xn=(O,R={})=>{const U=O?vn(O):i,ae=vn(U),ne=qt(O),Z=ne?i:ae;if(R.keepDefaultValues||(i=U),!R.keepValues){if(R.keepDirtyValues)for(const ce of o.mount)le(n.dirtyFields,ce)?Fe(Z,ce,le(a,ce)):se(ce,le(Z,ce));else{if(Qp&&Ke(O))for(const ce of o.mount){const Ce=le(r,ce);if(Ce&&Ce._f){const j=Array.isArray(Ce._f.refs)?Ce._f.refs[0]:Ce._f.ref;if(Vu(j)){const $=j.closest("form");if($){$.reset();break}}}}r={}}a=e.shouldUnregister?R.keepDefaultValues?vn(i):{}:vn(Z),h.array.next({values:{...Z}}),h.values.next({values:{...Z}})}o={mount:R.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!R.keepIsValid||!!R.keepDirtyValues,s.watch=!!e.shouldUnregister,h.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:ne?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!ti(O,i)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ne?{}:R.keepDirtyValues?R.keepDefaultValues&&a?Sl(i,a):n.dirtyFields:R.keepDefaultValues&&O?Sl(i,O):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Xn=(O,R)=>xn(Sr(O)?O(a):O,R);return{control:{register:Qe,unregister:he,getFieldState:ue,handleSubmit:yn,setError:Te,_executeSchema:M,_getWatch:K,_getDirty:F,_updateValid:v,_removeUnmounted:Y,_updateFieldArray:g,_updateDisabledField:Ze,_getFieldArray:z,_reset:xn,_resetDefaultValues:()=>Sr(t.defaultValues)&&t.defaultValues().then(O=>{Xn(O,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:O=>{n={...n,...O}},_disableForm:mt,_subjects:h,_proxyFormState:f,_setErrors:k,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(O){s=O},get _defaultValues(){return i},get _names(){return o},set _names(O){o=O},get _formState(){return n},set _formState(O){n=O},get _options(){return t},set _options(O){t={...t,...O}}},trigger:C,register:Qe,handleSubmit:yn,watch:He,setValue:se,getValues:re,reset:Xn,resetField:Kn,clearErrors:_,unregister:he,setError:Te,setFocus:(O,R={})=>{const U=le(r,O),ae=U&&U._f;if(ae){const ne=ae.refs?ae.refs[0]:ae.ref;ne.focus&&(ne.focus(),R.shouldSelect&&ne.select())}},getFieldState:ue}}function G5(e={}){const t=X.useRef(),n=X.useRef(),[r,i]=X.useState({isDirty:!1,isValidating:!1,isLoading:Sr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Sr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Y5(e),formState:r});const a=t.current.control;return a._options=e,R5({subject:a._subjects.state,next:s=>{L5(s,a._proxyFormState,a._updateFormState)&&i({...a._formState})}}),X.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),X.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),X.useEffect(()=>{e.values&&!ti(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),X.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),X.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),X.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=O5(r,a),t.current}const Zl=T.forwardRef(({className:e,type:t,...n},r)=>u.jsx("input",{type:t,className:It("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Zl.displayName="Input";const wT=T.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:It("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));wT.displayName="Textarea";const q5={idea:"I have an idea","half-day":"Half-day strategy session",engaged:"CTO Engaged",advisor:"CTO Advisor",other:"Not sure yet"},Q5=()=>{var f;const e=Br(),[t,n]=T.useState(!1),r=((f=e.state)==null?void 0:f.intent)||"other",{register:i,handleSubmit:a,reset:s,setValue:o,formState:{errors:l}}=G5({defaultValues:{intent:r}});T.useEffect(()=>{var h;(h=e.state)!=null&&h.intent&&o("intent",e.state.intent)},[e.state,o]);const c=async h=>{n(!0);try{const p=new FormData;for(const[x,b]of Object.entries(h))b&&p.append(x,b);if(p.set("intent",q5[h.intent]||h.intent),!(await fetch("https://formspree.io/f/xyzwjkdb",{method:"POST",body:p,headers:{Accept:"application/json"}})).ok)throw new Error("Failed to send message");Gf.success("Got it. I will get back to you within 24 hours."),s({intent:"other"})}catch(p){Gf.error("That did not send. Email me directly and I will pick it up."),console.error("Form submission error:",p)}finally{n(!1)}};return u.jsxs("section",{className:"section-padding bg-braintrailz-dark relative",id:"contact",children:[u.jsxs("div",{className:"absolute inset-0 z-0 overflow-hidden",children:[u.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-braintrailz-purple/10 rounded-full filter blur-3xl"}),u.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-braintrailz-blue/10 rounded-full filter blur-3xl"})]}),u.jsxs("div",{className:"container-custom relative z-10",children:[u.jsxs("div",{className:"max-w-3xl mb-12",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Base Camp: let's talk"}),u.jsx("p",{className:"text-muted-foreground max-w-2xl",children:"Bring the spark or bring the stack. I reply within 24 hours."})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 max-w-5xl",children:[u.jsxs("div",{className:"bg-braintrailz-darker p-8 rounded-lg border border-braintrailz-blue/20 shadow-lg",children:[u.jsx("h3",{className:"text-xl font-bold mb-6",children:"Start here"}),u.jsxs("form",{action:"https://formspree.io/f/xyzwjkdb",method:"POST",onSubmit:a(c),className:"space-y-6",children:[u.jsx("input",{type:"hidden",name:"_subject",value:"Braintrailz engagement request"}),u.jsx("input",{type:"hidden",name:"_template",value:"table"}),u.jsx("input",{type:"hidden",name:"_captcha",value:"false"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{htmlFor:"name",className:"text-sm text-muted-foreground",children:"Your name"}),u.jsx(Zl,{id:"name",className:`bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue ${l.name?"border-red-500":""}`,...i("name",{required:"Name is required"})}),l.name&&u.jsx("p",{className:"text-sm text-red-500",children:l.name.message})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{htmlFor:"email",className:"text-sm text-muted-foreground",children:"Email"}),u.jsx(Zl,{id:"email",type:"email",className:`bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue ${l.email?"border-red-500":""}`,...i("email",{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}})}),l.email&&u.jsx("p",{className:"text-sm text-red-500",children:l.email.message})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{htmlFor:"company",className:"text-sm text-muted-foreground",children:"Company (optional)"}),u.jsx(Zl,{id:"company",className:"bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue",...i("company")})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{htmlFor:"intent",className:"text-sm text-muted-foreground",children:"What you want"}),u.jsxs("select",{id:"intent",className:"flex h-10 w-full rounded-md border border-braintrailz-blue/20 bg-braintrailz-dark px-3 py-2 text-sm text-foreground",...i("intent"),children:[u.jsx("option",{value:"idea",children:"I have an idea"}),u.jsx("option",{value:"half-day",children:"Half-day strategy session"}),u.jsx("option",{value:"engaged",children:"CTO Engaged"}),u.jsx("option",{value:"advisor",children:"CTO Advisor"}),u.jsx("option",{value:"other",children:"Not sure yet"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("label",{htmlFor:"message",className:"text-sm text-muted-foreground",children:"Tell me about it"}),u.jsx(wT,{id:"message",placeholder:"The idea or the problem. What does done look like in 90 days?",className:`bg-braintrailz-dark border-braintrailz-blue/20 focus:border-braintrailz-blue min-h-[150px] ${l.message?"border-red-500":""}`,...i("message",{required:"A short note helps me reply well",minLength:{value:10,message:"Give me at least a sentence"}})}),l.message&&u.jsx("p",{className:"text-sm text-red-500",children:l.message.message})]}),u.jsx(Nt,{type:"submit",className:"w-full bg-gradient-hero hover:opacity-90 text-white",disabled:t,children:t?"Sending...":u.jsxs(u.Fragment,{children:[u.jsx(Wk,{className:"mr-2 h-4 w-4"})," Send"]})}),u.jsxs("p",{className:"text-xs text-center text-muted-foreground mt-4",children:["Or email"," ",u.jsx("a",{href:"mailto:info@codemarc.net",className:"text-braintrailz-blue hover:underline",children:"info@codemarc.net"})]})]})]}),u.jsx("div",{className:"flex flex-col justify-center",children:u.jsxs("div",{className:"space-y-8",children:[u.jsx("h3",{className:"text-xl font-bold",children:"Direct"}),u.jsxs("div",{className:"flex items-start",children:[u.jsx("div",{className:"mr-4 mt-1",children:u.jsx(_k,{className:"h-5 w-5 text-braintrailz-blue"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium",children:"Email"}),u.jsx("a",{href:"mailto:info@codemarc.net",className:"text-muted-foreground hover:text-braintrailz-blue",children:"info@codemarc.net"})]})]}),u.jsxs("div",{className:"flex items-start",children:[u.jsx("div",{className:"mr-4 mt-1",children:u.jsx(jk,{className:"h-5 w-5 text-braintrailz-blue"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium",children:"Phone"}),u.jsx("a",{href:"tel:+15612310111",className:"text-muted-foreground hover:text-braintrailz-blue",children:"+1 (561) 231-0111"})]})]}),u.jsxs("div",{className:"flex items-start",children:[u.jsx("div",{className:"mr-4 mt-1",children:u.jsx(Sk,{className:"h-5 w-5 text-braintrailz-blue"})}),u.jsxs("div",{children:[u.jsx("h4",{className:"font-medium",children:"Where"}),u.jsx("p",{className:"text-muted-foreground",children:"Delray Beach, FL. Remote first. On site when the work needs it."})]})]})]})})]})]})]})},K5=[{to:"/",label:"Work with me",state:{scrollTo:"offer"}},{to:"/pricing",label:"Pricing"},{to:"/blog",label:"Blog"}],X5=[{to:"/privacy",label:"Privacy"},{to:"/terms",label:"Terms"},{to:"/sitemap",label:"Sitemap"}],Vt=()=>{const e=new Date().getFullYear();return u.jsx("footer",{className:"bg-braintrailz-darker py-12 border-t border-braintrailz-blue/20",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs(ft,{to:"/",className:"inline-block text-2xl font-bold text-foreground",children:["Brain",u.jsx("span",{className:"text-gradient",children:"Trailz"})]}),u.jsxs("div",{className:"mt-2 flex flex-col gap-6 sm:flex-row sm:items-start sm:justify-between",children:[u.jsxs("div",{children:[u.jsxs("p",{className:"text-muted-foreground max-w-md",children:["The practice of Marc J. Greenberg ",u.jsx("br",{}),"Fractional CTO and AI advisor"]}),u.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Invoiced by"," ",u.jsx("a",{href:"https://codemarc.net",className:"hover:text-braintrailz-blue",children:"Codemarc Consulting LLC"}),". Delray Beach, FL."]})]}),u.jsxs("div",{className:"flex flex-col gap-3 sm:items-end",children:[u.jsx("nav",{"aria-label":"Footer",className:"flex flex-wrap gap-x-5 gap-y-2 text-sm text-muted-foreground sm:justify-end",children:K5.map(t=>u.jsx(ft,{to:t.to,state:t.state,className:"hover:text-braintrailz-blue",children:t.label},t.label))}),u.jsxs("div",{className:"flex space-x-4",children:[u.jsxs("a",{href:"https://github.com/braintrailz",className:"text-muted-foreground hover:text-braintrailz-blue",children:[u.jsx("span",{className:"sr-only",children:"GitHub"}),u.jsx("svg",{role:"img",viewBox:"0 0 24 24",className:"h-5 w-5 fill-current","aria-hidden":"true",children:u.jsx("path",{d:"M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"})})]}),u.jsxs("a",{href:"https://x.com/braintrailz",className:"text-muted-foreground hover:text-braintrailz-blue",children:[u.jsx("span",{className:"sr-only",children:"X"}),u.jsx("svg",{role:"img",viewBox:"0 0 24 24",className:"h-5 w-5 fill-current","aria-hidden":"true",children:u.jsx("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})})]}),u.jsxs("a",{href:"https://www.linkedin.com/in/grey-matters-13535835b",className:"text-muted-foreground hover:text-braintrailz-blue",children:[u.jsx("span",{className:"sr-only",children:"LinkedIn"}),u.jsx("svg",{role:"img",viewBox:"0 0 24 24",className:"h-5 w-5 fill-current","aria-hidden":"true",children:u.jsx("path",{d:"M22 3.47059V20.5294C22 20.9194 21.845 21.2935 21.5692 21.5693C21.2935 21.8451 20.9194 22 20.5294 22H3.47056C3.08053 22 2.70648 21.8451 2.43069 21.5693C2.15491 21.2935 1.99997 20.9194 1.99997 20.5294V3.47059C1.99997 3.08056 2.15491 2.70651 2.43069 2.43073C2.70648 2.15494 3.08053 2 3.47056 2H20.5294C20.9194 2 21.2935 2.15494 21.5692 2.43073C21.845 2.70651 22 3.08056 22 3.47059ZM7.88232 9.64706H4.94115V19.0588H7.88232V9.64706ZM8.14703 6.41176C8.14858 6.18929 8.10629 5.96869 8.02258 5.76255C7.93888 5.55642 7.81539 5.36879 7.65916 5.21039C7.50294 5.05198 7.31705 4.92589 7.1121 4.83933C6.90715 4.75277 6.68715 4.70742 6.46468 4.70588H6.41173C5.95931 4.70588 5.52541 4.88561 5.20549 5.20552C4.88558 5.52544 4.70585 5.95934 4.70585 6.41176C4.70585 6.86419 4.88558 7.29809 5.20549 7.61801C5.52541 7.93792 5.95931 8.11765 6.41173 8.11765ZM19.0588 13.3412C19.0588 10.5118 17.2588 9.41177 15.4706 9.41177C14.8851 9.38245 14.3021 9.50715 13.7798 9.77345C13.2576 10.0397 12.8142 10.4383 12.4941 10.9294H12.4117V9.64706H9.64703V19.0588H12.5882V14.0529C12.5457 13.5403 12.7072 13.0315 13.0376 12.6372C13.368 12.2429 13.8407 11.9949 14.3529 11.9471H14.4647C15.4 11.9471 16.0941 12.5353 16.0941 14.0176V19.0588H19.0353L19.0588 13.3412Z"})})]})]})]})]}),u.jsx("div",{className:"border-t border-braintrailz-blue/10 my-8"}),u.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between text-sm text-muted-foreground",children:[u.jsx("p",{children:u.jsxs("a",{href:"/analytics",className:"hover:text-braintrailz-blue",children:["© ",e," Codemarc Consulting LLC. All rights reserved."]})}),u.jsxs("div",{className:"flex flex-wrap gap-x-6 gap-y-2",children:[X5.map(t=>u.jsx(ft,{to:t.to,className:"hover:text-braintrailz-blue",children:t.label},t.to)),u.jsx("a",{href:"/old-trail/",className:"hover:text-braintrailz-blue",children:"Old trail"})]})]})]})})},J5=()=>{const e=Br();return T.useEffect(()=>{var t;if((t=e.state)!=null&&t.scrollTo){const n=document.getElementById(e.state.scrollTo);n&&n.scrollIntoView({behavior:"smooth"});return}window.scrollTo(0,0)},[e]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsx(k6,{}),u.jsx(_6,{}),u.jsx(A5,{}),u.jsx(p5,{}),u.jsx(k5,{}),u.jsx(g5,{}),u.jsx(x5,{}),u.jsx(b5,{}),u.jsx(v5,{}),u.jsx(Q5,{}),u.jsx(Vt,{})]})},CT=()=>{const e=Br();return T.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"min-h-screen flex items-center justify-center bg-braintrailz-darker text-foreground",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),u.jsx("p",{className:"text-xl text-muted-foreground mb-4",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-braintrailz-blue hover:underline",children:"Return to Home"})]})})},Bn=T.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:It("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Bn.displayName="Card";const Un=T.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:It("flex flex-col space-y-1.5 p-6",e),...t}));Un.displayName="CardHeader";const Hn=T.forwardRef(({className:e,...t},n)=>u.jsx("h3",{ref:n,className:It("text-2xl font-semibold leading-none tracking-tight",e),...t}));Hn.displayName="CardTitle";const Z5=T.forwardRef(({className:e,...t},n)=>u.jsx("p",{ref:n,className:It("text-sm text-muted-foreground",e),...t}));Z5.displayName="CardDescription";const zn=T.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:It("p-6 pt-0",e),...t}));zn.displayName="CardContent";const Rc=T.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:It("flex items-center p-6 pt-0",e),...t}));Rc.displayName="CardFooter";const Zp=X.forwardRef(({href:e,children:t,className:n="",icon:r,style:i,tooltip:a},s)=>{const o=f=>{try{return`https://www.google.com/s2/favicons?domain=${new URL(f).hostname}&sz=32`}catch{return""}},l=o(r)||o(e),c=u.jsxs("a",{ref:s,href:e,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-muted-foreground hover:text-braintrailz-blue transition-colors group ${n}`,style:i,children:[l&&u.jsx("img",{src:l,alt:"",className:"w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity"}),u.jsx("span",{className:"text-left",children:t})]});return a?u.jsxs(X_,{delayDuration:0,children:[u.jsx(J_,{asChild:!0,children:c}),u.jsx(o2,{side:"top",className:"z-[100] bg-braintrailz-dark border-braintrailz-blue/20 text-foreground",children:a})]}):c});Zp.displayName="FaviconLink";const eO="September 30, 2026",jt=(e,t)=>u.jsx(e,{className:`h-7 w-7 shrink-0 ${t}`}),Wi="text-braintrailz-blue",ci="text-braintrailz-purple",tO="text-sm [&_img]:size-5 [&_img]:opacity-90",nO=[{title:"SpaceX",icon:jt(Hk,Wi),facets:[{label:"Chat",tools:[{text:"Grok",href:"https://grok.com",icon:"https://x.com"},{text:"Imagine",href:"https://grok.com/image",icon:"https://x.com"}]},{label:"Code",tools:[{text:"Grok Build",href:"https://x.ai/cli"}]},{label:"Assistant",tools:[{text:"Grok Bot",href:"https://x.ai/bot",tooltip:"AI teammates on a cloud computer."}]},{label:"Harness",tools:[{text:"Cursor",href:"https://cursor.com"},{text:"Cursor CLI",href:"https://cursor.com/cli"}]}]},{title:"Anthropic",icon:jt(kp,ci),facets:[{label:"Chat",tools:[{text:"Claude",href:"https://claude.ai"}]},{label:"Code",tools:[{text:"Claude Code",href:"https://claude.com/product/claude-code"}]},{label:"Assistant",tools:[{text:"Claude Cowork",href:"https://claude.com/blog/cowork-is-now-claude",tooltip:"Merging into Claude."}]},{label:"Design",tools:[{text:"Claude Design",href:"https://claude.com/product/design"}]}]},{title:"OpenAI",icon:jt(wk,Wi),facets:[{label:"Chat",tools:[{text:"ChatGPT",href:"https://chatgpt.com"}]},{label:"Code",tools:[{text:"Codex",href:"https://github.com/openai/codex"}]},{label:"Assistant",tools:[{text:"Work",href:"https://chatgpt.com/work/",tooltip:"Turns a goal into a finished deliverable across your apps and files."}]},{label:"Design",tools:[{text:"Images",href:"https://chatgpt.com/images/"}]}]},{title:"Google",icon:jt(Tk,Wi),facets:[{label:"Chat",tools:[{text:"Gemini",href:"https://gemini.google.com"},{text:"AI Studio",href:"https://aistudio.google.com/"}]},{label:"Code",tools:[{text:"Gemini CLI",href:"https://github.com/google-gemini/gemini-cli"}]},{label:"Assistant",tools:[{text:"NotebookLM",href:"https://notebooklm.google.com"}]},{label:"Video / Image",tools:[{text:"Flow",href:"https://flow.google.com/"},{text:"Veo",href:"https://deepmind.google/models/veo/"}]}]},{title:"Meta",icon:jt(Dk,ci),facets:[{label:"Chat",tools:[{text:"Meta.ai",href:"https://meta.ai"}]},{label:"Code",tools:[{text:"Muse Code",href:"https://dev.meta.ai/"}]},{label:"Assistant",tools:[{text:"Muse",href:"https://muse.ai",tooltip:"Personal agent. Distinct from Muse Code."}]},{label:"",tools:[]},{label:"",tools:[]},{label:"",tools:[]}]},{title:"Microsoft",icon:jt(fk,ci),facets:[{label:"Chat",tools:[{text:"Copilot",href:"https://copilot.microsoft.com",tooltip:"Newly viable. Worth pursuing."}]},{label:"Code",tools:[{text:"GitHub Copilot CLI",href:"https://github.com/github/copilot-cli/blob/main/README.md"}]},{label:"Workflow",tools:[{text:"Copilot Studio",href:"https://copilotstudio.microsoft.com"}]},{label:"",tools:[]},{label:"",tools:[]}]},{title:"Open source",icon:jt(gk,Wi),facets:[{label:"Hub",tools:[{text:"Hugging Face",href:"https://huggingface.co"}]},{label:"Code",tools:[{text:"OpenCode",href:"https://opencode.ai/docs/"}]},{label:"Harness",tools:[{text:"Ollama",href:"https://ollama.com/"},{text:"NVIDIA Build",href:"https://build.nvidia.com/"}]},{label:"Video / Image",tools:[{text:"Wan",href:"https://wan.video/",tooltip:"Alibaba. Open video and image."},{text:"Comfy",href:"https://www.comfy.org/",tooltip:"Open node graph for image and video."}]}]},{title:"China",icon:jt(Ak,ci),facets:[{label:"Chat",tools:[{text:"Deepseek",href:"https://deepseek.com"},{text:"Qwen",href:"https://chat.qwen.ai/",tooltip:"Alibaba"},{text:"Kimi",href:"https://www.kimi.com",tooltip:"Moonshot"},{text:"Kimi Work",href:"https://www.kimi.com/products/kimi-work",tooltip:"Moonshot. Desktop agent for local files and long tasks."}]},{label:"Code",tools:[{text:"Qwen",href:"https://github.com/QwenLM/qwen-code",tooltip:"Alibaba"},{text:"Kimi",href:"https://github.com/MoonshotAI/kimi-code",tooltip:"Moonshot"}]},{label:"Harness",tools:[{text:"DeepSeek Harness",href:"https://www.deepseek.com/en/harness/",tooltip:"Open-source agent harness. Launch with dsh."}]},{label:"",tools:[]},{label:"",tools:[]}]}],rO=[{title:"Audio",icon:jt(Ok,ci),facets:[{tools:[{text:"ElevenLabs",href:"https://elevenlabs.io"}]}]},{title:"Go Pro",icon:jt(hE,Wi),grid:!0,facets:[{tools:[{text:"Remotion",href:"https://www.remotion.dev/",tooltip:"Make videos programmatically."},{text:"Higgsfield",href:"https://higgsfield.ai/"},{text:"HeyGen",href:"https://www.heygen.com/"},{text:"Mux",href:"https://www.mux.com/"}]}]},{title:"Design",icon:jt(Fk,ci),facets:[{tools:[{text:"Gamma",href:"https://gamma.app"},{text:"Fontsource",href:"https://fontsource.org/"}]},{tools:[{text:"",href:""},{text:"",href:""},{text:"",href:""}]}]},{title:"Decisions",icon:jt(zk,Wi),facets:[{tools:[{text:"Jev",href:"https://openrouter.ai/docs/guides/community/jev",tooltip:"TypeSafe. Typed decisions with probabilities."}]}]}],iO={title:"Base Camp",icon:jt(yE,ci),full:!0,facets:[{label:"",tools:[{text:"Google",href:"https://www.google.com/search?udm=50"}]},{label:"",tools:[{text:"Cursor",href:"https://cursor.com"}]},{label:"",tools:[{text:"Granola",href:"https://www.granola.ai/"}]},{label:"",tools:[{text:"Superhuman",href:"https://superhuman.com"}]},{label:"",tools:[{text:"Superwhisper",href:"https://superwhisper.com"}]},{label:"",tools:[{text:"Lovable",href:"https://lovable.dev"}]},{label:"",tools:[{text:"Supabase",href:"https://supabase.com"}]},{label:"",tools:[{text:"Meet",href:"https://chat.google.com/u/1/app/home"}]},{label:"",tools:[{text:"Zoom",href:"https://zoom.us/"}]},{label:"",tools:[{text:"Apollo",href:"https://www.apollo.io/"}]}]},aO=[{title:"Thinking aHead",icon:jt(fE,ci),span:!0,html:u.jsxs("p",{className:"text-md italic text-foreground/80 mb-2 text-center",style:{marginTop:"-1rem"},children:[u.jsx("a",{href:"https://www.lennysnewsletter.com/",children:"Lenny's Newsletter"}),u.jsx("br",{}),u.jsx("br",{}),u.jsx("a",{href:"https://www.youtube.com/@t3dotgg",children:"Theo Browne"}),"        ",u.jsx("a",{href:"https://addyosmani.com/",children:"Addy Osmani"}),u.jsx("br",{}),u.jsx("br",{}),u.jsx("a",{href:"https://a16z.com/ai/",children:"a16z 100"}),"          ",u.jsx("a",{href:"https://www.youtube.com/@allin",children:"All-In"}),"          ",u.jsx("a",{href:"https://www.synthesia.io/post/ai-tools/",children:"Synthesia"}),u.jsx("br",{}),u.jsx("br",{}),u.jsx("a",{href:"https://github.com/steven2358/awesome-generative-ai?tab=readme-ov-file",children:"Awesome Generative AI"})]})},{title:"Sustainable Development",icon:jt(xE,Wi),iconHref:"/backpack/old",span:!0,html:u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"text-lg italic text-foreground/80 mb-2 text-center",style:{marginTop:"-1rem"},children:"Sometimes you need to lighten up the load"}),u.jsx("p",{className:"text-center text-sm mb-4",children:u.jsx("a",{href:"/trailcraft/repack",className:"text-braintrailz-blue hover:text-foreground transition-colors",children:"Ready to Repack? Preserve what the trail taught you."})}),u.jsxs("div",{className:"text-sm leading-relaxed text-left text-foreground/70",children:[u.jsx("a",{href:"https://app.gluegroups.com",children:"[Glue]"})," - was not sticky enough  •  "," ",u.jsx("a",{href:"https://linear.app/",children:"[Linear]"})," - done for now replaced with jira/confluence  •   ",u.jsx("a",{href:"https://www.tabnine.com/",children:"[Tabnine]"})," - not used anymore  •   ",u.jsx("a",{href:"https://windsurf.com",children:"[Windsurf]"})," - done for now replaced with Antigravity  •   ",u.jsx("a",{href:"https://openclaw.ai/",children:"[OpenClaw]"})," - too much hype, not enough substance  •   ",u.jsx("a",{href:"https://prisma.io",children:"[Prisma]"})," - replaced with Drizzle for T3 type-safety  •   ",u.jsx("a",{href:"https://devin.ai/",children:"[Devin]"})," - usage-based billing friction  •   ",u.jsx("a",{href:"https://fine.dev",children:"[Fine]"})," - not used anymore  •   ",u.jsx("a",{href:"https://bubble.io/",children:"[Bubble]"})," - not used anymore  •   ",u.jsx("a",{href:"https://retool.com/",children:"[Retool]"})," - not used anymore"]})]})}],sO=({tools:e,grid:t})=>{const n=t?"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-3":"flex flex-wrap gap-x-5 gap-y-2.5";return u.jsx("div",{className:n,children:e.map(r=>u.jsx(Zp,{href:r.href,icon:r.icon,tooltip:r.tooltip,className:tO,children:r.text},r.text))})},oO=({card:e})=>{var t;return u.jsxs(Bn,{className:`h-full bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover flex flex-col ${e.full?"md:col-span-4":e.span?"md:col-span-2":""}`,children:[u.jsx(Un,{className:"pb-3 pt-5",children:u.jsxs(Hn,{className:"text-xl flex xxxitems-center xxjustify-center gap-2.5",children:[e.iconHref?u.jsx(ft,{to:e.iconHref,"aria-label":"Old backpack",title:"Old backpack",className:"inline-flex rounded-sm hover:opacity-70",children:e.icon}):e.icon,e.title]})}),u.jsx(zn,{className:"flex-grow pb-6",children:e.html?e.html:u.jsx("div",{className:e.full?"grid grid-cols-2 lg:grid-cols-5 gap-x-8 gap-y-6":"space-y-4",children:(t=e.facets)==null?void 0:t.map(n=>u.jsxs("div",{children:[n.label?u.jsx("p",{className:"mb-1.5 text-[11px] font-semibold uppercase tracking-wider text-braintrailz-blue/80",children:n.label}):null,u.jsx(sO,{tools:n.tools,grid:e.grid})]},n.label??e.title))})})]})},Il=({title:e,cards:t})=>u.jsxs("div",{className:"mb-12",children:[u.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-[0.2em] text-muted-foreground",children:e}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 items-stretch",children:t.map(n=>u.jsx(oO,{card:n},n.title))})]}),lO=()=>(T.useEffect(()=>{window.scrollTo(0,0)},[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[u.jsx(aa,{className:"inline h-9 w-9 mb-2 mr-1"}),u.jsx("span",{className:"text-gradient",children:"Back"}),"Pack"]}),u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Last updated ",eO]}),u.jsx("p",{className:"text-lg italic text-muted-foreground mt-0",children:"Every trailblazer needs the right tools."})]})})}),u.jsx("section",{className:"py-8 bg-braintrailz-darker",children:u.jsxs("div",{className:"container-custom",children:[u.jsx(Il,{title:"The stuff I use every day.",cards:[iO]}),u.jsx(Il,{title:"Frontier",cards:nO}),u.jsx(Il,{title:"Special purpose",cards:rO}),u.jsx(Il,{title:"The trail",cards:aO})]})})]}),u.jsx(Vt,{})]})),uO="August 23, 2026",cO=e=>{switch(e){case 2:return"col-span-2";case 3:return"col-span-3";default:return""}},dO=e=>{switch(e){case 2:return"md:col-span-2 lg:col-span-2";case 3:return"md:col-span-2 lg:col-span-3";default:return""}},fO=()=>{T.useEffect(()=>{window.scrollTo(0,0)},[]);const e=[{icon:u.jsx(mk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Good Vibes",description:[{text:"Lovable",link:"https://lovable.dev"},{text:"Replit",link:"https://replit.com"},{text:"Base44",link:"https://base44.com/"},{text:"Softgen",link:"https://softgen.ai"},{text:"Bolt",link:"https://bolt.new"},{text:"v0",link:"https://v0.dev/"},{text:"Refine",link:"https://ai.refine.dev/"},{text:"Rork",link:"https://rork.com/"},{text:"Ghostty",link:"https://ghostty.org/"},{text:"Fontsource",link:"https://fontsource.org/"},{text:"Drizzle",link:"https://drizzle.team"},{text:"n8n",link:"https://n8n.io/"},{text:"Obot",link:"https://obot.ai/"}],category:[]},{icon:u.jsx(mE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Trail Guidez",description:[{text:"Cursor",link:"https://cursor.sh"},{text:"Antigravity",link:"https://antigravity.google/blog"},{text:"Trae",link:"https://www.trae.ai"},{text:"Kilo",link:"https://kilo.ai/"},{text:"Ollama",link:"https://ollama.com/"},{text:"Continue",link:"https://www.continue.dev/"},{text:"Goose",link:"https://goose-docs.ai/",cols:1}],category:[]},{icon:u.jsx(yE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Base Camp",description:[{text:"Gamma",link:"https://gamma.app"},{text:"Granola",link:"https://www.granola.ai/"},{text:"Notebook",link:"https://notebooklm.google.com"},{text:"Tally",link:"https://tally.so"},{text:"Taskade",link:"https://taskade.com"},{text:"Tidycal",link:"https://tidycal.com"},{text:"ChatPRD",link:"https://chatprd.com/"},{font:10,text:"Superwhisper",link:"https://superwhisper.com",cols:1},{text:"ElevenLabs",link:"https://elevenlabs.io",cols:1},{font:10,text:"Superhuman",link:"https://superhuman.com",cols:1},{text:"Apollo",link:"https://www.apollo.io/"}],category:[]},{icon:u.jsx(bk,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),title:"Search and Chat",description:[{text:"Deepseek",link:"https://deepseek.com",cols:1},{text:"T3 Chat",link:"https://t3.chat"},{text:"Grok",link:"https://grok.com",icon:"https://x.com"},{text:"Claude",link:"https://anthropic.com"},{text:"ChatGPT",link:"https://chatgpt.com"},{text:"Perplexity",link:"https://perplexity.ai"},{text:"Gemini",link:"https://gemini.google.com"},{text:"Google AI Studio",link:"https://aistudio.google.com/",cols:1},{text:"Meta.ai",link:"https://meta.ai"},{text:"Qwen",link:"https://chat.qwen.ai/",tooltip:"Alibaba Cloud"},{text:"Huggingface",link:"https://huggingface.co",cols:1}],category:[]},{icon:u.jsx(pk,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),title:"Terminal / CLI",description:[{font:10,text:"Codex",link:"https://github.com/openai/codex"},{font:10,text:"Claude Code",link:"https://claude.com/product/claude-code"},{font:10,text:"Cursor CLI",link:"https://cursor.com/cli"},{font:10,text:"Grok Build",link:"https://x.ai/cli"},{font:10,text:"Muse Code",link:"https://dev.meta.ai/"},{font:10,text:"T3 Code",link:"https://t3.gg"},{font:10,text:"Gemini CLI",link:"https://github.com/google-gemini/gemini-cli"},{font:10,text:"AWS Q CLI",link:"https://aws.amazon.com/developer/learning/q-developer-cli/"},{font:10,text:"OpenCode",link:"https://opencode.ai/docs/"}],category:[]},{icon:u.jsx(fE,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),title:"Thinking aHead",html:u.jsx(u.Fragment,{children:u.jsxs("p",{className:"text-md italic text-muted-foreground mb-2 text-center",style:{marginTop:"-1rem"},children:[u.jsx("a",{href:"https://www.lennysnewsletter.com/",children:"Lenny's Newsletter"}),u.jsx("br",{}),u.jsx("br",{}),u.jsx("a",{href:"https://www.youtube.com/@t3dotgg",children:"Theo Browne"}),"        ",u.jsx("a",{href:"https://addyosmani.com/",children:"Addy Osmani"}),u.jsx("br",{}),u.jsx("br",{}),u.jsx("a",{href:"https://a16z.com/ai/",children:"a16z 100"}),"          ",u.jsx("a",{href:"https://www.youtube.com/@allin",children:"All-In"}),"          ",u.jsx("a",{href:"https://www.synthesia.io/post/ai-tools/",children:"Synthesia"}),u.jsx("br",{}),u.jsx("br",{}),u.jsx("a",{href:"https://github.com/steven2358/awesome-generative-ai?tab=readme-ov-file",children:"Awesome Generative AI"})]})}),category:[]},{icon:u.jsx(Bk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Mining for Gold",description:[{text:"Grok Bot",link:"https://x.ai/bot",tooltip:"AI teammates on a cloud computer."},{text:"Cline",link:"https://github.com/cline/cline"},{text:"Pi.dev",link:"https://pi.dev/",tooltip:"a minimal agent harness."},{text:"OpenHands",link:"https://www.openhands.dev/"},{text:"OpenManus",link:"https://github.com/FoundationAgents/OpenManus"},{text:"NVIDIABuild",link:"https://build.nvidia.com/"},{text:"MixRoute",link:"https://mixroute.ai/"}],category:[]},{icon:u.jsx(hE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Go Pro",description:[{text:"Remotion",link:"https://www.remotion.dev/",tooltip:"Make videos programmatically."},{text:"Veo",link:"https://deepmind.google/models/veo/"},{text:"Higgsfield",link:"https://higgsfield.ai/"},{text:"HeyGen",link:"https://www.heygen.com/"},{text:"Whisk",link:"https://labs.google/fx/tools/whisk"},{text:"Mux",link:"https://www.mux.com/"}],category:[]},{icon:u.jsx(xE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),title:"Sustainable Development",html:u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"text-lg italic text-muted-foreground mb-2 text-center",style:{marginTop:"-1rem"},children:"Sometimes you need to lighten up the load"}),u.jsx("p",{className:"text-center text-sm mb-4",children:u.jsx("a",{href:"/trailcraft/repack",className:"text-braintrailz-blue hover:text-foreground transition-colors",children:"Ready to Repack? Preserve what the trail taught you."})}),u.jsxs("div",{className:"min-h-36 text-xs text-left text-muted-foreground",children:[u.jsx("a",{href:"https://app.gluegroups.com",children:"[Glue]"})," - was not sticky enough  •   ",u.jsx("a",{href:"https://linear.app/",children:"[Linear]"})," - done for now replaced with jira/confluence  •   ",u.jsx("a",{href:"https://www.tabnine.com/",children:"[Tabnine]"})," - not used anymore  •   ",u.jsx("a",{href:"https://windsurf.com",children:"[Windsurf]"})," - done for now replaced with Antigravity  •   ",u.jsx("a",{href:"https://openclaw.ai/",children:"[OpenClaw]"})," - too much hype, not enough substance  •   ",u.jsx("a",{href:"https://prisma.io",children:"[Prisma]"})," - replaced with Drizzle for T3 type-safety  •   ",u.jsx("a",{href:"https://devin.ai/",children:"[Devin]"})," - usage-based billing friction    •   ",u.jsx("a",{href:"https://fine.dev",children:"[Fine]"})," - not used anymore  •   ",u.jsx("a",{href:"https://bubble.io/",children:"[Bubble]"})," - not used anymore  •   ",u.jsx("a",{href:"https://retool.com/",children:"[Retool]"})," - not used anymore"]})]}),category:[]}];return u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[u.jsx(aa,{className:"inline h-9 w-9 mb-2 mr-1"}),u.jsx("span",{className:"text-gradient",children:"Back"}),"Pack"]}),u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Last updated ",uO]}),u.jsx("p",{className:"text-lg italic text-muted-foreground mt-0",children:"Every trailblazer needs the right tools."})]})})}),u.jsx("section",{className:"py-8 bg-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(t=>u.jsxs(Bn,{className:`bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover min-h-[280px] flex flex-col ${dO(t.cols)}`,children:[u.jsx(Un,{children:u.jsxs(Hn,{className:"text-xl text-center flex items-center justify-center gap-2",children:[u.jsx("span",{className:"pr-1 mt-3 text-lg",children:t.icon}),t.title]})}),u.jsx(zn,{className:"flex-grow",children:"html"in t&&t.html?t.html:Array.isArray(t.description)?u.jsx("div",{className:"grid grid-cols-3 gap-x-6 gap-y-4",children:t.description.map((n,r)=>{var s;if(!((s=n.text)!=null&&s.trim()))return u.jsx("div",{className:"h-6"},`${t.title}-empty-${r}`);const i=typeof n.font=="string"?n.font:"",a=typeof n.font=="number"?{fontSize:`${n.font}pt`}:void 0;return u.jsx(Zp,{href:n.link,icon:n.icon,tooltip:n.tooltip,className:`justify-start ${cO(n.cols)}${i?` ${i}`:""}`,style:a,children:n.text},`${t.title}-desc-${r}`)})}):u.jsx("p",{className:"text-muted-foreground text-center",children:t.description})}),u.jsx(Rc,{className:"justify-center gap-2",children:Array.isArray(t.category)?t.category.map((n,r)=>u.jsx("span",{className:"text-xs text-braintrailz-blue bg-braintrailz-blue/10 px-3 py-1 rounded-full",children:n},`${t.title}-${n}-${r}`)):u.jsx("span",{className:"text-xs text-braintrailz-blue bg-braintrailz-blue/10 px-3 py-1 rounded-full",children:t.category})})]},`tool-${t.title}`))})})})]}),u.jsx(Vt,{})]})},hO=()=>(T.useEffect(()=>{window.scrollTo(0,0)},[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsx("main",{children:u.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:[u.jsx(vk,{className:"inline h-9 w-9 mb-2 mr-1"}),u.jsx("span",{className:"text-gradient",children:"Meet "}),"Grey Matters"]}),u.jsxs("p",{className:"text-lg italic text-muted-foreground mt-0",children:["Every trailblazer needs a right hand man to help them find ",u.jsx("br",{}),"the right path, right focus, right tools and right mindset."]})]}),u.jsx("div",{className:"my-10 flex justify-center",children:u.jsxs("video",{autoPlay:!0,controls:!0,className:"w-full max-w-2xl rounded-lg shadow-lg",poster:"/greymatters-poster.png",children:[u.jsx("source",{src:"https://codemarc.net/vids/v2/video.mp4",type:"video/mp4"}),u.jsx("track",{kind:"captions"}),"Your browser does not support the video tag."]})}),u.jsxs("div",{className:"my-10 flex justify-center",children:[u.jsx(Nt,{variant:"link",className:"border-braintrailz-blue text-foreground hover:bg-braintrailz-blue/10 px-4 py-2 text-xs mr-6",onClick:()=>window.open("https://chatgpt.com/g/g-D2Dqz1XIy-voice-style-tone-ai-prompt-snippet-generator","_blank"),title:"Voice/Style/Tone AI Prompt Snippet Generator",children:"vst4chatgpt"}),u.jsx(Nt,{variant:"link",className:"border-braintrailz-blue text-foreground hover:bg-braintrailz-blue/10 px-4 py-2 text-xs mr-6",onClick:()=>window.open("https://runwayml.com","_blank"),title:"a cloud-based ai platform to create, edit, and enhance visual content",children:"runwayml.com"}),u.jsx(Nt,{variant:"link",className:"border-braintrailz-blue text-foreground hover:bg-braintrailz-blue/10 px-4 py-2 text-xs mr-6",onClick:()=>window.open("https://heygen.com","_blank"),title:"Create and translate videos with AI",children:"heygen.com"})]})]})})}),u.jsx(Vt,{})]})),pO=()=>u.jsxs(u.Fragment,{children:[u.jsx($t,{}),u.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:u.jsxs("div",{className:"container-custom pt-32 pb-16",children:[u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Terms of Service"}),u.jsxs("div",{className:"prose prose-invert max-w-none",children:[u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Acceptance of Terms"}),u.jsx("p",{className:"text-muted-foreground",children:"By accessing and using Braintrailz's services, you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use our services."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. Description of Service"}),u.jsx("p",{className:"text-muted-foreground",children:"Braintrailz provides AI-powered development tools and services designed to enhance the software development process. Our services may include, but are not limited to, code analysis, development assistance, and related tools."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. User Responsibilities"}),u.jsx("p",{className:"text-muted-foreground",children:"Users are responsible for maintaining the confidentiality of their account information and for all activities that occur under their account. Users must not use our services for any illegal or unauthorized purposes."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Intellectual Property"}),u.jsx("p",{className:"text-muted-foreground",children:"All content, features, and functionality of our services are owned by Braintrailz and are protected by international copyright, trademark, and other intellectual property laws."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. Limitation of Liability"}),u.jsx("p",{className:"text-muted-foreground",children:"Braintrailz shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use or inability to use our services."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Changes to Terms"}),u.jsx("p",{className:"text-muted-foreground",children:"We reserve the right to modify these terms at any time. We will notify users of any material changes by posting the new terms on this page."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. Contact Information"}),u.jsx("p",{className:"text-muted-foreground",children:"For any questions about these Terms of Service, please contact us at support@braintrailz.com"})]}),u.jsx("div",{className:"text-sm text-muted-foreground mt-12",children:u.jsxs("p",{children:["Last updated: ",new Date().toLocaleDateString()]})})]})]})}),u.jsx(Vt,{})]}),mO=()=>u.jsxs(u.Fragment,{children:[u.jsx($t,{}),u.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:u.jsxs("div",{className:"container-custom pt-32 pb-16",children:[u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Privacy Policy"}),u.jsxs("div",{className:"prose prose-invert max-w-none",children:[u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Introduction"}),u.jsx("p",{className:"text-muted-foreground",children:"At Braintrailz, we take your privacy seriously. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our services. Please read this privacy policy carefully. If you do not agree with the terms of this privacy policy, please do not access our services."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. Information We Collect"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:"We may collect information about you in various ways, including:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:"Personal information (name, email address, company information)"}),u.jsx("li",{children:"Usage data (how you interact with our services)"}),u.jsx("li",{children:"Technical data (IP address, browser type, device information)"}),u.jsx("li",{children:"Code and project data (when using our development tools)"})]})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. How We Use Your Information"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:"We use the information we collect to:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:"Provide and maintain our services"}),u.jsx("li",{children:"Improve and personalize your experience"}),u.jsx("li",{children:"Communicate with you about updates and support"}),u.jsx("li",{children:"Analyze usage patterns to enhance our services"}),u.jsx("li",{children:"Protect against unauthorized access and fraud"})]})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Data Security"}),u.jsx("p",{className:"text-muted-foreground",children:"We implement appropriate technical and organizational security measures to protect your personal information. However, no method of transmission over the Internet or electronic storage is 100% secure, and we cannot guarantee absolute security."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. Data Sharing and Disclosure"}),u.jsx("p",{className:"text-muted-foreground",children:"We may share your information with:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:"Service providers who assist in our operations"}),u.jsx("li",{children:"Legal authorities when required by law"}),u.jsx("li",{children:"Business partners with your consent"})]})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Your Rights"}),u.jsx("p",{className:"text-muted-foreground mb-4",children:"You have the right to:"}),u.jsxs("ul",{className:"list-disc pl-6 text-muted-foreground space-y-2",children:[u.jsx("li",{children:"Access your personal information"}),u.jsx("li",{children:"Correct inaccurate data"}),u.jsx("li",{children:"Request deletion of your data"}),u.jsx("li",{children:"Object to processing of your data"}),u.jsx("li",{children:"Data portability"})]})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. Cookies and Tracking"}),u.jsx("p",{className:"text-muted-foreground",children:"We use cookies and similar tracking technologies to track activity on our services and hold certain information. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"8. Children's Privacy"}),u.jsx("p",{className:"text-muted-foreground",children:"Our services are not intended for use by children under the age of 13. We do not knowingly collect personal information from children under 13."})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"9. Changes to This Policy"}),u.jsx("p",{className:"text-muted-foreground",children:'We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page and updating the "Last updated" date.'})]}),u.jsxs("section",{className:"mb-8",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"10. Contact Us"}),u.jsx("p",{className:"text-muted-foreground",children:"If you have any questions about this Privacy Policy, please contact us at privacy@braintrailz.com"})]}),u.jsx("div",{className:"text-sm text-muted-foreground mt-12",children:u.jsxs("p",{children:["Last updated: ",new Date().toLocaleDateString()]})})]})]})}),u.jsx(Vt,{})]}),gO=[{title:"Home",path:"/",description:"Marc J. Greenberg. Fractional CTO and AI advisor for hospitality, proptech, and payments."},{title:"Pricing",path:"/pricing",description:"Half-day, CTO Engaged, and CTO Advisor. How to hire Marc."},{title:"Blog",path:"/blog",description:"Notes and field writing from Marc."},{title:"Trailcraft",path:"/trailcraft",description:"The methods left on the trail. Gear gets you there. Craft keeps the next person on the path."},{title:"Repack",path:"/trailcraft/repack",description:"Conserve what the trail taught you. Clear the clutter. Repack for the trail ahead."},{title:"Backpack",path:"/backpack",description:"The tools Marc actually carries."},{title:"Meet Grey Matters",path:"/greymatters",description:"A right hand for path, tools, and mindset."},{title:"Terms of Service",path:"/terms",description:"Legal terms for Braintrailz services."},{title:"Privacy Policy",path:"/privacy",description:"How information is collected, used, and protected."}],yO=()=>u.jsxs(u.Fragment,{children:[u.jsx($t,{}),u.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:u.jsxs("div",{className:"container-custom pt-32 pb-16",children:[u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Sitemap"}),u.jsx("p",{className:"text-muted-foreground mb-8",children:"Every public page on Braintrailz."}),u.jsx("div",{className:"grid gap-6",children:gO.map(e=>u.jsxs("div",{className:"bg-braintrailz-dark p-6 rounded-lg border border-braintrailz-blue/20",children:[u.jsx("h2",{className:"text-2xl font-semibold mb-2",children:u.jsx("a",{href:e.path,className:"text-foreground hover:text-braintrailz-blue transition-colors",children:e.title})}),u.jsx("p",{className:"text-muted-foreground mb-2",children:e.description}),u.jsx("a",{href:e.path,className:"text-braintrailz-blue hover:text-braintrailz-blue/80 transition-colors",children:"Visit page"})]},e.path))})]})}),u.jsx(Vt,{})]}),xO=[{intent:"half-day",kicker:"Start here",name:"Half-day strategy session",price:"$7,500 + travel",descr:"4-hour working session for your team",featured:!0,features:["Prep by email for 7 to 14 days before we meet","Custom session using the Functional Technology Framework","Immediate punch list and bloodspots","Technology projects for the next 1 to 6 months"],cta:"Book a half-day"},{intent:"engaged",kicker:"90-day sprint",name:"CTO Engaged",price:"$10,000 / month",descr:"I sit in the chair as your fractional CTO",featured:!1,features:["Functional Technology Systems Map in the first 30 days","Weekly sprint planning, daily stand-ups","Hire, train, evaluate, and fire vendors, employees, and contractors","3-month minimum. Short-term, high-octane"],cta:"Talk about Engaged"},{intent:"advisor",kicker:"After we have a map",name:"CTO Advisor",price:"$5,000 / month",descr:"Strategic advisor once the path is clear",featured:!1,features:["Opens after a half-day or a 90-day Engaged sprint","Twice-monthly sprint planning, quarterly planning","Unlimited email, access to project SOPs","6-month commitment"],cta:"Talk about Advisor"}],bO=()=>{const e=Xo();T.useEffect(()=>{window.scrollTo(0,0)},[]);const t=n=>{e("/",{state:{scrollTo:"contact",intent:n}})};return u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsx("main",{className:"pt-32 pb-24",children:u.jsxs("div",{className:"container-custom",children:[u.jsxs("div",{className:"max-w-3xl mb-16",children:[u.jsx("p",{className:"text-sm font-semibold text-braintrailz-blue mb-3",children:"Marc J. Greenberg"}),u.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"How to hire me"}),u.jsx("p",{className:"text-lg text-muted-foreground",children:"Three offers. One person. Most people start with the half-day because it turns a vague AI worry into a list of work. Invoiced by Codemarc Consulting LLC."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:xO.map(n=>u.jsxs("div",{className:`flex flex-col rounded-xl border bg-braintrailz-dark p-8 ${n.featured?"border-braintrailz-blue/60 shadow-lg shadow-braintrailz-blue/10":"border-braintrailz-blue/20"}`,children:[u.jsx("div",{className:"text-sm font-semibold text-braintrailz-blue mb-2",children:n.kicker}),u.jsx("h2",{className:"text-xl font-bold",children:n.name}),u.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:n.descr}),u.jsx("p",{className:"text-lg font-semibold mt-4",children:n.price}),u.jsx("ul",{className:"mt-6 space-y-3 text-sm text-muted-foreground flex-grow",children:n.features.map(r=>u.jsxs("li",{className:"flex gap-x-3",children:[u.jsx(pE,{className:"h-5 w-5 flex-none text-braintrailz-blue","aria-hidden":"true"}),r]},r))}),u.jsx(Nt,{onClick:()=>t(n.intent),className:`mt-8 w-full ${n.featured?"bg-gradient-hero hover:opacity-90 text-white":"border-braintrailz-blue text-braintrailz-blue hover:bg-braintrailz-blue/10"}`,variant:n.featured?"default":"outline",children:n.cta})]},n.name))}),u.jsxs("div",{className:"mt-16",children:[u.jsx("h2",{className:"text-2xl font-bold mb-8",children:"The math"}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[u.jsx("h3",{className:"text-lg font-bold mb-3",children:"Half-day"}),u.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"$7,500 + travel. One session."}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"You keep the list either way. If we continue as Advisor, this $7,500 applies to the first Advisor invoice."})]}),u.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[u.jsx("h3",{className:"text-lg font-bold mb-3",children:"CTO Engaged"}),u.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"$10,000 × 3 months = $30,000 minimum."}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"That is the 90-day sprint. The half-day fee does not apply here."})]}),u.jsxs("div",{className:"rounded-xl border border-braintrailz-blue/20 bg-braintrailz-dark p-6",children:[u.jsx("h3",{className:"text-lg font-bold mb-3",children:"CTO Advisor"}),u.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"$5,000 × 6 months = $30,000."}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"After a half-day, the $7,500 comes off. Month one is $0. Month two is $2,500. Months three through six are $5,000. Total: $22,500."})]})]})]}),u.jsxs("div",{className:"max-w-3xl mt-16 space-y-6 text-muted-foreground",children:[u.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"What happens in the half-day"}),u.jsx("p",{children:"You get a week of written prep, then four hours. I do not show up to pitch tools. We name the bloodspots, the next 1 to 6 months of work, and what you can ignore. If we continue, it is Engaged or Advisor. If we do not, you still have the list."}),u.jsx("p",{children:"I do not run sales or marketing. I take technical direction and client management once the problem is identified."})]})]})}),u.jsx(Vt,{})]})},Gr={title:"Braintrailz · Marc J. Greenberg: from spark to shipped systems",description:"Two ways of thinking, one trail. Marc J. Greenberg turns ideas into delivered systems, and serves as fractional CTO and AI advisor for teams that need it built. 40 years shipping software.",ogTitle:"Braintrailz · Marc J. Greenberg: from spark to shipped systems",ogDescription:"Two ways of thinking, one trail. Marc J. Greenberg turns ideas into delivered systems, and serves as fractional CTO and AI advisor for teams that need it built. 40 years shipping software.",ogUrl:"https://braintrailz.com/",ogType:"website",canonical:"https://braintrailz.com/"};function Wg(e,t){let n=document.querySelector(`meta[name="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)}function vr(e,t){let n=document.querySelector(`meta[property="${e}"]`);n||(n=document.createElement("meta"),n.setAttribute("property",e),document.head.appendChild(n)),n.setAttribute("content",t)}function $g(e){var t;(t=document.querySelector(`meta[property="${e}"]`))==null||t.remove()}function Vg(e){let t=document.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",e)}function EO(e){return document.title=e.title,Wg("description",e.description),Vg(e.url),vr("og:type",e.type??"website"),vr("og:url",e.url),vr("og:title",e.title),vr("og:description",e.description),e.image?vr("og:image",e.image):$g("og:image"),window.prerenderReady=!0,()=>{document.title=Gr.title,Wg("description",Gr.description),Vg(Gr.canonical),vr("og:type",Gr.ogType),vr("og:url",Gr.ogUrl),vr("og:title",Gr.ogTitle),vr("og:description",Gr.ogDescription),$g("og:image")}}const TO=[{kind:"Skill",title:"Aristotle Skill",claim:"Channel a thinker's worldview, not a costume.",description:"An agent skill for Claude, Codex, Grok, and Muse. Ground answers in what they actually wrote, reason in their method, and tutor instead of lecture. Fork the roster. Add the next Aristotle.",icon:u.jsx(kp,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/aristotle-skill",external:!0},{label:"Ship the Engine",href:"https://blog.codemarc.net/ship-the-engine",external:!0}]},{kind:"Skill",title:"Solid Skill",claim:"Cut word salad and word vomit. Name the pattern.",description:"Writing is solid when it has no voids. Diagnose vomit vs salad, run the shuffle test, then return two cuts so you start catching it yourself. Same shape as Aristotle: build the tool, publish the method.",icon:u.jsx(gE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/solid-skill",external:!0}]}],vO=[{kind:"Field guide",title:"I Built My Own Recruiter",claim:"Run your job search like a software project.",description:"Part memoir, part manual. Score, sweep, outreach — then fork the method for your own search. The first published sibling on this trail.",icon:u.jsx(Ap,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),links:[{label:"Read the book",href:"/recruiter/"}]}],Yg=({project:e})=>u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover flex flex-col",children:[u.jsxs(Un,{children:[u.jsx("div",{className:"flex justify-center",children:e.icon}),u.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold text-center",children:e.kind}),u.jsx(Hn,{className:"text-xl text-center",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-center italic",children:e.claim})]}),u.jsx(zn,{className:"flex-grow",children:u.jsx("p",{className:"text-muted-foreground text-center",children:e.description})}),u.jsx(Rc,{className:"justify-center gap-4 flex-wrap",children:e.links.map(t=>u.jsxs("a",{href:t.href,...t.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:[t.label,t.external&&u.jsx(ps,{className:"ml-1 h-3.5 w-3.5"})]},t.href))})]}),wO=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="Skills | Braintrailz",()=>{document.title=Gr.title}),[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-8 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:[u.jsx(Yk,{className:"inline h-9 w-9 mb-2 mr-1"}),u.jsx("span",{className:"text-gradient",children:"Skills"})]}),u.jsx("p",{className:"text-lg italic text-muted-foreground mb-4",children:"Build the tool. Publish the method."}),u.jsx("p",{className:"text-muted-foreground",children:"Community-first tools that help people think better, work better, and focus better. Values-led, rapidly deployed, built to earn trust rather than revenue."})]})})}),u.jsx("section",{className:"py-8 bg-braintrailz-darker",children:u.jsxs("div",{className:"container-custom space-y-14",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Skills"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto",children:TO.map(e=>u.jsx(Yg,{project:e},e.title))})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Field guide"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto md:justify-items-center",children:u.jsx("div",{className:"md:col-span-2 max-w-xl mx-auto w-full",children:u.jsx(Yg,{project:vO[0]})})})]})]})})]}),u.jsx(Vt,{})]})),CO="October 1, 2026",AO=[{kind:"Method",title:"Repack",claim:"Conserve the knowledge. Clear the clutter.",description:"The practice of AI conservation. Preserve what your experiments taught you, then rebuild your Backpack for the trail ahead.",icon:u.jsx(Mk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open Repack",href:"/trailcraft/repack"}]},{kind:"Method",title:"Aristotle Skill",claim:"Channel a thinker's worldview, not a costume.",description:"An agent skill for Claude, Codex, Grok, and Muse. Ground answers in what they actually wrote, reason in their method, and tutor instead of lecture. Fork the roster. Add the next Aristotle.",icon:u.jsx(kp,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/aristotle-skill",external:!0},{label:"Ship the Engine",href:"https://blog.codemarc.net/ship-the-engine",external:!0}]},{kind:"Method",title:"Solid Skill",claim:"Cut word salad and word vomit. Name the pattern.",description:"Writing is solid when it has no voids. Diagnose vomit vs salad, run the shuffle test, then return two cuts so you start catching it yourself. Same shape as Aristotle: build the tool, publish the method.",icon:u.jsx(gE,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/solid-skill",external:!0}]},{kind:"Method",title:"Trailcard",claim:"Intent is not enough.",description:"An agent skill for Claude, Codex, Grok, and Muse. Turn a bare instruction into a card the agent can safely act on, then audit what it says it did. Same shape as Aristotle: build the tool, publish the method.",icon:u.jsx(yk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/braintrailz/trailcard",external:!0},{label:"Intent Is Not Enough",href:"/blog/intent-is-not-enough"}]},{kind:"Marinating",title:"Trailhead",claim:"One golden record. Yours.",description:"Contacts scatter across LinkedIn, Gmail, and three phones. Merge the duplicates, log the touchpoints, and keep a private source of truth.",icon:u.jsx(xk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open Trailhead",href:"https://trailhead.braintrailz.com/",external:!0}]},{kind:"Method",title:"Muse CLI Chat",claim:"Wrap the harness. Don't rebuild it.",description:"<div>Unofficial VS Code and Cursor sidebar for Meta's Muse Code.</div><div>Same agent, next to your files.</div><div>Written with Muse, about Muse, so you can use more Muse.</div><div>Fork it. Fill the next gap.</div>",icon:u.jsx(Ck,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Cursor/VS Code Extension",href:"https://open-vsx.org/extension/codemarc/muse-cli-chat",external:!0},{label:"Inception: A Muse Inside Muse",href:"https://blog.codemarc.net/inception-a-muse-inside-muse",external:!0}]}],kO=[{kind:"Field guide",title:"I Built My Own Recruiter",claim:"Run your job search like a software project.",description:"Part memoir, part manual. Score, sweep, outreach, then fork the method for your own search. The first published sibling on this trail.",icon:u.jsx(Ap,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),links:[{label:"Read the book",href:"/recruiter/"}]}],NO=[{kind:"Method",title:"Tech Ecosystem Map Skill",claim:"The map is not the territory.",description:"An agent skill for Claude, Codex, Grok, and Muse. Real-geography, layered maps of a region's tech, AI, and capital ecosystem. Real coastline, real neighborhoods, live-verified companies. Fork it. Map the next region.",icon:u.jsx(kk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"GitHub",href:"https://github.com/codemarc/tech-ecosystem-map-skill",external:!0}]},{kind:"Map",title:"AI Map of South Florida",claim:"Jupiter to Homestead.",description:"AI companies, AI-adjacent players, finance and crypto names, and pre-AI tech anchors. Neighborhood positions, not street addresses.",icon:u.jsx(Su,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open the map",href:"/trailcraft/maps/sofla"}]},{kind:"Map",title:"AI Map of the Research Triangle",claim:"Raleigh, Durham, Chapel Hill.",description:"Capital, biotech, established tech, and AI companies around RTP. Neighborhood positions, not street addresses.",icon:u.jsx(Su,{className:"h-10 w-10 mb-4 text-braintrailz-purple"}),links:[{label:"Open the map",href:"/trailcraft/maps/rdu"}]}],_O=[{kind:"Marinating",title:"Logz",claim:"Logbook keeps your trail.",description:"A quiet companion for builders. Capture ideas, prompts, decisions, and process as you go. Still steeping.",icon:u.jsx(Pk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open Logz",href:"https://logz.bltcore.com/",external:!0}]},{kind:"Marinating",title:"LinkedTwin",claim:"No followers. No likes. Just real work.",description:"A professional network for people tired of polish. Presence earned through contribution and dialogue, not performance.",icon:u.jsx(Rk,{className:"h-10 w-10 mb-4 text-braintrailz-blue"}),links:[{label:"Open LinkedTwin",href:"https://linkedtwin.net/",external:!0}]}],Ol=({cairn:e})=>u.jsxs(Bn,{className:"h-full bg-braintrailz-dark border-braintrailz-blue/20 text-foreground hover:border-braintrailz-blue/50 transition-colors card-hover flex flex-col",children:[u.jsxs(Un,{children:[u.jsx("div",{className:"flex justify-center",children:e.icon}),u.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold text-center",children:e.kind}),u.jsx(Hn,{className:"text-xl text-center",children:e.title}),u.jsx("p",{className:"text-muted-foreground text-center italic",children:e.claim})]}),u.jsx(zn,{className:"flex-grow",children:typeof e.description=="string"&&e.description.trim().startsWith("<")?u.jsx("p",{className:"text-muted-foreground text-center",dangerouslySetInnerHTML:{__html:e.description}}):u.jsx("p",{className:"text-muted-foreground text-center",children:e.description})}),u.jsx(Rc,{className:"justify-center gap-4 flex-wrap mt-auto",children:e.links.map(t=>u.jsxs("a",{href:t.href,...t.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:[t.label,t.external&&u.jsx(ps,{className:"ml-1 h-3.5 w-3.5"})]},t.href))})]}),SO=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="Trailcraft | Braintrailz",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-0 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[u.jsx(ju,{variant:"logo",size:40,className:"mr-2 mb-1 align-middle"}),u.jsx("span",{className:"text-gradient",children:"Trail"}),"Craft"]}),u.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Last updated ",CO]}),u.jsx("p",{className:"text-lg italic text-muted-foreground mt-0",children:"Gear gets you there. Craft keeps the next person on the path."})]})})}),u.jsx("section",{className:"py-8 bg-braintrailz-darker",children:u.jsxs("div",{className:"container-custom space-y-14",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Methods"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto items-stretch",children:AO.map(e=>u.jsx(Ol,{cairn:e},e.title))})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Field guides"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto md:justify-items-center",children:u.jsx("div",{className:"md:col-span-2 max-w-xl mx-auto w-full",children:u.jsx(Ol,{cairn:kO[0]})})})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Maps"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto items-stretch",children:NO.map(e=>u.jsx(Ol,{cairn:e},e.title))})]}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Marinating"}),u.jsx("p",{className:"text-sm italic text-muted-foreground text-center mb-6",children:"Basic ideas still on the fire. Fork later. Taste now."}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-5xl mx-auto items-stretch",children:_O.map(e=>u.jsx(Ol,{cairn:e},e.title))})]})]})})]}),u.jsx(Vt,{})]})),Gg="/mapdata/sofla.html",IO=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="AI Map of South Florida | Trailcraft",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-6 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:[u.jsx(ft,{to:"/trailcraft",className:"hover:text-foreground transition-colors",children:"Trailcraft"})," / ","Maps"]}),u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[u.jsx(Su,{className:"inline h-9 w-9 mb-2 mr-2 text-braintrailz-blue"}),u.jsx("span",{className:"text-gradient",children:"AI Map"})," of South Florida"]}),u.jsx("p",{className:"text-lg italic text-muted-foreground",children:"A technology map of the region. Jupiter to Homestead. Atlantic Ocean to Gulf of America."})]})})}),u.jsxs("section",{className:"pb-10 bg-braintrailz-darker",children:[u.jsx("div",{className:"overflow-x-auto",children:u.jsx("iframe",{src:Gg,title:"AI Map of South Florida",className:"block border-0 bg-[#e7e3d6] mx-auto",style:{width:1780,height:1580}})}),u.jsx("p",{className:"text-center mt-6",children:u.jsxs("a",{href:Gg,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:["Open the poster on its own",u.jsx(ps,{className:"ml-1 h-3.5 w-3.5"})]})})]})]}),u.jsx(Vt,{})]})),qg="/mapdata/rdu.html",OO=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="AI Map of the Research Triangle | Trailcraft",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-6 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsx("div",{className:"container-custom",children:u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsxs("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:[u.jsx(ft,{to:"/trailcraft",className:"hover:text-foreground transition-colors",children:"Trailcraft"})," / ","Maps"]}),u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-3",children:[u.jsx(Su,{className:"inline h-9 w-9 mb-2 mr-2 text-braintrailz-blue"}),u.jsx("span",{className:"text-gradient",children:"AI Map"})," Research Triangle"]}),u.jsx("p",{className:"text-lg italic text-muted-foreground",children:"A technology map of the region. Raleigh, Durham, Chapel Hill."})]})})}),u.jsxs("section",{className:"pb-10 bg-braintrailz-darker",children:[u.jsx("div",{className:"overflow-x-auto",children:u.jsx("iframe",{src:qg,title:"AI Map of the Research Triangle",className:"block border-0 bg-[#f4f1e7] mx-auto",style:{width:1820,height:1400}})}),u.jsx("p",{className:"text-center mt-6",children:u.jsxs("a",{href:qg,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-braintrailz-blue hover:text-foreground transition-colors text-sm",children:["Open the poster on its own",u.jsx(ps,{className:"ml-1 h-3.5 w-3.5"})]})})]})]}),u.jsx(Vt,{})]})),LO=[["Survey","What am I carrying?","Make a Trail Map of the tools, prompts, skills, and dependencies in use."],["Conserve","What knowledge must not be lost?","Extract the lessons, decisions, and working principles before changing the setup."],["Trace","Where did it come from?","Keep the source, creator, license, provenance, and evidence behind each lesson."],["Cull / Cache","What leaves active use?","Remove stale or redundant gear and place useful inactive gear in the Gear Locker."],["Pack","What does the next trail require?","Rebuild the smallest active Backpack that can do the work ahead."],["Blaze","Can someone follow this path?","Leave reusable instructions, context, and decisions for the next traveler."],["Log","What did this Repack teach us?","Record the discoveries and dead ends so the next repack starts further along."]],RO=()=>(T.useEffect(()=>(window.scrollTo(0,0),document.title="Repack | Trailcraft | Braintrailz",()=>{document.title="Braintrailz | Fractional CTO & AI Advisory — Marc J. Greenberg"}),[]),u.jsxs("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:[u.jsx($t,{}),u.jsxs("main",{children:[u.jsx("section",{className:"pt-32 pb-12 bg-gradient-to-b from-braintrailz-dark to-braintrailz-darker",children:u.jsxs("div",{className:"container-custom max-w-4xl text-center",children:[u.jsx("p",{className:"text-sm text-braintrailz-blue font-semibold mb-3",children:"Trailcraft Method"}),u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-5",children:[u.jsx(aa,{className:"inline h-10 w-10 mb-2 mr-2"}),u.jsx("span",{className:"text-gradient",children:"Repack"})]}),u.jsx("p",{className:"text-2xl md:text-3xl font-semibold mb-5",children:"Return to Base Camp without losing the trail."}),u.jsx("p",{className:"text-lg italic text-muted-foreground max-w-2xl mx-auto",children:"Repack is the practice of AI conservation: preserve what your experiments taught you, clear what no longer serves you, and rebuild your Backpack for the trail ahead."})]})}),u.jsx("section",{className:"py-8 bg-braintrailz-darker",children:u.jsxs("div",{className:"container-custom max-w-5xl space-y-14",children:[u.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[u.jsxs(Un,{children:[u.jsx(mE,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),u.jsx(Hn,{children:"Base Camp"})]}),u.jsx(zn,{className:"text-muted-foreground",children:"Where durable knowledge, provenance, decisions, and TrailLore survive every reset."})]}),u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[u.jsxs(Un,{children:[u.jsx(aa,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),u.jsx(Hn,{children:"Backpack"})]}),u.jsx(zn,{className:"text-muted-foreground",children:"The small, active set of tools and capabilities required for the current journey."})]}),u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[u.jsxs(Un,{children:[u.jsx(hk,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),u.jsx(Hn,{children:"TrailLore"})]}),u.jsx(zn,{className:"text-muted-foreground",children:"The durable lessons extracted from journeys, experiments, successes, and dead ends."})]})]}),u.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[u.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Conserve before you cull"}),u.jsx("p",{className:"text-muted-foreground",children:"A reset clears configuration. A Repack separates configuration from learning first, so you can empty the Backpack without losing what the trail taught you."})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-center gap-3 mb-8",children:[u.jsx(Ek,{className:"h-7 w-7 text-braintrailz-blue"}),u.jsx("h2",{className:"text-2xl font-bold",children:"The Repack method"})]}),u.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:LO.map(([e,t,n],r)=>u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[u.jsxs(Un,{className:"flex-row items-start gap-4 space-y-0",children:[u.jsx("span",{className:"text-sm text-braintrailz-blue font-semibold pt-1",children:String(r+1).padStart(2,"0")}),u.jsxs("div",{children:[u.jsx(Hn,{className:"text-xl",children:e}),u.jsx("p",{className:"text-sm italic text-muted-foreground mt-1",children:t})]})]}),u.jsx(zn,{className:"text-muted-foreground",children:n})]},e))})]}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[u.jsxs(Un,{children:[u.jsx($k,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),u.jsx(Hn,{children:"Leave a Trail Card"})]}),u.jsx(zn,{className:"text-muted-foreground",children:"For every tool, skill, plugin, or repository, record its source, creator, license, purpose, what worked, what did not, what changed, the TrailLore it produced, and where it belongs now."})]}),u.jsxs(Bn,{className:"bg-braintrailz-dark border-braintrailz-blue/20",children:[u.jsxs(Un,{children:[u.jsx(Ap,{className:"h-9 w-9 text-braintrailz-blue mb-2"}),u.jsx(Hn,{children:"Field report: Solid"})]}),u.jsx(zn,{className:"text-muted-foreground",children:"The path from Stop Slop and Unslop to Solid is the kind of journey Repack preserves: observe, use, reject, adapt, and credit the work that helped establish the trail."})]})]}),u.jsx("p",{className:"text-center text-lg italic text-muted-foreground",children:"The Backpack shows what we carry. Trailcraft records what we learn. Repack is how we move between them."})]})})]}),u.jsx(Vt,{})]})),PO=()=>(T.useEffect(()=>{window.scrollTo(0,0)},[]),u.jsxs(u.Fragment,{children:[u.jsx($t,{}),u.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:u.jsxs("div",{className:"container-custom pt-32 pb-16",children:[u.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Blog"}),$u.length===0?u.jsx("p",{className:"text-muted-foreground",children:"No posts yet."}):u.jsx("ul",{className:"grid gap-6",children:$u.map(e=>u.jsx("li",{children:u.jsxs(ft,{to:`/blog/${e.slug}`,className:"group block bg-braintrailz-dark p-6 rounded-lg border border-braintrailz-blue/20 transition-colors",children:[u.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:qp(e.date)}),u.jsx("h2",{className:"text-2xl font-semibold mb-2 text-foreground group-hover:text-braintrailz-blue transition-colors",children:e.title}),u.jsx("p",{className:"text-muted-foreground mb-2",children:e.summary}),u.jsx("span",{className:"text-braintrailz-blue group-hover:text-braintrailz-blue/80 transition-colors",children:"Read post"})]})},e.slug))})]})}),u.jsx(Vt,{})]}));function Qg(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function AT(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const DO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FO={};function Kg(e,t){return(FO.jsx?MO:DO).test(e)}const jO=/[ \t\n\f\r]/g;function BO(e){return typeof e=="object"?e.type==="text"?Xg(e.value):!1:Xg(e)}function Xg(e){return e.replace(jO,"")===""}class Zo{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Zo.prototype.normal={};Zo.prototype.property={};Zo.prototype.space=void 0;function kT(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Zo(n,r,t)}function Bo(e){return e.toLowerCase()}class rn{constructor(t,n){this.attribute=n,this.property=t}}rn.prototype.attribute="";rn.prototype.booleanish=!1;rn.prototype.boolean=!1;rn.prototype.commaOrSpaceSeparated=!1;rn.prototype.commaSeparated=!1;rn.prototype.defined=!1;rn.prototype.mustUseProperty=!1;rn.prototype.number=!1;rn.prototype.overloadedBoolean=!1;rn.prototype.property="";rn.prototype.spaceSeparated=!1;rn.prototype.space=void 0;let UO=0;const ye=ca(),et=ca(),dh=ca(),ee=ca(),Ie=ca(),Ji=ca(),an=ca();function ca(){return 2**++UO}const fh=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:et,commaOrSpaceSeparated:an,commaSeparated:Ji,number:ee,overloadedBoolean:dh,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Rd=Object.keys(fh);class em extends rn{constructor(t,n,r,i){let a=-1;if(super(t,n),Jg(this,"space",i),typeof r=="number")for(;++a<Rd.length;){const s=Rd[a];Jg(this,Rd[a],(r&fh[s])===fh[s])}}}em.prototype.defined=!0;function Jg(e,t,n){n&&(e[t]=n)}function bs(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new em(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Bo(r)]=r,n[Bo(a.attribute)]=r}return new Zo(t,n,e.space)}const NT=bs({properties:{ariaActiveDescendant:null,ariaAtomic:et,ariaAutoComplete:null,ariaBusy:et,ariaChecked:et,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:et,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:et,ariaFlowTo:Ie,ariaGrabbed:et,ariaHasPopup:null,ariaHidden:et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:ee,ariaLive:null,ariaModal:et,ariaMultiLine:et,ariaMultiSelectable:et,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:et,ariaReadOnly:et,ariaRelevant:null,ariaRequired:et,ariaRoleDescription:Ie,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:et,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _T(e,t){return t in e?e[t]:t}function ST(e,t){return _T(e,t.toLowerCase())}const HO=bs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ji,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alpha:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Ie,autoFocus:ye,autoPlay:ye,blocking:Ie,capture:null,charSet:null,checked:ye,cite:null,className:Ie,closedBy:null,colorSpace:null,cols:ee,colSpan:ee,command:null,commandFor:null,content:null,contentEditable:et,controls:ye,controlsList:Ie,coords:ee|Ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:dh,draggable:et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Ie,height:ee,hidden:dh,high:ee,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:ye,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,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:ye,optimum:ee,pattern:null,ping:Ie,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Ie,required:ye,reversed:ye,rows:ee,rowSpan:ee,sandbox:Ie,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootCustomElementRegistry:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shadowRootSerializable:ye,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:et,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:et,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ye,disablePictureInPicture:ye,disableRemotePlayback:ye,exportParts:Ji,part:Ie,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:ST}),zO=bs({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",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:an,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ie,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:Ji,g2:Ji,glyphName:Ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:an,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:an,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:an,rev:an,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:an,requiredFeatures:an,requiredFonts:an,requiredFormats:an,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:an,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:an,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:an,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_T}),IT=bs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),OT=bs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ST}),LT=bs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),WO={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"},$O=/[A-Z]/g,Zg=/-[a-z]/g,VO=/^data[-\w.:]+$/i;function Pc(e,t){const n=Bo(t);let r=t,i=rn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&VO.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Zg,GO);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Zg.test(a)){let s=a.replace($O,YO);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=em}return new i(r,t)}function YO(e){return"-"+e.toLowerCase()}function GO(e){return e.charAt(1).toUpperCase()}const el=kT([NT,HO,IT,OT,LT],"html"),Ri=kT([NT,zO,IT,OT,LT],"svg");function e1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function RT(e){return e.join(" ").trim()}var tm={},t1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,qO=/\n/g,QO=/^\s*/,KO=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,XO=/^:\s*/,JO=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ZO=/^[;\s]*/,eL=/^\s+|\s+$/g,tL=`
`,n1="/",r1="*",Bi="",nL="comment",rL="declaration";function iL(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var b=x.match(qO);b&&(n+=b.length);var v=x.lastIndexOf(tL);r=~v?x.length-v:r+x.length}function a(){var x={line:n,column:r};return function(b){return b.position=new s(x),c(),b}}function s(x){this.start=x,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(x){var b=new Error(t.source+":"+n+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(x){var b=x.exec(e);if(b){var v=b[0];return i(v),e=e.slice(v.length),b}}function c(){l(QO)}function f(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=a();if(!(n1!=e.charAt(0)||r1!=e.charAt(1))){for(var b=2;Bi!=e.charAt(b)&&(r1!=e.charAt(b)||n1!=e.charAt(b+1));)++b;if(b+=2,Bi===e.charAt(b-1))return o("End of comment missing");var v=e.slice(2,b-2);return r+=2,i(v),e=e.slice(b),r+=2,x({type:nL,comment:v})}}function p(){var x=a(),b=l(KO);if(b){if(h(),!l(XO))return o("property missing ':'");var v=l(JO),y=x({type:rL,property:i1(b[0].replace(t1,Bi)),value:v?i1(v[0].replace(t1,Bi)):Bi});return l(ZO),y}}function m(){var x=[];f(x);for(var b;b=p();)b!==!1&&(x.push(b),f(x));return x}return c(),m()}function i1(e){return e?e.replace(eL,Bi):Bi}var aL=iL,sL=iu&&iu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tm,"__esModule",{value:!0});tm.default=lL;const oL=sL(aL);function lL(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,oL.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:o}=a;i?t(s,o,a):o&&(n=n||{},n[s]=o)}),n}var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});Dc.camelCase=void 0;var uL=/^--[a-zA-Z0-9_-]+$/,cL=/-([a-z])/g,dL=/^[^-]+$/,fL=/^-(webkit|moz|ms|o|khtml)-/,hL=/^-(ms)-/,pL=function(e){return!e||dL.test(e)||uL.test(e)},mL=function(e,t){return t.toUpperCase()},a1=function(e,t){return"".concat(t,"-")},gL=function(e,t){return t===void 0&&(t={}),pL(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(hL,a1):e=e.replace(fL,a1),e.replace(cL,mL))};Dc.camelCase=gL;var yL=iu&&iu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},xL=yL(tm),bL=Dc;function hh(e,t){var n={};return!e||typeof e!="string"||(0,xL.default)(e,function(r,i){r&&i&&(n[(0,bL.camelCase)(r,t)]=i)}),n}hh.default=hh;var EL=hh;const TL=ec(EL),Mc=PT("end"),xr=PT("start");function PT(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function vL(e){const t=xr(e),n=Mc(e);if(t&&n)return{start:t,end:n}}function no(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?s1(e.position):"start"in e||"end"in e?s1(e):"line"in e||"column"in e?ph(e):""}function ph(e){return o1(e&&e.line)+":"+o1(e&&e.column)}function s1(e){return ph(e&&e.start)+"-"+ph(e&&e.end)}function o1(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=no(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Lt.prototype.file="";Lt.prototype.name="";Lt.prototype.reason="";Lt.prototype.message="";Lt.prototype.stack="";Lt.prototype.column=void 0;Lt.prototype.line=void 0;Lt.prototype.ancestors=void 0;Lt.prototype.cause=void 0;Lt.prototype.fatal=void 0;Lt.prototype.place=void 0;Lt.prototype.ruleId=void 0;Lt.prototype.source=void 0;const nm={}.hasOwnProperty,wL=new Map,CL=/[A-Z]/g,AL=new Set(["table","tbody","thead","tfoot","tr"]),kL=new Set(["td","th"]),DT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NL(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=DL(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=PL(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ri:el,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=MT(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function MT(e,t,n){if(t.type==="element")return _L(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return SL(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return OL(e,t,n);if(t.type==="mdxjsEsm")return IL(e,t);if(t.type==="root")return LL(e,t,n);if(t.type==="text")return RL(e,t)}function _L(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ri,e.schema=i),e.ancestors.push(t);const a=jT(e,t.tagName,!1),s=ML(e,t);let o=im(e,t);return AL.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!BO(l):!0})),FT(e,s,a,t),rm(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function SL(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Uo(e,t.position)}function IL(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Uo(e,t.position)}function OL(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ri,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:jT(e,t.name,!0),s=FL(e,t),o=im(e,t);return FT(e,s,a,t),rm(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function LL(e,t,n){const r={};return rm(r,im(e,t)),e.create(t,e.Fragment,r,n)}function RL(e,t){return t.value}function FT(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function rm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function PL(e,t,n){return r;function r(i,a,s,o){const c=Array.isArray(s.children)?n:t;return o?c(a,s,o):c(a,s)}}function DL(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=xr(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function ML(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&nm.call(t.properties,i)){const a=jL(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&kL.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function FL(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Uo(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Uo(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function im(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:wL;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const o=MT(e,a,s);o!==void 0&&n.push(o)}return n}function jL(e,t,n){const r=Pc(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?AT(n):RT(n)),r.property==="style"){let i=typeof n=="object"?n:BL(e,String(n));return e.stylePropertyNameCase==="css"&&(i=UL(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?WO[r.property]||r.property:r.attribute,n]}}function BL(e,t){try{return TL(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=DT+"#cannot-parse-style-attribute",i}}function jT(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=Kg(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=Kg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return nm.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Uo(e)}function Uo(e,t){const n=new Lt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=DT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function UL(e){const t={};let n;for(n in e)nm.call(e,n)&&(t[HL(n)]=e[n]);return t}function HL(e){let t=e.replace(CL,zL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zL(e){return"-"+e.toLowerCase()}const Pd={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"]},WL={};function $L(e,t){const n=WL,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return BT(e,r,i)}function BT(e,t,n){if(VL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return l1(e.children,t,n)}return Array.isArray(e)?l1(e,t,n):""}function l1(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=BT(e[i],t,n);return r.join("")}function VL(e){return!!(e&&typeof e=="object")}const u1=document.createElement("i");function am(e){const t="&"+e+";";u1.innerHTML=t;const n=u1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function gr(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function kn(e,t){return e.length>0?(gr(e,e.length,0,t),e):t}const c1={}.hasOwnProperty;function YL(e){const t={};let n=-1;for(;++n<e.length;)GL(t,e[n]);return t}function GL(e,t){let n;for(n in t){const i=(c1.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){c1.call(i,s)||(i[s]=[]);const o=a[s];qL(i[s],Array.isArray(o)?o:o?[o]:[])}}}function qL(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);gr(e,0,0,r)}function UT(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ua(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ur=Pi(/[A-Za-z]/),dn=Pi(/[\dA-Za-z]/),QL=Pi(/[#-'*+\--9=?A-Z^-~]/);function mh(e){return e!==null&&(e<32||e===127)}const gh=Pi(/\d/),KL=Pi(/[\dA-Fa-f]/),XL=Pi(/[!-/:-@[-`{-~]/);function ge(e){return e!==null&&e<-2}function tn(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const JL=Pi(new RegExp("\\p{P}|\\p{S}","u")),ZL=Pi(/\s/);function Pi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Es(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&dn(e.charCodeAt(n+1))&&dn(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Re(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Ne(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ne(l)&&a++<i?(e.consume(l),o):(e.exit(n),t(l))}}const eR={tokenize:tR};function tR(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Re(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ge(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const nR={tokenize:rR},d1={tokenize:iR};function rR(e){const t=this,n=[];let r=0,i,a,s;return o;function o(E){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,l,c)(E)}return c(E)}function l(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const k=t.events.length;let I=k,N;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){N=t.events[I][1].end;break}y(r);let L=k;for(;L<t.events.length;)t.events[L][1].end={...N},L++;return gr(t.events,I+1,0,t.events.slice(k)),t.events.length=L,c(E)}return o(E)}function c(E){if(r===n.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return x(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(d1,f,h)(E)}function f(E){return i&&g(),y(r),p(E)}function h(E){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(E)}function p(E){return t.containerState={},e.attempt(d1,m,x)(E)}function m(E){return r++,n.push([t.currentConstruct,t.containerState]),p(E)}function x(E){if(E===null){i&&g(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(E)}function b(E){if(E===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return ge(E)?(e.consume(E),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(E),b)}function v(E,k){const I=t.sliceStream(E);if(k&&I.push(null),E.previous=a,a&&(a.next=E),a=E,i.defineSkip(E.start),i.write(I),t.parser.lazy[E.start.line]){let N=i.events.length;for(;N--;)if(i.events[N][1].start.offset<s&&(!i.events[N][1].end||i.events[N][1].end.offset>s))return;const L=t.events.length;let M=L,V,H;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(V){H=t.events[M][1].end;break}V=!0}for(y(r),N=L;N<t.events.length;)t.events[N][1].end={...H},N++;gr(t.events,M+1,0,t.events.slice(L)),t.events.length=N}}function y(E){let k=n.length;for(;k-- >E;){const I=n[k];t.containerState=I[1],I[0].exit.call(t,e)}n.length=E}function g(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function iR(e,t,n){return Re(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function f1(e){if(e===null||tn(e)||ZL(e))return 1;if(JL(e))return 2}function sm(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const yh={name:"attention",resolveAll:aR,tokenize:sR};function aR(e,t){let n=-1,r,i,a,s,o,l,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},p={...e[n][1].start};h1(h,-l),h1(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=kn(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=kn(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=kn(c,sm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=kn(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=kn(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,gr(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function sR(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=f1(r);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const c=e.exit("attentionSequence"),f=f1(l),h=!f||f===2&&i||n.includes(l),p=!i||i===2&&f||n.includes(r);return c._open=!!(a===42?h:h&&(i||!p)),c._close=!!(a===42?p:p&&(f||!h)),t(l)}}function h1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oR={name:"autolink",tokenize:lR};function lR(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return ur(m)?(e.consume(m),s):m===64?n(m):c(m)}function s(m){return m===43||m===45||m===46||dn(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||dn(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||mh(m)?n(m):(e.consume(m),l)}function c(m){return m===64?(e.consume(m),f):QL(m)?(e.consume(m),c):n(m)}function f(m){return dn(m)?h(m):n(m)}function h(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||dn(m))&&r++<63){const x=m===45?p:h;return e.consume(m),x}return n(m)}}const Fc={partial:!0,tokenize:uR};function uR(e,t,n){return r;function r(a){return Ne(a)?Re(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ge(a)?t(a):n(a)}}const HT={continuation:{tokenize:dR},exit:fR,name:"blockQuote",tokenize:cR};function cR(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return Ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function dR(e,t,n){const r=this;return i;function i(s){return Ne(s)?Re(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(HT,t,n)(s)}}function fR(e){e.exit("blockQuote")}const zT={name:"characterEscape",tokenize:hR};function hR(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return XL(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const WT={name:"characterReference",tokenize:pR};function pR(e,t,n){const r=this;let i=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=dn,f(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=KL,f):(e.enter("characterReferenceValue"),a=7,s=gh,f(h))}function f(h){if(h===59&&i){const p=e.exit("characterReferenceValue");return s===dn&&!am(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<a?(e.consume(h),f):n(h)}}const p1={partial:!0,tokenize:gR},m1={concrete:!0,name:"codeFenced",tokenize:mR};function mR(e,t,n){const r=this,i={partial:!0,tokenize:I};let a=0,s=0,o;return l;function l(N){return c(N)}function c(N){const L=r.events[r.events.length-1];return a=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,o=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(N)}function f(N){return N===o?(s++,e.consume(N),f):s<3?n(N):(e.exit("codeFencedFenceSequence"),Ne(N)?Re(e,h,"whitespace")(N):h(N))}function h(N){return N===null||ge(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(p1,b,k)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(N))}function p(N){return N===null||ge(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(N)):Ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Re(e,m,"whitespace")(N)):N===96&&N===o?n(N):(e.consume(N),p)}function m(N){return N===null||ge(N)?h(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===null||ge(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(N)):N===96&&N===o?n(N):(e.consume(N),x)}function b(N){return e.attempt(i,k,v)(N)}function v(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),y}function y(N){return a>0&&Ne(N)?Re(e,g,"linePrefix",a+1)(N):g(N)}function g(N){return N===null||ge(N)?e.check(p1,b,k)(N):(e.enter("codeFlowValue"),E(N))}function E(N){return N===null||ge(N)?(e.exit("codeFlowValue"),g(N)):(e.consume(N),E)}function k(N){return e.exit("codeFenced"),t(N)}function I(N,L,M){let V=0;return H;function H(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),Y}function Y(te){return N.enter("codeFencedFence"),Ne(te)?Re(N,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):F(te)}function F(te){return te===o?(N.enter("codeFencedFenceSequence"),K(te)):M(te)}function K(te){return te===o?(V++,N.consume(te),K):V>=s?(N.exit("codeFencedFenceSequence"),Ne(te)?Re(N,z,"whitespace")(te):z(te)):M(te)}function z(te){return te===null||ge(te)?(N.exit("codeFencedFence"),L(te)):M(te)}}}function gR(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Dd={name:"codeIndented",tokenize:xR},yR={partial:!0,tokenize:bR};function xR(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Re(e,a,"linePrefix",5)(c)}function a(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):ge(c)?e.attempt(yR,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ge(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function bR(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ge(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Re(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ge(s)?i(s):n(s)}}const ER={name:"codeText",previous:vR,resolve:TR,tokenize:wR};function TR(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function vR(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wR(e,t,n){let r=0,i,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(a=e.enter("codeTextSequence"),i=0,f(h)):ge(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||ge(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),c)}function f(h){return h===96?(e.consume(h),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",c(h))}}class CR{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ds(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ds(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ds(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ds(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ds(this.left,n.reverse())}}}function Ds(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function $T(e){const t={};let n=-1,r,i,a,s,o,l,c;const f=new CR(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,AR(f,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=f.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,n),o.unshift(r),f.splice(i,n-i+1,o))}}return gr(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function AR(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],c={};let f,h,p=-1,m=n,x=0,b=0;const v=[b];for(;m;){for(;e.get(++i)[1]!==m;);a.push(i),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(b=p+1,v.push(b),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):v.pop(),p=v.length;p--;){const y=o.slice(v[p],v[p+1]),g=a.pop();l.push([g,g+y.length-1]),e.splice(g,2,y)}for(l.reverse(),p=-1;++p<l.length;)c[x+l[p][0]]=x+l[p][1],x+=l[p][1]-l[p][0]-1;return c}const kR={resolve:_R,tokenize:SR},NR={partial:!0,tokenize:IR};function _R(e){return $T(e),e}function SR(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):ge(o)?e.check(NR,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function IR(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Re(e,a,"linePrefix")}function a(s){if(s===null||ge(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function VT(e,t,n,r,i,a,s,o,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return h;function h(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||mh(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||ge(y)?n(y):(e.consume(y),y===92?x:m)}function x(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function b(y){return!f&&(y===null||y===41||tn(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):f<c&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||mh(y)?n(y):(e.consume(y),y===92?v:b)}function v(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function YT(e,t,n,r,i,a){const s=this;let o=0,l;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(a),f}function f(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):ge(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||ge(m)||o++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!Ne(m)),m===92?p:h)}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,h):h(m)}}function GT(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),c(p))}function c(p){return p===s?(e.exit(a),l(s)):p===null?n(p):ge(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Re(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===s||p===null||ge(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:f)}function h(p){return p===s||p===92?(e.consume(p),f):f(p)}}function ro(e,t){let n;return r;function r(i){return ge(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ne(i)?Re(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const OR={name:"definition",tokenize:RR},LR={partial:!0,tokenize:PR};function RR(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return YT.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=Ua(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return tn(m)?ro(e,c)(m):c(m)}function c(m){return VT(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(LR,h,h)(m)}function h(m){return Ne(m)?Re(e,p,"whitespace")(m):p(m)}function p(m){return m===null||ge(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function PR(e,t,n){return r;function r(o){return tn(o)?ro(e,i)(o):n(o)}function i(o){return GT(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ne(o)?Re(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ge(o)?t(o):n(o)}}const DR={name:"hardBreakEscape",tokenize:MR};function MR(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ge(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const FR={name:"headingAtx",resolve:jR,tokenize:BR};function jR(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},gr(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function BR(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||tn(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ge(f)?(e.exit("atxHeading"),t(f)):Ne(f)?Re(e,o,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),o(f))}function c(f){return f===null||f===35||tn(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),c)}}const UR=["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"],g1=["pre","script","style","textarea"],HR={concrete:!0,name:"htmlFlow",resolveTo:$R,tokenize:VR},zR={partial:!0,tokenize:GR},WR={partial:!0,tokenize:YR};function $R(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function VR(e,t,n){const r=this;let i,a,s,o,l;return c;function c(_){return f(_)}function f(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),h}function h(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),a=!0,b):_===63?(e.consume(_),i=3,r.interrupt?t:C):ur(_)?(e.consume(_),s=String.fromCharCode(_),v):n(_)}function p(_){return _===45?(e.consume(_),i=2,m):_===91?(e.consume(_),i=5,o=0,x):ur(_)?(e.consume(_),i=4,r.interrupt?t:C):n(_)}function m(_){return _===45?(e.consume(_),r.interrupt?t:C):n(_)}function x(_){const Te="CDATA[";return _===Te.charCodeAt(o++)?(e.consume(_),o===Te.length?r.interrupt?t:F:x):n(_)}function b(_){return ur(_)?(e.consume(_),s=String.fromCharCode(_),v):n(_)}function v(_){if(_===null||_===47||_===62||tn(_)){const Te=_===47,He=s.toLowerCase();return!Te&&!a&&g1.includes(He)?(i=1,r.interrupt?t(_):F(_)):UR.includes(s.toLowerCase())?(i=6,Te?(e.consume(_),y):r.interrupt?t(_):F(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):a?g(_):E(_))}return _===45||dn(_)?(e.consume(_),s+=String.fromCharCode(_),v):n(_)}function y(_){return _===62?(e.consume(_),r.interrupt?t:F):n(_)}function g(_){return Ne(_)?(e.consume(_),g):H(_)}function E(_){return _===47?(e.consume(_),H):_===58||_===95||ur(_)?(e.consume(_),k):Ne(_)?(e.consume(_),E):H(_)}function k(_){return _===45||_===46||_===58||_===95||dn(_)?(e.consume(_),k):I(_)}function I(_){return _===61?(e.consume(_),N):Ne(_)?(e.consume(_),I):E(_)}function N(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),l=_,L):Ne(_)?(e.consume(_),N):M(_)}function L(_){return _===l?(e.consume(_),l=null,V):_===null||ge(_)?n(_):(e.consume(_),L)}function M(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||tn(_)?I(_):(e.consume(_),M)}function V(_){return _===47||_===62||Ne(_)?E(_):n(_)}function H(_){return _===62?(e.consume(_),Y):n(_)}function Y(_){return _===null||ge(_)?F(_):Ne(_)?(e.consume(_),Y):n(_)}function F(_){return _===45&&i===2?(e.consume(_),ie):_===60&&i===1?(e.consume(_),se):_===62&&i===4?(e.consume(_),re):_===63&&i===3?(e.consume(_),C):_===93&&i===5?(e.consume(_),q):ge(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(zR,ue,K)(_)):_===null||ge(_)?(e.exit("htmlFlowData"),K(_)):(e.consume(_),F)}function K(_){return e.check(WR,z,ue)(_)}function z(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),te}function te(_){return _===null||ge(_)?K(_):(e.enter("htmlFlowData"),F(_))}function ie(_){return _===45?(e.consume(_),C):F(_)}function se(_){return _===47?(e.consume(_),s="",D):F(_)}function D(_){if(_===62){const Te=s.toLowerCase();return g1.includes(Te)?(e.consume(_),re):F(_)}return ur(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),D):F(_)}function q(_){return _===93?(e.consume(_),C):F(_)}function C(_){return _===62?(e.consume(_),re):_===45&&i===2?(e.consume(_),C):F(_)}function re(_){return _===null||ge(_)?(e.exit("htmlFlowData"),ue(_)):(e.consume(_),re)}function ue(_){return e.exit("htmlFlow"),t(_)}}function YR(e,t,n){const r=this;return i;function i(s){return ge(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function GR(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Fc,t,n)}}const qR={name:"htmlText",tokenize:QR};function QR(e,t,n){const r=this;let i,a,s;return o;function o(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),l}function l(C){return C===33?(e.consume(C),c):C===47?(e.consume(C),I):C===63?(e.consume(C),E):ur(C)?(e.consume(C),M):n(C)}function c(C){return C===45?(e.consume(C),f):C===91?(e.consume(C),a=0,x):ur(C)?(e.consume(C),g):n(C)}function f(C){return C===45?(e.consume(C),m):n(C)}function h(C){return C===null?n(C):C===45?(e.consume(C),p):ge(C)?(s=h,se(C)):(e.consume(C),h)}function p(C){return C===45?(e.consume(C),m):h(C)}function m(C){return C===62?ie(C):C===45?p(C):h(C)}function x(C){const re="CDATA[";return C===re.charCodeAt(a++)?(e.consume(C),a===re.length?b:x):n(C)}function b(C){return C===null?n(C):C===93?(e.consume(C),v):ge(C)?(s=b,se(C)):(e.consume(C),b)}function v(C){return C===93?(e.consume(C),y):b(C)}function y(C){return C===62?ie(C):C===93?(e.consume(C),y):b(C)}function g(C){return C===null||C===62?ie(C):ge(C)?(s=g,se(C)):(e.consume(C),g)}function E(C){return C===null?n(C):C===63?(e.consume(C),k):ge(C)?(s=E,se(C)):(e.consume(C),E)}function k(C){return C===62?ie(C):E(C)}function I(C){return ur(C)?(e.consume(C),N):n(C)}function N(C){return C===45||dn(C)?(e.consume(C),N):L(C)}function L(C){return ge(C)?(s=L,se(C)):Ne(C)?(e.consume(C),L):ie(C)}function M(C){return C===45||dn(C)?(e.consume(C),M):C===47||C===62||tn(C)?V(C):n(C)}function V(C){return C===47?(e.consume(C),ie):C===58||C===95||ur(C)?(e.consume(C),H):ge(C)?(s=V,se(C)):Ne(C)?(e.consume(C),V):ie(C)}function H(C){return C===45||C===46||C===58||C===95||dn(C)?(e.consume(C),H):Y(C)}function Y(C){return C===61?(e.consume(C),F):ge(C)?(s=Y,se(C)):Ne(C)?(e.consume(C),Y):V(C)}function F(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),i=C,K):ge(C)?(s=F,se(C)):Ne(C)?(e.consume(C),F):(e.consume(C),z)}function K(C){return C===i?(e.consume(C),i=void 0,te):C===null?n(C):ge(C)?(s=K,se(C)):(e.consume(C),K)}function z(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||tn(C)?V(C):(e.consume(C),z)}function te(C){return C===47||C===62||tn(C)?V(C):n(C)}function ie(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function se(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),D}function D(C){return Ne(C)?Re(e,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):q(C)}function q(C){return e.enter("htmlTextData"),s(C)}}const om={name:"labelEnd",resolveAll:ZR,resolveTo:eP,tokenize:tP},KR={tokenize:nP},XR={tokenize:rP},JR={tokenize:iP};function ZR(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&gr(e,0,e.length,n),e}function eP(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=kn(o,e.slice(a+1,a+r+3)),o=kn(o,[["enter",f,t]]),o=kn(o,sm(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=kn(o,[["exit",f,t],e[s-2],e[s-1],["exit",c,t]]),o=kn(o,e.slice(s+1)),o=kn(o,[["exit",l,t]]),gr(e,a,e.length,o),e}function tP(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(p){return a?a._inactive?h(p):(s=r.parser.defined.includes(Ua(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(KR,f,s?f:h)(p):p===91?e.attempt(XR,f,s?c:h)(p):s?f(p):h(p)}function c(p){return e.attempt(JR,f,h)(p)}function f(p){return t(p)}function h(p){return a._balanced=!0,n(p)}}function nP(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return tn(h)?ro(e,a)(h):a(h)}function a(h){return h===41?f(h):VT(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return tn(h)?ro(e,l)(h):f(h)}function o(h){return n(h)}function l(h){return h===34||h===39||h===40?GT(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):f(h)}function c(h){return tn(h)?ro(e,f)(h):f(h)}function f(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function rP(e,t,n){const r=this;return i;function i(o){return YT.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(Ua(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function iP(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const aP={name:"labelStartImage",resolveAll:om.resolveAll,tokenize:sP};function sP(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const oP={name:"labelStartLink",resolveAll:om.resolveAll,tokenize:lP};function lP(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Md={name:"lineEnding",tokenize:uP};function uP(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Re(e,t,"linePrefix")}}const eu={name:"thematicBreak",tokenize:cP};function cP(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ge(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Ne(c)?Re(e,o,"whitespace")(c):o(c))}}const Gt={continuation:{tokenize:pP},exit:gP,name:"list",tokenize:hP},dP={partial:!0,tokenize:yP},fP={partial:!0,tokenize:mP};function hP(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(m){const x=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:gh(m)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(eu,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return gh(m)&&++s<10?(e.consume(m),l):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Fc,r.interrupt?n:f,e.attempt(dP,p,h))}function f(m){return r.containerState.initialBlankLine=!0,a++,p(m)}function h(m){return Ne(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function pP(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Fc,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Re(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ne(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fP,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Re(e,e.attempt(Gt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function mP(e,t,n){const r=this;return Re(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function gP(e){e.exit(this.containerState.type)}function yP(e,t,n){const r=this;return Re(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ne(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const y1={name:"setextUnderline",resolveTo:xP,tokenize:bP};function xP(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function bP(e,t,n){const r=this;let i;return a;function a(c){let f=r.events.length,h;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){h=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Ne(c)?Re(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ge(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const EP={tokenize:TP};function TP(e){const t=this,n=e.attempt(Fc,r,e.attempt(this.parser.constructs.flowInitial,i,Re(e,e.attempt(this.parser.constructs.flow,i,e.attempt(kR,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const vP={resolveAll:QT()},wP=qT("string"),CP=qT("text");function qT(e){return{resolveAll:QT(e==="text"?AP:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(f){return c(f)?a(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return c(f)?(n.exit("data"),a(f)):(n.consume(f),l)}function c(f){if(f===null)return!0;const h=i[f];let p=-1;if(h)for(;++p<h.length;){const m=h[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function QT(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function AP(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,o=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)l=!0,o++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const kP={42:Gt,43:Gt,45:Gt,48:Gt,49:Gt,50:Gt,51:Gt,52:Gt,53:Gt,54:Gt,55:Gt,56:Gt,57:Gt,62:HT},NP={91:OR},_P={[-2]:Dd,[-1]:Dd,32:Dd},SP={35:FR,42:eu,45:[y1,eu],60:HR,61:y1,95:eu,96:m1,126:m1},IP={38:WT,92:zT},OP={[-5]:Md,[-4]:Md,[-3]:Md,33:aP,38:WT,42:yh,60:[oR,qR],91:oP,92:[DR,zT],93:om,95:yh,96:ER},LP={null:[yh,vP]},RP={null:[42,95]},PP={null:[]},DP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:RP,contentInitial:NP,disable:PP,document:kP,flow:SP,flowInitial:_P,insideSpan:LP,string:IP,text:OP},Symbol.toStringTag,{value:"Module"}));function MP(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:L(I),check:L(N),consume:g,enter:E,exit:k,interrupt:L(N,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:h};let f=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function h(Y){return s=kn(s,Y),v(),s[s.length-1]!==null?[]:(M(t,0),c.events=sm(a,c.events,c),c.events)}function p(Y,F){return jP(m(Y),F)}function m(Y){return FP(s,Y)}function x(){const{_bufferIndex:Y,_index:F,line:K,column:z,offset:te}=r;return{_bufferIndex:Y,_index:F,line:K,column:z,offset:te}}function b(Y){i[Y.line]=Y.column,H()}function v(){let Y;for(;r._index<s.length;){const F=s[r._index];if(typeof F=="string")for(Y=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Y&&r._bufferIndex<F.length;)y(F.charCodeAt(r._bufferIndex));else y(F)}}function y(Y){f=f(Y)}function g(Y){ge(Y)?(r.line++,r.column=1,r.offset+=Y===-3?2:1,H()):Y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=Y}function E(Y,F){const K=F||{};return K.type=Y,K.start=x(),c.events.push(["enter",K,c]),o.push(K),K}function k(Y){const F=o.pop();return F.end=x(),c.events.push(["exit",F,c]),F}function I(Y,F){M(Y,F.from)}function N(Y,F){F.restore()}function L(Y,F){return K;function K(z,te,ie){let se,D,q,C;return Array.isArray(z)?ue(z):"tokenize"in z?ue([z]):re(z);function re(he){return Ze;function Ze(Qe){const ut=Qe!==null&&he[Qe],mt=Qe!==null&&he.null,yn=[...Array.isArray(ut)?ut:ut?[ut]:[],...Array.isArray(mt)?mt:mt?[mt]:[]];return ue(yn)(Qe)}}function ue(he){return se=he,D=0,he.length===0?ie:_(he[D])}function _(he){return Ze;function Ze(Qe){return C=V(),q=he,he.partial||(c.currentConstruct=he),he.name&&c.parser.constructs.disable.null.includes(he.name)?He():he.tokenize.call(F?Object.assign(Object.create(c),F):c,l,Te,He)(Qe)}}function Te(he){return Y(q,C),te}function He(he){return C.restore(),++D<se.length?_(se[D]):ie}}}function M(Y,F){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&gr(c.events,F,c.events.length-F,Y.resolve(c.events.slice(F),c)),Y.resolveTo&&(c.events=Y.resolveTo(c.events,c))}function V(){const Y=x(),F=c.previous,K=c.currentConstruct,z=c.events.length,te=Array.from(o);return{from:z,restore:ie};function ie(){r=Y,c.previous=F,c.currentConstruct=K,c.events.length=z,o=te,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function FP(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function jP(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":"	";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function BP(e){const r={constructs:YL([DP,...(e||{}).extensions||[]]),content:i(eR),defined:[],document:i(nR),flow:i(EP),lazy:{},string:i(wP),text:i(CP)};return r;function i(a){return s;function s(o){return MP(r,a,o)}}}function UP(e){for(;!$T(e););return e}const x1=/[\0\t\n\r]/g;function HP(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const l=[];let c,f,h,p,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(x1.lastIndex=h,c=x1.exec(a),p=c&&c.index!==void 0?c.index:a.length,m=a.charCodeAt(p),!c){t=a.slice(h);break}if(m===10&&h===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<p&&(l.push(a.slice(h,p)),e+=p-h),m){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const zP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WP(e){return e.replace(zP,$P)}function $P(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return UT(n.slice(a?2:1),a?16:10)}return am(n)||e}const KT={}.hasOwnProperty;function VP(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),YP(n)(UP(BP(n).document().write(HP()(e,t,!0))))}function YP(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(R),autolinkProtocol:V,autolinkEmail:V,atxHeading:a(Ur),blockQuote:a(mt),characterEscape:V,characterReference:V,codeFenced:a(yn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(yn,s),codeText:a(Kn,s),codeTextData:V,data:V,codeFlowValue:V,definition:a(xn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Xn),hardBreakEscape:a(bn),hardBreakTrailing:a(bn),htmlFlow:a(Di,s),htmlFlowData:V,htmlText:a(Di,s),htmlTextData:V,image:a(O),label:s,link:a(R),listItem:a(ae),listItemValue:p,listOrdered:a(U,h),listUnordered:a(U),paragraph:a(ne),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Ur),strong:a(Z),thematicBreak:a(Ce)},exit:{atxHeading:l(),atxHeadingSequence:I,autolink:l(),autolinkEmail:ut,autolinkProtocol:Qe,blockQuote:l(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:He,characterReferenceMarkerNumeric:He,characterReferenceValue:he,characterReference:Ze,codeFenced:l(v),codeFencedFence:b,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:H,codeIndented:l(y),codeText:l(te),codeTextData:H,data:H,definition:l(),definitionDestinationString:k,definitionLabelString:g,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l(K),htmlFlowData:H,htmlText:l(z),htmlTextData:H,image:l(se),label:q,labelText:D,lineEnding:Y,link:l(ie),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Te,resourceDestinationString:C,resourceTitleString:re,resource:ue,setextHeading:l(M),setextHeadingLineSequence:L,setextHeadingText:N,strong:l(),thematicBreak:l()}};XT(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let $={type:"root",children:[]};const fe={stack:[$],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:f,data:n},xe=[];let Ae=-1;for(;++Ae<j.length;)if(j[Ae][1].type==="listOrdered"||j[Ae][1].type==="listUnordered")if(j[Ae][0]==="enter")xe.push(Ae);else{const gt=xe.pop();Ae=i(j,gt,Ae)}for(Ae=-1;++Ae<j.length;){const gt=t[j[Ae][0]];KT.call(gt,j[Ae][1].type)&&gt[j[Ae][1].type].call(Object.assign({sliceSerialize:j[Ae][2].sliceSerialize},fe),j[Ae][1])}if(fe.tokenStack.length>0){const gt=fe.tokenStack[fe.tokenStack.length-1];(gt[1]||b1).call(fe,void 0,gt[0])}for($.position={start:Vr(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Vr(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)$=t.transforms[Ae]($)||$;return $}function i(j,$,fe){let xe=$-1,Ae=-1,gt=!1,En,Pt,br,Tn;for(;++xe<=fe;){const Ve=j[xe];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Ae++:Ae--,Tn=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(En&&!Tn&&!Ae&&!br&&(br=xe),Tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tn=void 0}if(!Ae&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Ae===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(En){let Hr=xe;for(Pt=void 0;Hr--;){const pe=j[Hr];if(pe[1].type==="lineEnding"||pe[1].type==="lineEndingBlank"){if(pe[0]==="exit")continue;Pt&&(j[Pt][1].type="lineEndingBlank",gt=!0),pe[1].type="lineEnding",Pt=Hr}else if(!(pe[1].type==="linePrefix"||pe[1].type==="blockQuotePrefix"||pe[1].type==="blockQuotePrefixWhitespace"||pe[1].type==="blockQuoteMarker"||pe[1].type==="listItemIndent"))break}br&&(!Pt||br<Pt)&&(En._spread=!0),En.end=Object.assign({},Pt?j[Pt][1].start:Ve[1].end),j.splice(Pt||xe,0,["exit",En,Ve[2]]),xe++,fe++}if(Ve[1].type==="listItemPrefix"){const Hr={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};En=Hr,j.splice(xe,0,["enter",Hr,Ve[2]]),xe++,fe++,br=void 0,Tn=!0}}}return j[$][1]._spread=gt,fe}function a(j,$){return fe;function fe(xe){o.call(this,j(xe),xe),$&&$.call(this,xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,$,fe){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([$,fe||void 0]),j.position={start:Vr($.start),end:void 0}}function l(j){return $;function $(fe){j&&j.call(this,fe),c.call(this,fe)}}function c(j,$){const fe=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==j.type&&($?$.call(this,j,xe[0]):(xe[1]||b1).call(this,j,xe[0]));else throw new Error("Cannot close `"+j.type+"` ("+no({start:j.start,end:j.end})+"): it’s not open");fe.position.end=Vr(j.end)}function f(){return $L(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(j){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function m(){const j=this.resume(),$=this.stack[this.stack.length-1];$.lang=j}function x(){const j=this.resume(),$=this.stack[this.stack.length-1];$.meta=j}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/(\r?\n|\r)$/g,"")}function g(j){const $=this.resume(),fe=this.stack[this.stack.length-1];fe.label=$,fe.identifier=Ua(this.sliceSerialize(j)).toLowerCase()}function E(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function k(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function I(j){const $=this.stack[this.stack.length-1];if(!$.depth){const fe=this.sliceSerialize(j).length;$.depth=fe}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function L(j){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function V(j){const fe=this.stack[this.stack.length-1].children;let xe=fe[fe.length-1];(!xe||xe.type!=="text")&&(xe=ce(),xe.position={start:Vr(j.start),end:void 0},fe.push(xe)),this.stack.push(xe)}function H(j){const $=this.stack.pop();$.value+=this.sliceSerialize(j),$.position.end=Vr(j.end)}function Y(j){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=$.children[$.children.length-1];fe.position.end=Vr(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(V.call(this,j),H.call(this,j))}function F(){this.data.atHardBreak=!0}function K(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function z(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function te(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function ie(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function se(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function D(j){const $=this.sliceSerialize(j),fe=this.stack[this.stack.length-2];fe.label=WP($),fe.identifier=Ua($).toLowerCase()}function q(){const j=this.stack[this.stack.length-1],$=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const xe=j.children;fe.children=xe}else fe.alt=$}function C(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function re(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function ue(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function Te(j){const $=this.resume(),fe=this.stack[this.stack.length-1];fe.label=$,fe.identifier=Ua(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function He(j){this.data.characterReferenceType=j.type}function he(j){const $=this.sliceSerialize(j),fe=this.data.characterReferenceType;let xe;fe?(xe=UT($,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):xe=am($);const Ae=this.stack[this.stack.length-1];Ae.value+=xe}function Ze(j){const $=this.stack.pop();$.position.end=Vr(j.end)}function Qe(j){H.call(this,j);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(j)}function ut(j){H.call(this,j);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(j)}function mt(){return{type:"blockquote",children:[]}}function yn(){return{type:"code",lang:null,meta:null,value:""}}function Kn(){return{type:"inlineCode",value:""}}function xn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xn(){return{type:"emphasis",children:[]}}function Ur(){return{type:"heading",depth:0,children:[]}}function bn(){return{type:"break"}}function Di(){return{type:"html",value:""}}function O(){return{type:"image",title:null,url:"",alt:null}}function R(){return{type:"link",title:null,url:"",children:[]}}function U(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function ae(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function ne(){return{type:"paragraph",children:[]}}function Z(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function Vr(e){return{line:e.line,column:e.column,offset:e.offset}}function XT(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?XT(e,r):GP(e,r)}}function GP(e,t){let n;for(n in t)if(KT.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function b1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+no({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+no({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+no({start:t.start,end:t.end})+") is still open")}function qP(e){const t=this;t.parser=n;function n(r){return VP(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function QP(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function KP(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function XP(e,t){const n=t.value?t.value+`
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function JP(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ZP(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function e8(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Es(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function t8(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function n8(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function JT(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function r8(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JT(e,t);const i={src:Es(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function i8(e,t){const n={src:Es(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function a8(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function s8(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return JT(e,t);const i={href:Es(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function o8(e,t){const n={href:Es(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function l8(e,t,n){const r=e.all(t),i=n?u8(n):ZT(t),a={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let h;f&&f.type==="element"&&f.tagName==="p"?h=f:(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:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)}function u8(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ZT(n[r])}return t}function ZT(e){const t=e.spread;return t??e.children.length>1}function c8(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function d8(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f8(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function h8(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p8(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=xr(t.children[1]),l=Mc(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function m8(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const h=t.children[l],p={},m=s?s[l]:void 0;m&&(p.align=m);let x={type:"element",tagName:a,properties:p,children:[]};h&&(x.children=e.all(h),e.patch(h,x),x=e.applyData(h,x)),c.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function g8(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const E1=9,T1=32;function y8(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(v1(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(v1(t.slice(i),i>0,!1)),a.join("")}function v1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===E1||a===T1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===E1||a===T1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function x8(e,t){const n={type:"text",value:y8(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function b8(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const E8={blockquote:QP,break:KP,code:XP,delete:JP,emphasis:ZP,footnoteReference:e8,heading:t8,html:n8,imageReference:r8,image:i8,inlineCode:a8,linkReference:s8,link:o8,listItem:l8,list:c8,paragraph:d8,root:f8,strong:h8,table:p8,tableCell:g8,tableRow:m8,text:x8,thematicBreak:b8,toml:Ll,yaml:Ll,definition:Ll,footnoteDefinition:Ll};function Ll(){}const ev=-1,jc=0,io=1,Qu=2,lm=3,um=4,cm=5,dm=6,tv=7,nv=8,{defineProperty:T8}=Object,rv=typeof self=="object"?self:globalThis,w1=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new rv[e](t)},v8=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case jc:case ev:return n(s,i);case io:{const o=n([],i);for(const l of s)o.push(r(l));return o}case Qu:{const o=n({},i);for(const[l,c]of s){const f=r(l),h=r(c);f==="__proto__"?T8(o,f,{value:h,configurable:!0,enumerable:!0,writable:!0}):o[f]=h}return o}case lm:return n(new Date(s),i);case um:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case cm:{const o=n(new Map,i);for(const[l,c]of s)o.set(r(l),r(c));return o}case dm:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case tv:{const{name:o,message:l}=s;return n(typeof rv[o]=="function"?w1(o,l):new Error(l),i)}case nv:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}case"-0":return-0}return n(w1(a,s),i)};return r},C1=e=>v8(new Map,e)(0),ji="",{toString:w8}={},{keys:C8,is:A8}=Object,Ms=e=>{const t=typeof e;if(t!=="object"||!e)return[jc,t];const n=w8.call(e).slice(8,-1);switch(n){case"Array":return[io,ji];case"Object":return[Qu,ji];case"Date":return[lm,ji];case"RegExp":return[um,ji];case"Map":return[cm,ji];case"Set":return[dm,ji];case"DataView":return[io,n]}return n.includes("Array")?[io,n]:e instanceof Error?[tv,e.name||"Error"]:[Qu,n]},Rl=([e,t])=>e===jc&&(t==="function"||t==="symbol"),k8=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Ms(s);switch(o){case jc:{let f=s;switch(l){case"bigint":o=nv,f=s.toString();break;case"number":if(!s&&A8(s,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([ev],s)}return i([o,f],s)}case io:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const f=[],h=i([o,f],s);for(const p of s)f.push(a(p));return h}case Qu:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const f=[],h=i([o,f],s);for(const p of C8(s))(e||!Rl(Ms(s[p])))&&f.push([a(p),a(s[p])]);return h}case lm:return i([o,isNaN(s.getTime())?ji:s.toISOString()],s);case um:{const{source:f,flags:h}=s;return i([o,{source:f,flags:h}],s)}case cm:{const f=[],h=i([o,f],s);for(const[p,m]of s)(e||!(Rl(Ms(p))||Rl(Ms(m))))&&f.push([a(p),a(m)]);return h}case dm:{const f=[],h=i([o,f],s);for(const p of s)(e||!Rl(Ms(p)))&&f.push(a(p));return h}}const{message:c}=s;return i([o,{name:l,message:c}],s)};return a},A1=(e,{json:t,lossy:n}={})=>{const r=[];return k8(!(t||n),!!t,new Map,r)(e),r},ss=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?C1(A1(e,t)):structuredClone(e):(e,t)=>C1(A1(e,t));function N8(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _8(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function S8(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||N8,r=e.options.footnoteBackLabel||_8,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const f=e.all(c),h=String(c.identifier).toUpperCase(),p=Es(h.toLowerCase());let m=0;const x=[],b=e.footnoteCounts.get(h);for(;b!==void 0&&++m<=b;){x.length>0&&x.push({type:"text",value:" "});let g=typeof n=="string"?n:n(l,m);typeof g=="string"&&(g={type:"text",value:g}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const g=v.children[v.children.length-1];g&&g.type==="text"?g.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...x)}else f.push(...x);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(c,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ss(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
`}]}}const iv=function(e){if(e==null)return R8;if(typeof e=="function")return Bc(e);if(typeof e=="object")return Array.isArray(e)?I8(e):O8(e);if(typeof e=="string")return L8(e);throw new Error("Expected function, string, or object as test")};function I8(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=iv(e[n]);return Bc(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function O8(e){const t=e;return Bc(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function L8(e){return Bc(t);function t(n){return n&&n.type===e}}function Bc(e){return t;function t(n,r,i){return!!(P8(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function R8(){return!0}function P8(e){return e!==null&&typeof e=="object"&&"type"in e}const av=[],D8=!0,k1=!1,M8="skip";function F8(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=iv(i),s=r?-1:1;o(e,void 0,[])();function o(l,c,f){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=av,x,b,v;if((!t||a(l,c,f[f.length-1]||void 0))&&(m=j8(n(l,f)),m[0]===k1))return m;if("children"in l&&l.children){const y=l;if(y.children&&m[0]!==M8)for(b=(r?y.children.length:-1)+s,v=f.concat(y);b>-1&&b<y.children.length;){const g=y.children[b];if(x=o(g,b,v)(),x[0]===k1)return x;b=typeof x[1]=="number"?x[1]:b+s}}return m}}}function j8(e){return Array.isArray(e)?e:typeof e=="number"?[D8,e]:e==null?av:[e]}function fm(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),F8(e,a,o,i);function o(l,c){const f=c[c.length-1],h=f?f.children.indexOf(l):void 0;return s(l,h,f)}}const xh={}.hasOwnProperty,B8={};function U8(e,t){const n=t||B8,r=new Map,i=new Map,a=new Map,s={...E8,...n.handlers},o={all:c,applyData:z8,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:H8,wrap:$8};return fm(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const h=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();h.has(p)||h.set(p,f)}}),o;function l(f,h){const p=f.type,m=o.handlers[p];if(xh.call(o.handlers,p)&&m)return m(o,f,h);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in f){const{children:b,...v}=f,y=ss(v);return y.children=o.all(f),y}return ss(f)}return(o.options.unknownHandler||W8)(o,f,h)}function c(f){const h=[];if("children"in f){const p=f.children;let m=-1;for(;++m<p.length;){const x=o.one(p[m],f);if(x){if(m&&p[m-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=N1(x.value)),!Array.isArray(x)&&x.type==="element")){const b=x.children[0];b&&b.type==="text"&&(b.value=N1(b.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function H8(e,t){e.position&&(t.position=vL(e))}function z8(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,ss(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function W8(e,t){const n=t.data||{},r="value"in t&&!(xh.call(n,"hProperties")||xh.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $8(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function N1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _1(e,t){const n=U8(e,t),r=n.one(e,void 0),i=S8(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function V8(e,t){return e&&"run"in e?async function(n,r){const i=_1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return _1(n,{file:r,...e||t})}}function S1(e){if(e)throw e}var tu=Object.prototype.hasOwnProperty,sv=Object.prototype.toString,I1=Object.defineProperty,O1=Object.getOwnPropertyDescriptor,L1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):sv.call(t)==="[object Array]"},R1=function(t){if(!t||sv.call(t)!=="[object Object]")return!1;var n=tu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&tu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||tu.call(t,i)},P1=function(t,n){I1&&n.name==="__proto__"?I1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},D1=function(t,n){if(n==="__proto__")if(tu.call(t,n)){if(O1)return O1(t,n).value}else return;return t[n]},Y8=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,c=arguments.length,f=!1;for(typeof o=="boolean"&&(f=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=D1(o,n),i=D1(t,n),o!==i&&(f&&i&&(R1(i)||(a=L1(i)))?(a?(a=!1,s=r&&L1(r)?r:[]):s=r&&R1(r)?r:{},P1(o,{name:n,newValue:e(f,s,i)})):typeof i<"u"&&P1(o,{name:n,newValue:i}));return o};const Fd=ec(Y8);function bh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function G8(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...c){const f=e[++a];let h=-1;if(l){s(l);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,f?q8(f,o)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function q8(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(c){const f=c;if(o&&n)throw f;return i(f)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const nr={basename:Q8,dirname:K8,extname:X8,join:J8,sep:"/"};function Q8(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tl(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function K8(e){if(tl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function X8(e){tl(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function J8(...e){let t=-1,n;for(;++t<e.length;)tl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Z8(n)}function Z8(e){tl(e);const t=e.codePointAt(0)===47;let n=eD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eD(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===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=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function tl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tD={cwd:nD};function nD(){return"/"}function Eh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rD(e){if(typeof e=="string")e=new URL(e);else if(!Eh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return iD(e)}function iD(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const jd=["history","path","basename","stem","extname","dirname"];class ov{constructor(t){let n;t?Eh(t)?n={path:t}:typeof t=="string"||aD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<jd.length;){const a=jd[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)jd.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?nr.basename(this.path):void 0}set basename(t){Ud(t,"basename"),Bd(t,"basename"),this.path=nr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?nr.dirname(this.path):void 0}set dirname(t){M1(this.basename,"dirname"),this.path=nr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?nr.extname(this.path):void 0}set extname(t){if(Bd(t,"extname"),M1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=nr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Eh(t)&&(t=rD(t)),Ud(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?nr.basename(this.path,this.extname):void 0}set stem(t){Ud(t,"stem"),Bd(t,"stem"),this.path=nr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Lt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Bd(e,t){if(e&&e.includes(nr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+nr.sep+"`")}function Ud(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function M1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function aD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sD=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},oD={}.hasOwnProperty;class hm extends sD{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=G8()}copy(){const t=new hm;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Fd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wd("data",this.frozen),this.namespace[t]=n,this):oD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Pl(t),r=this.parser||this.Parser;return Hd("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Hd("process",this.parser||this.Parser),zd("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=Pl(t),l=r.parse(o);r.run(l,o,function(f,h,p){if(f||!h||!p)return c(f);const m=h,x=r.stringify(m,p);cD(x)?p.value=x:p.result=x,c(f,p)});function c(f,h){f||!h?s(f):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Hd("processSync",this.parser||this.Parser),zd("processSync",this.compiler||this.Compiler),this.process(t,i),j1("processSync","process",n),r;function i(a,s){n=!0,S1(a),r=s}}run(t,n,r){F1(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const l=Pl(n);i.run(t,l,c);function c(f,h,p){const m=h||t;f?o(f):s?s(m):r(void 0,m,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),j1("runSync","run",r),i;function a(s,o){S1(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Pl(n),i=this.compiler||this.Compiler;return zd("stringify",i),F1(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Wd("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...h]=c;l(f,h)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(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");o(c.plugins),c.settings&&(i.settings=Fd(!0,i.settings,c.settings))}function o(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const h=c[f];a(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===c){p=h;break}if(p===-1)r.push([c,...f]);else if(f.length>0){let[m,...x]=f;const b=r[p][1];bh(b)&&bh(m)&&(m=Fd(!0,b,m)),r[p]=[c,m,...x]}}}}const lD=new hm().freeze();function Hd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function F1(e){if(!bh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function j1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pl(e){return uD(e)?e:new ov(e)}function uD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cD(e){return typeof e=="string"||dD(e)}function dD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",B1=[],U1={allowDangerousHtml:!0},hD=/^(https?|ircs?|mailto|xmpp)$/i,pD=[{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:"className",id:"remove-classname"},{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 mD(e){const t=gD(e),n=yD(e);return xD(t.runSync(t.parse(n),n),e)}function gD(e){const t=e.rehypePlugins||B1,n=e.remarkPlugins||B1,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...U1}:U1;return lD().use(qP).use(n).use(V8,r).use(t)}function yD(e){const t=e.children||"",n=new ov;return typeof t=="string"&&(n.value=t),n}function xD(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||bD;for(const f of pD)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+fD+f.id,void 0);return fm(e,c),NL(e,{Fragment:u.Fragment,components:i,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function c(f,h,p){if(f.type==="raw"&&p&&typeof h=="number")return s?p.children.splice(h,1):p.children[h]={type:"text",value:f.value},h;if(f.type==="element"){let m;for(m in Pd)if(Object.hasOwn(Pd,m)&&Object.hasOwn(f.properties,m)){const x=f.properties[m],b=Pd[m];(b===null||b.includes(f.tagName))&&(f.properties[m]=l(String(x||""),m,f))}}if(f.type==="element"){let m=n?!n.includes(f.tagName):a?a.includes(f.tagName):!1;if(!m&&r&&typeof h=="number"&&(m=!r(f,h,p)),m&&p&&typeof h=="number")return o&&f.children?p.children.splice(h,1,...f.children):p.children.splice(h,1),h}}}function bD(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||hD.test(e.slice(0,t))?e:""}const H1=/[#.]/g;function ED(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){H1.lastIndex=i;const o=H1.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function lv(e,t,n){const r=n?CD(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const c=s;o.unshift(c)}else{l=ED(a,t);const c=l.tagName.toLowerCase(),f=r?r.get(c):void 0;if(l.tagName=f||c,TD(s))o.unshift(s);else for(const[h,p]of Object.entries(s))vD(e,l.properties,h,p)}for(const c of o)Th(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function TD(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function vD(e,t,n,r){const i=Pc(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=e1(r):i.commaSeparated?a=Qg(r):i.commaOrSpaceSeparated?a=e1(Qg(r).join(" ")):a=z1(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?wD(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(z1(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Th(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Th(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Th(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function z1(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Bo(n)===Bo(t)))return!0}return n}function wD(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function CD(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const AD=["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"],kD=lv(el,"div"),ND=lv(Ri,"g",AD);function _D(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=W1(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=W1(t,o),c=l===-1?t.length+1:l+1;if(o===c)break;n.push(c)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function W1(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const $i={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/"},uv={}.hasOwnProperty,SD=Object.prototype;function ID(e,t){const n=t||{};return pm({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ri:el,verbose:n.verbose||!1},e)}function pm(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},nu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:cv(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=_D(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},nu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},nu(e,r,n),n}default:return n=OD(e,t),n}}function cv(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=pm(e,t[n]);r.push(i)}return r}function OD(e,t){const n=e.schema;e.schema=t.namespaceURI===$i.svg?Ri:el;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;uv.call(SD,l)||(i[l]=o.value)}const s=(e.schema.space==="svg"?ND:kD)(t.tagName,i,cv(e,t.childNodes));if(nu(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,c=l&&l.startTag&&Oa(l.startTag),f=l&&l.endTag&&Oa(l.endTag),h=pm(e,o.content);c&&f&&e.file&&(h.position={start:c.end,end:f.start}),s.content=h}return e.schema=n,s}function nu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=LD(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function LD(e,t,n){const r=Oa(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)uv.call(n.attrs,s)&&(a[Pc(e.schema,s).property]=Oa(n.attrs[s]));n.startTag;const o=Oa(n.startTag),l=n.endTag?Oa(n.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=a,t.data={position:c}}}return r}function Oa(e){const t=$1({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=$1({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function $1(e){return e.line&&e.column?e:void 0}const V1={}.hasOwnProperty;function dv(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&V1.call(i,e)){const l=String(i[e]);s=V1.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const RD={},PD={}.hasOwnProperty,fv=dv("type",{handlers:{root:MD,element:HD,text:BD,comment:UD,doctype:jD}});function DD(e,t){const r=(t||RD).space;return fv(e,r==="svg"?Ri:el)}function MD(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=mm(e.children,n,t),Ts(e,n),n}function FD(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=mm(e.children,n,t),Ts(e,n),n}function jD(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ts(e,t),t}function BD(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ts(e,t),t}function UD(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ts(e,t),t}function HD(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ri);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&PD.call(e.properties,a)){const l=zD(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:$i[s],childNodes:[],parentNode:null};return o.childNodes=mm(e.children,o,r),Ts(e,o),e.tagName==="template"&&e.content&&(o.content=FD(e.content,r)),o}function zD(e,t,n){const r=Pc(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?AT(n):RT(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=$i[r.space]}return i}function mm(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=fv(e[r],n);a.parentNode=t,i.push(a)}return i}function Ts(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.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 WD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],$D=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]),Be="�";var w;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(w||(w={}));const Yt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function hv(e){return e>=55296&&e<=57343}function VD(e){return e>=56320&&e<=57343}function YD(e,t){return(e-55296)*1024+9216+t}function pv(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function mv(e){return e>=64976&&e<=65007||$D.has(e)}var B;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(B||(B={}));const GD=65536;class qD{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=GD,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(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(VD(n))return this.pos++,this._addGap(),YD(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,w.EOF;return this._err(B.surrogateInInputStream),t}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(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;const r=this.html.charCodeAt(n);return r===w.CARRIAGE_RETURN?w.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,w.EOF;let t=this.html.charCodeAt(this.pos);return t===w.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,w.LINE_FEED):t===w.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,hv(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===w.LINE_FEED||t===w.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){pv(t)?this._err(B.controlCharacterInInputStream):mv(t)&&this._err(B.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ve;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ve||(ve={}));function gv(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const QD=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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;䅻Dzᕔ\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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\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᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),KD=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]]);function XD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=KD.get(e))!==null&&t!==void 0?t:e}var ht;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ht||(ht={}));const JD=32;var di;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(di||(di={}));function vh(e){return e>=ht.ZERO&&e<=ht.NINE}function ZD(e){return e>=ht.UPPER_A&&e<=ht.UPPER_F||e>=ht.LOWER_A&&e<=ht.LOWER_F}function eM(e){return e>=ht.UPPER_A&&e<=ht.UPPER_Z||e>=ht.LOWER_A&&e<=ht.LOWER_Z||vh(e)}function tM(e){return e===ht.EQUALS||eM(e)}var ct;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ct||(ct={}));var kr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(kr||(kr={}));class nM{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ct.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=kr.Strict}startEntity(t){this.decodeMode=t,this.state=ct.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ct.EntityStart:return t.charCodeAt(n)===ht.NUM?(this.state=ct.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ct.NamedEntity,this.stateNamedEntity(t,n));case ct.NumericStart:return this.stateNumericStart(t,n);case ct.NumericDecimal:return this.stateNumericDecimal(t,n);case ct.NumericHex:return this.stateNumericHex(t,n);case ct.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|JD)===ht.LOWER_X?(this.state=ct.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ct.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(vh(i)||ZD(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(vh(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ht.SEMI)this.consumed+=1;else if(this.decodeMode===kr.Strict)return 0;return this.emitCodePoint(XD(this.result),this.consumed),this.errors&&(t!==ht.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&di.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=rM(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===kr.Attribute&&(a===0||tM(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&di.VALUE_LENGTH)>>14,a!==0){if(s===ht.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==kr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&di.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~di.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ct.NamedEntity:return this.result!==0&&(this.decodeMode!==kr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ct.NumericDecimal:return this.emitNumericEntity(0,2);case ct.NumericHex:return this.emitNumericEntity(0,3);case ct.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ct.EntityStart:return 0}}}function rM(e,t,n,r){const i=(t&di.BRANCH_LENGTH)>>7,a=t&di.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,c=e[l];if(c<r)s=l+1;else if(c>r)o=l-1;else return e[l+i]}return-1}var G;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(G||(G={}));var Zi;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Zi||(Zi={}));var Nn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Nn||(Nn={}));var P;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(P||(P={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const iM=new Map([[P.A,d.A],[P.ADDRESS,d.ADDRESS],[P.ANNOTATION_XML,d.ANNOTATION_XML],[P.APPLET,d.APPLET],[P.AREA,d.AREA],[P.ARTICLE,d.ARTICLE],[P.ASIDE,d.ASIDE],[P.B,d.B],[P.BASE,d.BASE],[P.BASEFONT,d.BASEFONT],[P.BGSOUND,d.BGSOUND],[P.BIG,d.BIG],[P.BLOCKQUOTE,d.BLOCKQUOTE],[P.BODY,d.BODY],[P.BR,d.BR],[P.BUTTON,d.BUTTON],[P.CAPTION,d.CAPTION],[P.CENTER,d.CENTER],[P.CODE,d.CODE],[P.COL,d.COL],[P.COLGROUP,d.COLGROUP],[P.DD,d.DD],[P.DESC,d.DESC],[P.DETAILS,d.DETAILS],[P.DIALOG,d.DIALOG],[P.DIR,d.DIR],[P.DIV,d.DIV],[P.DL,d.DL],[P.DT,d.DT],[P.EM,d.EM],[P.EMBED,d.EMBED],[P.FIELDSET,d.FIELDSET],[P.FIGCAPTION,d.FIGCAPTION],[P.FIGURE,d.FIGURE],[P.FONT,d.FONT],[P.FOOTER,d.FOOTER],[P.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[P.FORM,d.FORM],[P.FRAME,d.FRAME],[P.FRAMESET,d.FRAMESET],[P.H1,d.H1],[P.H2,d.H2],[P.H3,d.H3],[P.H4,d.H4],[P.H5,d.H5],[P.H6,d.H6],[P.HEAD,d.HEAD],[P.HEADER,d.HEADER],[P.HGROUP,d.HGROUP],[P.HR,d.HR],[P.HTML,d.HTML],[P.I,d.I],[P.IMG,d.IMG],[P.IMAGE,d.IMAGE],[P.INPUT,d.INPUT],[P.IFRAME,d.IFRAME],[P.KEYGEN,d.KEYGEN],[P.LABEL,d.LABEL],[P.LI,d.LI],[P.LINK,d.LINK],[P.LISTING,d.LISTING],[P.MAIN,d.MAIN],[P.MALIGNMARK,d.MALIGNMARK],[P.MARQUEE,d.MARQUEE],[P.MATH,d.MATH],[P.MENU,d.MENU],[P.META,d.META],[P.MGLYPH,d.MGLYPH],[P.MI,d.MI],[P.MO,d.MO],[P.MN,d.MN],[P.MS,d.MS],[P.MTEXT,d.MTEXT],[P.NAV,d.NAV],[P.NOBR,d.NOBR],[P.NOFRAMES,d.NOFRAMES],[P.NOEMBED,d.NOEMBED],[P.NOSCRIPT,d.NOSCRIPT],[P.OBJECT,d.OBJECT],[P.OL,d.OL],[P.OPTGROUP,d.OPTGROUP],[P.OPTION,d.OPTION],[P.P,d.P],[P.PARAM,d.PARAM],[P.PLAINTEXT,d.PLAINTEXT],[P.PRE,d.PRE],[P.RB,d.RB],[P.RP,d.RP],[P.RT,d.RT],[P.RTC,d.RTC],[P.RUBY,d.RUBY],[P.S,d.S],[P.SCRIPT,d.SCRIPT],[P.SEARCH,d.SEARCH],[P.SECTION,d.SECTION],[P.SELECT,d.SELECT],[P.SOURCE,d.SOURCE],[P.SMALL,d.SMALL],[P.SPAN,d.SPAN],[P.STRIKE,d.STRIKE],[P.STRONG,d.STRONG],[P.STYLE,d.STYLE],[P.SUB,d.SUB],[P.SUMMARY,d.SUMMARY],[P.SUP,d.SUP],[P.TABLE,d.TABLE],[P.TBODY,d.TBODY],[P.TEMPLATE,d.TEMPLATE],[P.TEXTAREA,d.TEXTAREA],[P.TFOOT,d.TFOOT],[P.TD,d.TD],[P.TH,d.TH],[P.THEAD,d.THEAD],[P.TITLE,d.TITLE],[P.TR,d.TR],[P.TRACK,d.TRACK],[P.TT,d.TT],[P.U,d.U],[P.UL,d.UL],[P.SVG,d.SVG],[P.VAR,d.VAR],[P.WBR,d.WBR],[P.XMP,d.XMP]]);function vs(e){var t;return(t=iM.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const Q=d,aM={[G.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[G.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[G.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[G.XLINK]:new Set,[G.XML]:new Set,[G.XMLNS]:new Set},wh=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]);P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT;var A;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Je={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function sM(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function $s(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function oM(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function qr(e){return oM(e)||$s(e)}function Y1(e){return qr(e)||sM(e)}function Dl(e){return e+32}function yv(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function G1(e){return yv(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN}function lM(e){return e===w.NULL?B.nullCharacterReference:e>1114111?B.characterReferenceOutsideUnicodeRange:hv(e)?B.surrogateCharacterReference:mv(e)?B.noncharacterCharacterReference:pv(e)||e===w.CARRIAGE_RETURN?B.controlCharacterReference:null}class uM{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new qD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new nM(QD,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(B.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(B.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=lM(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),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(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ve.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ve.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ve.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ve.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(gv(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(B.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=vs(t.tagName),t.type===ve.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(B.endTagWithAttributes),t.selfClosing&&this._err(B.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ve.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ve.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ve.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ve.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=yv(t)?ve.WHITESPACE_CHARACTER:t===w.NULL?ve.NULL_CHARACTER:ve.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ve.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?kr.Attribute:kr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:{this._stateData(t);break}case A.RCDATA:{this._stateRcdata(t);break}case A.RAWTEXT:{this._stateRawtext(t);break}case A.SCRIPT_DATA:{this._stateScriptData(t);break}case A.PLAINTEXT:{this._statePlaintext(t);break}case A.TAG_OPEN:{this._stateTagOpen(t);break}case A.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case A.TAG_NAME:{this._stateTagName(t);break}case A.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case A.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case A.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case A.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case A.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case A.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case A.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case A.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case A.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case A.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case A.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case A.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case A.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case A.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case A.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case A.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case A.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case A.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case A.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case A.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case A.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case A.BOGUS_COMMENT:{this._stateBogusComment(t);break}case A.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case A.COMMENT_START:{this._stateCommentStart(t);break}case A.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case A.COMMENT:{this._stateComment(t);break}case A.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case A.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case A.COMMENT_END:{this._stateCommentEnd(t);break}case A.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case A.DOCTYPE:{this._stateDoctype(t);break}case A.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case A.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case A.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case A.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case A.CDATA_SECTION:{this._stateCdataSection(t);break}case A.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case A.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case A.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case A.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=A.TAG_OPEN;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitCodePoint(t);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case w.AMPERSAND:{this._startCharacterReference();break}case w.LESS_THAN_SIGN:{this.state=A.RCDATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Be);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case w.LESS_THAN_SIGN:{this.state=A.RAWTEXT_LESS_THAN_SIGN;break}case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Be);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Be);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Be);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(qr(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case w.EXCLAMATION_MARK:{this.state=A.MARKUP_DECLARATION_OPEN;break}case w.SOLIDUS:{this.state=A.END_TAG_OPEN;break}case w.QUESTION_MARK:{this._err(B.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break}case w.EOF:{this._err(B.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(B.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(qr(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case w.GREATER_THAN_SIGN:{this._err(B.missingEndTagName),this.state=A.DATA;break}case w.EOF:{this._err(B.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(B.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.tagName+=Be;break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint($s(t)?Dl(t):t)}}_stateRcdataLessThanSign(t){t===w.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){qr(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){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 w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case w.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case w.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===w.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){qr(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case w.SOLIDUS:{this.state=A.SCRIPT_DATA_END_TAG_OPEN;break}case w.EXCLAMATION_MARK:{this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){qr(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===w.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===w.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Be);break}case w.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Be);break}case w.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Be);break}case w.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===w.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:qr(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){qr(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Yt.SCRIPT,!1)&&G1(this.preprocessor.peek(Yt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Yt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Be);break}case w.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Be);break}case w.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.GREATER_THAN_SIGN:{this.state=A.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Be);break}case w.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===w.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Yt.SCRIPT,!1)&&G1(this.preprocessor.peek(Yt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Yt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._err(B.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:{this._err(B.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.name+=Be;break}default:this.currentAttr.name+=String.fromCodePoint($s(t)?Dl(t):t)}}_stateAfterAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:{this.state=A.SELF_CLOSING_START_TAG;break}case w.EQUALS_SIGN:{this.state=A.BEFORE_ATTRIBUTE_VALUE;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(B.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break}default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case w.QUOTATION_MARK:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case w.APOSTROPHE:{this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Be;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:case w.EQUALS_SIGN:case w.GRAVE_ACCENT:{this._err(B.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case w.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._err(B.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case w.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.data+=Be;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Yt.DASH_DASH,!0)?(this._createCommentToken(Yt.DASH_DASH.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(Yt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Yt.DOCTYPE.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(Yt.CDATA_START,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(B.cdataInHtmlContent),this._createCommentToken(Yt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(B.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_START_DASH;break}case w.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case w.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_END_DASH;break}case w.LESS_THAN_SIGN:{n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.data+=Be;break}case w.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case w.EXCLAMATION_MARK:{n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break}case w.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===w.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===w.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==w.GREATER_THAN_SIGN&&t!==w.EOF&&this._err(B.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=A.COMMENT_END;break}case w.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentComment(n);break}case w.EXCLAMATION_MARK:{this.state=A.COMMENT_END_BANG;break}case w.HYPHEN_MINUS:{n.data+="-";break}case w.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{n.data+="--!",this.state=A.COMMENT_END_DASH;break}case w.GREATER_THAN_SIGN:{this._err(B.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case w.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if($s(t))this._createDoctypeToken(String.fromCharCode(Dl(t))),this.state=A.DOCTYPE_NAME;else switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.NULL:{this._err(B.unexpectedNullCharacter),this._createDoctypeToken(Be),this.state=A.DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this._err(B.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.AFTER_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.name+=Be;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint($s(t)?Dl(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Yt.PUBLIC,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Yt.SYSTEM,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(B.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(B.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(B.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(B.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(B.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.publicId+=Be;break}case w.GREATER_THAN_SIGN:{this._err(B.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.publicId+=Be;break}case w.GREATER_THAN_SIGN:{this._err(B.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case w.GREATER_THAN_SIGN:{this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.QUOTATION_MARK:{this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(B.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(B.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.systemId+=Be;break}case w.GREATER_THAN_SIGN:{this._err(B.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(B.unexpectedNullCharacter),n.systemId+=Be;break}case w.GREATER_THAN_SIGN:{this._err(B.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=A.DATA;break}case w.NULL:{this._err(B.unexpectedNullCharacter);break}case w.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case w.RIGHT_SQUARE_BRACKET:{this.state=A.CDATA_SECTION_BRACKET;break}case w.EOF:{this._err(B.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===w.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case w.GREATER_THAN_SIGN:{this.state=A.DATA;break}case w.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Y1(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Y1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===w.SEMICOLON&&this._err(B.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const xv=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),q1=new Set([...xv,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),Ku=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),cM=new Set([...Ku,d.OL,d.UL]),dM=new Set([...Ku,d.BUTTON]),Q1=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),K1=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),fM=new Set([d.TR,d.TEMPLATE,d.HTML]),hM=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),pM=new Set([d.TABLE,d.TEMPLATE,d.HTML]),mM=new Set([d.TD,d.TH]);class gM{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===G.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==G.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(wh,G.HTML)}popUntilTableCellPopped(){this.popUntilPopped(mM,G.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(pM,G.HTML)}clearBackToTableBodyContext(){this.clearBackTo(hM,G.HTML)}clearBackToTableRowContext(){this.clearBackTo(fM,G.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case G.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case G.SVG:{if(K1.has(i))return!1;break}case G.MATHML:{if(Q1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ku)}hasInListItemScope(t){return this.hasInDynamicScope(t,cM)}hasInButtonScope(t){return this.hasInDynamicScope(t,dM)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case G.HTML:{if(wh.has(n))return!0;if(Ku.has(n))return!1;break}case G.SVG:{if(K1.has(n))return!1;break}case G.MATHML:{if(Q1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===G.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===G.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===G.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&xv.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&q1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&q1.has(this.currentTagId);)this.pop()}}const $d=3;var or;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(or||(or={}));const X1={type:or.Marker};class yM{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===or.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const f=this.treeAdapter.getAttrList(c);f.length===i&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<$d)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<$d)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=$d&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(X1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:or.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:or.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(X1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===or.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===or.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===or.Element&&n.element===t)}}const Qr={createDocument(){return{nodeName:"#document",mode:Nn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Qr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Qr.isTextNode(n)){n.value+=t;return}}Qr.appendChild(e,Qr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Qr.isTextNode(r)?r.value+=t:Qr.insertBefore(e,Qr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},bv="html",xM="about:legacy-compat",bM="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ev=["+//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//"],EM=[...Ev,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],TM=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Tv=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],vM=[...Tv,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function J1(e,t){return t.some(n=>e.startsWith(n))}function wM(e){return e.name===bv&&e.publicId===null&&(e.systemId===null||e.systemId===xM)}function CM(e){if(e.name!==bv)return Nn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===bM)return Nn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),TM.has(n))return Nn.QUIRKS;let r=t===null?EM:Ev;if(J1(n,r))return Nn.QUIRKS;if(r=t===null?Tv:vM,J1(n,r))return Nn.LIMITED_QUIRKS}return Nn.NO_QUIRKS}const Z1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},AM="definitionurl",kM="definitionURL",NM=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(e=>[e.toLowerCase(),e])),_M=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:G.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:G.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:G.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:G.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:G.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:G.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:G.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:G.XML}],["xml:space",{prefix:"xml",name:"space",namespace:G.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:G.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:G.XMLNS}]]),SM=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(e=>[e.toLowerCase(),e])),IM=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function OM(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===Zi.COLOR||r===Zi.SIZE||r===Zi.FACE)||IM.has(t)}function vv(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===AM){e.attrs[t].name=kM;break}}function wv(e){for(let t=0;t<e.attrs.length;t++){const n=NM.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function gm(e){for(let t=0;t<e.attrs.length;t++){const n=_M.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function LM(e){const t=SM.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=vs(e.tagName))}function RM(e,t){return t===G.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function PM(e,t,n){if(t===G.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Zi.ENCODING){const i=n[r].value.toLowerCase();return i===Z1.TEXT_HTML||i===Z1.APPLICATION_XML}}return t===G.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function DM(e,t,n,r){return(!r||r===G.HTML)&&PM(e,t,n)||(!r||r===G.MATHML)&&RM(e,t)}const MM="hidden",FM=8,jM=3;var S;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(S||(S={}));const BM={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Cv=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),ey={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Qr,onParseError:null};class ty{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=S.INITIAL,this.originalInsertionMode=S.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={...ey,...t},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 uM(this.options,this),this.activeFormattingElements=new yM(this.treeAdapter),this.fragmentContextID=r?vs(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new gM(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...ey,...n};t??(t=r.treeAdapter.createElement(P.TEMPLATE,G.HTML,[]));const i=r.treeAdapter.createElement("documentmock",G.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(S.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:BM,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===G.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,G.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=S.TEXT}switchToPlaintextParsing(){this.insertionMode=S.TEXT,this.originalInsertionMode=S.IN_BODY,this.tokenizer.state=Je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===P.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==G.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Je.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Je.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Je.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,G.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,G.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(P.HTML,G.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===ve.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(t,a)}}shouldProcessStartTagTokenInForeignContent(t){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,t.tagID===d.SVG&&this.treeAdapter.getTagName(n)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===G.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,G.HTML)}_processToken(t){switch(t.type){case ve.CHARACTER:{this.onCharacter(t);break}case ve.NULL_CHARACTER:{this.onNullCharacter(t);break}case ve.COMMENT:{this.onComment(t);break}case ve.DOCTYPE:{this.onDoctype(t);break}case ve.START_TAG:{this._processStartTag(t);break}case ve.END_TAG:{this.onEndTag(t);break}case ve.EOF:{this.onEof(t);break}case ve.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return DM(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===or.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=S.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=S.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=S.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=S.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=S.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=S.IN_TABLE;return}case d.BODY:{this.insertionMode=S.IN_BODY;return}case d.FRAMESET:{this.insertionMode=S.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?S.AFTER_HEAD:S.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=S.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=S.IN_HEAD;return}break}}this.insertionMode=S.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=S.IN_SELECT_IN_TABLE;return}}this.insertionMode=S.IN_SELECT}_isElementCausesFosterParenting(t){return Cv.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===G.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return aM[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){m7(this,t);return}switch(this.insertionMode){case S.INITIAL:{Fs(this,t);break}case S.BEFORE_HTML:{ao(this,t);break}case S.BEFORE_HEAD:{so(this,t);break}case S.IN_HEAD:{oo(this,t);break}case S.IN_HEAD_NO_SCRIPT:{lo(this,t);break}case S.AFTER_HEAD:{uo(this,t);break}case S.IN_BODY:case S.IN_CAPTION:case S.IN_CELL:case S.IN_TEMPLATE:{kv(this,t);break}case S.TEXT:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Vd(this,t);break}case S.IN_TABLE_TEXT:{Lv(this,t);break}case S.IN_COLUMN_GROUP:{Xu(this,t);break}case S.AFTER_BODY:{Ju(this,t);break}case S.AFTER_AFTER_BODY:{ru(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){p7(this,t);return}switch(this.insertionMode){case S.INITIAL:{Fs(this,t);break}case S.BEFORE_HTML:{ao(this,t);break}case S.BEFORE_HEAD:{so(this,t);break}case S.IN_HEAD:{oo(this,t);break}case S.IN_HEAD_NO_SCRIPT:{lo(this,t);break}case S.AFTER_HEAD:{uo(this,t);break}case S.TEXT:{this._insertCharacters(t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Vd(this,t);break}case S.IN_COLUMN_GROUP:{Xu(this,t);break}case S.AFTER_BODY:{Ju(this,t);break}case S.AFTER_AFTER_BODY:{ru(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ch(this,t);return}switch(this.insertionMode){case S.INITIAL:case S.BEFORE_HTML:case S.BEFORE_HEAD:case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:case S.IN_BODY:case S.IN_TABLE:case S.IN_CAPTION:case S.IN_COLUMN_GROUP:case S.IN_TABLE_BODY:case S.IN_ROW:case S.IN_CELL:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:case S.IN_TEMPLATE:case S.IN_FRAMESET:case S.AFTER_FRAMESET:{Ch(this,t);break}case S.IN_TABLE_TEXT:{js(this,t);break}case S.AFTER_BODY:{YM(this,t);break}case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{GM(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case S.INITIAL:{qM(this,t);break}case S.BEFORE_HEAD:case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:{this._err(t,B.misplacedDoctype);break}case S.IN_TABLE_TEXT:{js(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,B.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?g7(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case S.INITIAL:{Fs(this,t);break}case S.BEFORE_HTML:{QM(this,t);break}case S.BEFORE_HEAD:{XM(this,t);break}case S.IN_HEAD:{Qn(this,t);break}case S.IN_HEAD_NO_SCRIPT:{e9(this,t);break}case S.AFTER_HEAD:{n9(this,t);break}case S.IN_BODY:{Rt(this,t);break}case S.IN_TABLE:{os(this,t);break}case S.IN_TABLE_TEXT:{js(this,t);break}case S.IN_CAPTION:{J9(this,t);break}case S.IN_COLUMN_GROUP:{bm(this,t);break}case S.IN_TABLE_BODY:{zc(this,t);break}case S.IN_ROW:{Wc(this,t);break}case S.IN_CELL:{t7(this,t);break}case S.IN_SELECT:{Dv(this,t);break}case S.IN_SELECT_IN_TABLE:{r7(this,t);break}case S.IN_TEMPLATE:{a7(this,t);break}case S.AFTER_BODY:{o7(this,t);break}case S.IN_FRAMESET:{l7(this,t);break}case S.AFTER_FRAMESET:{c7(this,t);break}case S.AFTER_AFTER_BODY:{f7(this,t);break}case S.AFTER_AFTER_FRAMESET:{h7(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?y7(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case S.INITIAL:{Fs(this,t);break}case S.BEFORE_HTML:{KM(this,t);break}case S.BEFORE_HEAD:{JM(this,t);break}case S.IN_HEAD:{ZM(this,t);break}case S.IN_HEAD_NO_SCRIPT:{t9(this,t);break}case S.AFTER_HEAD:{r9(this,t);break}case S.IN_BODY:{Hc(this,t);break}case S.TEXT:{z9(this,t);break}case S.IN_TABLE:{Ho(this,t);break}case S.IN_TABLE_TEXT:{js(this,t);break}case S.IN_CAPTION:{Z9(this,t);break}case S.IN_COLUMN_GROUP:{e7(this,t);break}case S.IN_TABLE_BODY:{Ah(this,t);break}case S.IN_ROW:{Pv(this,t);break}case S.IN_CELL:{n7(this,t);break}case S.IN_SELECT:{Mv(this,t);break}case S.IN_SELECT_IN_TABLE:{i7(this,t);break}case S.IN_TEMPLATE:{s7(this,t);break}case S.AFTER_BODY:{jv(this,t);break}case S.IN_FRAMESET:{u7(this,t);break}case S.AFTER_FRAMESET:{d7(this,t);break}case S.AFTER_AFTER_BODY:{ru(this,t);break}}}onEof(t){switch(this.insertionMode){case S.INITIAL:{Fs(this,t);break}case S.BEFORE_HTML:{ao(this,t);break}case S.BEFORE_HEAD:{so(this,t);break}case S.IN_HEAD:{oo(this,t);break}case S.IN_HEAD_NO_SCRIPT:{lo(this,t);break}case S.AFTER_HEAD:{uo(this,t);break}case S.IN_BODY:case S.IN_TABLE:case S.IN_CAPTION:case S.IN_COLUMN_GROUP:case S.IN_TABLE_BODY:case S.IN_ROW:case S.IN_CELL:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:{Iv(this,t);break}case S.TEXT:{W9(this,t);break}case S.IN_TABLE_TEXT:{js(this,t);break}case S.IN_TEMPLATE:{Fv(this,t);break}case S.AFTER_BODY:case S.IN_FRAMESET:case S.AFTER_FRAMESET:case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{xm(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===w.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:case S.TEXT:case S.IN_COLUMN_GROUP:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:case S.IN_FRAMESET:case S.AFTER_FRAMESET:{this._insertCharacters(t);break}case S.IN_BODY:case S.IN_CAPTION:case S.IN_CELL:case S.IN_TEMPLATE:case S.AFTER_BODY:case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{Av(this,t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Vd(this,t);break}case S.IN_TABLE_TEXT:{Ov(this,t);break}}}}function UM(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Sv(e,t),n}function HM(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function zM(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=jM;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=WM(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function WM(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function $M(e,t,n){const r=e.treeAdapter.getTagName(t),i=vs(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===d.TEMPLATE&&a===G.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function VM(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function ym(e,t){for(let n=0;n<FM;n++){const r=UM(e,t);if(!r)break;const i=HM(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=zM(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&$M(e,s,a),VM(e,i,r)}}function Ch(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function YM(e,t){e._appendCommentNode(t,e.openElements.items[0])}function GM(e,t){e._appendCommentNode(t,e.document)}function xm(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function qM(e,t){e._setDocumentType(t);const n=t.forceQuirks?Nn.QUIRKS:CM(t);wM(t)||e._err(t,B.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=S.BEFORE_HTML}function Fs(e,t){e._err(t,B.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Nn.QUIRKS),e.insertionMode=S.BEFORE_HTML,e._processToken(t)}function QM(e,t){t.tagID===d.HTML?(e._insertElement(t,G.HTML),e.insertionMode=S.BEFORE_HEAD):ao(e,t)}function KM(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&ao(e,t)}function ao(e,t){e._insertFakeRootElement(),e.insertionMode=S.BEFORE_HEAD,e._processToken(t)}function XM(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.HEAD:{e._insertElement(t,G.HTML),e.headElement=e.openElements.current,e.insertionMode=S.IN_HEAD;break}default:so(e,t)}}function JM(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?so(e,t):e._err(t,B.endTagWithoutMatchingOpenElement)}function so(e,t){e._insertFakeElement(P.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=S.IN_HEAD,e._processToken(t)}function Qn(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,G.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Je.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Je.RAWTEXT):(e._insertElement(t,G.HTML),e.insertionMode=S.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Je.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Je.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=S.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(S.IN_TEMPLATE);break}case d.HEAD:{e._err(t,B.misplacedStartTagForHeadElement);break}default:oo(e,t)}}function ZM(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=S.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{oo(e,t);break}case d.TEMPLATE:{da(e,t);break}default:e._err(t,B.endTagWithoutMatchingOpenElement)}}function da(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,B.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,B.endTagWithoutMatchingOpenElement)}function oo(e,t){e.openElements.pop(),e.insertionMode=S.AFTER_HEAD,e._processToken(t)}function e9(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{Qn(e,t);break}case d.NOSCRIPT:{e._err(t,B.nestedNoscriptInHead);break}default:lo(e,t)}}function t9(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=S.IN_HEAD;break}case d.BR:{lo(e,t);break}default:e._err(t,B.endTagWithoutMatchingOpenElement)}}function lo(e,t){const n=t.type===ve.EOF?B.openElementsLeftAfterEof:B.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=S.IN_HEAD,e._processToken(t)}function n9(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.BODY:{e._insertElement(t,G.HTML),e.framesetOk=!1,e.insertionMode=S.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,G.HTML),e.insertionMode=S.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,B.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),Qn(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,B.misplacedStartTagForHeadElement);break}default:uo(e,t)}}function r9(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{uo(e,t);break}case d.TEMPLATE:{da(e,t);break}default:e._err(t,B.endTagWithoutMatchingOpenElement)}}function uo(e,t){e._insertFakeElement(P.BODY,d.BODY),e.insertionMode=S.IN_BODY,Uc(e,t)}function Uc(e,t){switch(t.type){case ve.CHARACTER:{kv(e,t);break}case ve.WHITESPACE_CHARACTER:{Av(e,t);break}case ve.COMMENT:{Ch(e,t);break}case ve.START_TAG:{Rt(e,t);break}case ve.END_TAG:{Hc(e,t);break}case ve.EOF:{Iv(e,t);break}}}function Av(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function kv(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function i9(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function a9(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function s9(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,G.HTML),e.insertionMode=S.IN_FRAMESET)}function o9(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,G.HTML)}function l9(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&wh.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,G.HTML)}function u9(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,G.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function c9(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,G.HTML),n||(e.formElement=e.openElements.current))}function d9(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===d.LI&&i===d.LI||(n===d.DD||n===d.DT)&&(i===d.DD||i===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==d.ADDRESS&&i!==d.DIV&&i!==d.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,G.HTML)}function f9(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,G.HTML),e.tokenizer.state=Je.PLAINTEXT}function h9(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML),e.framesetOk=!1}function p9(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);n&&(ym(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function m9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function g9(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(ym(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,G.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function x9(e,t){e.treeAdapter.getDocumentMode(e.document)!==Nn.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,G.HTML),e.framesetOk=!1,e.insertionMode=S.IN_TABLE}function Nv(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,G.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _v(e){const t=gv(e,Zi.TYPE);return t!=null&&t.toLowerCase()===MM}function b9(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,G.HTML),_v(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function E9(e,t){e._appendElement(t,G.HTML),t.ackSelfClosing=!0}function T9(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,G.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function v9(e,t){t.tagName=P.IMG,t.tagID=d.IMG,Nv(e,t)}function w9(e,t){e._insertElement(t,G.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=S.TEXT}function C9(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function A9(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Je.RAWTEXT)}function ny(e,t){e._switchToTextParsing(t,Je.RAWTEXT)}function k9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===S.IN_TABLE||e.insertionMode===S.IN_CAPTION||e.insertionMode===S.IN_TABLE_BODY||e.insertionMode===S.IN_ROW||e.insertionMode===S.IN_CELL?S.IN_SELECT_IN_TABLE:S.IN_SELECT}function N9(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML)}function _9(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,G.HTML)}function S9(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,G.HTML)}function I9(e,t){e._reconstructActiveFormattingElements(),vv(t),gm(t),t.selfClosing?e._appendElement(t,G.MATHML):e._insertElement(t,G.MATHML),t.ackSelfClosing=!0}function O9(e,t){e._reconstructActiveFormattingElements(),wv(t),gm(t),t.selfClosing?e._appendElement(t,G.SVG):e._insertElement(t,G.SVG),t.ackSelfClosing=!0}function ry(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,G.HTML)}function Rt(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{m9(e,t);break}case d.A:{p9(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{l9(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{o9(e,t);break}case d.LI:case d.DD:case d.DT:{d9(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{Nv(e,t);break}case d.HR:{T9(e,t);break}case d.RB:case d.RTC:{_9(e,t);break}case d.RT:case d.RP:{S9(e,t);break}case d.PRE:case d.LISTING:{u9(e,t);break}case d.XMP:{C9(e,t);break}case d.SVG:{O9(e,t);break}case d.HTML:{i9(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{Qn(e,t);break}case d.BODY:{a9(e,t);break}case d.FORM:{c9(e,t);break}case d.NOBR:{g9(e,t);break}case d.MATH:{I9(e,t);break}case d.TABLE:{x9(e,t);break}case d.INPUT:{b9(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{E9(e,t);break}case d.IMAGE:{v9(e,t);break}case d.BUTTON:{h9(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{y9(e,t);break}case d.IFRAME:{A9(e,t);break}case d.SELECT:{k9(e,t);break}case d.OPTION:case d.OPTGROUP:{N9(e,t);break}case d.NOEMBED:case d.NOFRAMES:{ny(e,t);break}case d.FRAMESET:{s9(e,t);break}case d.TEXTAREA:{w9(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?ny(e,t):ry(e,t);break}case d.PLAINTEXT:{f9(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:ry(e,t)}}function L9(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=S.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function R9(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=S.AFTER_BODY,jv(e,t))}function P9(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function D9(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function M9(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(P.P,d.P),e._closePElement()}function F9(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function j9(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function B9(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function U9(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function H9(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function Sv(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Hc(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{ym(e,t);break}case d.P:{M9(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{P9(e,t);break}case d.LI:{F9(e);break}case d.DD:case d.DT:{j9(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{B9(e);break}case d.BR:{H9(e);break}case d.BODY:{L9(e,t);break}case d.HTML:{R9(e,t);break}case d.FORM:{D9(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{U9(e,t);break}case d.TEMPLATE:{da(e,t);break}default:Sv(e,t)}}function Iv(e,t){e.tmplInsertionModeStack.length>0?Fv(e,t):xm(e,t)}function z9(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function W9(e,t){e._err(t,B.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Vd(e,t){if(e.openElements.currentTagId!==void 0&&Cv.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=S.IN_TABLE_TEXT,t.type){case ve.CHARACTER:{Lv(e,t);break}case ve.WHITESPACE_CHARACTER:{Ov(e,t);break}}else nl(e,t)}function $9(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,G.HTML),e.insertionMode=S.IN_CAPTION}function V9(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,G.HTML),e.insertionMode=S.IN_COLUMN_GROUP}function Y9(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,d.COLGROUP),e.insertionMode=S.IN_COLUMN_GROUP,bm(e,t)}function G9(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,G.HTML),e.insertionMode=S.IN_TABLE_BODY}function q9(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,d.TBODY),e.insertionMode=S.IN_TABLE_BODY,zc(e,t)}function Q9(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function K9(e,t){_v(t)?e._appendElement(t,G.HTML):nl(e,t),t.ackSelfClosing=!0}function X9(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,G.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function os(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{q9(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{Qn(e,t);break}case d.COL:{Y9(e,t);break}case d.FORM:{X9(e,t);break}case d.TABLE:{Q9(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{G9(e,t);break}case d.INPUT:{K9(e,t);break}case d.CAPTION:{$9(e,t);break}case d.COLGROUP:{V9(e,t);break}default:nl(e,t)}}function Ho(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{da(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:nl(e,t)}}function nl(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Uc(e,t),e.fosterParentingEnabled=n}function Ov(e,t){e.pendingCharacterTokens.push(t)}function Lv(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function js(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)nl(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Rv=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function J9(e,t){const n=t.tagID;Rv.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_TABLE,os(e,t)):Rt(e,t)}function Z9(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_TABLE,n===d.TABLE&&Ho(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Hc(e,t)}}function bm(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.COL:{e._appendElement(t,G.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{Qn(e,t);break}default:Xu(e,t)}}function e7(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=S.IN_TABLE);break}case d.TEMPLATE:{da(e,t);break}case d.COL:break;default:Xu(e,t)}}function Xu(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=S.IN_TABLE,e._processToken(t))}function zc(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,G.HTML),e.insertionMode=S.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,d.TR),e.insertionMode=S.IN_ROW,Wc(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE,os(e,t));break}default:os(e,t)}}function Ah(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE,Ho(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:Ho(e,t)}}function Wc(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,G.HTML),e.insertionMode=S.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,zc(e,t));break}default:os(e,t)}}function Pv(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Ah(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Ah(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:Ho(e,t)}}function t7(e,t){const n=t.tagID;Rv.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),Wc(e,t)):Rt(e,t)}function n7(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Pv(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:Hc(e,t)}}function Dv(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,G.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,G.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,G.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{Qn(e,t);break}}}function Mv(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{da(e,t);break}}}function r7(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Dv(e,t)}function i7(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Mv(e,t)}function a7(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{Qn(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=S.IN_TABLE,e.insertionMode=S.IN_TABLE,os(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=S.IN_COLUMN_GROUP,e.insertionMode=S.IN_COLUMN_GROUP,bm(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=S.IN_TABLE_BODY,e.insertionMode=S.IN_TABLE_BODY,zc(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=S.IN_ROW,e.insertionMode=S.IN_ROW,Wc(e,t);break}default:e.tmplInsertionModeStack[0]=S.IN_BODY,e.insertionMode=S.IN_BODY,Rt(e,t)}}function s7(e,t){t.tagID===d.TEMPLATE&&da(e,t)}function Fv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):xm(e,t)}function o7(e,t){t.tagID===d.HTML?Rt(e,t):Ju(e,t)}function jv(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=S.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Ju(e,t)}function Ju(e,t){e.insertionMode=S.IN_BODY,Uc(e,t)}function l7(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.FRAMESET:{e._insertElement(t,G.HTML);break}case d.FRAME:{e._appendElement(t,G.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{Qn(e,t);break}}}function u7(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=S.AFTER_FRAMESET))}function c7(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.NOFRAMES:{Qn(e,t);break}}}function d7(e,t){t.tagID===d.HTML&&(e.insertionMode=S.AFTER_AFTER_FRAMESET)}function f7(e,t){t.tagID===d.HTML?Rt(e,t):ru(e,t)}function ru(e,t){e.insertionMode=S.IN_BODY,Uc(e,t)}function h7(e,t){switch(t.tagID){case d.HTML:{Rt(e,t);break}case d.NOFRAMES:{Qn(e,t);break}}}function p7(e,t){t.chars=Be,e._insertCharacters(t)}function m7(e,t){e._insertCharacters(t),e.framesetOk=!1}function Bv(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==G.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function g7(e,t){if(OM(t))Bv(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===G.MATHML?vv(t):r===G.SVG&&(LM(t),wv(t)),gm(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function y7(e,t){if(t.tagID===d.P||t.tagID===d.BR){Bv(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===G.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}P.AREA,P.BASE,P.BASEFONT,P.BGSOUND,P.BR,P.COL,P.EMBED,P.FRAME,P.HR,P.IMG,P.INPUT,P.KEYGEN,P.LINK,P.META,P.PARAM,P.SOURCE,P.TRACK,P.WBR;const x7=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,b7=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),iy={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Uv(e,t){const n=S7(e),r=dv("type",{handlers:{root:E7,element:T7,text:v7,comment:zv,doctype:w7,raw:A7},unknown:k7}),i={parser:n?new ty(iy):ty.getFragmentParser(void 0,iy),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),ws(i,xr());const a=n?i.parser.document:i.parser.getFragment(),s=ID(a,{file:i.options.file});return i.stitches&&fm(s,"comment",function(o,l,c){const f=o;if(f.value.stitch&&c&&l!==void 0){const h=c.children;return h[l]=f.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Hv(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function E7(e,t){Hv(e.children,t)}function T7(e,t){N7(e,t),Hv(e.children,t),_7(e,t)}function v7(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ve.CHARACTER,chars:e.value,location:rl(e)};ws(t,xr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function w7(e,t){const n={type:ve.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:rl(e)};ws(t,xr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function C7(e,t){t.stitches=!0;const n=I7(e);if("children"in e&&"children"in n){const r=Uv({type:"root",children:e.children},t.options);n.children=r.children}zv({type:"comment",value:{stitch:n}},t)}function zv(e,t){const n=e.value,r={type:ve.COMMENT,data:n,location:rl(e)};ws(t,xr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function A7(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Wv(t,xr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(x7,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function k7(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))C7(n,t);else{let r="";throw b7.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 ws(e,t){Wv(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Je.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Wv(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function N7(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Je.PLAINTEXT)return;ws(t,xr(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:$i.html;i===$i.html&&n==="svg"&&(i=$i.svg);const a=DD({...e,children:[]},{space:i===$i.svg?"svg":"html"}),s={type:ve.START_TAG,tagName:n,tagID:vs(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:rl(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function _7(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&WD.includes(n)||t.parser.tokenizer.state===Je.PLAINTEXT)return;ws(t,Mc(e));const r={type:ve.END_TAG,tagName:n,tagID:vs(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:rl(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Je.RCDATA||t.parser.tokenizer.state===Je.RAWTEXT||t.parser.tokenizer.state===Je.SCRIPT_DATA)&&(t.parser.tokenizer.state=Je.DATA)}function S7(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function rl(e){const t=xr(e)||{line:void 0,column:void 0,offset:void 0},n=Mc(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function I7(e){return"children"in e?ss({...e,children:[]}):ss(e)}function O7(e){return function(t,n){return Uv(t,{...e,file:n})}}const ay=680,sy=320;function L7(e){const t=e/9;return 22+t*t*270+t*18}function ls(e,t){const n=48*Math.exp(-Math.pow((e-198)/68,2)),r=-38*Math.exp(-Math.pow((e-502)/108,2)),i=5.5*Math.sin(e/38+t*1.05)+3.2*Math.sin(e/16+t*.45)+2.1*Math.sin(e/9.5+t*1.7);return L7(t)+n+r+i}function $c(e,t){const n=e.length;if(n<2)return"";const r=s=>t?e[(s+n)%n]:e[Math.max(0,Math.min(n-1,s))];let i=`M ${e[0][0].toFixed(1)} ${e[0][1].toFixed(1)}`;const a=t?n:n-1;for(let s=0;s<a;s++){const o=r(s-1),l=r(s),c=r(s+1),f=r(s+2);i+=` C ${(l[0]+(c[0]-o[0])/6).toFixed(1)} ${(l[1]+(c[1]-o[1])/6).toFixed(1)} ${(c[0]-(f[0]-l[0])/6).toFixed(1)} ${(c[1]-(f[1]-l[1])/6).toFixed(1)} ${c[0].toFixed(1)} ${c[1].toFixed(1)}`}return t?`${i} Z`:i}function Jr(e,t,n,r=12){const i=[],a=n>=t?1:-1;for(let l=t;a>0?l<=n:l>=n;l+=a*r)i.push([l,ls(l,e)]);const s=[n,ls(n,e)],o=i[i.length-1];return(!o||Math.abs(o[0]-s[0])>.5)&&i.push(s),i}function R7(e){return e<1.4?250:e<2.6?140:e<4.2?40:-28}function oy(e,t,n,r){const i=ls(e,t),a=ls(e,n),s=Math.max(7,Math.abs(a-i)*.55),o=e+r*s;return[[e,i],[o,i],[o,(i+a)/2],[o,a],[e,a]]}const P7=[{level:.25,index:!0},{level:.85,index:!1},{level:1.5,index:!1},{level:2.2,index:!0},{level:3,index:!1},{level:3.9,index:!1},{level:4.9,index:!0},{level:6.05,index:!1},{level:7.3,index:!1},{level:8.7,index:!0}],Zu={x:78,y:ls(78,8.45)},us={x:556,y:ls(556,.45)},D7=$c([[Zu.x,Zu.y],...Jr(8.2,96,176,14).slice(1),...Jr(6.4,176,228,12).slice(1),...Jr(4.4,228,268,12).slice(1),...Jr(2.7,268,428,11).slice(1),...oy(428,2.7,2.05,1).slice(1),...Jr(2.05,428,278,11).slice(1),...oy(278,2.05,1.4,-1).slice(1),...Jr(1.4,278,500,11).slice(1),[us.x,us.y]],!1),M7=$c(Jr(9.05,-12,268,16).map(([e,t],n)=>[e,t+7+2.5*Math.sin(n*.9)]),!1);function ly(e,t,n){const r=[];for(let a=0;a<22;a++){const s=a/22*Math.PI*2,o=1+n*Math.sin(3*s+.4);r.push([us.x+e*o*Math.cos(s),us.y+t*o*Math.sin(s)])}return $c(r,!0)}const F7=()=>u.jsxs("svg",{viewBox:`0 0 ${ay} ${sy}`,className:"trail-map h-auto w-full",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[u.jsx("defs",{children:u.jsx("clipPath",{id:"trail-map-plate",children:u.jsx("rect",{width:ay,height:sy})})}),u.jsxs("g",{clipPath:"url(#trail-map-plate)",children:[P7.map(({level:e,index:t})=>u.jsx("path",{d:$c(Jr(e,R7(e),708,14),!1),stroke:t?"var(--contour-index)":"var(--contour)",strokeWidth:t?1.35:.7,strokeLinecap:"round",strokeLinejoin:"round"},e)),u.jsx("path",{d:ly(20,12,.08),stroke:"var(--contour-index)",strokeWidth:"0.9"}),u.jsx("path",{d:ly(34,20,.07),stroke:"var(--contour)",strokeWidth:"0.7"}),u.jsx("path",{d:M7,stroke:"var(--water)",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:D7,stroke:"var(--trail)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"5.5 6.5"})]}),u.jsx("rect",{x:Zu.x-3.5,y:Zu.y-3.5,width:"7",height:"7",fill:"var(--trail)"}),u.jsxs("g",{transform:`translate(${us.x} ${us.y})`,fill:"var(--trail)",children:[u.jsx("ellipse",{cx:"0",cy:"6.4",rx:"7.2",ry:"3"}),u.jsx("ellipse",{cx:"0",cy:"2.1",rx:"5.1",ry:"2.4"}),u.jsx("ellipse",{cx:"0",cy:"-1.6",rx:"3.1",ry:"2"})]}),u.jsxs("g",{transform:"translate(648 22)",stroke:"var(--trail)",fill:"none",opacity:"0.8",strokeWidth:"1.15",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M 0 16 L 0 0 M -3.4 4.2 L 0 0 L 3.4 4.2"}),u.jsx("text",{x:"0",y:"26",textAnchor:"middle",fill:"var(--trail)",stroke:"none",fontSize:"8",fontFamily:"Inter, system-ui, sans-serif",fontWeight:"700",children:"N"})]}),u.jsxs("g",{transform:"translate(28 304)",stroke:"var(--contour-index)",fill:"var(--contour-index)",strokeWidth:"1.1",strokeLinecap:"square",children:[u.jsx("path",{d:"M 0 0 L 0 -4.5 M 0 0 L 52 0 M 52 0 L 52 -4.5"}),u.jsx("text",{x:"52",y:"10",textAnchor:"end",fill:"var(--contour-index)",stroke:"none",fontSize:"8",fontFamily:"Inter, system-ui, sans-serif",fontWeight:"600",children:"½ mi"})]})]}),uy="https://braintrailz.com";async function j7(e){var r;if((r=navigator.clipboard)!=null&&r.writeText)try{await navigator.clipboard.writeText(e);return}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select();const n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("copy failed")}const B7=()=>{const{slug:e}=KS(),t=e?f5(e):void 0,n=e?h5(e):void 0,[r,i]=T.useState(!1);T.useEffect(()=>{window.scrollTo(0,0)},[e]),T.useEffect(()=>t?EO({title:t.title,description:t.summary,url:`${uy}/blog/${t.slug}`,image:t.image?`${uy}${t.image}`:void 0,type:"article"}):void 0,[t]);const a=T.useCallback(async()=>{if(!e)return;const s=`${window.location.origin}/blog/${e}`;try{await j7(s),i(!0),Gf.success("Link copied"),window.setTimeout(()=>i(!1),2e3)}catch{window.prompt("Copy this link:",s)}},[e]);return t?u.jsxs(u.Fragment,{children:[u.jsx($t,{}),u.jsx("div",{className:"min-h-screen bg-braintrailz-darker text-foreground",children:u.jsx("div",{className:"container-custom pt-32 pb-16",children:u.jsxs("div",{className:t.trailBackground?"mx-auto max-w-3xl":void 0,children:[u.jsx("p",{className:"mb-6",children:u.jsx(ft,{to:"/blog",className:"text-braintrailz-blue hover:text-braintrailz-blue/80 transition-colors",children:"Blog"})}),u.jsxs("div",{className:"mb-4 flex items-center justify-between gap-4",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:qp(t.date)}),u.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[n?u.jsx(Nt,{variant:"outline",size:"sm",asChild:!0,children:u.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:[u.jsx(Uk,{}),"Print"]})}):null,u.jsxs(Nt,{type:"button",variant:"outline",size:"sm",onClick:a,"aria-label":"Copy link to this post",children:[r?u.jsx(pE,{}):u.jsx(Nk,{}),r?"Copied":"Share"]})]})]}),t.showTitle?u.jsx("h1",{className:"text-4xl font-bold mb-8",children:t.title}):u.jsx("h1",{className:"sr-only",children:t.title}),t.trailBackground?u.jsxs("figure",{className:"mb-10 overflow-hidden rounded-lg border border-slate-300 bg-[#f3efe6] px-3 py-3 dark:border-braintrailz-blue/15 dark:bg-braintrailz-dark/55 md:px-4 md:py-4",children:[u.jsx(F7,{}),u.jsx("figcaption",{className:"mt-2 text-center text-[11px] tracking-wide text-muted-foreground",children:"One trail, from the trailhead to the cairn."})]}):null,u.jsx("div",{className:"prose max-w-none dark:prose-invert",children:u.jsx(mD,{rehypePlugins:[O7],children:t.body})})]})})}),u.jsx(Vt,{})]}):u.jsx(CT,{})},U7=({onStoredChange:e})=>{const{theme:t}=Ec();return T.useEffect(()=>{e()},[t,e]),T.useEffect(()=>A6(e),[e]),null},H7=({children:e})=>{const{pathname:t}=Br(),[n,r]=T.useState(()=>fg()),i=T.useCallback(()=>{r(fg())},[]),a=w6({pathname:t,stored:n});return u.jsxs(O3,{attribute:"class",defaultTheme:"dark",enableSystem:!1,storageKey:N2,forcedTheme:a,children:[u.jsx(U7,{onStoredChange:i}),e]})},z7="#F4F7FA",W7="#030712",$7=()=>{const{forcedTheme:e,resolvedTheme:t}=Ec();return T.useEffect(()=>{const r=(e??t)==="light"?z7:W7;let i=document.querySelector('meta[name="theme-color"]');i||(i=document.createElement("meta"),i.setAttribute("name","theme-color"),document.head.appendChild(i)),i.setAttribute("content",r)},[e,t]),null},V7=new bS,Y7=()=>u.jsx(TS,{client:V7,children:u.jsx(y6,{children:u.jsxs(H7,{children:[u.jsx($7,{}),u.jsxs(K_,{children:[u.jsx(_3,{}),u.jsx(sN,{}),u.jsxs(c6,{children:[u.jsx(yt,{path:"/",element:u.jsx(J5,{})}),u.jsx(yt,{path:"/backpack",element:u.jsx(lO,{})}),u.jsx(yt,{path:"/backpack/old",element:u.jsx(fO,{})}),u.jsx(yt,{path:"/greymatters",element:u.jsx(hO,{})}),u.jsx(yt,{path:"/terms",element:u.jsx(pO,{})}),u.jsx(yt,{path:"/privacy",element:u.jsx(mO,{})}),u.jsx(yt,{path:"/sitemap",element:u.jsx(yO,{})}),u.jsx(yt,{path:"/pricing",element:u.jsx(bO,{})}),u.jsx(yt,{path:"/skills",element:u.jsx(wO,{})}),u.jsx(yt,{path:"/trailcraft",element:u.jsx(SO,{})}),u.jsx(yt,{path:"/trailcraft/maps/sofla",element:u.jsx(IO,{})}),u.jsx(yt,{path:"/trailcraft/maps/rdu",element:u.jsx(OO,{})}),u.jsx(yt,{path:"/trailcraft/repack",element:u.jsx(RO,{})}),u.jsx(yt,{path:"/blog",element:u.jsx(PO,{})}),u.jsx(yt,{path:"/blog/:slug",element:u.jsx(B7,{})}),u.jsx(yt,{path:"*",element:u.jsx(CT,{})})]})]})]})})});Lb(document.getElementById("root")??document.createElement("div")).render(u.jsx(Y7,{}));