@opencx/widget-react 4.0.15 → 4.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -47
- package/dist/index.js.map +1 -1
- package/dist/src/components/special-components/SessionResolvedComponent.d.ts +3 -0
- package/dist/src/components/special-components/SessionResolvedComponent.d.ts.map +1 -0
- package/dist/src/screens/chat/ChatMain.d.ts.map +1 -1
- package/package.json +6 -9
- package/dist-embed/script.js +0 -361
- package/dist-embed/script.js.map +0 -1
package/dist-embed/script.js
DELETED
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";function n4(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}var ty={exports:{}},Ac={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var r4=Symbol.for("react.transitional.element"),a4=Symbol.for("react.fragment");function ny(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:r4,type:e,key:i,ref:t!==void 0?t:null,props:n}}Ac.Fragment=a4,Ac.jsx=ny,Ac.jsxs=ny,ty.exports=Ac;var v=ty.exports,iy={exports:{}},Se={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var jh=Symbol.for("react.transitional.element"),s4=Symbol.for("react.portal"),o4=Symbol.for("react.fragment"),l4=Symbol.for("react.strict_mode"),u4=Symbol.for("react.profiler"),c4=Symbol.for("react.consumer"),f4=Symbol.for("react.context"),d4=Symbol.for("react.forward_ref"),h4=Symbol.for("react.suspense"),p4=Symbol.for("react.memo"),ry=Symbol.for("react.lazy"),ay=Symbol.iterator;function m4(e){return e===null||typeof e!="object"?null:(e=ay&&e[ay]||e["@@iterator"],typeof e=="function"?e:null)}var sy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oy=Object.assign,ly={};function As(e,t,n){this.props=e,this.context=t,this.refs=ly,this.updater=n||sy}As.prototype.isReactComponent={},As.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uy(){}uy.prototype=As.prototype;function Hh(e,t,n){this.props=e,this.context=t,this.refs=ly,this.updater=n||sy}var Fh=Hh.prototype=new uy;Fh.constructor=Hh,oy(Fh,As.prototype),Fh.isPureReactComponent=!0;var cy=Array.isArray,st={H:null,A:null,T:null,S:null,V:null},fy=Object.prototype.hasOwnProperty;function Vh(e,t,n,i,r,a){return n=a.ref,{$$typeof:jh,type:e,key:t,ref:n!==void 0?n:null,props:a}}function g4(e,t){return Vh(e.type,t,void 0,void 0,void 0,e.props)}function Yh(e){return typeof e=="object"&&e!==null&&e.$$typeof===jh}function b4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dy=/\/+/g;function qh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?b4(""+e.key):t.toString(36)}function hy(){}function y4(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(hy,hy):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Cs(e,t,n,i,r){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case jh:case s4:s=!0;break;case ry:return s=e._init,Cs(s(e._payload),t,n,i,r)}}if(s)return r=r(e),s=i===""?"."+qh(e,0):i,cy(r)?(n="",s!=null&&(n=s.replace(dy,"$&/")+"/"),Cs(r,t,n,"",function(u){return u})):r!=null&&(Yh(r)&&(r=g4(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(dy,"$&/")+"/")+s)),t.push(r)),1;s=0;var o=i===""?".":i+":";if(cy(e))for(var l=0;l<e.length;l++)i=e[l],a=o+qh(i,l),s+=Cs(i,t,n,a,r);else if(l=m4(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,a=o+qh(i,l++),s+=Cs(i,t,n,a,r);else if(a==="object"){if(typeof e.then=="function")return Cs(y4(e),t,n,i,r);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 Cc(e,t,n){if(e==null)return e;var i=[],r=0;return Cs(e,i,"","",function(a){return t.call(n,a,r++)}),i}function v4(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 py=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function x4(){}Se.Children={map:Cc,forEach:function(e,t,n){Cc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cc(e,function(){t++}),t},toArray:function(e){return Cc(e,function(t){return t})||[]},only:function(e){if(!Yh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Se.Component=As,Se.Fragment=o4,Se.Profiler=u4,Se.PureComponent=Hh,Se.StrictMode=l4,Se.Suspense=h4,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=st,Se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return st.H.useMemoCache(e)}},Se.cache=function(e){return function(){return e.apply(null,arguments)}},Se.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=oy({},e.props),r=e.key,a=void 0;if(t!=null)for(s in t.ref!==void 0&&(a=void 0),t.key!==void 0&&(r=""+t.key),t)!fy.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(i[s]=t[s]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];i.children=o}return Vh(e.type,r,void 0,void 0,a,i)},Se.createContext=function(e){return e={$$typeof:f4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:c4,_context:e},e},Se.createElement=function(e,t,n){var i,r={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)fy.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(r[i]=t[i]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];r.children=o}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)r[i]===void 0&&(r[i]=s[i]);return Vh(e,a,void 0,void 0,null,r)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(e){return{$$typeof:d4,render:e}},Se.isValidElement=Yh,Se.lazy=function(e){return{$$typeof:ry,_payload:{_status:-1,_result:e},_init:v4}},Se.memo=function(e,t){return{$$typeof:p4,type:e,compare:t===void 0?null:t}},Se.startTransition=function(e){var t=st.T,n={};st.T=n;try{var i=e(),r=st.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(x4,py)}catch(a){py(a)}finally{st.T=t}},Se.unstable_useCacheRefresh=function(){return st.H.useCacheRefresh()},Se.use=function(e){return st.H.use(e)},Se.useActionState=function(e,t,n){return st.H.useActionState(e,t,n)},Se.useCallback=function(e,t){return st.H.useCallback(e,t)},Se.useContext=function(e){return st.H.useContext(e)},Se.useDebugValue=function(){},Se.useDeferredValue=function(e,t){return st.H.useDeferredValue(e,t)},Se.useEffect=function(e,t,n){var i=st.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)},Se.useId=function(){return st.H.useId()},Se.useImperativeHandle=function(e,t,n){return st.H.useImperativeHandle(e,t,n)},Se.useInsertionEffect=function(e,t){return st.H.useInsertionEffect(e,t)},Se.useLayoutEffect=function(e,t){return st.H.useLayoutEffect(e,t)},Se.useMemo=function(e,t){return st.H.useMemo(e,t)},Se.useOptimistic=function(e,t){return st.H.useOptimistic(e,t)},Se.useReducer=function(e,t,n){return st.H.useReducer(e,t,n)},Se.useRef=function(e){return st.H.useRef(e)},Se.useState=function(e){return st.H.useState(e)},Se.useSyncExternalStore=function(e,t,n){return st.H.useSyncExternalStore(e,t,n)},Se.useTransition=function(){return st.H.useTransition()},Se.version="19.1.1",iy.exports=Se;var E=iy.exports;const Rn=dl(E),my=n4({__proto__:null,default:Rn},[E]);var gy={exports:{}},kc={},by={exports:{}},yy={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(F,V){var H=F.length;F.push(V);e:for(;0<H;){var te=H-1>>>1,O=F[te];if(0<r(O,V))F[te]=V,F[H]=O,H=te;else break e}}function n(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var V=F[0],H=F.pop();if(H!==V){F[0]=H;e:for(var te=0,O=F.length,ge=O>>>1;te<ge;){var Je=2*(te+1)-1,M=F[Je],Ie=Je+1,me=F[Ie];if(0>r(M,H))Ie<O&&0>r(me,M)?(F[te]=me,F[Ie]=H,te=Ie):(F[te]=M,F[Je]=H,te=Je);else if(Ie<O&&0>r(me,H))F[te]=me,F[Ie]=H,te=Ie;else break e}}return V}function r(F,V){var H=F.sortIndex-V.sortIndex;return H!==0?H:F.id-V.id}if(e.unstable_now=void 0,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=[],u=[],c=1,f=null,d=3,h=!1,g=!1,b=!1,T=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(F){for(var V=n(u);V!==null;){if(V.callback===null)i(u);else if(V.startTime<=F)i(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function S(F){if(b=!1,w(F),!g)if(n(l)!==null)g=!0,k||(k=!0,j());else{var V=n(u);V!==null&&Q(S,V.startTime-F)}}var k=!1,D=-1,L=5,B=-1;function R(){return T?!0:!(e.unstable_now()-B<L)}function Y(){if(T=!1,k){var F=e.unstable_now();B=F;var V=!0;try{e:{g=!1,b&&(b=!1,y(D),D=-1),h=!0;var H=d;try{t:{for(w(F),f=n(l);f!==null&&!(f.expirationTime>F&&R());){var te=f.callback;if(typeof te=="function"){f.callback=null,d=f.priorityLevel;var O=te(f.expirationTime<=F);if(F=e.unstable_now(),typeof O=="function"){f.callback=O,w(F),V=!0;break t}f===n(l)&&i(l),w(F)}else i(l);f=n(l)}if(f!==null)V=!0;else{var ge=n(u);ge!==null&&Q(S,ge.startTime-F),V=!1}}break e}finally{f=null,d=H,h=!1}V=void 0}}finally{V?j():k=!1}}}var j;if(typeof x=="function")j=function(){x(Y)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ee=re.port2;re.port1.onmessage=Y,j=function(){ee.postMessage(null)}}else j=function(){m(Y,0)};function Q(F,V){D=m(function(){F(e.unstable_now())},V)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(F){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var H=d;d=V;try{return F()}finally{d=H}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var H=d;d=F;try{return V()}finally{d=H}},e.unstable_scheduleCallback=function(F,V,H){var te=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?te+H:te):H=te,F){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=H+O,F={id:c++,callback:V,priorityLevel:F,startTime:H,expirationTime:O,sortIndex:-1},H>te?(F.sortIndex=H,t(u,F),n(l)===null&&F===n(u)&&(b?(y(D),D=-1):b=!0,Q(S,H-te))):(F.sortIndex=O,t(l,F),g||h||(g=!0,k||(k=!0,j()))),F},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(F){var V=d;return function(){var H=d;d=V;try{return F.apply(this,arguments)}finally{d=H}}}})(yy),by.exports=yy;var E4=by.exports,vy={exports:{}},dn={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var T4=E;function xy(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function jr(){}var hn={d:{f:jr,r:function(){throw Error(xy(522))},D:jr,C:jr,L:jr,m:jr,X:jr,S:jr,M:jr},p:0,findDOMNode:null},w4=Symbol.for("react.portal");function _4(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w4,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var hl=T4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Oc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=hn,dn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(xy(299));return _4(e,t,null,n)},dn.flushSync=function(e){var t=hl.T,n=hn.p;try{if(hl.T=null,hn.p=2,e)return e()}finally{hl.T=t,hn.p=n,hn.d.f()}},dn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,hn.d.C(e,t))},dn.prefetchDNS=function(e){typeof e=="string"&&hn.d.D(e)},dn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Oc(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?hn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:a}):n==="script"&&hn.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},dn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Oc(t.as,t.crossOrigin);hn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&hn.d.M(e)},dn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Oc(n,t.crossOrigin);hn.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},dn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Oc(t.as,t.crossOrigin);hn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else hn.d.m(e)},dn.requestFormReset=function(e){hn.d.r(e)},dn.unstable_batchedUpdates=function(e,t){return e(t)},dn.useFormState=function(e,t,n){return hl.H.useFormState(e,t,n)},dn.useFormStatus=function(){return hl.H.useHostTransitionStatus()},dn.version="19.1.1";function Ey(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ey)}catch(e){console.error(e)}}Ey(),vy.exports=dn;var pl=vy.exports;/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Nt=E4,Ty=E,S4=pl;function q(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function wy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(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 _y(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 Sy(e){if(ml(e)!==e)throw Error(q(188))}function A4(e){var t=e.alternate;if(!t){if(t=ml(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var a=r.alternate;if(a===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return Sy(r),e;if(a===i)return Sy(r),t;a=a.sibling}throw Error(q(188))}if(n.return!==i.return)n=r,i=a;else{for(var s=!1,o=r.child;o;){if(o===n){s=!0,n=r,i=a;break}if(o===i){s=!0,i=r,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,i=r;break}if(o===i){s=!0,i=a,n=r;break}o=o.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==i)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function Ay(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ay(e),t!==null)return t;e=e.sibling}return null}var et=Object.assign,C4=Symbol.for("react.element"),Rc=Symbol.for("react.transitional.element"),gl=Symbol.for("react.portal"),ks=Symbol.for("react.fragment"),Cy=Symbol.for("react.strict_mode"),Gh=Symbol.for("react.profiler"),k4=Symbol.for("react.provider"),ky=Symbol.for("react.consumer"),ar=Symbol.for("react.context"),Xh=Symbol.for("react.forward_ref"),$h=Symbol.for("react.suspense"),Kh=Symbol.for("react.suspense_list"),Qh=Symbol.for("react.memo"),Hr=Symbol.for("react.lazy"),Wh=Symbol.for("react.activity"),O4=Symbol.for("react.memo_cache_sentinel"),Oy=Symbol.iterator;function bl(e){return e===null||typeof e!="object"?null:(e=Oy&&e[Oy]||e["@@iterator"],typeof e=="function"?e:null)}var R4=Symbol.for("react.client.reference");function Zh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===R4?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ks:return"Fragment";case Gh:return"Profiler";case Cy:return"StrictMode";case $h:return"Suspense";case Kh:return"SuspenseList";case Wh:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case gl:return"Portal";case ar:return(e.displayName||"Context")+".Provider";case ky:return(e._context.displayName||"Context")+".Consumer";case Xh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qh:return t=e.displayName||null,t!==null?t:Zh(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return Zh(e(t))}catch{}}return null}var yl=Array.isArray,pe=Ty.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ue=S4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pa={pending:!1,data:null,method:null,action:null},Jh=[],Os=-1;function Ii(e){return{current:e}}function Lt(e){0>Os||(e.current=Jh[Os],Jh[Os]=null,Os--)}function ot(e,t){Os++,Jh[Os]=e.current,e.current=t}var Pi=Ii(null),vl=Ii(null),Fr=Ii(null),Nc=Ii(null);function Dc(e,t){switch(ot(Fr,t),ot(vl,e),ot(Pi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?QE(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=QE(t),e=WE(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Lt(Pi),ot(Pi,e)}function Rs(){Lt(Pi),Lt(vl),Lt(Fr)}function ep(e){e.memoizedState!==null&&ot(Nc,e);var t=Pi.current,n=WE(t,e.type);t!==n&&(ot(vl,e),ot(Pi,n))}function Mc(e){vl.current===e&&(Lt(Pi),Lt(vl)),Nc.current===e&&(Lt(Nc),du._currentValue=Pa)}var tp=Object.prototype.hasOwnProperty,np=Nt.unstable_scheduleCallback,ip=Nt.unstable_cancelCallback,N4=Nt.unstable_shouldYield,D4=Nt.unstable_requestPaint,Bi=Nt.unstable_now,M4=Nt.unstable_getCurrentPriorityLevel,Ry=Nt.unstable_ImmediatePriority,Ny=Nt.unstable_UserBlockingPriority,Lc=Nt.unstable_NormalPriority,L4=Nt.unstable_LowPriority,Dy=Nt.unstable_IdlePriority,I4=Nt.log,P4=Nt.unstable_setDisableYieldValue,xl=null,Nn=null;function Vr(e){if(typeof I4=="function"&&P4(e),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(xl,e)}catch{}}var Dn=Math.clz32?Math.clz32:z4,B4=Math.log,U4=Math.LN2;function z4(e){return e>>>=0,e===0?32:31-(B4(e)/U4|0)|0}var Ic=256,Pc=4194304;function Ba(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Bc(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~a,i!==0?r=Ba(i):(s&=o,s!==0?r=Ba(s):n||(n=o&~e,n!==0&&(r=Ba(n))))):(o=i&~a,o!==0?r=Ba(o):s!==0?r=Ba(s):n||(n=i&~e,n!==0&&(r=Ba(n)))),r===0?0:t!==0&&t!==r&&!(t&a)&&(a=r&-r,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:r}function El(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function j4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function My(){var e=Ic;return Ic<<=1,!(Ic&4194048)&&(Ic=256),e}function Ly(){var e=Pc;return Pc<<=1,!(Pc&62914560)&&(Pc=4194304),e}function rp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function H4(e,t,n,i,r,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-Dn(n),f=1<<c;o[c]=0,l[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];h!==null&&(h.lane&=-536870913)}n&=~f}i!==0&&Iy(e,i,0),a!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=a&~(s&~t))}function Iy(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Dn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function Py(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Dn(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function ap(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function sp(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function By(){var e=Ue.p;return e!==0?e:(e=window.event,e===void 0?32:gT(e.type))}function F4(e,t){var n=Ue.p;try{return Ue.p=e,t()}finally{Ue.p=n}}var Yr=Math.random().toString(36).slice(2),en="__reactFiber$"+Yr,yn="__reactProps$"+Yr,Ns="__reactContainer$"+Yr,op="__reactEvents$"+Yr,V4="__reactListeners$"+Yr,Y4="__reactHandles$"+Yr,Uy="__reactResources$"+Yr,wl="__reactMarker$"+Yr;function lp(e){delete e[en],delete e[yn],delete e[op],delete e[V4],delete e[Y4]}function Ds(e){var t=e[en];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ns]||n[en]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tT(e);e!==null;){if(n=e[en])return n;e=tT(e)}return t}e=n,n=e.parentNode}return null}function Ms(e){if(e=e[en]||e[Ns]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function _l(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function Ls(e){var t=e[Uy];return t||(t=e[Uy]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function It(e){e[wl]=!0}var zy=new Set,jy={};function Ua(e,t){Is(e,t),Is(e+"Capture",t)}function Is(e,t){for(jy[e]=t,e=0;e<t.length;e++)zy.add(t[e])}var q4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hy={},Fy={};function G4(e){return tp.call(Fy,e)?!0:tp.call(Hy,e)?!1:q4.test(e)?Fy[e]=!0:(Hy[e]=!0,!1)}function Uc(e,t,n){if(G4(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function zc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function sr(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var up,Vy;function Ps(e){if(up===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);up=t&&t[1]||"",Vy=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+up+e+Vy}var cp=!1;function fp(e,t){if(!e||cp)return"";cp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(h){var d=h}Reflect.construct(e,[],f)}else{try{f.call()}catch(h){d=h}e.call(f.prototype)}}else{try{throw Error()}catch(h){d=h}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),s=a[0],o=a[1];if(s&&o){var l=s.split(`
|
|
44
|
-
`),u=o.split(`
|
|
45
|
-
`);for(r=i=0;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(i===l.length||r===u.length)for(i=l.length-1,r=u.length-1;1<=i&&0<=r&&l[i]!==u[r];)r--;for(;1<=i&&0<=r;i--,r--)if(l[i]!==u[r]){if(i!==1||r!==1)do if(i--,r--,0>r||l[i]!==u[r]){var c=`
|
|
46
|
-
`+l[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=r);break}}}finally{cp=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ps(n):""}function X4(e){switch(e.tag){case 26:case 27:case 5:return Ps(e.type);case 16:return Ps("Lazy");case 13:return Ps("Suspense");case 19:return Ps("SuspenseList");case 0:case 15:return fp(e.type,!1);case 11:return fp(e.type.render,!1);case 1:return fp(e.type,!0);case 31:return Ps("Activity");default:return""}}function Yy(e){try{var t="";do t+=X4(e),e=e.return;while(e);return t}catch(n){return`
|
|
47
|
-
Error generating stack: `+n.message+`
|
|
48
|
-
`+n.stack}}function ei(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $4(e){var t=qy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jc(e){e._valueTracker||(e._valueTracker=$4(e))}function Gy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=qy(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Hc(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}}var K4=/[\n"\\]/g;function ti(e){return e.replace(K4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function dp(e,t,n,i,r,a,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ei(t)):e.value!==""+ei(t)&&(e.value=""+ei(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?hp(e,s,ei(t)):n!=null?hp(e,s,ei(n)):i!=null&&e.removeAttribute("value"),r==null&&a!=null&&(e.defaultChecked=!!a),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+ei(o):e.removeAttribute("name")}function Xy(e,t,n,i,r,a,s,o){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+ei(n):"",t=t!=null?""+ei(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function hp(e,t,n){t==="number"&&Hc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Bs(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ei(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function $y(e,t,n){if(t!=null&&(t=""+ei(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ei(n):""}function Ky(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(q(92));if(yl(i)){if(1<i.length)throw Error(q(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ei(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Q4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qy(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Q4.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Wy(e,t,n){if(t!=null&&typeof t!="object")throw Error(q(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&Qy(e,r,i)}else for(var a in t)t.hasOwnProperty(a)&&Qy(e,a,t[a])}function pp(e){if(e.indexOf("-")===-1)return!1;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 W4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Z4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fc(e){return Z4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var mp=null;function gp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zs=null,js=null;function Zy(e){var t=Ms(e);if(t&&(e=t.stateNode)){var n=e[yn]||null;e:switch(e=t.stateNode,t.type){case"input":if(dp(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ti(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[yn]||null;if(!r)throw Error(q(90));dp(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Gy(i)}break e;case"textarea":$y(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Bs(e,!!n.multiple,t,!1)}}}var bp=!1;function Jy(e,t,n){if(bp)return e(t,n);bp=!0;try{var i=e(t);return i}finally{if(bp=!1,(zs!==null||js!==null)&&(kf(),zs&&(t=zs,e=js,js=zs=null,Zy(t),e)))for(t=0;t<e.length;t++)Zy(e[t])}}function Sl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[yn]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yp=!1;if(or)try{var Al={};Object.defineProperty(Al,"passive",{get:function(){yp=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{yp=!1}var qr=null,vp=null,Vc=null;function ev(){if(Vc)return Vc;var e,t=vp,n=t.length,i,r="value"in qr?qr.value:qr.textContent,a=r.length;for(e=0;e<n&&t[e]===r[e];e++);var s=n-e;for(i=1;i<=s&&t[n-i]===r[a-i];i++);return Vc=r.slice(e,1<i?1-i:void 0)}function Yc(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 qc(){return!0}function tv(){return!1}function vn(e){function t(n,i,r,a,s){this._reactName=n,this._targetInst=r,this.type=i,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)?qc:tv,this.isPropagationStopped=tv,this}return et(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=qc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qc)},persist:function(){},isPersistent:qc}),t}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gc=vn(za),Cl=et({},za,{view:0,detail:0}),J4=vn(Cl),xp,Ep,kl,Xc=et({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wp,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!==kl&&(kl&&e.type==="mousemove"?(xp=e.screenX-kl.screenX,Ep=e.screenY-kl.screenY):Ep=xp=0,kl=e),xp)},movementY:function(e){return"movementY"in e?e.movementY:Ep}}),nv=vn(Xc),eR=et({},Xc,{dataTransfer:0}),tR=vn(eR),nR=et({},Cl,{relatedTarget:0}),Tp=vn(nR),iR=et({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),rR=vn(iR),aR=et({},za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sR=vn(aR),oR=et({},za,{data:0}),iv=vn(oR),lR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uR={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"},cR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cR[e])?!!t[e]:!1}function wp(){return fR}var dR=et({},Cl,{key:function(e){if(e.key){var t=lR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wp,charCode:function(e){return e.type==="keypress"?Yc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hR=vn(dR),pR=et({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rv=vn(pR),mR=et({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wp}),gR=vn(mR),bR=et({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),yR=vn(bR),vR=et({},Xc,{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}),xR=vn(vR),ER=et({},za,{newState:0,oldState:0}),TR=vn(ER),wR=[9,13,27,32],_p=or&&"CompositionEvent"in window,Ol=null;or&&"documentMode"in document&&(Ol=document.documentMode);var _R=or&&"TextEvent"in window&&!Ol,av=or&&(!_p||Ol&&8<Ol&&11>=Ol),sv=" ",ov=!1;function lv(e,t){switch(e){case"keyup":return wR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hs=!1;function SR(e,t){switch(e){case"compositionend":return uv(t);case"keypress":return t.which!==32?null:(ov=!0,sv);case"textInput":return e=t.data,e===sv&&ov?null:e;default:return null}}function AR(e,t){if(Hs)return e==="compositionend"||!_p&&lv(e,t)?(e=ev(),Vc=vp=qr=null,Hs=!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 av&&t.locale!=="ko"?null:t.data;default:return null}}var CR={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 cv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!CR[e.type]:t==="textarea"}function fv(e,t,n,i){zs?js?js.push(i):js=[i]:zs=i,t=Lf(t,"onChange"),0<t.length&&(n=new Gc("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Rl=null,Nl=null;function kR(e){qE(e,0)}function $c(e){var t=_l(e);if(Gy(t))return e}function dv(e,t){if(e==="change")return t}var hv=!1;if(or){var Sp;if(or){var Ap="oninput"in document;if(!Ap){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),Ap=typeof pv.oninput=="function"}Sp=Ap}else Sp=!1;hv=Sp&&(!document.documentMode||9<document.documentMode)}function mv(){Rl&&(Rl.detachEvent("onpropertychange",gv),Nl=Rl=null)}function gv(e){if(e.propertyName==="value"&&$c(Nl)){var t=[];fv(t,Nl,e,gp(e)),Jy(kR,t)}}function OR(e,t,n){e==="focusin"?(mv(),Rl=t,Nl=n,Rl.attachEvent("onpropertychange",gv)):e==="focusout"&&mv()}function RR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $c(Nl)}function NR(e,t){if(e==="click")return $c(t)}function DR(e,t){if(e==="input"||e==="change")return $c(t)}function MR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mn=typeof Object.is=="function"?Object.is:MR;function Dl(e,t){if(Mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!tp.call(t,r)||!Mn(e[r],t[r]))return!1}return!0}function bv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yv(e,t){var n=bv(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bv(n)}}function vv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hc(e.document)}return t}function Cp(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")}var LR=or&&"documentMode"in document&&11>=document.documentMode,Fs=null,kp=null,Ml=null,Op=!1;function Ev(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Op||Fs==null||Fs!==Hc(i)||(i=Fs,"selectionStart"in i&&Cp(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ml&&Dl(Ml,i)||(Ml=i,i=Lf(kp,"onSelect"),0<i.length&&(t=new Gc("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Fs)))}function ja(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vs={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},Rp={},Tv={};or&&(Tv=document.createElement("div").style,"AnimationEvent"in window||(delete Vs.animationend.animation,delete Vs.animationiteration.animation,delete Vs.animationstart.animation),"TransitionEvent"in window||delete Vs.transitionend.transition);function Ha(e){if(Rp[e])return Rp[e];if(!Vs[e])return e;var t=Vs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Tv)return Rp[e]=t[n];return e}var wv=Ha("animationend"),_v=Ha("animationiteration"),Sv=Ha("animationstart"),IR=Ha("transitionrun"),PR=Ha("transitionstart"),BR=Ha("transitioncancel"),Av=Ha("transitionend"),Cv=new Map,Np="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Np.push("scrollEnd");function _i(e,t){Cv.set(e,t),Ua(t,[e])}var kv=new WeakMap;function ni(e,t){if(typeof e=="object"&&e!==null){var n=kv.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Yy(t)},kv.set(e,t),t)}return{value:e,source:t,stack:Yy(t)}}var ii=[],Ys=0,Dp=0;function Kc(){for(var e=Ys,t=Dp=Ys=0;t<e;){var n=ii[t];ii[t++]=null;var i=ii[t];ii[t++]=null;var r=ii[t];ii[t++]=null;var a=ii[t];if(ii[t++]=null,i!==null&&r!==null){var s=i.pending;s===null?r.next=r:(r.next=s.next,s.next=r),i.pending=r}a!==0&&Ov(n,r,a)}}function Qc(e,t,n,i){ii[Ys++]=e,ii[Ys++]=t,ii[Ys++]=n,ii[Ys++]=i,Dp|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Mp(e,t,n,i){return Qc(e,t,n,i),Wc(e)}function qs(e,t){return Qc(e,null,null,t),Wc(e)}function Ov(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(r=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,r&&t!==null&&(r=31-Dn(n),e=a.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),a):null}function Wc(e){if(50<ru)throw ru=0,zm=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Gs={};function UR(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(e,t,n,i){return new UR(e,t,n,i)}function Lp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lr(e,t){var n=e.alternate;return n===null?(n=Ln(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&65011712,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.refCleanup=e.refCleanup,n}function Rv(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zc(e,t,n,i,r,a){var s=0;if(i=e,typeof e=="function")Lp(e)&&(s=1);else if(typeof e=="string")s=jN(e,n,Pi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Wh:return e=Ln(31,n,t,r),e.elementType=Wh,e.lanes=a,e;case ks:return Fa(n.children,r,a,t);case Cy:s=8,r|=24;break;case Gh:return e=Ln(12,n,t,r|2),e.elementType=Gh,e.lanes=a,e;case $h:return e=Ln(13,n,t,r),e.elementType=$h,e.lanes=a,e;case Kh:return e=Ln(19,n,t,r),e.elementType=Kh,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k4:case ar:s=10;break e;case ky:s=9;break e;case Xh:s=11;break e;case Qh:s=14;break e;case Hr:s=16,i=null;break e}s=29,n=Error(q(130,e===null?"null":typeof e,"")),i=null}return t=Ln(s,n,t,r),t.elementType=e,t.type=i,t.lanes=a,t}function Fa(e,t,n,i){return e=Ln(7,e,i,t),e.lanes=n,e}function Ip(e,t,n){return e=Ln(6,e,null,t),e.lanes=n,e}function Pp(e,t,n){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xs=[],$s=0,Jc=null,ef=0,ri=[],ai=0,Va=null,ur=1,cr="";function Ya(e,t){Xs[$s++]=ef,Xs[$s++]=Jc,Jc=e,ef=t}function Nv(e,t,n){ri[ai++]=ur,ri[ai++]=cr,ri[ai++]=Va,Va=e;var i=ur;e=cr;var r=32-Dn(i)-1;i&=~(1<<r),n+=1;var a=32-Dn(t)+r;if(30<a){var s=r-r%5;a=(i&(1<<s)-1).toString(32),i>>=s,r-=s,ur=1<<32-Dn(t)+r|n<<r|i,cr=a+e}else ur=1<<a|n<<r|i,cr=e}function Bp(e){e.return!==null&&(Ya(e,1),Nv(e,1,0))}function Up(e){for(;e===Jc;)Jc=Xs[--$s],Xs[$s]=null,ef=Xs[--$s],Xs[$s]=null;for(;e===Va;)Va=ri[--ai],ri[ai]=null,cr=ri[--ai],ri[ai]=null,ur=ri[--ai],ri[ai]=null}var pn=null,mt=null,ze=!1,qa=null,Ui=!1,zp=Error(q(519));function Ga(e){var t=Error(q(418,""));throw Pl(ni(t,e)),zp}function Dv(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[en]=e,t[yn]=i,n){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(n=0;n<su.length;n++)Re(su[n],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),Xy(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),jc(t);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),Ky(t,i.value,i.defaultValue,i.children),jc(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||KE(t.textContent,n)?(i.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),i.onScroll!=null&&Re("scroll",t),i.onScrollEnd!=null&&Re("scrollend",t),i.onClick!=null&&(t.onclick=If),t=!0):t=!1,t||Ga(e)}function Mv(e){for(pn=e.return;pn;)switch(pn.tag){case 5:case 13:Ui=!1;return;case 27:case 3:Ui=!0;return;default:pn=pn.return}}function Ll(e){if(e!==pn)return!1;if(!ze)return Mv(e),ze=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||t0(e.type,e.memoizedProps)),n=!n),n&&mt&&Ga(e),Mv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){mt=Ai(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}mt=null}}else t===27?(t=mt,oa(e.type)?(e=a0,a0=null,mt=e):mt=t):mt=pn?Ai(e.stateNode.nextSibling):null;return!0}function Il(){mt=pn=null,ze=!1}function Lv(){var e=qa;return e!==null&&(Tn===null?Tn=e:Tn.push.apply(Tn,e),qa=null),e}function Pl(e){qa===null?qa=[e]:qa.push(e)}var jp=Ii(null),Xa=null,fr=null;function Gr(e,t,n){ot(jp,t._currentValue),t._currentValue=n}function dr(e){e._currentValue=jp.current,Lt(jp)}function Hp(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Fp(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var a=r.dependencies;if(a!==null){var s=r.child;a=a.firstContext;e:for(;a!==null;){var o=a;a=r;for(var l=0;l<t.length;l++)if(o.context===t[l]){a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),Hp(a.return,n,e),i||(s=null);break e}a=o.next}}else if(r.tag===18){if(s=r.return,s===null)throw Error(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hp(s,n,e),s=null}else s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}}function Bl(e,t,n,i){e=null;for(var r=t,a=!1;r!==null;){if(!a){if(r.flags&524288)a=!0;else if(r.flags&262144)break}if(r.tag===10){var s=r.alternate;if(s===null)throw Error(q(387));if(s=s.memoizedProps,s!==null){var o=r.type;Mn(r.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(r===Nc.current){if(s=r.alternate,s===null)throw Error(q(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(du):e=[du])}r=r.return}e!==null&&Fp(t,e,n,i),t.flags|=262144}function tf(e){for(e=e.firstContext;e!==null;){if(!Mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $a(e){Xa=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tn(e){return Iv(Xa,e)}function nf(e,t){return Xa===null&&$a(e),Iv(e,t)}function Iv(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fr===null){if(e===null)throw Error(q(308));fr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fr=fr.next=t;return n}var zR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},jR=Nt.unstable_scheduleCallback,HR=Nt.unstable_NormalPriority,Dt={$$typeof:ar,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vp(){return{controller:new zR,data:new Map,refCount:0}}function Ul(e){e.refCount--,e.refCount===0&&jR(HR,function(){e.controller.abort()})}var zl=null,Yp=0,Ks=0,Qs=null;function FR(e,t){if(zl===null){var n=zl=[];Yp=0,Ks=Gm(),Qs={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Yp++,t.then(Pv,Pv),t}function Pv(){if(--Yp===0&&zl!==null){Qs!==null&&(Qs.status="fulfilled");var e=zl;zl=null,Ks=0,Qs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function VR(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var Bv=pe.S;pe.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&FR(e,t),Bv!==null&&Bv(e,t)};var Ka=Ii(null);function qp(){var e=Ka.current;return e!==null?e:Qe.pooledCache}function rf(e,t){t===null?ot(Ka,Ka.current):ot(Ka,t.pool)}function Uv(){var e=qp();return e===null?null:{parent:Dt._currentValue,pool:e}}var jl=Error(q(460)),zv=Error(q(474)),af=Error(q(542)),Gp={then:function(){}};function jv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sf(){}function Hv(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(sf,sf),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vv(e),e;default:if(typeof t.status=="string")t.then(sf,sf);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(q(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vv(e),e}throw Hl=t,jl}}var Hl=null;function Fv(){if(Hl===null)throw Error(q(459));var e=Hl;return Hl=null,e}function Vv(e){if(e===jl||e===af)throw Error(q(483))}var Xr=!1;function Xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $p(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $r(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Fe&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Wc(e),Ov(e,null,n),t}return Qc(e,i,t,n),Wc(e)}function Fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Py(e,n)}}function Kp(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?r=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?r=a=t:a=a.next=t}else r=a=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Qp=!1;function Vl(){if(Qp){var e=Qs;if(e!==null)throw e}}function Yl(e,t,n,i){Qp=!1;var r=e.updateQueue;Xr=!1;var a=r.firstBaseUpdate,s=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=r.baseState;s=0,c=u=l=null,o=a;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(De&d)===d:(i&d)===d){d!==0&&d===Ks&&(Qp=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;d=t;var T=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(T,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,d=typeof g=="function"?g.call(T,f,d):g,d==null)break e;f=et({},f,d);break e;case 2:Xr=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;h=o,o=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);c===null&&(l=f),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,a===null&&(r.shared.lanes=0),ia|=s,e.lanes=s,e.memoizedState=f}}function Yv(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function qv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Yv(n[e],t)}var Ws=Ii(null),of=Ii(0);function Gv(e,t){e=vr,ot(of,e),ot(Ws,t),vr=e|t.baseLanes}function Wp(){ot(of,vr),ot(Ws,Ws.current)}function Zp(){vr=of.current,Lt(Ws),Lt(of)}var Qr=0,Ae=null,Ye=null,_t=null,lf=!1,Zs=!1,Qa=!1,uf=0,ql=0,Js=null,YR=0;function vt(){throw Error(q(321))}function Jp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mn(e[n],t[n]))return!1;return!0}function em(e,t,n,i,r,a){return Qr=a,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pe.H=e===null||e.memoizedState===null?Ox:Rx,Qa=!1,a=n(i,r),Qa=!1,Zs&&(a=$v(t,n,i,r)),Xv(e),a}function Xv(e){pe.H=mf;var t=Ye!==null&&Ye.next!==null;if(Qr=0,_t=Ye=Ae=null,lf=!1,ql=0,Js=null,t)throw Error(q(300));e===null||Pt||(e=e.dependencies,e!==null&&tf(e)&&(Pt=!0))}function $v(e,t,n,i){Ae=e;var r=0;do{if(Zs&&(Js=null),ql=0,Zs=!1,25<=r)throw Error(q(301));if(r+=1,_t=Ye=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}pe.H=WR,a=t(n,i)}while(Zs);return a}function qR(){var e=pe.H,t=e.useState()[0];return t=typeof t.then=="function"?Gl(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Ae.flags|=1024),t}function tm(){var e=uf!==0;return uf=0,e}function nm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function im(e){if(lf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lf=!1}Qr=0,_t=Ye=Ae=null,Zs=!1,ql=uf=0,Js=null}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Ae.memoizedState=_t=e:_t=_t.next=e,_t}function St(){if(Ye===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=_t===null?Ae.memoizedState:_t.next;if(t!==null)_t=t,Ye=e;else{if(e===null)throw Ae.alternate===null?Error(q(467)):Error(q(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},_t===null?Ae.memoizedState=_t=e:_t=_t.next=e}return _t}function rm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gl(e){var t=ql;return ql+=1,Js===null&&(Js=[]),e=Hv(Js,e,t),t=Ae,(_t===null?t.memoizedState:_t.next)===null&&(t=t.alternate,pe.H=t===null||t.memoizedState===null?Ox:Rx),e}function cf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Gl(e);if(e.$$typeof===ar)return tn(e)}throw Error(q(438,String(e)))}function am(e){var t=null,n=Ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ae.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=rm(),Ae.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=O4;return t.index++,n}function hr(e,t){return typeof t=="function"?t(e):t}function ff(e){var t=St();return sm(t,Ye,e)}function sm(e,t,n){var i=e.queue;if(i===null)throw Error(q(311));i.lastRenderedReducer=n;var r=e.baseQueue,a=i.pending;if(a!==null){if(r!==null){var s=r.next;r.next=a.next,a.next=s}t.baseQueue=r=a,i.pending=null}if(a=e.baseState,r===null)e.memoizedState=a;else{t=r.next;var o=s=null,l=null,u=t,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(De&f)===f:(Qr&f)===f){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ks&&(c=!0);else if((Qr&d)===d){u=u.next,d===Ks&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=f,s=a):l=l.next=f,Ae.lanes|=d,ia|=d;f=u.action,Qa&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else d={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=a):l=l.next=d,Ae.lanes|=f,ia|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=o,!Mn(a,e.memoizedState)&&(Pt=!0,c&&(n=Qs,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,i.lastRenderedState=a}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function om(e){var t=St(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,a=t.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do a=e(a,s.action),s=s.next;while(s!==r);Mn(a,t.memoizedState)||(Pt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Kv(e,t,n){var i=Ae,r=St(),a=ze;if(a){if(n===void 0)throw Error(q(407));n=n()}else n=t();var s=!Mn((Ye||r).memoizedState,n);s&&(r.memoizedState=n,Pt=!0),r=r.queue;var o=Zv.bind(null,i,r,e);if(Xl(2048,8,o,[e]),r.getSnapshot!==t||s||_t!==null&&_t.memoizedState.tag&1){if(i.flags|=2048,eo(9,df(),Wv.bind(null,i,r,n,t),null),Qe===null)throw Error(q(349));a||Qr&124||Qv(i,t,n)}return n}function Qv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t=rm(),Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wv(e,t,n,i){t.value=n,t.getSnapshot=i,Jv(t)&&ex(e)}function Zv(e,t,n){return n(function(){Jv(t)&&ex(e)})}function Jv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mn(e,n)}catch{return!0}}function ex(e){var t=qs(e,2);t!==null&&zn(t,e,2)}function lm(e){var t=xn();if(typeof e=="function"){var n=e;if(e=n(),Qa){Vr(!0);try{n()}finally{Vr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},t}function tx(e,t,n,i){return e.baseState=n,sm(e,Ye,typeof i=="function"?i:hr)}function GR(e,t,n,i,r){if(pf(e))throw Error(q(485));if(e=t.action,e!==null){var a={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){a.listeners.push(s)}};pe.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,nx(t,a)):(a.next=n.next,t.pending=n.next=a)}}function nx(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var a=pe.T,s={};pe.T=s;try{var o=n(r,i),l=pe.S;l!==null&&l(s,o),ix(e,t,o)}catch(u){um(e,t,u)}finally{pe.T=a}}else try{a=n(r,i),ix(e,t,a)}catch(u){um(e,t,u)}}function ix(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){rx(e,t,i)},function(i){return um(e,t,i)}):rx(e,t,n)}function rx(e,t,n){t.status="fulfilled",t.value=n,ax(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,nx(e,n)))}function um(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,ax(t),t=t.next;while(t!==i)}e.action=null}function ax(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sx(e,t){return t}function ox(e,t){if(ze){var n=Qe.formState;if(n!==null){e:{var i=Ae;if(ze){if(mt){t:{for(var r=mt,a=Ui;r.nodeType!==8;){if(!a){r=null;break t}if(r=Ai(r.nextSibling),r===null){r=null;break t}}a=r.data,r=a==="F!"||a==="F"?r:null}if(r){mt=Ai(r.nextSibling),i=r.data==="F!";break e}}Ga(i)}i=!1}i&&(t=n[0])}}return n=xn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sx,lastRenderedState:t},n.queue=i,n=Ax.bind(null,Ae,i),i.dispatch=n,i=lm(!1),a=pm.bind(null,Ae,!1,i.queue),i=xn(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=GR.bind(null,Ae,r,a,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function lx(e){var t=St();return ux(t,Ye,e)}function ux(e,t,n){if(t=sm(e,t,sx)[0],e=ff(hr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Gl(t)}catch(s){throw s===jl?af:s}else i=t;t=St();var r=t.queue,a=r.dispatch;return n!==t.memoizedState&&(Ae.flags|=2048,eo(9,df(),XR.bind(null,r,n),null)),[i,a,e]}function XR(e,t){e.action=t}function cx(e){var t=St(),n=Ye;if(n!==null)return ux(t,n,e);St(),t=t.memoizedState,n=St();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function eo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=rm(),Ae.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function df(){return{destroy:void 0,resource:void 0}}function fx(){return St().memoizedState}function hf(e,t,n,i){var r=xn();i=i===void 0?null:i,Ae.flags|=e,r.memoizedState=eo(1|t,df(),n,i)}function Xl(e,t,n,i){var r=St();i=i===void 0?null:i;var a=r.memoizedState.inst;Ye!==null&&i!==null&&Jp(i,Ye.memoizedState.deps)?r.memoizedState=eo(t,a,n,i):(Ae.flags|=e,r.memoizedState=eo(1|t,a,n,i))}function dx(e,t){hf(8390656,8,e,t)}function hx(e,t){Xl(2048,8,e,t)}function px(e,t){return Xl(4,2,e,t)}function mx(e,t){return Xl(4,4,e,t)}function gx(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bx(e,t,n){n=n!=null?n.concat([e]):null,Xl(4,4,gx.bind(null,t,e),n)}function cm(){}function yx(e,t){var n=St();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Jp(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function vx(e,t){var n=St();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Jp(t,i[1]))return i[0];if(i=e(),Qa){Vr(!0);try{e()}finally{Vr(!1)}}return n.memoizedState=[i,t],i}function fm(e,t,n){return n===void 0||Qr&1073741824?e.memoizedState=t:(e.memoizedState=n,e=TE(),Ae.lanes|=e,ia|=e,n)}function xx(e,t,n,i){return Mn(n,t)?n:Ws.current!==null?(e=fm(e,n,i),Mn(e,t)||(Pt=!0),e):Qr&42?(e=TE(),Ae.lanes|=e,ia|=e,t):(Pt=!0,e.memoizedState=n)}function Ex(e,t,n,i,r){var a=Ue.p;Ue.p=a!==0&&8>a?a:8;var s=pe.T,o={};pe.T=o,pm(e,!1,t,n);try{var l=r(),u=pe.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=VR(l,i);$l(e,t,c,Un(e))}else $l(e,t,i,Un(e))}catch(f){$l(e,t,{then:function(){},status:"rejected",reason:f},Un())}finally{Ue.p=a,pe.T=s}}function $R(){}function dm(e,t,n,i){if(e.tag!==5)throw Error(q(476));var r=Tx(e).queue;Ex(e,r,t,Pa,n===null?$R:function(){return wx(e),n(i)})}function Tx(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Pa,baseState:Pa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:Pa},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wx(e){var t=Tx(e).next.queue;$l(e,t,{},Un())}function hm(){return tn(du)}function _x(){return St().memoizedState}function Sx(){return St().memoizedState}function KR(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Un();e=$r(n);var i=Kr(t,e,n);i!==null&&(zn(i,t,n),Fl(i,t,n)),t={cache:Vp()},e.payload=t;return}t=t.return}}function QR(e,t,n){var i=Un();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},pf(e)?Cx(t,n):(n=Mp(e,t,n,i),n!==null&&(zn(n,e,i),kx(n,t,i)))}function Ax(e,t,n){var i=Un();$l(e,t,n,i)}function $l(e,t,n,i){var r={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(pf(e))Cx(t,r);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(r.hasEagerState=!0,r.eagerState=o,Mn(o,s))return Qc(e,t,r,0),Qe===null&&Kc(),!1}catch{}finally{}if(n=Mp(e,t,r,i),n!==null)return zn(n,e,i),kx(n,t,i),!0}return!1}function pm(e,t,n,i){if(i={lane:2,revertLane:Gm(),action:i,hasEagerState:!1,eagerState:null,next:null},pf(e)){if(t)throw Error(q(479))}else t=Mp(e,n,i,2),t!==null&&zn(t,e,2)}function pf(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Cx(e,t){Zs=lf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kx(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Py(e,n)}}var mf={readContext:tn,use:cf,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt},Ox={readContext:tn,use:cf,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:dx,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,hf(4194308,4,gx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hf(4194308,4,e,t)},useInsertionEffect:function(e,t){hf(4,2,e,t)},useMemo:function(e,t){var n=xn();t=t===void 0?null:t;var i=e();if(Qa){Vr(!0);try{e()}finally{Vr(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=xn();if(n!==void 0){var r=n(t);if(Qa){Vr(!0);try{n(t)}finally{Vr(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=QR.bind(null,Ae,e),[i.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:function(e){e=lm(e);var t=e.queue,n=Ax.bind(null,Ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:cm,useDeferredValue:function(e,t){var n=xn();return fm(n,e,t)},useTransition:function(){var e=lm(!1);return e=Ex.bind(null,Ae,e.queue,!0,!1),xn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ae,r=xn();if(ze){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Qe===null)throw Error(q(349));De&124||Qv(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,dx(Zv.bind(null,i,a,e),[e]),i.flags|=2048,eo(9,df(),Wv.bind(null,i,a,n,t),null),n},useId:function(){var e=xn(),t=Qe.identifierPrefix;if(ze){var n=cr,i=ur;n=(i&~(1<<32-Dn(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=uf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=YR++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:hm,useFormState:ox,useActionState:ox,useOptimistic:function(e){var t=xn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pm.bind(null,Ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:am,useCacheRefresh:function(){return xn().memoizedState=KR.bind(null,Ae)}},Rx={readContext:tn,use:cf,useCallback:yx,useContext:tn,useEffect:hx,useImperativeHandle:bx,useInsertionEffect:px,useLayoutEffect:mx,useMemo:vx,useReducer:ff,useRef:fx,useState:function(){return ff(hr)},useDebugValue:cm,useDeferredValue:function(e,t){var n=St();return xx(n,Ye.memoizedState,e,t)},useTransition:function(){var e=ff(hr)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Gl(e),t]},useSyncExternalStore:Kv,useId:_x,useHostTransitionStatus:hm,useFormState:lx,useActionState:lx,useOptimistic:function(e,t){var n=St();return tx(n,Ye,e,t)},useMemoCache:am,useCacheRefresh:Sx},WR={readContext:tn,use:cf,useCallback:yx,useContext:tn,useEffect:hx,useImperativeHandle:bx,useInsertionEffect:px,useLayoutEffect:mx,useMemo:vx,useReducer:om,useRef:fx,useState:function(){return om(hr)},useDebugValue:cm,useDeferredValue:function(e,t){var n=St();return Ye===null?fm(n,e,t):xx(n,Ye.memoizedState,e,t)},useTransition:function(){var e=om(hr)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Gl(e),t]},useSyncExternalStore:Kv,useId:_x,useHostTransitionStatus:hm,useFormState:cx,useActionState:cx,useOptimistic:function(e,t){var n=St();return Ye!==null?tx(n,Ye,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:am,useCacheRefresh:Sx},to=null,Kl=0;function gf(e){var t=Kl;return Kl+=1,to===null&&(to=[]),Hv(to,e,t)}function Ql(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bf(e,t){throw t.$$typeof===C4?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Nx(e){var t=e._init;return t(e._payload)}function Dx(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function i(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function r(m,y){return m=lr(m,y),m.index=0,m.sibling=null,m}function a(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=67108866,y):x):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,y,x,w){return y===null||y.tag!==6?(y=Ip(x,m.mode,w),y.return=m,y):(y=r(y,x),y.return=m,y)}function l(m,y,x,w){var S=x.type;return S===ks?c(m,y,x.props.children,w,x.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Hr&&Nx(S)===y.type)?(y=r(y,x.props),Ql(y,x),y.return=m,y):(y=Zc(x.type,x.key,x.props,null,m.mode,w),Ql(y,x),y.return=m,y)}function u(m,y,x,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Pp(x,m.mode,w),y.return=m,y):(y=r(y,x.children||[]),y.return=m,y)}function c(m,y,x,w,S){return y===null||y.tag!==7?(y=Fa(x,m.mode,w,S),y.return=m,y):(y=r(y,x),y.return=m,y)}function f(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Ip(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Rc:return x=Zc(y.type,y.key,y.props,null,m.mode,x),Ql(x,y),x.return=m,x;case gl:return y=Pp(y,m.mode,x),y.return=m,y;case Hr:var w=y._init;return y=w(y._payload),f(m,y,x)}if(yl(y)||bl(y))return y=Fa(y,m.mode,x,null),y.return=m,y;if(typeof y.then=="function")return f(m,gf(y),x);if(y.$$typeof===ar)return f(m,nf(m,y),x);bf(m,y)}return null}function d(m,y,x,w){var S=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,y,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Rc:return x.key===S?l(m,y,x,w):null;case gl:return x.key===S?u(m,y,x,w):null;case Hr:return S=x._init,x=S(x._payload),d(m,y,x,w)}if(yl(x)||bl(x))return S!==null?null:c(m,y,x,w,null);if(typeof x.then=="function")return d(m,y,gf(x),w);if(x.$$typeof===ar)return d(m,y,nf(m,x),w);bf(m,x)}return null}function h(m,y,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return m=m.get(x)||null,o(y,m,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Rc:return m=m.get(w.key===null?x:w.key)||null,l(y,m,w,S);case gl:return m=m.get(w.key===null?x:w.key)||null,u(y,m,w,S);case Hr:var k=w._init;return w=k(w._payload),h(m,y,x,w,S)}if(yl(w)||bl(w))return m=m.get(x)||null,c(y,m,w,S,null);if(typeof w.then=="function")return h(m,y,x,gf(w),S);if(w.$$typeof===ar)return h(m,y,x,nf(y,w),S);bf(y,w)}return null}function g(m,y,x,w){for(var S=null,k=null,D=y,L=y=0,B=null;D!==null&&L<x.length;L++){D.index>L?(B=D,D=null):B=D.sibling;var R=d(m,D,x[L],w);if(R===null){D===null&&(D=B);break}e&&D&&R.alternate===null&&t(m,D),y=a(R,y,L),k===null?S=R:k.sibling=R,k=R,D=B}if(L===x.length)return n(m,D),ze&&Ya(m,L),S;if(D===null){for(;L<x.length;L++)D=f(m,x[L],w),D!==null&&(y=a(D,y,L),k===null?S=D:k.sibling=D,k=D);return ze&&Ya(m,L),S}for(D=i(D);L<x.length;L++)B=h(D,m,L,x[L],w),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),y=a(B,y,L),k===null?S=B:k.sibling=B,k=B);return e&&D.forEach(function(Y){return t(m,Y)}),ze&&Ya(m,L),S}function b(m,y,x,w){if(x==null)throw Error(q(151));for(var S=null,k=null,D=y,L=y=0,B=null,R=x.next();D!==null&&!R.done;L++,R=x.next()){D.index>L?(B=D,D=null):B=D.sibling;var Y=d(m,D,R.value,w);if(Y===null){D===null&&(D=B);break}e&&D&&Y.alternate===null&&t(m,D),y=a(Y,y,L),k===null?S=Y:k.sibling=Y,k=Y,D=B}if(R.done)return n(m,D),ze&&Ya(m,L),S;if(D===null){for(;!R.done;L++,R=x.next())R=f(m,R.value,w),R!==null&&(y=a(R,y,L),k===null?S=R:k.sibling=R,k=R);return ze&&Ya(m,L),S}for(D=i(D);!R.done;L++,R=x.next())R=h(D,m,L,R.value,w),R!==null&&(e&&R.alternate!==null&&D.delete(R.key===null?L:R.key),y=a(R,y,L),k===null?S=R:k.sibling=R,k=R);return e&&D.forEach(function(j){return t(m,j)}),ze&&Ya(m,L),S}function T(m,y,x,w){if(typeof x=="object"&&x!==null&&x.type===ks&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Rc:e:{for(var S=x.key;y!==null;){if(y.key===S){if(S=x.type,S===ks){if(y.tag===7){n(m,y.sibling),w=r(y,x.props.children),w.return=m,m=w;break e}}else if(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Hr&&Nx(S)===y.type){n(m,y.sibling),w=r(y,x.props),Ql(w,x),w.return=m,m=w;break e}n(m,y);break}else t(m,y);y=y.sibling}x.type===ks?(w=Fa(x.props.children,m.mode,w,x.key),w.return=m,m=w):(w=Zc(x.type,x.key,x.props,null,m.mode,w),Ql(w,x),w.return=m,m=w)}return s(m);case gl:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),w=r(y,x.children||[]),w.return=m,m=w;break e}else{n(m,y);break}else t(m,y);y=y.sibling}w=Pp(x,m.mode,w),w.return=m,m=w}return s(m);case Hr:return S=x._init,x=S(x._payload),T(m,y,x,w)}if(yl(x))return g(m,y,x,w);if(bl(x)){if(S=bl(x),typeof S!="function")throw Error(q(150));return x=S.call(x),b(m,y,x,w)}if(typeof x.then=="function")return T(m,y,gf(x),w);if(x.$$typeof===ar)return T(m,y,nf(m,x),w);bf(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),w=r(y,x),w.return=m,m=w):(n(m,y),w=Ip(x,m.mode,w),w.return=m,m=w),s(m)):n(m,y)}return function(m,y,x,w){try{Kl=0;var S=T(m,y,x,w);return to=null,S}catch(D){if(D===jl||D===af)throw D;var k=Ln(29,D,null,m.mode);return k.lanes=w,k.return=m,k}finally{}}}var no=Dx(!0),Mx=Dx(!1),si=Ii(null),zi=null;function Wr(e){var t=e.alternate;ot(Mt,Mt.current&1),ot(si,e),zi===null&&(t===null||Ws.current!==null||t.memoizedState!==null)&&(zi=e)}function Lx(e){if(e.tag===22){if(ot(Mt,Mt.current),ot(si,e),zi===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(zi=e)}}else Zr()}function Zr(){ot(Mt,Mt.current),ot(si,si.current)}function pr(e){Lt(si),zi===e&&(zi=null),Lt(Mt)}var Mt=Ii(0);function yf(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==="$?"||r0(n)))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}function mm(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gm={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Un(),r=$r(i);r.payload=t,n!=null&&(r.callback=n),t=Kr(e,r,i),t!==null&&(zn(t,e,i),Fl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Un(),r=$r(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Kr(e,r,i),t!==null&&(zn(t,e,i),Fl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Un(),i=$r(n);i.tag=2,t!=null&&(i.callback=t),t=Kr(e,i,n),t!==null&&(zn(t,e,n),Fl(t,e,n))}};function Ix(e,t,n,i,r,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,s):t.prototype&&t.prototype.isPureReactComponent?!Dl(n,i)||!Dl(r,a):!0}function Px(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&gm.enqueueReplaceState(t,t.state,null)}function Wa(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=et({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var vf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Bx(e){vf(e)}function Ux(e){console.error(e)}function zx(e){vf(e)}function xf(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function jx(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function bm(e,t,n){return n=$r(n),n.tag=3,n.payload={element:null},n.callback=function(){xf(e,t)},n}function Hx(e){return e=$r(e),e.tag=3,e}function Fx(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var a=i.value;e.payload=function(){return r(a)},e.callback=function(){jx(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){jx(t,n,i),typeof r!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function ZR(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Bl(t,n,r,!0),n=si.current,n!==null){switch(n.tag){case 13:return zi===null?Hm():n.alternate===null&>===0&&(gt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Gp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Vm(e,i,r)),!1;case 22:return n.flags|=65536,i===Gp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Vm(e,i,r)),!1}throw Error(q(435,n.tag))}return Vm(e,i,r),Hm(),!1}if(ze)return t=si.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==zp&&(e=Error(q(422),{cause:i}),Pl(ni(e,n)))):(i!==zp&&(t=Error(q(423),{cause:i}),Pl(ni(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=ni(i,n),r=bm(e.stateNode,i,r),Kp(e,r),gt!==4&&(gt=2)),!1;var a=Error(q(520),{cause:i});if(a=ni(a,n),iu===null?iu=[a]:iu.push(a),gt!==4&&(gt=2),t===null)return!0;i=ni(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=bm(n.stateNode,i,e),Kp(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(ra===null||!ra.has(a))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Hx(r),Fx(r,e,n,i),Kp(n,r),!1}n=n.return}while(n!==null);return!1}var Vx=Error(q(461)),Pt=!1;function Xt(e,t,n,i){t.child=e===null?Mx(t,null,n,i):no(t,e.child,n,i)}function Yx(e,t,n,i,r){n=n.render;var a=t.ref;if("ref"in i){var s={};for(var o in i)o!=="ref"&&(s[o]=i[o])}else s=i;return $a(t),i=em(e,t,n,s,a,r),o=tm(),e!==null&&!Pt?(nm(e,t,r),mr(e,t,r)):(ze&&o&&Bp(t),t.flags|=1,Xt(e,t,i,r),t.child)}function qx(e,t,n,i,r){if(e===null){var a=n.type;return typeof a=="function"&&!Lp(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Gx(e,t,a,i,r)):(e=Zc(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Sm(e,r)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(s,i)&&e.ref===t.ref)return mr(e,t,r)}return t.flags|=1,e=lr(a,i),e.ref=t.ref,e.return=t,t.child=e}function Gx(e,t,n,i,r){if(e!==null){var a=e.memoizedProps;if(Dl(a,i)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=i=a,Sm(e,r))e.flags&131072&&(Pt=!0);else return t.lanes=e.lanes,mr(e,t,r)}return ym(e,t,n,i,r)}function Xx(e,t,n){var i=t.pendingProps,r=i.children,a=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if(t.flags&128){if(i=a!==null?a.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;t.childLanes=a&~i}else t.childLanes=0,t.child=null;return $x(e,t,i,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rf(t,a!==null?a.cachePool:null),a!==null?Gv(t,a):Wp(),Lx(t);else return t.lanes=t.childLanes=536870912,$x(e,t,a!==null?a.baseLanes|n:n,n)}else a!==null?(rf(t,a.cachePool),Gv(t,a),Zr(),t.memoizedState=null):(e!==null&&rf(t,null),Wp(),Zr());return Xt(e,t,r,n),t.child}function $x(e,t,n,i){var r=qp();return r=r===null?null:{parent:Dt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&rf(t,null),Wp(),Lx(t),e!==null&&Bl(e,t,i,!0),null}function Ef(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(q(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ym(e,t,n,i,r){return $a(t),n=em(e,t,n,i,void 0,r),i=tm(),e!==null&&!Pt?(nm(e,t,r),mr(e,t,r)):(ze&&i&&Bp(t),t.flags|=1,Xt(e,t,n,r),t.child)}function Kx(e,t,n,i,r,a){return $a(t),t.updateQueue=null,n=$v(t,i,n,r),Xv(e),i=tm(),e!==null&&!Pt?(nm(e,t,a),mr(e,t,a)):(ze&&i&&Bp(t),t.flags|=1,Xt(e,t,n,a),t.child)}function Qx(e,t,n,i,r){if($a(t),t.stateNode===null){var a=Gs,s=n.contextType;typeof s=="object"&&s!==null&&(a=tn(s)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=gm,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},Xp(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?tn(s):Gs,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(mm(t,n,s,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(s=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&gm.enqueueReplaceState(a,a.state,null),Yl(t,i,a,r),Vl(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var o=t.memoizedProps,l=Wa(n,o);a.props=l;var u=a.context,c=n.contextType;s=Gs,typeof c=="object"&&c!==null&&(s=tn(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||u!==s)&&Px(t,a,i,s),Xr=!1;var d=t.memoizedState;a.state=d,Yl(t,i,a,r),Vl(),u=t.memoizedState,o||d!==u||Xr?(typeof f=="function"&&(mm(t,n,f,i),u=t.memoizedState),(l=Xr||Ix(t,n,l,i,d,u,s))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=u),a.props=i,a.state=u,a.context=s,i=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,$p(e,t),s=t.memoizedProps,c=Wa(n,s),a.props=c,f=t.pendingProps,d=a.context,u=n.contextType,l=Gs,typeof u=="object"&&u!==null&&(l=tn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&Px(t,a,i,l),Xr=!1,d=t.memoizedState,a.state=d,Yl(t,i,a,r),Vl();var h=t.memoizedState;s!==f||d!==h||Xr||e!==null&&e.dependencies!==null&&tf(e.dependencies)?(typeof o=="function"&&(mm(t,n,o,i),h=t.memoizedState),(c=Xr||Ix(t,n,c,i,d,h,l)||e!==null&&e.dependencies!==null&&tf(e.dependencies))?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=l,i=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Ef(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=no(t,e.child,null,r),t.child=no(t,null,n,r)):Xt(e,t,n,r),t.memoizedState=a.state,e=t.child):e=mr(e,t,r),e}function Wx(e,t,n,i){return Il(),t.flags|=256,Xt(e,t,n,i),t.child}var vm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xm(e){return{baseLanes:e,cachePool:Uv()}}function Em(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=oi),e}function Zx(e,t,n){var i=t.pendingProps,r=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(Mt.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(r?Wr(t):Zr(),ze){var o=mt,l;if(l=o){e:{for(l=o,o=Ui;l.nodeType!==8;){if(!o){o=null;break e}if(l=Ai(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:Va!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},l=Ln(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,pn=t,mt=null,l=!0):l=!1}l||Ga(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return r0(o)?t.lanes=32:t.lanes=536870912,null;pr(t)}return o=i.children,i=i.fallback,r?(Zr(),r=t.mode,o=Tf({mode:"hidden",children:o},r),i=Fa(i,r,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,r=t.child,r.memoizedState=xm(n),r.childLanes=Em(e,s,n),t.memoizedState=vm,i):(Wr(t),Tm(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(a)t.flags&256?(Wr(t),t.flags&=-257,t=wm(e,t,n)):t.memoizedState!==null?(Zr(),t.child=e.child,t.flags|=128,t=null):(Zr(),r=i.fallback,o=t.mode,i=Tf({mode:"visible",children:i.children},o),r=Fa(r,o,n,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,no(t,e.child,null,n),i=t.child,i.memoizedState=xm(n),i.childLanes=Em(e,s,n),t.memoizedState=vm,t=r);else if(Wr(t),r0(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,i=Error(q(419)),i.stack="",i.digest=s,Pl({value:i,source:null,stack:null}),t=wm(e,t,n)}else if(Pt||Bl(e,t,n,!1),s=(n&e.childLanes)!==0,Pt||s){if(s=Qe,s!==null&&(i=n&-n,i=i&42?1:ap(i),i=i&(s.suspendedLanes|n)?0:i,i!==0&&i!==l.retryLane))throw l.retryLane=i,qs(e,i),zn(s,e,i),Vx;o.data==="$?"||Hm(),t=wm(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,mt=Ai(o.nextSibling),pn=t,ze=!0,qa=null,Ui=!1,e!==null&&(ri[ai++]=ur,ri[ai++]=cr,ri[ai++]=Va,ur=e.id,cr=e.overflow,Va=t),t=Tm(t,i.children),t.flags|=4096);return t}return r?(Zr(),r=i.fallback,o=t.mode,l=e.child,u=l.sibling,i=lr(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,u!==null?r=lr(u,r):(r=Fa(r,o,n,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,i=r,r=t.child,o=e.child.memoizedState,o===null?o=xm(n):(l=o.cachePool,l!==null?(u=Dt._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Uv(),o={baseLanes:o.baseLanes|n,cachePool:l}),r.memoizedState=o,r.childLanes=Em(e,s,n),t.memoizedState=vm,i):(Wr(t),n=e.child,e=n.sibling,n=lr(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Tm(e,t){return t=Tf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tf(e,t){return e=Ln(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function wm(e,t,n){return no(t,e.child,null,n),e=Tm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jx(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Hp(e.return,t,n)}function _m(e,t,n,i,r){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r)}function eE(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(Xt(e,t,i.children,n),i=Mt.current,i&2)i=i&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&&Jx(e,n,t);else if(e.tag===19)Jx(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}i&=1}switch(ot(Mt,i),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&yf(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),_m(t,!1,r,n,a);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&yf(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}_m(t,!0,n,null,a);break;case"together":_m(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ia|=t.lanes,!(n&t.childLanes))if(e!==null){if(Bl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sm(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&tf(e)))}function JR(e,t,n){switch(t.tag){case 3:Dc(t,t.stateNode.containerInfo),Gr(t,Dt,e.memoizedState.cache),Il();break;case 27:case 5:ep(t);break;case 4:Dc(t,t.stateNode.containerInfo);break;case 10:Gr(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Wr(t),t.flags|=128,null):n&t.child.childLanes?Zx(e,t,n):(Wr(t),e=mr(e,t,n),e!==null?e.sibling:null);Wr(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Bl(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return eE(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ot(Mt,Mt.current),i)break;return null;case 22:case 23:return t.lanes=0,Xx(e,t,n);case 24:Gr(t,Dt,e.memoizedState.cache)}return mr(e,t,n)}function tE(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pt=!0;else{if(!Sm(e,n)&&!(t.flags&128))return Pt=!1,JR(e,t,n);Pt=!!(e.flags&131072)}else Pt=!1,ze&&t.flags&1048576&&Nv(t,ef,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,r=i._init;if(i=r(i._payload),t.type=i,typeof i=="function")Lp(i)?(e=Wa(i,e),t.tag=1,t=Qx(null,t,i,e,n)):(t.tag=0,t=ym(null,t,i,e,n));else{if(i!=null){if(r=i.$$typeof,r===Xh){t.tag=11,t=Yx(null,t,i,e,n);break e}else if(r===Qh){t.tag=14,t=qx(null,t,i,e,n);break e}}throw t=Zh(i)||i,Error(q(306,t,""))}}return t;case 0:return ym(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=Wa(i,t.pendingProps),Qx(e,t,i,r,n);case 3:e:{if(Dc(t,t.stateNode.containerInfo),e===null)throw Error(q(387));i=t.pendingProps;var a=t.memoizedState;r=a.element,$p(e,t),Yl(t,i,null,n);var s=t.memoizedState;if(i=s.cache,Gr(t,Dt,i),i!==a.cache&&Fp(t,[Dt],n,!0),Vl(),i=s.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Wx(e,t,i,n);break e}else if(i!==r){r=ni(Error(q(424)),t),Pl(r),t=Wx(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(mt=Ai(e.firstChild),pn=t,ze=!0,qa=null,Ui=!0,n=Mx(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Il(),i===r){t=mr(e,t,n);break e}Xt(e,t,i,n)}t=t.child}return t;case 26:return Ef(e,t),e===null?(n=aT(t.type,null,t.pendingProps,null))?t.memoizedState=n:ze||(n=t.type,e=t.pendingProps,i=Pf(Fr.current).createElement(n),i[en]=t,i[yn]=e,Kt(i,n,e),It(i),t.stateNode=i):t.memoizedState=aT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ep(t),e===null&&ze&&(i=t.stateNode=nT(t.type,t.pendingProps,Fr.current),pn=t,Ui=!0,r=mt,oa(t.type)?(a0=r,mt=Ai(i.firstChild)):mt=r),Xt(e,t,t.pendingProps.children,n),Ef(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((r=i=mt)&&(i=CN(i,t.type,t.pendingProps,Ui),i!==null?(t.stateNode=i,pn=t,mt=Ai(i.firstChild),Ui=!1,r=!0):r=!1),r||Ga(t)),ep(t),r=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,i=a.children,t0(r,a)?i=null:s!==null&&t0(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=em(e,t,qR,null,null,n),du._currentValue=r),Ef(e,t),Xt(e,t,i,n),t.child;case 6:return e===null&&ze&&((e=n=mt)&&(n=kN(n,t.pendingProps,Ui),n!==null?(t.stateNode=n,pn=t,mt=null,e=!0):e=!1),e||Ga(t)),null;case 13:return Zx(e,t,n);case 4:return Dc(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=no(t,null,i,n):Xt(e,t,i,n),t.child;case 11:return Yx(e,t,t.type,t.pendingProps,n);case 7:return Xt(e,t,t.pendingProps,n),t.child;case 8:return Xt(e,t,t.pendingProps.children,n),t.child;case 12:return Xt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Gr(t,t.type,i.value),Xt(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,$a(t),r=tn(r),i=i(r),t.flags|=1,Xt(e,t,i,n),t.child;case 14:return qx(e,t,t.type,t.pendingProps,n);case 15:return Gx(e,t,t.type,t.pendingProps,n);case 19:return eE(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=Tf(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=lr(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Xx(e,t,n);case 24:return $a(t),i=tn(Dt),e===null?(r=qp(),r===null&&(r=Qe,a=Vp(),r.pooledCache=a,a.refCount++,a!==null&&(r.pooledCacheLanes|=n),r=a),t.memoizedState={parent:i,cache:r},Xp(t),Gr(t,Dt,r)):(e.lanes&n&&($p(e,t),Yl(t,null,null,n),Vl()),r=e.memoizedState,a=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Gr(t,Dt,i)):(i=a.cache,Gr(t,Dt,i),i!==r.cache&&Fp(t,[Dt],n,!0))),Xt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function gr(e){e.flags|=4}function nE(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!cT(t)){if(t=si.current,t!==null&&((De&4194048)===De?zi!==null:(De&62914560)!==De&&!(De&536870912)||t!==zi))throw Hl=Gp,zv;e.flags|=8192}}function wf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ly():536870912,e.lanes|=t,so|=t)}function Wl(e,t){if(!ze)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function eN(e,t,n){var i=t.pendingProps;switch(Up(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),dr(Dt),Rs(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?gr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lv())),ft(t),null;case 26:return n=t.memoizedState,e===null?(gr(t),n!==null?(ft(t),nE(t,n)):(ft(t),t.flags&=-16777217)):n?n!==e.memoizedState?(gr(t),ft(t),nE(t,n)):(ft(t),t.flags&=-16777217):(e.memoizedProps!==i&&gr(t),ft(t),t.flags&=-16777217),null;case 27:Mc(t),n=Fr.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&gr(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return ft(t),null}e=Pi.current,Ll(t)?Dv(t):(e=nT(r,i,n),t.stateNode=e,gr(t))}return ft(t),null;case 5:if(Mc(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&gr(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return ft(t),null}if(e=Pi.current,Ll(t))Dv(t);else{switch(r=Pf(Fr.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?r.createElement("select",{is:i.is}):r.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?r.createElement(n,{is:i.is}):r.createElement(n)}}e[en]=t,e[yn]=i;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Kt(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(t)}}return ft(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&gr(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(q(166));if(e=Fr.current,Ll(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=pn,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[en]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||KE(e.nodeValue,n)),e||Ga(t)}else e=Pf(e).createTextNode(i),e[en]=t,t.stateNode=e}return ft(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ll(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(q(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(q(317));r[en]=t}else Il(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ft(t),r=!1}else r=Lv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(pr(t),t):(pr(t),null)}if(pr(t),t.flags&128)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool);var a=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==r&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),wf(t,t.updateQueue),ft(t),null;case 4:return Rs(),e===null&&Qm(t.stateNode.containerInfo),ft(t),null;case 10:return dr(t.type),ft(t),null;case 19:if(Lt(Mt),r=t.memoizedState,r===null)return ft(t),null;if(i=(t.flags&128)!==0,a=r.rendering,a===null)if(i)Wl(r,!1);else{if(gt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=yf(e),a!==null){for(t.flags|=128,Wl(r,!1),e=a.updateQueue,t.updateQueue=e,wf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Rv(n,e),n=n.sibling;return ot(Mt,Mt.current&1|2),t.child}e=e.sibling}r.tail!==null&&Bi()>Af&&(t.flags|=128,i=!0,Wl(r,!1),t.lanes=4194304)}else{if(!i)if(e=yf(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,wf(t,e),Wl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!ze)return ft(t),null}else 2*Bi()-r.renderingStartTime>Af&&n!==536870912&&(t.flags|=128,i=!0,Wl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e!==null?e.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Bi(),t.sibling=null,e=Mt.current,ot(Mt,i?e&1|2:e&1),t):(ft(t),null);case 22:case 23:return pr(t),Zp(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),n=t.updateQueue,n!==null&&wf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Lt(Ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),dr(Dt),ft(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function tN(e,t){switch(Up(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(Dt),Rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Mc(t),null;case 13:if(pr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lt(Mt),null;case 4:return Rs(),null;case 10:return dr(t.type),null;case 22:case 23:return pr(t),Zp(),e!==null&&Lt(Ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dr(Dt),null;case 25:return null;default:return null}}function iE(e,t){switch(Up(t),t.tag){case 3:dr(Dt),Rs();break;case 26:case 27:case 5:Mc(t);break;case 4:Rs();break;case 13:pr(t);break;case 19:Lt(Mt);break;case 10:dr(t.type);break;case 22:case 23:pr(t),Zp(),e!==null&&Lt(Ka);break;case 24:dr(Dt)}}function Zl(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var a=n.create,s=n.inst;i=a(),s.destroy=i}n=n.next}while(n!==r)}}catch(o){Ge(t,t.return,o)}}function Jr(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var a=r.next;i=a;do{if((i.tag&e)===e){var s=i.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,r=t;var l=n,u=o;try{u()}catch(c){Ge(r,l,c)}}}i=i.next}while(i!==a)}}catch(c){Ge(t,t.return,c)}}function rE(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qv(t,n)}catch(i){Ge(e,e.return,i)}}}function aE(e,t,n){n.props=Wa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ge(e,t,i)}}function Jl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Ge(e,t,r)}}function ji(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Ge(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function sE(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){Ge(e,e.return,r)}}function Am(e,t,n){try{var i=e.stateNode;TN(i,e.type,n,t),i[yn]=t}catch(r){Ge(e,e.return,r)}}function oE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oa(e.type)||e.tag===4}function Cm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oE(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.tag===27&&oa(e.type)||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 km(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=If));else if(i!==4&&(i===27&&oa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(km(e,t,n),e=e.sibling;e!==null;)km(e,t,n),e=e.sibling}function _f(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&oa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(_f(e,t,n),e=e.sibling;e!==null;)_f(e,t,n),e=e.sibling}function lE(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Kt(t,i,n),t[en]=e,t[yn]=n}catch(a){Ge(e,e.return,a)}}var br=!1,xt=!1,Om=!1,uE=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function nN(e,t){if(e=e.containerInfo,Jm=Ff,e=xv(e),Cp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||r!==0&&f.nodeType!==3||(o=s+r),f!==a||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===r&&(o=s),d===a&&++c===i&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(e0={focusedElem:e,selectionRange:n},Ff=!1,Bt=t;Bt!==null;)if(t=Bt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Bt=e;else for(;Bt!==null;){switch(t=Bt,a=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,r=a.memoizedProps,a=a.memoizedState,i=n.stateNode;try{var g=Wa(n.type,r,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(g,a),i.__reactInternalSnapshotBeforeUpdate=e}catch(b){Ge(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)i0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":i0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(q(163))}if(e=t.sibling,e!==null){e.return=t.return,Bt=e;break}Bt=t.return}}function cE(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ea(e,n),i&4&&Zl(5,n);break;case 1:if(ea(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Ge(n,n.return,s)}else{var r=Wa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ge(n,n.return,s)}}i&64&&rE(n),i&512&&Jl(n,n.return);break;case 3:if(ea(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{qv(e,t)}catch(s){Ge(n,n.return,s)}}break;case 27:t===null&&i&4&&lE(n);case 26:case 5:ea(e,n),t===null&&i&4&&sE(n),i&512&&Jl(n,n.return);break;case 12:ea(e,n);break;case 13:ea(e,n),i&4&&hE(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=fN.bind(null,n),ON(e,n))));break;case 22:if(i=n.memoizedState!==null||br,!i){t=t!==null&&t.memoizedState!==null||xt,r=br;var a=xt;br=i,(xt=t)&&!a?ta(e,n,(n.subtreeFlags&8772)!==0):ea(e,n),br=r,xt=a}break;case 30:break;default:ea(e,n)}}function fE(e){var t=e.alternate;t!==null&&(e.alternate=null,fE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lp(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var lt=null,En=!1;function yr(e,t,n){for(n=n.child;n!==null;)dE(e,t,n),n=n.sibling}function dE(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 26:xt||ji(n,t),yr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:xt||ji(n,t);var i=lt,r=En;oa(n.type)&&(lt=n.stateNode,En=!1),yr(e,t,n),lu(n.stateNode),lt=i,En=r;break;case 5:xt||ji(n,t);case 6:if(i=lt,r=En,lt=null,yr(e,t,n),lt=i,En=r,lt!==null)if(En)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(n.stateNode)}catch(a){Ge(n,t,a)}else try{lt.removeChild(n.stateNode)}catch(a){Ge(n,t,a)}break;case 18:lt!==null&&(En?(e=lt,eT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),gu(e)):eT(lt,n.stateNode));break;case 4:i=lt,r=En,lt=n.stateNode.containerInfo,En=!0,yr(e,t,n),lt=i,En=r;break;case 0:case 11:case 14:case 15:xt||Jr(2,n,t),xt||Jr(4,n,t),yr(e,t,n);break;case 1:xt||(ji(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&aE(n,t,i)),yr(e,t,n);break;case 21:yr(e,t,n);break;case 22:xt=(i=xt)||n.memoizedState!==null,yr(e,t,n),xt=i;break;default:yr(e,t,n)}}function hE(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gu(e)}catch(n){Ge(t,t.return,n)}}function iN(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uE),t;default:throw Error(q(435,e.tag))}}function Rm(e,t){var n=iN(e);t.forEach(function(i){var r=dN.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}function In(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(oa(o.type)){lt=o.stateNode,En=!1;break e}break;case 5:lt=o.stateNode,En=!1;break e;case 3:case 4:lt=o.stateNode.containerInfo,En=!0;break e}o=o.return}if(lt===null)throw Error(q(160));dE(a,s,r),lt=null,En=!1,a=r.alternate,a!==null&&(a.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)pE(t,e),t=t.sibling}var Si=null;function pE(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:In(t,e),Pn(e),i&4&&(Jr(3,e,e.return),Zl(3,e),Jr(5,e,e.return));break;case 1:In(t,e),Pn(e),i&512&&(xt||n===null||ji(n,n.return)),i&64&&br&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=Si;if(In(t,e),Pn(e),i&512&&(xt||n===null||ji(n,n.return)),i&4){var a=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":a=r.getElementsByTagName("title")[0],(!a||a[wl]||a[en]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(i),r.head.insertBefore(a,r.querySelector("head > title"))),Kt(a,i,n),a[en]=e,It(a),i=a;break e;case"link":var s=lT("link","href",r).get(i+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(a=s[o],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}a=r.createElement(i),Kt(a,i,n),r.head.appendChild(a);break;case"meta":if(s=lT("meta","content",r).get(i+(n.content||""))){for(o=0;o<s.length;o++)if(a=s[o],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}a=r.createElement(i),Kt(a,i,n),r.head.appendChild(a);break;default:throw Error(q(468,i))}a[en]=e,It(a),i=a}e.stateNode=i}else uT(r,e.type,e.stateNode);else e.stateNode=oT(r,i,e.memoizedProps);else a!==i?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,i===null?uT(r,e.type,e.stateNode):oT(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Am(e,e.memoizedProps,n.memoizedProps)}break;case 27:In(t,e),Pn(e),i&512&&(xt||n===null||ji(n,n.return)),n!==null&&i&4&&Am(e,e.memoizedProps,n.memoizedProps);break;case 5:if(In(t,e),Pn(e),i&512&&(xt||n===null||ji(n,n.return)),e.flags&32){r=e.stateNode;try{Us(r,"")}catch(h){Ge(e,e.return,h)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,Am(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Om=!0);break;case 6:if(In(t,e),Pn(e),i&4){if(e.stateNode===null)throw Error(q(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){Ge(e,e.return,h)}}break;case 3:if(zf=null,r=Si,Si=Bf(t.containerInfo),In(t,e),Si=r,Pn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{gu(t.containerInfo)}catch(h){Ge(e,e.return,h)}Om&&(Om=!1,mE(e));break;case 4:i=Si,Si=Bf(e.stateNode.containerInfo),In(t,e),Pn(e),Si=i;break;case 12:In(t,e),Pn(e);break;case 13:In(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Pm=Bi()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rm(e,i)));break;case 22:r=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=br,c=xt;if(br=u||r,xt=c||l,In(t,e),xt=c,br=u,Pn(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||l||br||xt||Za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,r)s=a.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var f=l.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(h){Ge(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=r?"":l.memoizedProps}catch(h){Ge(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Rm(e,n))));break;case 19:In(t,e),Pn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rm(e,i)));break;case 30:break;case 21:break;default:In(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(oE(i)){n=i;break}i=i.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var r=n.stateNode,a=Cm(e);_f(e,a,r);break;case 5:var s=n.stateNode;n.flags&32&&(Us(s,""),n.flags&=-33);var o=Cm(e);_f(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=Cm(e);km(e,u,l);break;default:throw Error(q(161))}}catch(c){Ge(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;mE(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cE(e,t.alternate,t),t=t.sibling}function Za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jr(4,t,t.return),Za(t);break;case 1:ji(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&aE(t,t.return,n),Za(t);break;case 27:lu(t.stateNode);case 26:case 5:ji(t,t.return),Za(t);break;case 22:t.memoizedState===null&&Za(t);break;case 30:Za(t);break;default:Za(t)}e=e.sibling}}function ta(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,a=t,s=a.flags;switch(a.tag){case 0:case 11:case 15:ta(r,a,n),Zl(4,a);break;case 1:if(ta(r,a,n),i=a,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Ge(i,i.return,u)}if(i=a,r=i.updateQueue,r!==null){var o=i.stateNode;try{var l=r.shared.hiddenCallbacks;if(l!==null)for(r.shared.hiddenCallbacks=null,r=0;r<l.length;r++)Yv(l[r],o)}catch(u){Ge(i,i.return,u)}}n&&s&64&&rE(a),Jl(a,a.return);break;case 27:lE(a);case 26:case 5:ta(r,a,n),n&&i===null&&s&4&&sE(a),Jl(a,a.return);break;case 12:ta(r,a,n);break;case 13:ta(r,a,n),n&&s&4&&hE(r,a);break;case 22:a.memoizedState===null&&ta(r,a,n),Jl(a,a.return);break;case 30:break;default:ta(r,a,n)}t=t.sibling}}function Nm(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ul(n))}function Dm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ul(e))}function Hi(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gE(e,t,n,i),t=t.sibling}function gE(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Hi(e,t,n,i),r&2048&&Zl(9,t);break;case 1:Hi(e,t,n,i);break;case 3:Hi(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ul(e)));break;case 12:if(r&2048){Hi(e,t,n,i),e=t.stateNode;try{var a=t.memoizedProps,s=a.id,o=a.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Ge(t,t.return,l)}}else Hi(e,t,n,i);break;case 13:Hi(e,t,n,i);break;case 23:break;case 22:a=t.stateNode,s=t.alternate,t.memoizedState!==null?a._visibility&2?Hi(e,t,n,i):eu(e,t):a._visibility&2?Hi(e,t,n,i):(a._visibility|=2,io(e,t,n,i,(t.subtreeFlags&10256)!==0)),r&2048&&Nm(s,t);break;case 24:Hi(e,t,n,i),r&2048&&Dm(t.alternate,t);break;default:Hi(e,t,n,i)}}function io(e,t,n,i,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var a=e,s=t,o=n,l=i,u=s.flags;switch(s.tag){case 0:case 11:case 15:io(a,s,o,l,r),Zl(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?io(a,s,o,l,r):eu(a,s):(c._visibility|=2,io(a,s,o,l,r)),r&&u&2048&&Nm(s.alternate,s);break;case 24:io(a,s,o,l,r),r&&u&2048&&Dm(s.alternate,s);break;default:io(a,s,o,l,r)}t=t.sibling}}function eu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:eu(n,i),r&2048&&Nm(i.alternate,i);break;case 24:eu(n,i),r&2048&&Dm(i.alternate,i);break;default:eu(n,i)}t=t.sibling}}var tu=8192;function ro(e){if(e.subtreeFlags&tu)for(e=e.child;e!==null;)bE(e),e=e.sibling}function bE(e){switch(e.tag){case 26:ro(e),e.flags&tu&&e.memoizedState!==null&&FN(Si,e.memoizedState,e.memoizedProps);break;case 5:ro(e);break;case 3:case 4:var t=Si;Si=Bf(e.stateNode.containerInfo),ro(e),Si=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=tu,tu=16777216,ro(e),tu=t):ro(e));break;default:ro(e)}}function yE(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function nu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Bt=i,xE(i,e)}yE(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vE(e),e=e.sibling}function vE(e){switch(e.tag){case 0:case 11:case 15:nu(e),e.flags&2048&&Jr(9,e,e.return);break;case 3:nu(e);break;case 12:nu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Sf(e)):nu(e);break;default:nu(e)}}function Sf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Bt=i,xE(i,e)}yE(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jr(8,t,t.return),Sf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Sf(t));break;default:Sf(t)}e=e.sibling}}function xE(e,t){for(;Bt!==null;){var n=Bt;switch(n.tag){case 0:case 11:case 15:Jr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ul(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Bt=i;else e:for(n=e;Bt!==null;){i=Bt;var r=i.sibling,a=i.return;if(fE(i),i===n){Bt=null;break e}if(r!==null){r.return=a,Bt=r;break e}Bt=a}}}var rN={getCacheForType:function(e){var t=tn(Dt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},aN=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Qe=null,Oe=null,De=0,Ve=0,Bn=null,na=!1,ao=!1,Mm=!1,vr=0,gt=0,ia=0,Ja=0,Lm=0,oi=0,so=0,iu=null,Tn=null,Im=!1,Pm=0,Af=1/0,Cf=null,ra=null,$t=0,aa=null,oo=null,lo=0,Bm=0,Um=null,EE=null,ru=0,zm=null;function Un(){if(Fe&2&&De!==0)return De&-De;if(pe.T!==null){var e=Ks;return e!==0?e:Gm()}return By()}function TE(){oi===0&&(oi=!(De&536870912)||ze?My():536870912);var e=si.current;return e!==null&&(e.flags|=32),oi}function zn(e,t,n){(e===Qe&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(uo(e,0),sa(e,De,oi,!1)),Tl(e,n),(!(Fe&2)||e!==Qe)&&(e===Qe&&(!(Fe&2)&&(Ja|=n),gt===4&&sa(e,De,oi,!1)),Fi(e))}function wE(e,t,n){if(Fe&6)throw Error(q(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||El(e,t),r=i?lN(e,t):Fm(e,t,!0),a=i;do{if(r===0){ao&&!i&&sa(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!sN(n)){r=Fm(e,t,!1),a=!1;continue}if(r===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;r=iu;var l=o.current.memoizedState.isDehydrated;if(l&&(uo(o,s).flags|=256),s=Fm(o,s,!1),s!==2){if(Mm&&!l){o.errorRecoveryDisabledLanes|=a,Ja|=a,r=4;break e}a=Tn,Tn=r,a!==null&&(Tn===null?Tn=a:Tn.push.apply(Tn,a))}r=s}if(a=!1,r!==2)continue}}if(r===1){uo(e,0),sa(e,t,0,!0);break}e:{switch(i=e,a=r,a){case 0:case 1:throw Error(q(345));case 4:if((t&4194048)!==t)break;case 6:sa(i,t,oi,!na);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(r=Pm+300-Bi(),10<r)){if(sa(i,t,oi,!na),Bc(i,0,!0)!==0)break e;i.timeoutHandle=ZE(_E.bind(null,i,n,Tn,Cf,Im,t,oi,Ja,so,na,a,2,-0,0),r);break e}_E(i,n,Tn,Cf,Im,t,oi,Ja,so,na,a,0,-0,0)}}break}while(!0);Fi(e)}function _E(e,t,n,i,r,a,s,o,l,u,c,f,d,h){if(e.timeoutHandle=-1,f=t.subtreeFlags,(f&8192||(f&16785408)===16785408)&&(fu={stylesheets:null,count:0,unsuspend:HN},bE(t),f=VN(),f!==null)){e.cancelPendingCommit=f(NE.bind(null,e,t,a,n,i,r,s,o,l,c,1,d,h)),sa(e,a,s,!u);return}NE(e,t,a,n,i,r,s,o,l)}function sN(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!Mn(a(),r))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 sa(e,t,n,i){t&=~Lm,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var a=31-Dn(r),s=1<<a;i[a]=-1,r&=~s}n!==0&&Iy(e,n,t)}function kf(){return Fe&6?!0:(au(0),!1)}function jm(){if(Oe!==null){if(Ve===0)var e=Oe.return;else e=Oe,fr=Xa=null,im(e),to=null,Kl=0,e=Oe;for(;e!==null;)iE(e.alternate,e),e=e.return;Oe=null}}function uo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_N(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jm(),Qe=e,Oe=n=lr(e.current,null),De=t,Ve=0,Bn=null,na=!1,ao=El(e,t),Mm=!1,so=oi=Lm=Ja=ia=gt=0,Tn=iu=null,Im=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Dn(i),a=1<<r;t|=e[r],i&=~a}return vr=t,Kc(),n}function SE(e,t){Ae=null,pe.H=mf,t===jl||t===af?(t=Fv(),Ve=3):t===zv?(t=Fv(),Ve=4):Ve=t===Vx?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bn=t,Oe===null&&(gt=1,xf(e,ni(t,e.current)))}function AE(){var e=pe.H;return pe.H=mf,e===null?mf:e}function CE(){var e=pe.A;return pe.A=rN,e}function Hm(){gt=4,na||(De&4194048)!==De&&si.current!==null||(ao=!0),!(ia&134217727)&&!(Ja&134217727)||Qe===null||sa(Qe,De,oi,!1)}function Fm(e,t,n){var i=Fe;Fe|=2;var r=AE(),a=CE();(Qe!==e||De!==t)&&(Cf=null,uo(e,t)),t=!1;var s=gt;e:do try{if(Ve!==0&&Oe!==null){var o=Oe,l=Bn;switch(Ve){case 8:jm(),s=6;break e;case 3:case 2:case 9:case 6:si.current===null&&(t=!0);var u=Ve;if(Ve=0,Bn=null,co(e,o,l,u),n&&ao){s=0;break e}break;default:u=Ve,Ve=0,Bn=null,co(e,o,l,u)}}oN(),s=gt;break}catch(c){SE(e,c)}while(!0);return t&&e.shellSuspendCounter++,fr=Xa=null,Fe=i,pe.H=r,pe.A=a,Oe===null&&(Qe=null,De=0,Kc()),s}function oN(){for(;Oe!==null;)kE(Oe)}function lN(e,t){var n=Fe;Fe|=2;var i=AE(),r=CE();Qe!==e||De!==t?(Cf=null,Af=Bi()+500,uo(e,t)):ao=El(e,t);e:do try{if(Ve!==0&&Oe!==null){t=Oe;var a=Bn;t:switch(Ve){case 1:Ve=0,Bn=null,co(e,t,a,1);break;case 2:case 9:if(jv(a)){Ve=0,Bn=null,OE(t);break}t=function(){Ve!==2&&Ve!==9||Qe!==e||(Ve=7),Fi(e)},a.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:jv(a)?(Ve=0,Bn=null,OE(t)):(Ve=0,Bn=null,co(e,t,a,7));break;case 5:var s=null;switch(Oe.tag){case 26:s=Oe.memoizedState;case 5:case 27:var o=Oe;if(!s||cT(s)){Ve=0,Bn=null;var l=o.sibling;if(l!==null)Oe=l;else{var u=o.return;u!==null?(Oe=u,Of(u)):Oe=null}break t}}Ve=0,Bn=null,co(e,t,a,5);break;case 6:Ve=0,Bn=null,co(e,t,a,6);break;case 8:jm(),gt=6;break e;default:throw Error(q(462))}}uN();break}catch(c){SE(e,c)}while(!0);return fr=Xa=null,pe.H=i,pe.A=r,Fe=n,Oe!==null?0:(Qe=null,De=0,Kc(),gt)}function uN(){for(;Oe!==null&&!N4();)kE(Oe)}function kE(e){var t=tE(e.alternate,e,vr);e.memoizedProps=e.pendingProps,t===null?Of(e):Oe=t}function OE(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kx(n,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Kx(n,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:im(t);default:iE(n,t),t=Oe=Rv(t,vr),t=tE(n,t,vr)}e.memoizedProps=e.pendingProps,t===null?Of(e):Oe=t}function co(e,t,n,i){fr=Xa=null,im(t),to=null,Kl=0;var r=t.return;try{if(ZR(e,r,t,n,De)){gt=1,xf(e,ni(n,e.current)),Oe=null;return}}catch(a){if(r!==null)throw Oe=r,a;gt=1,xf(e,ni(n,e.current)),Oe=null;return}t.flags&32768?(ze||i===1?e=!0:ao||De&536870912?e=!1:(na=e=!0,(i===2||i===9||i===3||i===6)&&(i=si.current,i!==null&&i.tag===13&&(i.flags|=16384))),RE(t,e)):Of(t)}function Of(e){var t=e;do{if(t.flags&32768){RE(t,na);return}e=t.return;var n=eN(t.alternate,t,vr);if(n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);gt===0&&(gt=5)}function RE(e,t){do{var n=tN(e.alternate,e);if(n!==null){n.flags&=32767,Oe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=n}while(e!==null);gt=6,Oe=null}function NE(e,t,n,i,r,a,s,o,l){e.cancelPendingCommit=null;do Rf();while($t!==0);if(Fe&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(a=t.lanes|t.childLanes,a|=Dp,H4(e,n,a,s,o,l),e===Qe&&(Oe=Qe=null,De=0),oo=t,aa=e,lo=n,Bm=a,Um=r,EE=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,hN(Lc,function(){return PE(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=pe.T,pe.T=null,r=Ue.p,Ue.p=2,s=Fe,Fe|=4;try{nN(e,t,n)}finally{Fe=s,Ue.p=r,pe.T=i}}$t=1,DE(),ME(),LE()}}function DE(){if($t===1){$t=0;var e=aa,t=oo,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=pe.T,pe.T=null;var i=Ue.p;Ue.p=2;var r=Fe;Fe|=4;try{pE(t,e);var a=e0,s=xv(e.containerInfo),o=a.focusedElem,l=a.selectionRange;if(s!==o&&o&&o.ownerDocument&&vv(o.ownerDocument.documentElement,o)){if(l!==null&&Cp(o)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),T=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>T&&(s=T,T=b,b=s);var m=yv(o,b),y=yv(o,T);if(m&&y&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var x=f.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),b>T?(h.addRange(x),h.extend(y.node,y.offset)):(x.setEnd(y.node,y.offset),h.addRange(x))}}}}for(f=[],h=o;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var w=f[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Ff=!!Jm,e0=Jm=null}finally{Fe=r,Ue.p=i,pe.T=n}}e.current=t,$t=2}}function ME(){if($t===2){$t=0;var e=aa,t=oo,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=pe.T,pe.T=null;var i=Ue.p;Ue.p=2;var r=Fe;Fe|=4;try{cE(e,t.alternate,t)}finally{Fe=r,Ue.p=i,pe.T=n}}$t=3}}function LE(){if($t===4||$t===3){$t=0,D4();var e=aa,t=oo,n=lo,i=EE;t.subtreeFlags&10256||t.flags&10256?$t=5:($t=0,oo=aa=null,IE(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ra=null),sp(n),t=t.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(xl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=pe.T,r=Ue.p,Ue.p=2,pe.T=null;try{for(var a=e.onRecoverableError,s=0;s<i.length;s++){var o=i[s];a(o.value,{componentStack:o.stack})}}finally{pe.T=t,Ue.p=r}}lo&3&&Rf(),Fi(e),r=e.pendingLanes,n&4194090&&r&42?e===zm?ru++:(ru=0,zm=e):ru=0,au(0)}}function IE(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ul(t)))}function Rf(e){return DE(),ME(),LE(),PE()}function PE(){if($t!==5)return!1;var e=aa,t=Bm;Bm=0;var n=sp(lo),i=pe.T,r=Ue.p;try{Ue.p=32>n?32:n,pe.T=null,n=Um,Um=null;var a=aa,s=lo;if($t=0,oo=aa=null,lo=0,Fe&6)throw Error(q(331));var o=Fe;if(Fe|=4,vE(a.current),gE(a,a.current,s,n),Fe=o,au(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(xl,a)}catch{}return!0}finally{Ue.p=r,pe.T=i,IE(e,t)}}function BE(e,t,n){t=ni(n,t),t=bm(e.stateNode,t,2),e=Kr(e,t,2),e!==null&&(Tl(e,2),Fi(e))}function Ge(e,t,n){if(e.tag===3)BE(e,e,n);else for(;t!==null;){if(t.tag===3){BE(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ra===null||!ra.has(i))){e=ni(n,e),n=Hx(2),i=Kr(t,n,2),i!==null&&(Fx(n,i,t,e),Tl(i,2),Fi(i));break}}t=t.return}}function Vm(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new aN;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Mm=!0,r.add(n),e=cN.bind(null,e,t,n),t.then(e,e))}function cN(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qe===e&&(De&n)===n&&(gt===4||gt===3&&(De&62914560)===De&&300>Bi()-Pm?!(Fe&2)&&uo(e,0):Lm|=n,so===De&&(so=0)),Fi(e)}function UE(e,t){t===0&&(t=Ly()),e=qs(e,t),e!==null&&(Tl(e,t),Fi(e))}function fN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UE(e,n)}function dN(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(q(314))}i!==null&&i.delete(t),UE(e,n)}function hN(e,t){return np(e,t)}var Nf=null,fo=null,Ym=!1,Df=!1,qm=!1,es=0;function Fi(e){e!==fo&&e.next===null&&(fo===null?Nf=fo=e:fo=fo.next=e),Df=!0,Ym||(Ym=!0,mN())}function au(e,t){if(!qm&&Df){qm=!0;do for(var n=!1,i=Nf;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var a=0;else{var s=i.suspendedLanes,o=i.pingedLanes;a=(1<<31-Dn(42|e)+1)-1,a&=r&~(s&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,FE(i,a))}else a=De,a=Bc(i,i===Qe?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(a&3)||El(i,a)||(n=!0,FE(i,a));i=i.next}while(n);qm=!1}}function pN(){zE()}function zE(){Df=Ym=!1;var e=0;es!==0&&(wN()&&(e=es),es=0);for(var t=Bi(),n=null,i=Nf;i!==null;){var r=i.next,a=jE(i,t);a===0?(i.next=null,n===null?Nf=r:n.next=r,r===null&&(fo=n)):(n=i,(e!==0||a&3)&&(Df=!0)),i=r}au(e)}function jE(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-Dn(a),o=1<<s,l=r[s];l===-1?(!(o&n)||o&i)&&(r[s]=j4(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}if(t=Qe,n=De,n=Bc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ip(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||El(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ip(i),sp(n)){case 2:case 8:n=Ny;break;case 32:n=Lc;break;case 268435456:n=Dy;break;default:n=Lc}return i=HE.bind(null,e),n=np(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ip(i),e.callbackPriority=2,e.callbackNode=null,2}function HE(e,t){if($t!==0&&$t!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Rf()&&e.callbackNode!==n)return null;var i=De;return i=Bc(e,e===Qe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(wE(e,i,t),jE(e,Bi()),e.callbackNode!=null&&e.callbackNode===n?HE.bind(null,e):null)}function FE(e,t){if(Rf())return null;wE(e,t,!0)}function mN(){SN(function(){Fe&6?np(Ry,pN):zE()})}function Gm(){return es===0&&(es=My()),es}function VE(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fc(""+e)}function YE(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gN(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var a=VE((r[yn]||null).action),s=i.submitter;s&&(t=(t=s[yn]||null)?VE(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new Gc("action","action",null,i,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(es!==0){var l=s?YE(r,s):new FormData(r);dm(n,{pending:!0,data:l,method:r.method,action:a},null,l)}}else typeof a=="function"&&(o.preventDefault(),l=s?YE(r,s):new FormData(r),dm(n,{pending:!0,data:l,method:r.method,action:a},a,l))},currentTarget:r}]})}}for(var Xm=0;Xm<Np.length;Xm++){var $m=Np[Xm],bN=$m.toLowerCase(),yN=$m[0].toUpperCase()+$m.slice(1);_i(bN,"on"+yN)}_i(wv,"onAnimationEnd"),_i(_v,"onAnimationIteration"),_i(Sv,"onAnimationStart"),_i("dblclick","onDoubleClick"),_i("focusin","onFocus"),_i("focusout","onBlur"),_i(IR,"onTransitionRun"),_i(PR,"onTransitionStart"),_i(BR,"onTransitionCancel"),_i(Av,"onTransitionEnd"),Is("onMouseEnter",["mouseout","mouseover"]),Is("onMouseLeave",["mouseout","mouseover"]),Is("onPointerEnter",["pointerout","pointerover"]),Is("onPointerLeave",["pointerout","pointerover"]),Ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),vN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function qE(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&r.isPropagationStopped())break e;a=o,r.currentTarget=u;try{a(r)}catch(c){vf(c)}r.currentTarget=null,a=l}else for(s=0;s<i.length;s++){if(o=i[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&r.isPropagationStopped())break e;a=o,r.currentTarget=u;try{a(r)}catch(c){vf(c)}r.currentTarget=null,a=l}}}}function Re(e,t){var n=t[op];n===void 0&&(n=t[op]=new Set);var i=e+"__bubble";n.has(i)||(GE(t,e,2,!1),n.add(i))}function Km(e,t,n){var i=0;t&&(i|=4),GE(n,e,i,t)}var Mf="_reactListening"+Math.random().toString(36).slice(2);function Qm(e){if(!e[Mf]){e[Mf]=!0,zy.forEach(function(n){n!=="selectionchange"&&(vN.has(n)||Km(n,!1,e),Km(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mf]||(t[Mf]=!0,Km("selectionchange",!1,t))}}function GE(e,t,n,i){switch(gT(t)){case 2:var r=GN;break;case 8:r=XN;break;default:r=c0}n=r.bind(null,t,n,e),r=void 0,!yp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Wm(e,t,n,i,r){var a=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var o=i.stateNode.containerInfo;if(o===r)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===r)return;s=s.return}for(;o!==null;){if(s=Ds(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){i=a=s;continue e}o=o.parentNode}}i=i.return}Jy(function(){var u=a,c=gp(n),f=[];e:{var d=Cv.get(e);if(d!==void 0){var h=Gc,g=e;switch(e){case"keypress":if(Yc(n)===0)break e;case"keydown":case"keyup":h=hR;break;case"focusin":g="focus",h=Tp;break;case"focusout":g="blur",h=Tp;break;case"beforeblur":case"afterblur":h=Tp;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":h=nv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=tR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=gR;break;case wv:case _v:case Sv:h=rR;break;case Av:h=yR;break;case"scroll":case"scrollend":h=J4;break;case"wheel":h=xR;break;case"copy":case"cut":case"paste":h=sR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=rv;break;case"toggle":case"beforetoggle":h=TR}var b=(t&4)!==0,T=!b&&(e==="scroll"||e==="scrollend"),m=b?d!==null?d+"Capture":null:d;b=[];for(var y=u,x;y!==null;){var w=y;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||m===null||(w=Sl(y,m),w!=null&&b.push(ou(y,w,x))),T)break;y=y.return}0<b.length&&(d=new h(d,g,null,n,c),f.push({event:d,listeners:b}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==mp&&(g=n.relatedTarget||n.fromElement)&&(Ds(g)||g[Ns]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?Ds(g):null,g!==null&&(T=ml(g),b=g.tag,g!==T||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=nv,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=rv,w="onPointerLeave",m="onPointerEnter",y="pointer"),T=h==null?d:_l(h),x=g==null?d:_l(g),d=new b(w,y+"leave",h,n,c),d.target=T,d.relatedTarget=x,w=null,Ds(c)===u&&(b=new b(m,y+"enter",g,n,c),b.target=x,b.relatedTarget=T,w=b),T=w,h&&g)t:{for(b=h,m=g,y=0,x=b;x;x=ho(x))y++;for(x=0,w=m;w;w=ho(w))x++;for(;0<y-x;)b=ho(b),y--;for(;0<x-y;)m=ho(m),x--;for(;y--;){if(b===m||m!==null&&b===m.alternate)break t;b=ho(b),m=ho(m)}b=null}else b=null;h!==null&&XE(f,d,h,b,!1),g!==null&&T!==null&&XE(f,T,g,b,!0)}}e:{if(d=u?_l(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var S=dv;else if(cv(d))if(hv)S=DR;else{S=RR;var k=OR}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&pp(u.elementType)&&(S=dv):S=NR;if(S&&(S=S(e,u))){fv(f,S,n,c);break e}k&&k(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&hp(d,"number",d.value)}switch(k=u?_l(u):window,e){case"focusin":(cv(k)||k.contentEditable==="true")&&(Fs=k,kp=u,Ml=null);break;case"focusout":Ml=kp=Fs=null;break;case"mousedown":Op=!0;break;case"contextmenu":case"mouseup":case"dragend":Op=!1,Ev(f,n,c);break;case"selectionchange":if(LR)break;case"keydown":case"keyup":Ev(f,n,c)}var D;if(_p)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Hs?lv(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(av&&n.locale!=="ko"&&(Hs||L!=="onCompositionStart"?L==="onCompositionEnd"&&Hs&&(D=ev()):(qr=c,vp="value"in qr?qr.value:qr.textContent,Hs=!0)),k=Lf(u,L),0<k.length&&(L=new iv(L,e,null,n,c),f.push({event:L,listeners:k}),D?L.data=D:(D=uv(n),D!==null&&(L.data=D)))),(D=_R?SR(e,n):AR(e,n))&&(L=Lf(u,"onBeforeInput"),0<L.length&&(k=new iv("onBeforeInput","beforeinput",null,n,c),f.push({event:k,listeners:L}),k.data=D)),gN(f,e,u,n,c)}qE(f,t)})}function ou(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lf(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,a=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||a===null||(r=Sl(e,n),r!=null&&i.unshift(ou(e,r,a)),r=Sl(e,t),r!=null&&i.push(ou(e,r,a))),e.tag===3)return i;e=e.return}return[]}function ho(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function XE(e,t,n,i,r){for(var a=t._reactName,s=[];n!==null&&n!==i;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===i)break;o!==5&&o!==26&&o!==27||u===null||(l=u,r?(u=Sl(n,a),u!=null&&s.unshift(ou(n,u,l))):r||(u=Sl(n,a),u!=null&&s.push(ou(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var xN=/\r\n?/g,EN=/\u0000|\uFFFD/g;function $E(e){return(typeof e=="string"?e:""+e).replace(xN,`
|
|
49
|
-
`).replace(EN,"")}function KE(e,t){return t=$E(t),$E(e)===t}function If(){}function qe(e,t,n,i,r,a){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Us(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Us(e,""+i);break;case"className":zc(e,"class",i);break;case"tabIndex":zc(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":zc(e,n,i);break;case"style":Wy(e,i,a);break;case"data":if(t!=="object"){zc(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Fc(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",r.name,r,null),qe(e,t,"formEncType",r.formEncType,r,null),qe(e,t,"formMethod",r.formMethod,r,null),qe(e,t,"formTarget",r.formTarget,r,null)):(qe(e,t,"encType",r.encType,r,null),qe(e,t,"method",r.method,r,null),qe(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Fc(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=If);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Fc(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Re("beforetoggle",e),Re("toggle",e),Uc(e,"popover",i);break;case"xlinkActuate":sr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":sr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":sr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":sr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":sr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":sr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":sr(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":sr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":sr(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Uc(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=W4.get(n)||n,Uc(e,n,i))}}function Zm(e,t,n,i,r,a){switch(n){case"style":Wy(e,i,a);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Us(e,i):(typeof i=="number"||typeof i=="bigint")&&Us(e,""+i);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"onClick":i!=null&&(e.onclick=If);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jy.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),a=e[yn]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,r),typeof i=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Uc(e,n,i)}}}function Kt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var i=!1,r=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:qe(e,t,a,s,n,null)}}r&&qe(e,t,"srcSet",n.srcSet,n,null),i&&qe(e,t,"src",n.src,n,null);return;case"input":Re("invalid",e);var o=a=s=r=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":r=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(q(137,t));break;default:qe(e,t,i,c,n,null)}}Xy(e,a,o,l,u,s,r,!1),jc(e);return;case"select":Re("invalid",e),i=s=a=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:qe(e,t,r,o,n,null)}t=a,n=s,e.multiple=!!i,t!=null?Bs(e,!!i,t,!1):n!=null&&Bs(e,!!i,n,!0);return;case"textarea":Re("invalid",e),a=r=i=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":i=o;break;case"defaultValue":r=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(q(91));break;default:qe(e,t,s,o,n,null)}Ky(e,i,r,a),jc(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(i=n[l],i!=null))switch(l){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:qe(e,t,l,i,n,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(i=0;i<su.length;i++)Re(su[i],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:qe(e,t,u,i,n,null)}return;default:if(pp(t)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&Zm(e,t,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&qe(e,t,o,i,n,null))}function TN(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,a=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=f;default:i.hasOwnProperty(h)||qe(e,t,h,null,i,f)}}for(var d in i){var h=i[d];if(f=n[d],i.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":a=h;break;case"name":r=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:h!==f&&qe(e,t,d,h,i,f)}}dp(e,s,o,l,u,c,a,r);return;case"select":h=s=o=d=null;for(a in n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case"value":break;case"multiple":h=l;default:i.hasOwnProperty(a)||qe(e,t,a,null,i,l)}for(r in i)if(a=i[r],l=n[r],i.hasOwnProperty(r)&&(a!=null||l!=null))switch(r){case"value":d=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==l&&qe(e,t,r,a,i,l)}t=o,n=s,i=h,d!=null?Bs(e,!!n,d,!1):!!i!=!!n&&(t!=null?Bs(e,!!n,t,!0):Bs(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(r=n[o],n.hasOwnProperty(o)&&r!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:qe(e,t,o,null,i,r)}for(s in i)if(r=i[s],a=n[s],i.hasOwnProperty(s)&&(r!=null||a!=null))switch(s){case"value":d=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(q(91));break;default:r!==a&&qe(e,t,s,r,i,a)}$y(e,d,h);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:qe(e,t,g,null,i,d)}for(l in i)if(d=i[l],h=n[l],i.hasOwnProperty(l)&&d!==h&&(d!=null||h!=null))switch(l){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:qe(e,t,l,d,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!i.hasOwnProperty(b)&&qe(e,t,b,null,i,d);for(u in i)if(d=i[u],h=n[u],i.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(q(137,t));break;default:qe(e,t,u,d,i,h)}return;default:if(pp(t)){for(var T in n)d=n[T],n.hasOwnProperty(T)&&d!==void 0&&!i.hasOwnProperty(T)&&Zm(e,t,T,void 0,i,d);for(c in i)d=i[c],h=n[c],!i.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||Zm(e,t,c,d,i,h);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!i.hasOwnProperty(m)&&qe(e,t,m,null,i,d);for(f in i)d=i[f],h=n[f],!i.hasOwnProperty(f)||d===h||d==null&&h==null||qe(e,t,f,d,i,h)}var Jm=null,e0=null;function Pf(e){return e.nodeType===9?e:e.ownerDocument}function QE(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WE(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function t0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var n0=null;function wN(){var e=window.event;return e&&e.type==="popstate"?e===n0?!1:(n0=e,!0):(n0=null,!1)}var ZE=typeof setTimeout=="function"?setTimeout:void 0,_N=typeof clearTimeout=="function"?clearTimeout:void 0,JE=typeof Promise=="function"?Promise:void 0,SN=typeof queueMicrotask=="function"?queueMicrotask:typeof JE<"u"?function(e){return JE.resolve(null).then(e).catch(AN)}:ZE;function AN(e){setTimeout(function(){throw e})}function oa(e){return e==="head"}function eT(e,t){var n=t,i=0,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(0<i&&8>i){n=i;var s=e.ownerDocument;if(n&1&&lu(s.documentElement),n&2&&lu(s.body),n&4)for(n=s.head,lu(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[wl]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(r===0){e.removeChild(a),gu(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:i=n.charCodeAt(0)-48;else i=0;n=a}while(n);gu(t)}function i0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":i0(n),lp(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function CN(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[wl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Ai(e.nextSibling),e===null)break}return null}function kN(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ai(e.nextSibling),e===null))return null;return e}function r0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function ON(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Ai(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==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var a0=null;function tT(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}function nT(e,t,n){switch(t=Pf(n),e){case"html":if(e=t.documentElement,!e)throw Error(q(452));return e;case"head":if(e=t.head,!e)throw Error(q(453));return e;case"body":if(e=t.body,!e)throw Error(q(454));return e;default:throw Error(q(451))}}function lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lp(e)}var li=new Map,iT=new Set;function Bf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xr=Ue.d;Ue.d={f:RN,r:NN,D:DN,C:MN,L:LN,m:IN,X:BN,S:PN,M:UN};function RN(){var e=xr.f(),t=kf();return e||t}function NN(e){var t=Ms(e);t!==null&&t.tag===5&&t.type==="form"?wx(t):xr.r(e)}var po=typeof document>"u"?null:document;function rT(e,t,n){var i=po;if(i&&typeof t=="string"&&t){var r=ti(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),iT.has(r)||(iT.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),Kt(t,"link",e),It(t),i.head.appendChild(t)))}}function DN(e){xr.D(e),rT("dns-prefetch",e,null)}function MN(e,t){xr.C(e,t),rT("preconnect",e,t)}function LN(e,t,n){xr.L(e,t,n);var i=po;if(i&&e&&t){var r='link[rel="preload"][as="'+ti(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+ti(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+ti(n.imageSizes)+'"]')):r+='[href="'+ti(e)+'"]';var a=r;switch(t){case"style":a=mo(e);break;case"script":a=go(e)}li.has(a)||(e=et({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),li.set(a,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(uu(a))||t==="script"&&i.querySelector(cu(a))||(t=i.createElement("link"),Kt(t,"link",e),It(t),i.head.appendChild(t)))}}function IN(e,t){xr.m(e,t);var n=po;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ti(i)+'"][href="'+ti(e)+'"]',a=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=go(e)}if(!li.has(a)&&(e=et({rel:"modulepreload",href:e},t),li.set(a,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(cu(a)))return}i=n.createElement("link"),Kt(i,"link",e),It(i),n.head.appendChild(i)}}}function PN(e,t,n){xr.S(e,t,n);var i=po;if(i&&e){var r=Ls(i).hoistableStyles,a=mo(e);t=t||"default";var s=r.get(a);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(uu(a)))o.loading=5;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},n),(n=li.get(a))&&s0(e,n);var l=s=i.createElement("link");It(l),Kt(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Uf(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},r.set(a,s)}}}function BN(e,t){xr.X(e,t);var n=po;if(n&&e){var i=Ls(n).hoistableScripts,r=go(e),a=i.get(r);a||(a=n.querySelector(cu(r)),a||(e=et({src:e,async:!0},t),(t=li.get(r))&&o0(e,t),a=n.createElement("script"),It(a),Kt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function UN(e,t){xr.M(e,t);var n=po;if(n&&e){var i=Ls(n).hoistableScripts,r=go(e),a=i.get(r);a||(a=n.querySelector(cu(r)),a||(e=et({src:e,async:!0,type:"module"},t),(t=li.get(r))&&o0(e,t),a=n.createElement("script"),It(a),Kt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function aT(e,t,n,i){var r=(r=Fr.current)?Bf(r):null;if(!r)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=mo(n.href),n=Ls(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=mo(n.href);var a=Ls(r).hoistableStyles,s=a.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=r.querySelector(uu(e)))&&!a._p&&(s.instance=a,s.state.loading=5),li.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},li.set(e,n),a||zN(r,e,n,s.state))),t&&i===null)throw Error(q(528,""));return s}if(t&&i!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=go(n),n=Ls(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function mo(e){return'href="'+ti(e)+'"'}function uu(e){return'link[rel="stylesheet"]['+e+"]"}function sT(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function zN(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Kt(t,"link",n),It(t),e.head.appendChild(t))}function go(e){return'[src="'+ti(e)+'"]'}function cu(e){return"script[async]"+e}function oT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+ti(n.href)+'"]');if(i)return t.instance=i,It(i),i;var r=et({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),It(i),Kt(i,"style",r),Uf(i,n.precedence,e),t.instance=i;case"stylesheet":r=mo(n.href);var a=e.querySelector(uu(r));if(a)return t.state.loading|=4,t.instance=a,It(a),a;i=sT(n),(r=li.get(r))&&s0(i,r),a=(e.ownerDocument||e).createElement("link"),It(a);var s=a;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),Kt(a,"link",i),t.state.loading|=4,Uf(a,n.precedence,e),t.instance=a;case"script":return a=go(n.src),(r=e.querySelector(cu(a)))?(t.instance=r,It(r),r):(i=n,(r=li.get(a))&&(i=et({},n),o0(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),It(r),Kt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,Uf(i,n.precedence,e));return t.instance}function Uf(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,a=r,s=0;s<i.length;s++){var o=i[s];if(o.dataset.precedence===t)a=o;else if(a!==r)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function s0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function o0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zf=null;function lT(e,t,n){if(zf===null){var i=new Map,r=zf=new Map;r.set(n,i)}else r=zf,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var a=n[r];if(!(a[wl]||a[en]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=i.get(s);o?o.push(a):i.set(s,[a])}}return i}function uT(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function jN(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var fu=null;function HN(){}function FN(e,t,n){if(fu===null)throw Error(q(475));var i=fu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=mo(n.href),a=e.querySelector(uu(r));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=jf.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=a,It(a);return}a=e.ownerDocument||e,n=sT(n),(r=li.get(r))&&s0(n,r),a=a.createElement("link"),It(a);var s=a;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),Kt(a,"link",n),t.instance=a}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=jf.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function VN(){if(fu===null)throw Error(q(475));var e=fu;return e.stylesheets&&e.count===0&&l0(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&l0(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function jf(){if(this.count--,this.count===0){if(this.stylesheets)l0(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hf=null;function l0(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hf=new Map,t.forEach(YN,e),Hf=null,jf.call(e))}function YN(e,t){if(!(t.state.loading&4)){var n=Hf.get(e);if(n)var i=n.get(null);else{n=new Map,Hf.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<r.length;a++){var s=r[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),i=s)}i&&n.set(null,i)}r=t.instance,s=r.getAttribute("data-precedence"),a=n.get(s)||i,a===i&&n.set(null,r),n.set(s,r),this.count++,i=jf.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),a?a.parentNode.insertBefore(r,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var du={$$typeof:ar,Provider:null,Consumer:null,_currentValue:Pa,_currentValue2:Pa,_threadCount:0};function qN(e,t,n,i,r,a,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rp(0),this.hiddenUpdates=rp(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function fT(e,t,n,i,r,a,s,o,l,u,c,f){return e=new qN(e,t,n,s,o,l,u,f),t=1,a===!0&&(t|=24),a=Ln(3,null,null,t),e.current=a,a.stateNode=e,t=Vp(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},Xp(a),e}function dT(e){return e?(e=Gs,e):Gs}function hT(e,t,n,i,r,a){r=dT(r),i.context===null?i.context=r:i.pendingContext=r,i=$r(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=Kr(e,i,t),n!==null&&(zn(n,e,t),Fl(n,e,t))}function pT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function u0(e,t){pT(e,t),(e=e.alternate)&&pT(e,t)}function mT(e){if(e.tag===13){var t=qs(e,67108864);t!==null&&zn(t,e,67108864),u0(e,67108864)}}var Ff=!0;function GN(e,t,n,i){var r=pe.T;pe.T=null;var a=Ue.p;try{Ue.p=2,c0(e,t,n,i)}finally{Ue.p=a,pe.T=r}}function XN(e,t,n,i){var r=pe.T;pe.T=null;var a=Ue.p;try{Ue.p=8,c0(e,t,n,i)}finally{Ue.p=a,pe.T=r}}function c0(e,t,n,i){if(Ff){var r=f0(i);if(r===null)Wm(e,t,i,Vf,n),bT(e,i);else if(KN(r,e,t,n,i))i.stopPropagation();else if(bT(e,i),t&4&&-1<$N.indexOf(e)){for(;r!==null;){var a=Ms(r);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=Ba(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Dn(s);o.entanglements[1]|=l,s&=~l}Fi(a),!(Fe&6)&&(Af=Bi()+500,au(0))}}break;case 13:o=qs(a,2),o!==null&&zn(o,a,2),kf(),u0(a,2)}if(a=f0(i),a===null&&Wm(e,t,i,Vf,n),a===r)break;r=a}r!==null&&i.stopPropagation()}else Wm(e,t,i,null,n)}}function f0(e){return e=gp(e),d0(e)}var Vf=null;function d0(e){if(Vf=null,e=Ds(e),e!==null){var t=ml(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=_y(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 Vf=e,null}function gT(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(M4()){case Ry:return 2;case Ny:return 8;case Lc:case L4:return 32;case Dy:return 268435456;default:return 32}default:return 32}}var h0=!1,la=null,ua=null,ca=null,hu=new Map,pu=new Map,fa=[],$N="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function bT(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ca=null;break;case"pointerover":case"pointerout":hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(t.pointerId)}}function mu(e,t,n,i,r,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[r]},t!==null&&(t=Ms(t),t!==null&&mT(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function KN(e,t,n,i,r){switch(t){case"focusin":return la=mu(la,e,t,n,i,r),!0;case"dragenter":return ua=mu(ua,e,t,n,i,r),!0;case"mouseover":return ca=mu(ca,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return hu.set(a,mu(hu.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,pu.set(a,mu(pu.get(a)||null,e,t,n,i,r)),!0}return!1}function yT(e){var t=Ds(e.target);if(t!==null){var n=ml(t);if(n!==null){if(t=n.tag,t===13){if(t=_y(n),t!==null){e.blockedOn=t,F4(e.priority,function(){if(n.tag===13){var i=Un();i=ap(i);var r=qs(n,i);r!==null&&zn(r,n,i),u0(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=f0(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);mp=i,n.target.dispatchEvent(i),mp=null}else return t=Ms(n),t!==null&&mT(t),e.blockedOn=n,!1;t.shift()}return!0}function vT(e,t,n){Yf(e)&&n.delete(t)}function QN(){h0=!1,la!==null&&Yf(la)&&(la=null),ua!==null&&Yf(ua)&&(ua=null),ca!==null&&Yf(ca)&&(ca=null),hu.forEach(vT),pu.forEach(vT)}function qf(e,t){e.blockedOn===t&&(e.blockedOn=null,h0||(h0=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,QN)))}var Gf=null;function xT(e){Gf!==e&&(Gf=e,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,function(){Gf===e&&(Gf=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(d0(i||n)===null)continue;break}var a=Ms(n);a!==null&&(e.splice(t,3),t-=3,dm(a,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function gu(e){function t(l){return qf(l,e)}la!==null&&qf(la,e),ua!==null&&qf(ua,e),ca!==null&&qf(ca,e),hu.forEach(t),pu.forEach(t);for(var n=0;n<fa.length;n++){var i=fa[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<fa.length&&(n=fa[0],n.blockedOn===null);)yT(n),n.blockedOn===null&&fa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],a=n[i+1],s=r[yn]||null;if(typeof a=="function")s||xT(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(r=a,s=a[yn]||null)o=s.formAction;else if(d0(r)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),xT(n)}}}function p0(e){this._internalRoot=e}Xf.prototype.render=p0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,i=Un();hT(n,i,e,t,null,null)},Xf.prototype.unmount=p0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hT(e.current,2,null,e,null,null),kf(),t[Ns]=null}};function Xf(e){this._internalRoot=e}Xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=By();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fa.length&&t!==0&&t<fa[n].priority;n++);fa.splice(n,0,e),n===0&&yT(e)}};var ET=Ty.version;if(ET!=="19.1.1")throw Error(q(527,ET,"19.1.1"));Ue.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=A4(t),e=e!==null?Ay(e):null,e=e===null?null:e.stateNode,e};var WN={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:pe,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$f.isDisabled&&$f.supportsFiber)try{xl=$f.inject(WN),Nn=$f}catch{}}kc.createRoot=function(e,t){if(!wy(e))throw Error(q(299));var n=!1,i="",r=Bx,a=Ux,s=zx,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=fT(e,1,!1,null,null,n,i,r,a,s,o,null),e[Ns]=t.current,Qm(e),new p0(t)},kc.hydrateRoot=function(e,t,n){if(!wy(e))throw Error(q(299));var i=!1,r="",a=Bx,s=Ux,o=zx,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=fT(e,1,!0,t,n??null,i,r,a,s,o,l,u),t.context=dT(null),n=t.current,i=Un(),i=ap(i),r=$r(i),r.callback=null,Kr(n,r,i),n=i,t.current.lanes=n,Tl(t,n),Fi(t),e[Ns]=t.current,Qm(e),new Xf(t)},kc.version="19.1.1";function TT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TT)}catch(e){console.error(e)}}TT(),gy.exports=kc;var ZN=gy.exports;const wT="4.0.15";function wn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function _T(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ST(...e){return t=>{let n=!1;const i=e.map(r=>{const a=_T(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<i.length;r++){const a=i[r];typeof a=="function"?a():_T(e[r],null)}}}}function Vi(...e){return E.useCallback(ST(...e),e)}function Kf(e,t=[]){let n=[];function i(a,s){const o=E.createContext(s),l=n.length;n=[...n,s];const u=f=>{var m;const{scope:d,children:h,...g}=f,b=((m=d==null?void 0:d[e])==null?void 0:m[l])||o,T=E.useMemo(()=>g,Object.values(g));return v.jsx(b.Provider,{value:T,children:h})};u.displayName=a+"Provider";function c(f,d){var b;const h=((b=d==null?void 0:d[e])==null?void 0:b[l])||o,g=E.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,c]}const r=()=>{const a=n.map(s=>E.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return r.scopeName=e,[i,JN(r,...t)]}function JN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const s=i.reduce((o,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...o,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function m0(e){const t=tD(e),n=E.forwardRef((i,r)=>{const{children:a,...s}=i,o=E.Children.toArray(a),l=o.find(iD);if(l){const u=l.props.children,c=o.map(f=>f===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return v.jsx(t,{...s,ref:r,children:E.isValidElement(u)?E.cloneElement(u,void 0,c):null})}return v.jsx(t,{...s,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var eD=m0("Slot");function tD(e){const t=E.forwardRef((n,i)=>{const{children:r,...a}=n;if(E.isValidElement(r)){const s=aD(r),o=rD(a,r.props);return r.type!==E.Fragment&&(o.ref=i?ST(i,s):s),E.cloneElement(r,o)}return E.Children.count(r)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AT=Symbol("radix.slottable");function nD(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=AT,t}function iD(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AT}function rD(e,t){const n={...t};for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=(...o)=>{const l=a(...o);return r(...o),l}:r&&(n[i]=r):i==="style"?n[i]={...r,...a}:i==="className"&&(n[i]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function aD(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jn=sD.reduce((e,t)=>{const n=m0(`Primitive.${t}`),i=E.forwardRef((r,a)=>{const{asChild:s,...o}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function oD(e,t){e&&pl.flushSync(()=>e.dispatchEvent(t))}function ts(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function lD(e,t=globalThis==null?void 0:globalThis.document){const n=ts(e);E.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var uD="DismissableLayer",g0="dismissableLayer.update",cD="dismissableLayer.pointerDownOutside",fD="dismissableLayer.focusOutside",CT,kT=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b0=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=E.useContext(kT),[c,f]=E.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),g=Vi(t,D=>f(D)),b=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(T),y=c?b.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,w=y>=m,S=pD(D=>{const L=D.target,B=[...u.branches].some(R=>R.contains(L));!w||B||(r==null||r(D),s==null||s(D),D.defaultPrevented||o==null||o())},d),k=mD(D=>{const L=D.target;[...u.branches].some(R=>R.contains(L))||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},d);return lD(D=>{y===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},d),E.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(CT=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),OT(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=CT)}},[c,d,n,u]),E.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),OT())},[c,u]),E.useEffect(()=>{const D=()=>h({});return document.addEventListener(g0,D),()=>document.removeEventListener(g0,D)},[]),v.jsx(jn.div,{...l,ref:g,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:wn(e.onFocusCapture,k.onFocusCapture),onBlurCapture:wn(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wn(e.onPointerDownCapture,S.onPointerDownCapture)})});b0.displayName=uD;var dD="DismissableLayerBranch",hD=E.forwardRef((e,t)=>{const n=E.useContext(kT),i=E.useRef(null),r=Vi(t,i);return E.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),v.jsx(jn.div,{...e,ref:r})});hD.displayName=dD;function pD(e,t=globalThis==null?void 0:globalThis.document){const n=ts(e),i=E.useRef(!1),r=E.useRef(()=>{});return E.useEffect(()=>{const a=o=>{if(o.target&&!i.current){let l=function(){RT(cD,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function mD(e,t=globalThis==null?void 0:globalThis.document){const n=ts(e),i=E.useRef(!1);return E.useEffect(()=>{const r=a=>{a.target&&!i.current&&RT(fD,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function OT(){const e=new CustomEvent(g0);document.dispatchEvent(e)}function RT(e,t,n,{discrete:i}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?oD(r,a):r.dispatchEvent(a)}var y0=0;function gD(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??NT()),document.body.insertAdjacentElement("beforeend",e[1]??NT()),y0++,()=>{y0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),y0--}},[])}function NT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var v0="focusScope.autoFocusOnMount",x0="focusScope.autoFocusOnUnmount",DT={bubbles:!1,cancelable:!0},bD="FocusScope",MT=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[o,l]=E.useState(null),u=ts(r),c=ts(a),f=E.useRef(null),d=Vi(t,b=>l(b)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(i){let b=function(x){if(h.paused||!o)return;const w=x.target;o.contains(w)?f.current=w:da(f.current,{select:!0})},T=function(x){if(h.paused||!o)return;const w=x.relatedTarget;w!==null&&(o.contains(w)||da(f.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&da(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const y=new MutationObserver(m);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),y.disconnect()}}},[i,o,h.paused]),E.useEffect(()=>{if(o){PT.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(v0,DT);o.addEventListener(v0,u),o.dispatchEvent(m),m.defaultPrevented||(yD(wD(LT(o)),{select:!0}),document.activeElement===b&&da(o))}return()=>{o.removeEventListener(v0,u),setTimeout(()=>{const m=new CustomEvent(x0,DT);o.addEventListener(x0,c),o.dispatchEvent(m),m.defaultPrevented||da(b??document.body,{select:!0}),o.removeEventListener(x0,c),PT.remove(h)},0)}}},[o,u,c,h]);const g=E.useCallback(b=>{if(!n&&!i||h.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(T&&m){const y=b.currentTarget,[x,w]=vD(y);x&&w?!b.shiftKey&&m===w?(b.preventDefault(),n&&da(x,{select:!0})):b.shiftKey&&m===x&&(b.preventDefault(),n&&da(w,{select:!0})):m===y&&b.preventDefault()}},[n,i,h.paused]);return v.jsx(jn.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});MT.displayName=bD;function yD(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(da(i,{select:t}),document.activeElement!==n)return}function vD(e){const t=LT(e),n=IT(t,e),i=IT(t.reverse(),e);return[n,i]}function LT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function IT(e,t){for(const n of e)if(!xD(n,{upTo:t}))return n}function xD(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ED(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ED(e)&&t&&e.select()}}var PT=TD();function TD(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=BT(e,t),e.unshift(t)},remove(t){var n;e=BT(e,t),(n=e[0])==null||n.resume()}}}function BT(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function wD(e){return e.filter(t=>t.tagName!=="A")}var Yi=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},_D=my[" useId ".trim().toString()]||(()=>{}),SD=0;function UT(e){const[t,n]=E.useState(_D());return Yi(()=>{n(i=>i??String(SD++))},[e]),e||(t?`radix-${t}`:"")}const AD=["top","right","bottom","left"],ha=Math.min,Hn=Math.max,Qf=Math.round,Wf=Math.floor,qi=e=>({x:e,y:e}),CD={left:"right",right:"left",bottom:"top",top:"bottom"},kD={start:"end",end:"start"};function E0(e,t,n){return Hn(e,ha(t,n))}function Er(e,t){return typeof e=="function"?e(t):e}function Tr(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function T0(e){return e==="x"?"y":"x"}function w0(e){return e==="y"?"height":"width"}const OD=new Set(["top","bottom"]);function Gi(e){return OD.has(Tr(e))?"y":"x"}function _0(e){return T0(Gi(e))}function RD(e,t,n){n===void 0&&(n=!1);const i=bo(e),r=_0(e),a=w0(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Zf(s)),[s,Zf(s)]}function ND(e){const t=Zf(e);return[S0(e),t,S0(t)]}function S0(e){return e.replace(/start|end/g,t=>kD[t])}const zT=["left","right"],jT=["right","left"],DD=["top","bottom"],MD=["bottom","top"];function LD(e,t,n){switch(e){case"top":case"bottom":return n?t?jT:zT:t?zT:jT;case"left":case"right":return t?DD:MD;default:return[]}}function ID(e,t,n,i){const r=bo(e);let a=LD(Tr(e),n==="start",i);return r&&(a=a.map(s=>s+"-"+r),t&&(a=a.concat(a.map(S0)))),a}function Zf(e){return e.replace(/left|right|bottom|top/g,t=>CD[t])}function PD(e){return{top:0,right:0,bottom:0,left:0,...e}}function HT(e){return typeof e!="number"?PD(e):{top:e,right:e,bottom:e,left:e}}function Jf(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function FT(e,t,n){let{reference:i,floating:r}=e;const a=Gi(t),s=_0(t),o=w0(s),l=Tr(t),u=a==="y",c=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,d=i[o]/2-r[o]/2;let h;switch(l){case"top":h={x:c,y:i.y-r.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(bo(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const BD=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=FT(u,i,l),d=i,h={},g=0;for(let b=0;b<o.length;b++){const{name:T,fn:m}=o[b],{x:y,y:x,data:w,reset:S}=await m({x:c,y:f,initialPlacement:i,placement:d,strategy:r,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,f=x??f,h={...h,[T]:{...h[T],...w}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:c,y:f}=FT(u,d,l)),b=-1)}return{x:c,y:f,placement:d,strategy:r,middlewareData:h}};async function bu(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Er(t,e),g=HT(h),T=o[d?f==="floating"?"reference":"floating":f],m=Jf(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),w=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Jf(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:x,strategy:l}):y);return{top:(m.top-S.top+g.top)/w.y,bottom:(S.bottom-m.bottom+g.bottom)/w.y,left:(m.left-S.left+g.left)/w.x,right:(S.right-m.right+g.right)/w.x}}const UD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=Er(e,t)||{};if(u==null)return{};const f=HT(c),d={x:n,y:i},h=_0(r),g=w0(h),b=await s.getDimensions(u),T=h==="y",m=T?"top":"left",y=T?"bottom":"right",x=T?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[h]-d[h]-a.floating[g],S=d[h]-a.reference[h],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=k?k[x]:0;(!D||!await(s.isElement==null?void 0:s.isElement(k)))&&(D=o.floating[x]||a.floating[g]);const L=w/2-S/2,B=D/2-b[g]/2-1,R=ha(f[m],B),Y=ha(f[y],B),j=R,re=D-b[g]-Y,ee=D/2-b[g]/2+L,Q=E0(j,ee,re),F=!l.arrow&&bo(r)!=null&&ee!==Q&&a.reference[g]/2-(ee<j?R:Y)-b[g]/2<0,V=F?ee<j?ee-j:ee-re:0;return{[h]:d[h]+V,data:{[h]:Q,centerOffset:ee-Q-V,...F&&{alignmentOffset:V}},reset:F}}}),zD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...T}=Er(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const m=Tr(r),y=Gi(o),x=Tr(o)===o,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(x||!b?[Zf(o)]:ND(o)),k=g!=="none";!d&&k&&S.push(...ID(o,b,g,w));const D=[o,...S],L=await bu(t,T),B=[];let R=((i=a.flip)==null?void 0:i.overflows)||[];if(c&&B.push(L[m]),f){const ee=RD(r,s,w);B.push(L[ee[0]],L[ee[1]])}if(R=[...R,{placement:r,overflows:B}],!B.every(ee=>ee<=0)){var Y,j;const ee=(((Y=a.flip)==null?void 0:Y.index)||0)+1,Q=D[ee];if(Q&&(!(f==="alignment"?y!==Gi(Q):!1)||R.every(H=>Gi(H.placement)===y?H.overflows[0]>0:!0)))return{data:{index:ee,overflows:R},reset:{placement:Q}};let F=(j=R.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:j.placement;if(!F)switch(h){case"bestFit":{var re;const V=(re=R.filter(H=>{if(k){const te=Gi(H.placement);return te===y||te==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(te=>te>0).reduce((te,O)=>te+O,0)]).sort((H,te)=>H[1]-te[1])[0])==null?void 0:re[0];V&&(F=V);break}case"initialPlacement":F=o;break}if(r!==F)return{reset:{placement:F}}}return{}}}};function VT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function YT(e){return AD.some(t=>e[t]>=0)}const jD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=Er(e,t);switch(i){case"referenceHidden":{const a=await bu(t,{...r,elementContext:"reference"}),s=VT(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:YT(s)}}}case"escaped":{const a=await bu(t,{...r,altBoundary:!0}),s=VT(a,n.floating);return{data:{escapedOffsets:s,escaped:YT(s)}}}default:return{}}}}},qT=new Set(["left","top"]);async function HD(e,t){const{placement:n,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=Tr(n),o=bo(n),l=Gi(n)==="y",u=qT.has(s)?-1:1,c=a&&l?-1:1,f=Er(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const FD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:a,placement:s,middlewareData:o}=t,l=await HD(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(i=o.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:s}}}}},VD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:T=>{let{x:m,y}=T;return{x:m,y}}},...l}=Er(e,t),u={x:n,y:i},c=await bu(t,l),f=Gi(Tr(r)),d=T0(f);let h=u[d],g=u[f];if(a){const T=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=h+c[T],x=h-c[m];h=E0(y,h,x)}if(s){const T=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=g+c[T],x=g-c[m];g=E0(y,g,x)}const b=o.fn({...t,[d]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[d]:a,[f]:s}}}}}},YD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=Er(e,t),c={x:n,y:i},f=Gi(r),d=T0(f);let h=c[d],g=c[f];const b=Er(o,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const x=d==="y"?"height":"width",w=a.reference[d]-a.floating[x]+T.mainAxis,S=a.reference[d]+a.reference[x]-T.mainAxis;h<w?h=w:h>S&&(h=S)}if(u){var m,y;const x=d==="y"?"width":"height",w=qT.has(Tr(r)),S=a.reference[f]-a.floating[x]+(w&&((m=s.offset)==null?void 0:m[f])||0)+(w?0:T.crossAxis),k=a.reference[f]+a.reference[x]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?T.crossAxis:0);g<S?g=S:g>k&&(g=k)}return{[d]:h,[f]:g}}}},qD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:a,platform:s,elements:o}=t,{apply:l=()=>{},...u}=Er(e,t),c=await bu(t,u),f=Tr(r),d=bo(r),h=Gi(r)==="y",{width:g,height:b}=a.floating;let T,m;f==="top"||f==="bottom"?(T=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=f,T=d==="end"?"top":"bottom");const y=b-c.top-c.bottom,x=g-c.left-c.right,w=ha(b-c[T],y),S=ha(g-c[m],x),k=!t.middlewareData.shift;let D=w,L=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=y),k&&!d){const R=Hn(c.left,0),Y=Hn(c.right,0),j=Hn(c.top,0),re=Hn(c.bottom,0);h?L=g-2*(R!==0||Y!==0?R+Y:Hn(c.left,c.right)):D=b-2*(j!==0||re!==0?j+re:Hn(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:D});const B=await s.getDimensions(o.floating);return g!==B.width||b!==B.height?{reset:{rects:!0}}:{}}}};function ed(){return typeof window<"u"}function yo(e){return GT(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xi(e){var t;return(t=(GT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function GT(e){return ed()?e instanceof Node||e instanceof Fn(e).Node:!1}function Ci(e){return ed()?e instanceof Element||e instanceof Fn(e).Element:!1}function $i(e){return ed()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function XT(e){return!ed()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}const GD=new Set(["inline","contents"]);function yu(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=ki(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!GD.has(r)}const XD=new Set(["table","td","th"]);function $D(e){return XD.has(yo(e))}const KD=[":popover-open",":modal"];function td(e){return KD.some(t=>{try{return e.matches(t)}catch{return!1}})}const QD=["transform","translate","scale","rotate","perspective"],WD=["transform","translate","scale","rotate","perspective","filter"],ZD=["paint","layout","strict","content"];function A0(e){const t=C0(),n=Ci(e)?ki(e):e;return QD.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||WD.some(i=>(n.willChange||"").includes(i))||ZD.some(i=>(n.contain||"").includes(i))}function JD(e){let t=pa(e);for(;$i(t)&&!vo(t);){if(A0(t))return t;if(td(t))return null;t=pa(t)}return null}function C0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const e5=new Set(["html","body","#document"]);function vo(e){return e5.has(yo(e))}function ki(e){return Fn(e).getComputedStyle(e)}function nd(e){return Ci(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pa(e){if(yo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||XT(e)&&e.host||Xi(e);return XT(t)?t.host:t}function $T(e){const t=pa(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&yu(t)?t:$T(t)}function vu(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$T(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),s=Fn(r);if(a){const o=k0(s);return t.concat(s,s.visualViewport||[],yu(r)?r:[],o&&n?vu(o):[])}return t.concat(r,vu(r,[],n))}function k0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function KT(e){const t=ki(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=$i(e),a=r?e.offsetWidth:n,s=r?e.offsetHeight:i,o=Qf(n)!==a||Qf(i)!==s;return o&&(n=a,i=s),{width:n,height:i,$:o}}function O0(e){return Ci(e)?e:e.contextElement}function xo(e){const t=O0(e);if(!$i(t))return qi(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=KT(t);let s=(a?Qf(n.width):n.width)/i,o=(a?Qf(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const t5=qi(0);function QT(e){const t=Fn(e);return!C0()||!t.visualViewport?t5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fn(e)?!1:t}function ns(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=O0(e);let s=qi(1);t&&(i?Ci(i)&&(s=xo(i)):s=xo(e));const o=n5(a,n,i)?QT(a):qi(0);let l=(r.left+o.x)/s.x,u=(r.top+o.y)/s.y,c=r.width/s.x,f=r.height/s.y;if(a){const d=Fn(a),h=i&&Ci(i)?Fn(i):i;let g=d,b=k0(g);for(;b&&i&&h!==g;){const T=xo(b),m=b.getBoundingClientRect(),y=ki(b),x=m.left+(b.clientLeft+parseFloat(y.paddingLeft))*T.x,w=m.top+(b.clientTop+parseFloat(y.paddingTop))*T.y;l*=T.x,u*=T.y,c*=T.x,f*=T.y,l+=x,u+=w,g=Fn(b),b=k0(g)}}return Jf({width:c,height:f,x:l,y:u})}function R0(e,t){const n=nd(e).scrollLeft;return t?t.left+n:ns(Xi(e)).left+n}function WT(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-(n?0:R0(e,i)),a=i.top+t.scrollTop;return{x:r,y:a}}function i5(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a=r==="fixed",s=Xi(i),o=t?td(t.floating):!1;if(i===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=qi(1);const c=qi(0),f=$i(i);if((f||!f&&!a)&&((yo(i)!=="body"||yu(s))&&(l=nd(i)),$i(i))){const h=ns(i);u=xo(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}const d=s&&!f&&!a?WT(s,l,!0):qi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function r5(e){return Array.from(e.getClientRects())}function a5(e){const t=Xi(e),n=nd(e),i=e.ownerDocument.body,r=Hn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Hn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+R0(e);const o=-n.scrollTop;return ki(i).direction==="rtl"&&(s+=Hn(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:s,y:o}}function s5(e,t){const n=Fn(e),i=Xi(e),r=n.visualViewport;let a=i.clientWidth,s=i.clientHeight,o=0,l=0;if(r){a=r.width,s=r.height;const u=C0();(!u||u&&t==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:o,y:l}}const o5=new Set(["absolute","fixed"]);function l5(e,t){const n=ns(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=$i(e)?xo(e):qi(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,l=r*a.x,u=i*a.y;return{width:s,height:o,x:l,y:u}}function ZT(e,t,n){let i;if(t==="viewport")i=s5(e,n);else if(t==="document")i=a5(Xi(e));else if(Ci(t))i=l5(t,n);else{const r=QT(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Jf(i)}function JT(e,t){const n=pa(e);return n===t||!Ci(n)||vo(n)?!1:ki(n).position==="fixed"||JT(n,t)}function u5(e,t){const n=t.get(e);if(n)return n;let i=vu(e,[],!1).filter(o=>Ci(o)&&yo(o)!=="body"),r=null;const a=ki(e).position==="fixed";let s=a?pa(e):e;for(;Ci(s)&&!vo(s);){const o=ki(s),l=A0(s);!l&&o.position==="fixed"&&(r=null),(a?!l&&!r:!l&&o.position==="static"&&!!r&&o5.has(r.position)||yu(s)&&!l&&JT(e,s))?i=i.filter(c=>c!==s):r=o,s=pa(s)}return t.set(e,i),i}function c5(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?td(t)?[]:u5(t,this._c):[].concat(n),i],o=s[0],l=s.reduce((u,c)=>{const f=ZT(t,c,r);return u.top=Hn(f.top,u.top),u.right=ha(f.right,u.right),u.bottom=ha(f.bottom,u.bottom),u.left=Hn(f.left,u.left),u},ZT(t,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function f5(e){const{width:t,height:n}=KT(e);return{width:t,height:n}}function d5(e,t,n){const i=$i(t),r=Xi(t),a=n==="fixed",s=ns(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=qi(0);function u(){l.x=R0(r)}if(i||!i&&!a)if((yo(t)!=="body"||yu(r))&&(o=nd(t)),i){const h=ns(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&u();a&&!i&&r&&u();const c=r&&!i&&!a?WT(r,o):qi(0),f=s.left+o.scrollLeft-l.x-c.x,d=s.top+o.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function N0(e){return ki(e).position==="static"}function e2(e,t){if(!$i(e)||ki(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xi(e)===n&&(n=n.ownerDocument.body),n}function t2(e,t){const n=Fn(e);if(td(e))return n;if(!$i(e)){let r=pa(e);for(;r&&!vo(r);){if(Ci(r)&&!N0(r))return r;r=pa(r)}return n}let i=e2(e,t);for(;i&&$D(i)&&N0(i);)i=e2(i,t);return i&&vo(i)&&N0(i)&&!A0(i)?n:i||JD(e)||n}const h5=async function(e){const t=this.getOffsetParent||t2,n=this.getDimensions,i=await n(e.floating);return{reference:d5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function p5(e){return ki(e).direction==="rtl"}const m5={convertOffsetParentRelativeRectToViewportRelativeRect:i5,getDocumentElement:Xi,getClippingRect:c5,getOffsetParent:t2,getElementRects:h5,getClientRects:r5,getDimensions:f5,getScale:xo,isElement:Ci,isRTL:p5};function n2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function g5(e,t){let n=null,i;const r=Xi(e);function a(){var o;clearTimeout(i),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(o||t(),!d||!h)return;const g=Wf(f),b=Wf(r.clientWidth-(c+d)),T=Wf(r.clientHeight-(f+h)),m=Wf(c),x={rootMargin:-g+"px "+-b+"px "+-T+"px "+-m+"px",threshold:Hn(0,ha(1,l))||1};let w=!0;function S(k){const D=k[0].intersectionRatio;if(D!==l){if(!w)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!n2(u,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),a}function b5(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=O0(e),c=r||a?[...u?vu(u):[],...vu(t)]:[];c.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),a&&m.addEventListener("resize",n)});const f=u&&o?g5(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?ns(e):null;l&&T();function T(){const m=ns(e);b&&!n2(b,m)&&n(),b=m,g=requestAnimationFrame(T)}return n(),()=>{var m;c.forEach(y=>{r&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const y5=FD,v5=VD,x5=zD,E5=qD,T5=jD,i2=UD,w5=YD,_5=(e,t,n)=>{const i=new Map,r={platform:m5,...n},a={...r.platform,_c:i};return BD(e,t,{...r,platform:a})};var S5=typeof document<"u",A5=function(){},id=S5?E.useLayoutEffect:A5;function rd(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,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!rd(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const a=r[i];if(!(a==="_owner"&&e.$$typeof)&&!rd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function r2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a2(e,t){const n=r2(e);return Math.round(t*n)/n}function D0(e){const t=E.useRef(e);return id(()=>{t.current=e}),t}function C5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,f]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(i);rd(d,i)||h(i);const[g,b]=E.useState(null),[T,m]=E.useState(null),y=E.useCallback(H=>{H!==k.current&&(k.current=H,b(H))},[]),x=E.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),w=a||g,S=s||T,k=E.useRef(null),D=E.useRef(null),L=E.useRef(c),B=l!=null,R=D0(l),Y=D0(r),j=D0(u),re=E.useCallback(()=>{if(!k.current||!D.current)return;const H={placement:t,strategy:n,middleware:d};Y.current&&(H.platform=Y.current),_5(k.current,D.current,H).then(te=>{const O={...te,isPositioned:j.current!==!1};ee.current&&!rd(L.current,O)&&(L.current=O,pl.flushSync(()=>{f(O)}))})},[d,t,n,Y,j]);id(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(H=>({...H,isPositioned:!1})))},[u]);const ee=E.useRef(!1);id(()=>(ee.current=!0,()=>{ee.current=!1}),[]),id(()=>{if(w&&(k.current=w),S&&(D.current=S),w&&S){if(R.current)return R.current(w,S,re);re()}},[w,S,re,R,B]);const Q=E.useMemo(()=>({reference:k,floating:D,setReference:y,setFloating:x}),[y,x]),F=E.useMemo(()=>({reference:w,floating:S}),[w,S]),V=E.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const te=a2(F.floating,c.x),O=a2(F.floating,c.y);return o?{...H,transform:"translate("+te+"px, "+O+"px)",...r2(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:O}},[n,o,F.floating,c.x,c.y]);return E.useMemo(()=>({...c,update:re,refs:Q,elements:F,floatingStyles:V}),[c,re,Q,F,V])}const k5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?i2({element:i.current,padding:r}).fn(n):{}:i?i2({element:i,padding:r}).fn(n):{}}}},O5=(e,t)=>({...y5(e),options:[e,t]}),R5=(e,t)=>({...v5(e),options:[e,t]}),N5=(e,t)=>({...w5(e),options:[e,t]}),D5=(e,t)=>({...x5(e),options:[e,t]}),M5=(e,t)=>({...E5(e),options:[e,t]}),L5=(e,t)=>({...T5(e),options:[e,t]}),I5=(e,t)=>({...k5(e),options:[e,t]});var P5="Arrow",s2=E.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...a}=e;return v.jsx(jn.svg,{...a,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});s2.displayName=P5;var B5=s2;function U5(e){const[t,n]=E.useState(void 0);return Yi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let s,o;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var M0="Popper",[o2,ad]=Kf(M0),[z5,l2]=o2(M0),u2=e=>{const{__scopePopper:t,children:n}=e,[i,r]=E.useState(null);return v.jsx(z5,{scope:t,anchor:i,onAnchorChange:r,children:n})};u2.displayName=M0;var c2="PopperAnchor",f2=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,a=l2(c2,n),s=E.useRef(null),o=Vi(t,s);return E.useEffect(()=>{a.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:v.jsx(jn.div,{...r,ref:o})});f2.displayName=c2;var L0="PopperContent",[j5,H5]=o2(L0),d2=E.forwardRef((e,t)=>{var ln,Ke,Ft,Ot,Vt,Yt;const{__scopePopper:n,side:i="bottom",sideOffset:r=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,T=l2(L0,n),[m,y]=E.useState(null),x=Vi(t,un=>y(un)),[w,S]=E.useState(null),k=U5(w),D=(k==null?void 0:k.width)??0,L=(k==null?void 0:k.height)??0,B=i+(a!=="center"?"-"+a:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(u)?u:[u],j=Y.length>0,re={padding:R,boundary:Y.filter(V5),altBoundary:j},{refs:ee,floatingStyles:Q,placement:F,isPositioned:V,middlewareData:H}=C5({strategy:"fixed",placement:B,whileElementsMounted:(...un)=>b5(...un,{animationFrame:h==="always"}),elements:{reference:T.anchor},middleware:[O5({mainAxis:r+L,alignmentAxis:s}),l&&R5({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?N5():void 0,...re}),l&&D5({...re}),M5({...re,apply:({elements:un,rects:Qn,availableWidth:yi,availableHeight:vi})=>{const{width:cn,height:xi}=Qn.reference,Zt=un.floating.style;Zt.setProperty("--radix-popper-available-width",`${yi}px`),Zt.setProperty("--radix-popper-available-height",`${vi}px`),Zt.setProperty("--radix-popper-anchor-width",`${cn}px`),Zt.setProperty("--radix-popper-anchor-height",`${xi}px`)}}),w&&I5({element:w,padding:o}),Y5({arrowWidth:D,arrowHeight:L}),d&&L5({strategy:"referenceHidden",...re})]}),[te,O]=m2(F),ge=ts(g);Yi(()=>{V&&(ge==null||ge())},[V,ge]);const Je=(ln=H.arrow)==null?void 0:ln.x,M=(Ke=H.arrow)==null?void 0:Ke.y,Ie=((Ft=H.arrow)==null?void 0:Ft.centerOffset)!==0,[me,Pe]=E.useState();return Yi(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),v.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:V?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(Ot=H.transformOrigin)==null?void 0:Ot.x,(Vt=H.transformOrigin)==null?void 0:Vt.y].join(" "),...((Yt=H.hide)==null?void 0:Yt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(j5,{scope:n,placedSide:te,onArrowChange:S,arrowX:Je,arrowY:M,shouldHideArrow:Ie,children:v.jsx(jn.div,{"data-side":te,"data-align":O,...b,ref:x,style:{...b.style,animation:V?void 0:"none"}})})})});d2.displayName=L0;var h2="PopperArrow",F5={top:"bottom",right:"left",bottom:"top",left:"right"},p2=E.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,a=H5(h2,i),s=F5[a.placedSide];return v.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:v.jsx(B5,{...r,ref:n,style:{...r.style,display:"block"}})})});p2.displayName=h2;function V5(e){return e!==null}var Y5=e=>({name:"transformOrigin",options:e,fn(t){var T,m,y;const{placement:n,rects:i,middlewareData:r}=t,s=((T=r.arrow)==null?void 0:T.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=m2(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=r.arrow)==null?void 0:m.x)??0)+o/2,h=(((y=r.arrow)==null?void 0:y.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?f:`${d}px`,b=`${-l}px`):u==="top"?(g=s?f:`${d}px`,b=`${i.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?f:`${h}px`):u==="left"&&(g=`${i.floating.width+l}px`,b=s?f:`${h}px`),{data:{x:g,y:b}}}});function m2(e){const[t,n="center"]=e.split("-");return[t,n]}var g2=u2,I0=f2,b2=d2,y2=p2;function q5(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var P0=e=>{const{present:t,children:n}=e,i=G5(t),r=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),a=Vi(i.ref,X5(r));return typeof n=="function"||i.isPresent?E.cloneElement(r,{ref:a}):null};P0.displayName="Presence";function G5(e){const[t,n]=E.useState(),i=E.useRef(null),r=E.useRef(e),a=E.useRef("none"),s=e?"mounted":"unmounted",[o,l]=q5(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=sd(i.current);a.current=o==="mounted"?u:"none"},[o]),Yi(()=>{const u=i.current,c=r.current;if(c!==e){const d=a.current,h=sd(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Yi(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const b=sd(i.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!r.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},d=h=>{h.target===t&&(a.current=sd(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:E.useCallback(u=>{i.current=u?getComputedStyle(u):null,n(u)},[])}}function sd(e){return(e==null?void 0:e.animationName)||"none"}function X5(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $5=my[" useInsertionEffect ".trim().toString()]||Yi;function v2({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,a,s]=K5({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r;{const c=E.useRef(e!==void 0);E.useEffect(()=>{const f=c.current;f!==o&&console.warn(`${i} is changing from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,i])}const u=E.useCallback(c=>{var f;if(o){const d=Q5(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else a(c)},[o,e,a,s]);return[l,u]}function K5({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),r=E.useRef(n),a=E.useRef(t);return $5(()=>{a.current=t},[t]),E.useEffect(()=>{var s;r.current!==n&&((s=a.current)==null||s.call(a,n),r.current=n)},[n,r]),[n,i,a]}function Q5(e){return typeof e=="function"}var W5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Eo=new WeakMap,od=new WeakMap,ld={},B0=0,x2=function(e){return e&&(e.host||x2(e.parentNode))},Z5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=x2(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},J5=function(e,t,n,i){var r=Z5(t,Array.isArray(e)?e:[e]);ld[n]||(ld[n]=new WeakMap);var a=ld[n],s=[],o=new Set,l=new Set(r),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};r.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))c(d);else try{var h=d.getAttribute(i),g=h!==null&&h!=="false",b=(Eo.get(d)||0)+1,T=(a.get(d)||0)+1;Eo.set(d,b),a.set(d,T),s.push(d),b===1&&g&&od.set(d,!0),T===1&&d.setAttribute(n,"true"),g||d.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return c(t),o.clear(),B0++,function(){s.forEach(function(f){var d=Eo.get(f)-1,h=a.get(f)-1;Eo.set(f,d),a.set(f,h),d||(od.has(f)||f.removeAttribute(i),od.delete(f)),h||f.removeAttribute(n)}),B0--,B0||(Eo=new WeakMap,Eo=new WeakMap,od=new WeakMap,ld={})}},eM=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=W5(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),J5(i,r,n,"aria-hidden")):function(){return null}},U0=function(e,t){return U0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},U0(e,t)};function E2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");U0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ui=function(){return ui=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ui.apply(this,arguments)};function ud(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function T2(e,t,n,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(r<3?s(a):r>3?s(t,n,a):s(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function w2(e,t){return function(n,i){t(n,i,e)}}function _2(e,t,n,i,r,a){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?i.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var g={};for(var b in i)g[b]=b==="access"?{}:i[b];for(var b in i.access)g.access[b]=i.access[b];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(m||null))};var T=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(f=s(T.get))&&(c.get=f),(f=s(T.set))&&(c.set=f),(f=s(T.init))&&r.unshift(f)}else(f=s(T))&&(o==="field"?r.unshift(f):c[l]=f)}u&&Object.defineProperty(u,i.name,c),d=!0}function S2(e,t,n){for(var i=arguments.length>2,r=0;r<t.length;r++)n=i?t[r].call(e,n):t[r].call(e);return i?n:void 0}function A2(e){return typeof e=="symbol"?e:"".concat(e)}function C2(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function k2(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function wr(e,t,n,i){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(i.next(c))}catch(f){s(f)}}function l(c){try{u(i.throw(c))}catch(f){s(f)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})}function O2(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(i=1,r&&(a=u[0]&2?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var cd=Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]};function R2(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cd(t,e,n)}function fd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z0(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,a=[],s;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){s={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return a}function N2(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(z0(arguments[t]));return e}function D2(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),r=0,t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,r++)i[r]=a[s];return i}function j0(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,a;i<r;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}function To(e){return this instanceof To?(this.v=e,this):new To(e)}function M2(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,a=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(h){return function(g){return Promise.resolve(g).then(h,f)}}function o(h,g){i[h]&&(r[h]=function(b){return new Promise(function(T,m){a.push([h,b,T,m])>1||l(h,b)})},g&&(r[h]=g(r[h])))}function l(h,g){try{u(i[h](g))}catch(b){d(a[0][3],b)}}function u(h){h.value instanceof To?Promise.resolve(h.value.v).then(c,f):d(a[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,g){h(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function L2(e){var t,n;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,a){t[r]=e[r]?function(s){return(n=!n)?{value:To(e[r](s)),done:!1}:a?a(s):s}:a}}function I2(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof fd=="function"?fd(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(a){n[a]=e[a]&&function(s){return new Promise(function(o,l){s=e[a](s),r(o,l,s.done,s.value)})}}function r(a,s,o,l){Promise.resolve(l).then(function(u){a({value:u,done:o})},s)}}function P2(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var tM=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},H0=function(e){return H0=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},H0(e)};function B2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=H0(e),i=0;i<n.length;i++)n[i]!=="default"&&cd(t,e,n[i]);return tM(t,e),t}function U2(e){return e&&e.__esModule?e:{default:e}}function z2(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function j2(e,t,n,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n}function H2(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function F2(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(r=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var nM=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function V2(e){function t(a){e.error=e.hasError?new nM(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var n,i=0;function r(){for(;n=e.stack.pop();)try{if(!n.async&&i===1)return i=0,e.stack.push(n),Promise.resolve().then(r);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(a).then(r,function(s){return t(s),r()})}else i|=1}catch(s){t(s)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return r()}function Y2(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,i,r,a,s){return i?t?".jsx":".js":r&&(!a||!s)?n:r+a+"."+s.toLowerCase()+"js"}):e}const iM=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:F2,get __assign(){return ui},__asyncDelegator:L2,__asyncGenerator:M2,__asyncValues:I2,__await:To,__awaiter:wr,__classPrivateFieldGet:z2,__classPrivateFieldIn:H2,__classPrivateFieldSet:j2,__createBinding:cd,__decorate:T2,__disposeResources:V2,__esDecorate:_2,__exportStar:R2,__extends:E2,__generator:O2,__importDefault:U2,__importStar:B2,__makeTemplateObject:P2,__metadata:k2,__param:w2,__propKey:A2,__read:z0,__rest:ud,__rewriteRelativeImportExtension:Y2,__runInitializers:S2,__setFunctionName:C2,__spread:N2,__spreadArray:j0,__spreadArrays:D2,__values:fd,default:{__extends:E2,__assign:ui,__rest:ud,__decorate:T2,__param:w2,__esDecorate:_2,__runInitializers:S2,__propKey:A2,__setFunctionName:C2,__metadata:k2,__awaiter:wr,__generator:O2,__createBinding:cd,__exportStar:R2,__values:fd,__read:z0,__spread:N2,__spreadArrays:D2,__spreadArray:j0,__await:To,__asyncGenerator:M2,__asyncDelegator:L2,__asyncValues:I2,__makeTemplateObject:P2,__importStar:B2,__importDefault:U2,__classPrivateFieldGet:z2,__classPrivateFieldSet:j2,__classPrivateFieldIn:H2,__addDisposableResource:F2,__disposeResources:V2,__rewriteRelativeImportExtension:Y2}},Symbol.toStringTag,{value:"Module"}));var dd="right-scroll-bar-position",hd="width-before-scroll-bar",rM="with-scroll-bars-hidden",aM="--removed-body-scroll-bar-size";function F0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sM(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var oM=typeof window<"u"?E.useLayoutEffect:E.useEffect,q2=new WeakMap;function lM(e,t){var n=sM(null,function(i){return e.forEach(function(r){return F0(r,i)})});return oM(function(){var i=q2.get(n);if(i){var r=new Set(i),a=new Set(e),s=n.current;r.forEach(function(o){a.has(o)||F0(o,null)}),a.forEach(function(o){r.has(o)||F0(o,s)})}q2.set(n,e)},[e]),n}function uM(e){return e}function cM(e,t){t===void 0&&(t=uM);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,i);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(a){for(i=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){i=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(a),s=n}var l=function(){var c=s;s=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return r}function fM(e){e===void 0&&(e={});var t=cM(null);return t.options=ui({async:!0,ssr:!1},e),t}var G2=function(e){var t=e.sideCar,n=ud(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return E.createElement(i,ui({},n))};G2.isSideCarExport=!0;function dM(e,t){return e.useMedium(t),G2}var X2=fM(),V0=function(){},pd=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:V0,onWheelCapture:V0,onTouchMoveCapture:V0}),r=i[0],a=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,T=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,x=e.gapMode,w=ud(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,k=lM([n,t]),D=ui(ui({},w),r);return E.createElement(E.Fragment,null,c&&E.createElement(S,{sideCar:X2,removeScrollBar:u,shards:f,noRelative:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!T,lockRef:n,gapMode:x}),s?E.cloneElement(E.Children.only(o),ui(ui({},D),{ref:k})):E.createElement(y,ui({},D,{className:l,ref:k}),o))});pd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pd.classNames={fullWidth:hd,zeroRight:dd};var hM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hM();return t&&e.setAttribute("nonce",t),e}function mM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pM())&&(mM(t,n),gM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yM=function(){var e=bM();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$2=function(){var e=yM(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},vM={left:0,top:0,right:0,gap:0},Y0=function(e){return parseInt(e||"",10)||0},xM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Y0(n),Y0(i),Y0(r)]},EM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vM;var t=xM(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},TM=$2(),wo="data-scroll-locked",wM=function(e,t,n,i){var r=e.left,a=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
50
|
-
.`.concat(rM,` {
|
|
51
|
-
overflow: hidden `).concat(i,`;
|
|
52
|
-
padding-right: `).concat(o,"px ").concat(i,`;
|
|
53
|
-
}
|
|
54
|
-
body[`).concat(wo,`] {
|
|
55
|
-
overflow: hidden `).concat(i,`;
|
|
56
|
-
overscroll-behavior: contain;
|
|
57
|
-
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
58
|
-
padding-left: `.concat(r,`px;
|
|
59
|
-
padding-top: `).concat(a,`px;
|
|
60
|
-
padding-right: `).concat(s,`px;
|
|
61
|
-
margin-left:0;
|
|
62
|
-
margin-top:0;
|
|
63
|
-
margin-right: `).concat(o,"px ").concat(i,`;
|
|
64
|
-
`),n==="padding"&&"padding-right: ".concat(o,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.`).concat(dd,` {
|
|
68
|
-
right: `).concat(o,"px ").concat(i,`;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.`).concat(hd,` {
|
|
72
|
-
margin-right: `).concat(o,"px ").concat(i,`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.`).concat(dd," .").concat(dd,` {
|
|
76
|
-
right: 0 `).concat(i,`;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.`).concat(hd," .").concat(hd,` {
|
|
80
|
-
margin-right: 0 `).concat(i,`;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
body[`).concat(wo,`] {
|
|
84
|
-
`).concat(aM,": ").concat(o,`px;
|
|
85
|
-
}
|
|
86
|
-
`)},K2=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},_M=function(){E.useEffect(function(){return document.body.setAttribute(wo,(K2()+1).toString()),function(){var e=K2()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},SM=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;_M();var a=E.useMemo(function(){return EM(r)},[r]);return E.createElement(TM,{styles:wM(a,!t,r,n?"":"!important")})},q0=!1;if(typeof window<"u")try{var md=Object.defineProperty({},"passive",{get:function(){return q0=!0,!0}});window.addEventListener("test",md,md),window.removeEventListener("test",md,md)}catch{q0=!1}var _o=q0?{passive:!1}:!1,AM=function(e){return e.tagName==="TEXTAREA"},Q2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!AM(e)&&n[t]==="visible")},CM=function(e){return Q2(e,"overflowY")},kM=function(e){return Q2(e,"overflowX")},W2=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=Z2(e,i);if(r){var a=J2(e,i),s=a[1],o=a[2];if(s>o)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},OM=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},RM=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Z2=function(e,t){return e==="v"?CM(t):kM(t)},J2=function(e,t){return e==="v"?OM(t):RM(t)},NM=function(e,t){return e==="h"&&t==="rtl"?-1:1},DM=function(e,t,n,i,r){var a=NM(e,window.getComputedStyle(t).direction),s=a*i,o=n.target,l=t.contains(o),u=!1,c=s>0,f=0,d=0;do{if(!o)break;var h=J2(e,o),g=h[0],b=h[1],T=h[2],m=b-T-a*g;(g||m)&&Z2(e,o)&&(f+=m,d+=g);var y=o.parentNode;o=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},gd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ew=function(e){return[e.deltaX,e.deltaY]},tw=function(e){return e&&"current"in e?e.current:e},MM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},LM=function(e){return`
|
|
87
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
88
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
89
|
-
`)},IM=0,So=[];function PM(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),r=E.useState(IM++)[0],a=E.useState($2)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var b=j0([e.lockRef.current],(e.shards||[]).map(tw),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var o=E.useCallback(function(b,T){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var m=gd(b),y=n.current,x="deltaX"in b?b.deltaX:y[0]-m[0],w="deltaY"in b?b.deltaY:y[1]-m[1],S,k=b.target,D=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in b&&D==="h"&&k.type==="range")return!1;var L=W2(D,k);if(!L)return!0;if(L?S=D:(S=D==="v"?"h":"v",L=W2(D,k)),!L)return!1;if(!i.current&&"changedTouches"in b&&(x||w)&&(i.current=S),!S)return!0;var B=i.current||S;return DM(B,T,b,B==="h"?x:w)},[]),l=E.useCallback(function(b){var T=b;if(!(!So.length||So[So.length-1]!==a)){var m="deltaY"in T?ew(T):gd(T),y=t.current.filter(function(S){return S.name===T.type&&(S.target===T.target||T.target===S.shadowParent)&&MM(S.delta,m)})[0];if(y&&y.should){T.cancelable&&T.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(tw).filter(Boolean).filter(function(S){return S.contains(T.target)}),w=x.length>0?o(T,x[0]):!s.current.noIsolation;w&&T.cancelable&&T.preventDefault()}}},[]),u=E.useCallback(function(b,T,m,y){var x={name:b,delta:T,target:m,should:y,shadowParent:BM(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),c=E.useCallback(function(b){n.current=gd(b),i.current=void 0},[]),f=E.useCallback(function(b){u(b.type,ew(b),b.target,o(b,e.lockRef.current))},[]),d=E.useCallback(function(b){u(b.type,gd(b),b.target,o(b,e.lockRef.current))},[]);E.useEffect(function(){return So.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,_o),document.addEventListener("touchmove",l,_o),document.addEventListener("touchstart",c,_o),function(){So=So.filter(function(b){return b!==a}),document.removeEventListener("wheel",l,_o),document.removeEventListener("touchmove",l,_o),document.removeEventListener("touchstart",c,_o)}},[]);var h=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(a,{styles:LM(r)}):null,h?E.createElement(SM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const UM=dM(X2,PM);var nw=E.forwardRef(function(e,t){return E.createElement(pd,ui({},e,{ref:t,sideCar:UM}))});nw.classNames=pd.classNames;var bd="Popover",[iw,YW]=Kf(bd,[ad]),xu=ad(),[zM,is]=iw(bd),rw=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:s=!1}=e,o=xu(t),l=E.useRef(null),[u,c]=E.useState(!1),[f,d]=v2({prop:i,defaultProp:r??!1,onChange:a,caller:bd});return v.jsx(g2,{...o,children:v.jsx(zM,{scope:t,contentId:UT(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:E.useCallback(()=>d(h=>!h),[d]),hasCustomAnchor:u,onCustomAnchorAdd:E.useCallback(()=>c(!0),[]),onCustomAnchorRemove:E.useCallback(()=>c(!1),[]),modal:s,children:n})})};rw.displayName=bd;var aw="PopoverAnchor",sw=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=is(aw,n),a=xu(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=r;return E.useEffect(()=>(s(),()=>o()),[s,o]),v.jsx(I0,{...a,...i,ref:t})});sw.displayName=aw;var ow="PopoverTrigger",lw=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=is(ow,n),a=xu(n),s=Vi(t,r.triggerRef),o=v.jsx(jn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":dw(r.open),...i,ref:s,onClick:wn(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?o:v.jsx(I0,{asChild:!0,...a,children:o})});lw.displayName=ow;var jM="PopoverPortal",[qW,HM]=iw(jM,{forceMount:void 0}),Ao="PopoverContent",uw=E.forwardRef((e,t)=>{const n=HM(Ao,e.__scopePopover),{forceMount:i=n.forceMount,...r}=e,a=is(Ao,e.__scopePopover);return v.jsx(P0,{present:i||a.open,children:a.modal?v.jsx(VM,{...r,ref:t}):v.jsx(YM,{...r,ref:t})})});uw.displayName=Ao;var FM=m0("PopoverContent.RemoveScroll"),VM=E.forwardRef((e,t)=>{const n=is(Ao,e.__scopePopover),i=E.useRef(null),r=Vi(t,i),a=E.useRef(!1);return E.useEffect(()=>{const s=i.current;if(s)return eM(s)},[]),v.jsx(nw,{as:FM,allowPinchZoom:!0,children:v.jsx(cw,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wn(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),a.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:wn(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,u=o.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:wn(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),YM=E.forwardRef((e,t)=>{const n=is(Ao,e.__scopePopover),i=E.useRef(!1),r=E.useRef(!1);return v.jsx(cw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,o;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(i.current||(o=n.triggerRef.current)==null||o.focus(),a.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:a=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),cw=E.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...f}=e,d=is(Ao,n),h=xu(n);return gD(),v.jsx(MT,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:v.jsx(b0,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:v.jsx(b2,{"data-state":dw(d.open),role:"dialog",id:d.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),fw="PopoverClose",qM=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=is(fw,n);return v.jsx(jn.button,{type:"button",...i,ref:t,onClick:wn(e.onClick,()=>r.onOpenChange(!1))})});qM.displayName=fw;var GM="PopoverArrow",XM=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=xu(n);return v.jsx(y2,{...r,...i,ref:t})});XM.displayName=GM;function dw(e){return e?"open":"closed"}var $M=rw,KM=sw,QM=uw;const WM=/\{[^{}]+\}/g,ZM=()=>{var e,t;return typeof process=="object"&&Number.parseInt((t=(e=process==null?void 0:process.versions)==null?void 0:e.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function JM(){return Math.random().toString(36).slice(2,11)}function eL(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:i=globalThis.fetch,querySerializer:r,bodySerializer:a,headers:s,requestInitExt:o=void 0,...l}={...e};o=ZM()?o:void 0,t=bw(t);const u=[];async function c(f,d){const{baseUrl:h,fetch:g=i,Request:b=n,headers:T,params:m={},parseAs:y="json",querySerializer:x,bodySerializer:w=a??nL,body:S,...k}=d||{};let D=t;h&&(D=bw(h)??t);let L=typeof r=="function"?r:mw(r);x&&(L=typeof x=="function"?x:mw({...typeof r=="object"?r:{},...x}));const B=S===void 0?void 0:w(S,gw(s,T,m.header)),R=gw(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},s,T,m.header),Y={redirect:"follow",...l,...k,body:B,headers:R};let j,re,ee=new n(iL(f,{baseUrl:D,params:m,querySerializer:L}),Y),Q;for(const V in k)V in ee||(ee[V]=k[V]);if(u.length){j=JM(),re=Object.freeze({baseUrl:D,fetch:g,parseAs:y,querySerializer:L,bodySerializer:w});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const H=await V.onRequest({request:ee,schemaPath:f,params:m,options:re,id:j});if(H)if(H instanceof n)ee=H;else if(H instanceof Response){Q=H;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Q){try{Q=await g(ee,o)}catch(V){let H=V;if(u.length)for(let te=u.length-1;te>=0;te--){const O=u[te];if(O&&typeof O=="object"&&typeof O.onError=="function"){const ge=await O.onError({request:ee,error:H,schemaPath:f,params:m,options:re,id:j});if(ge){if(ge instanceof Response){H=void 0,Q=ge;break}if(ge instanceof Error){H=ge;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(H)throw H}if(u.length)for(let V=u.length-1;V>=0;V--){const H=u[V];if(H&&typeof H=="object"&&typeof H.onResponse=="function"){const te=await H.onResponse({request:ee,response:Q,schemaPath:f,params:m,options:re,id:j});if(te){if(!(te instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Q=te}}}}if(Q.status===204||ee.method==="HEAD"||Q.headers.get("Content-Length")==="0")return Q.ok?{data:void 0,response:Q}:{error:void 0,response:Q};if(Q.ok)return y==="stream"?{data:Q.body,response:Q}:{data:await Q[y](),response:Q};let F=await Q.text();try{F=JSON.parse(F)}catch{}return{error:F,response:Q}}return{request(f,d,h){return c(d,{...h,method:f.toUpperCase()})},GET(f,d){return c(f,{...d,method:"GET"})},PUT(f,d){return c(f,{...d,method:"PUT"})},POST(f,d){return c(f,{...d,method:"POST"})},DELETE(f,d){return c(f,{...d,method:"DELETE"})},OPTIONS(f,d){return c(f,{...d,method:"OPTIONS"})},HEAD(f,d){return c(f,{...d,method:"HEAD"})},PATCH(f,d){return c(f,{...d,method:"PATCH"})},TRACE(f,d){return c(f,{...d,method:"TRACE"})},use(...f){for(const d of f)if(d){if(typeof d!="object"||!("onRequest"in d||"onResponse"in d||"onError"in d))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(d)}},eject(...f){for(const d of f){const h=u.indexOf(d);h!==-1&&u.splice(h,1)}}}}function yd(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${(n==null?void 0:n.allowReserved)===!0?t:encodeURIComponent(t)}`}function hw(e,t,n){if(!t||typeof t!="object")return"";const i=[],r={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const o in t)i.push(o,n.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const s=i.join(",");switch(n.style){case"form":return`${e}=${s}`;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return s}}for(const s in t){const o=n.style==="deepObject"?`${e}[${s}]`:s;i.push(yd(o,t[s],n))}const a=i.join(r);return n.style==="label"||n.style==="matrix"?`${r}${a}`:a}function pw(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const a={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",s=(n.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(a);switch(n.style){case"simple":return s;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return`${e}=${s}`}}const i={simple:",",label:".",matrix:";"}[n.style]||"&",r=[];for(const a of t)n.style==="simple"||n.style==="label"?r.push(n.allowReserved===!0?a:encodeURIComponent(a)):r.push(yd(e,a,n));return n.style==="label"||n.style==="matrix"?`${i}${r.join(i)}`:r.join(i)}function mw(e){return function(n){const i=[];if(n&&typeof n=="object")for(const r in n){const a=n[r];if(a!=null){if(Array.isArray(a)){if(a.length===0)continue;i.push(pw(r,a,{style:"form",explode:!0,...e==null?void 0:e.array,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}if(typeof a=="object"){i.push(hw(r,a,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}i.push(yd(r,a,e))}}return i.join("&")}}function tL(e,t){let n=e;for(const i of e.match(WM)??[]){let r=i.substring(1,i.length-1),a=!1,s="simple";if(r.endsWith("*")&&(a=!0,r=r.substring(0,r.length-1)),r.startsWith(".")?(s="label",r=r.substring(1)):r.startsWith(";")&&(s="matrix",r=r.substring(1)),!t||t[r]===void 0||t[r]===null)continue;const o=t[r];if(Array.isArray(o)){n=n.replace(i,pw(r,o,{style:s,explode:a}));continue}if(typeof o=="object"){n=n.replace(i,hw(r,o,{style:s,explode:a}));continue}if(s==="matrix"){n=n.replace(i,`;${yd(r,o)}`);continue}n=n.replace(i,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function nL(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function iL(e,t){var r;let n=`${t.baseUrl}${e}`;(r=t.params)!=null&&r.path&&(n=tL(n,t.params.path));let i=t.querySerializer(t.params.query??{});return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n}function gw(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const i=n instanceof Headers?n.entries():Object.entries(n);for(const[r,a]of i)if(a===null)t.delete(r);else if(Array.isArray(a))for(const s of a)t.append(r,s);else a!==void 0&&t.set(r,a)}return t}function bw(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var vd={exports:{}};vd.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,a=2,s=9007199254740991,o="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",T="[object Number]",m="[object Null]",y="[object Object]",x="[object Promise]",w="[object Proxy]",S="[object RegExp]",k="[object Set]",D="[object String]",L="[object Symbol]",B="[object Undefined]",R="[object WeakMap]",Y="[object ArrayBuffer]",j="[object DataView]",re="[object Float32Array]",ee="[object Float64Array]",Q="[object Int8Array]",F="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",te="[object Uint8ClampedArray]",O="[object Uint16Array]",ge="[object Uint32Array]",Je=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,me={};me[re]=me[ee]=me[Q]=me[F]=me[V]=me[H]=me[te]=me[O]=me[ge]=!0,me[o]=me[l]=me[Y]=me[c]=me[j]=me[f]=me[d]=me[h]=me[b]=me[T]=me[y]=me[S]=me[k]=me[D]=me[R]=!1;var Pe=typeof zr=="object"&&zr&&zr.Object===Object&&zr,ln=typeof self=="object"&&self&&self.Object===Object&&self,Ke=Pe||ln||Function("return this")(),Ft=t&&!t.nodeType&&t,Ot=Ft&&!0&&e&&!e.nodeType&&e,Vt=Ot&&Ot.exports===Ft,Yt=Vt&&Pe.process,un=function(){try{return Yt&&Yt.binding&&Yt.binding("util")}catch{}}(),Qn=un&&un.isTypedArray;function yi(A,I){for(var G=-1,ae=A==null?0:A.length,at=0,_e=[];++G<ae;){var yt=A[G];I(yt,G,A)&&(_e[at++]=yt)}return _e}function vi(A,I){for(var G=-1,ae=I.length,at=A.length;++G<ae;)A[at+G]=I[G];return A}function cn(A,I){for(var G=-1,ae=A==null?0:A.length;++G<ae;)if(I(A[G],G,A))return!0;return!1}function xi(A,I){for(var G=-1,ae=Array(A);++G<A;)ae[G]=I(G);return ae}function Zt(A){return function(I){return A(I)}}function Ei(A,I){return A.has(I)}function Da(A,I){return A==null?void 0:A[I]}function Cn(A){var I=-1,G=Array(A.size);return A.forEach(function(ae,at){G[++I]=[at,ae]}),G}function Ir(A,I){return function(G){return A(I(G))}}function ne(A){var I=-1,G=Array(A.size);return A.forEach(function(ae){G[++I]=ae}),G}var de=Array.prototype,U=Function.prototype,X=Object.prototype,oe=Ke["__core-js_shared__"],xe=U.toString,be=X.hasOwnProperty,qt=function(){var A=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}(),kn=X.toString,gn=RegExp("^"+xe.call(be).replace(Je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wn=Vt?Ke.Buffer:void 0,On=Ke.Symbol,Rt=Ke.Uint8Array,Zn=X.propertyIsEnumerable,bn=de.splice,Pr=On?On.toStringTag:void 0,YO=Object.getOwnPropertySymbols,XQ=Wn?Wn.isBuffer:void 0,$Q=Ir(Object.keys,Object),Kb=fl(Ke,"DataView"),Tc=fl(Ke,"Map"),Qb=fl(Ke,"Promise"),Wb=fl(Ke,"Set"),Zb=fl(Ke,"WeakMap"),wc=fl(Object,"create"),KQ=_s(Kb),QQ=_s(Tc),WQ=_s(Qb),ZQ=_s(Wb),JQ=_s(Zb),qO=On?On.prototype:void 0,Jb=qO?qO.valueOf:void 0;function Ts(A){var I=-1,G=A==null?0:A.length;for(this.clear();++I<G;){var ae=A[I];this.set(ae[0],ae[1])}}function eW(){this.__data__=wc?wc(null):{},this.size=0}function tW(A){var I=this.has(A)&&delete this.__data__[A];return this.size-=I?1:0,I}function nW(A){var I=this.__data__;if(wc){var G=I[A];return G===i?void 0:G}return be.call(I,A)?I[A]:void 0}function iW(A){var I=this.__data__;return wc?I[A]!==void 0:be.call(I,A)}function rW(A,I){var G=this.__data__;return this.size+=this.has(A)?0:1,G[A]=wc&&I===void 0?i:I,this}Ts.prototype.clear=eW,Ts.prototype.delete=tW,Ts.prototype.get=nW,Ts.prototype.has=iW,Ts.prototype.set=rW;function Br(A){var I=-1,G=A==null?0:A.length;for(this.clear();++I<G;){var ae=A[I];this.set(ae[0],ae[1])}}function aW(){this.__data__=[],this.size=0}function sW(A){var I=this.__data__,G=Lh(I,A);if(G<0)return!1;var ae=I.length-1;return G==ae?I.pop():bn.call(I,G,1),--this.size,!0}function oW(A){var I=this.__data__,G=Lh(I,A);return G<0?void 0:I[G][1]}function lW(A){return Lh(this.__data__,A)>-1}function uW(A,I){var G=this.__data__,ae=Lh(G,A);return ae<0?(++this.size,G.push([A,I])):G[ae][1]=I,this}Br.prototype.clear=aW,Br.prototype.delete=sW,Br.prototype.get=oW,Br.prototype.has=lW,Br.prototype.set=uW;function ws(A){var I=-1,G=A==null?0:A.length;for(this.clear();++I<G;){var ae=A[I];this.set(ae[0],ae[1])}}function cW(){this.size=0,this.__data__={hash:new Ts,map:new(Tc||Br),string:new Ts}}function fW(A){var I=Ih(this,A).delete(A);return this.size-=I?1:0,I}function dW(A){return Ih(this,A).get(A)}function hW(A){return Ih(this,A).has(A)}function pW(A,I){var G=Ih(this,A),ae=G.size;return G.set(A,I),this.size+=G.size==ae?0:1,this}ws.prototype.clear=cW,ws.prototype.delete=fW,ws.prototype.get=dW,ws.prototype.has=hW,ws.prototype.set=pW;function Mh(A){var I=-1,G=A==null?0:A.length;for(this.__data__=new ws;++I<G;)this.add(A[I])}function mW(A){return this.__data__.set(A,i),this}function gW(A){return this.__data__.has(A)}Mh.prototype.add=Mh.prototype.push=mW,Mh.prototype.has=gW;function Ma(A){var I=this.__data__=new Br(A);this.size=I.size}function bW(){this.__data__=new Br,this.size=0}function yW(A){var I=this.__data__,G=I.delete(A);return this.size=I.size,G}function vW(A){return this.__data__.get(A)}function xW(A){return this.__data__.has(A)}function EW(A,I){var G=this.__data__;if(G instanceof Br){var ae=G.__data__;if(!Tc||ae.length<n-1)return ae.push([A,I]),this.size=++G.size,this;G=this.__data__=new ws(ae)}return G.set(A,I),this.size=G.size,this}Ma.prototype.clear=bW,Ma.prototype.delete=yW,Ma.prototype.get=vW,Ma.prototype.has=xW,Ma.prototype.set=EW;function TW(A,I){var G=Ph(A),ae=!G&&BW(A),at=!G&&!ae&&ey(A),_e=!G&&!ae&&!at&&e4(A),yt=G||ae||at||_e,Gt=yt?xi(A.length,String):[],Jt=Gt.length;for(var pt in A)be.call(A,pt)&&!(yt&&(pt=="length"||at&&(pt=="offset"||pt=="parent")||_e&&(pt=="buffer"||pt=="byteLength"||pt=="byteOffset")||DW(pt,Jt)))&&Gt.push(pt);return Gt}function Lh(A,I){for(var G=A.length;G--;)if(QO(A[G][0],I))return G;return-1}function wW(A,I,G){var ae=I(A);return Ph(A)?ae:vi(ae,G(A))}function _c(A){return A==null?A===void 0?B:m:Pr&&Pr in Object(A)?RW(A):PW(A)}function GO(A){return Sc(A)&&_c(A)==o}function XO(A,I,G,ae,at){return A===I?!0:A==null||I==null||!Sc(A)&&!Sc(I)?A!==A&&I!==I:_W(A,I,G,ae,XO,at)}function _W(A,I,G,ae,at,_e){var yt=Ph(A),Gt=Ph(I),Jt=yt?l:La(A),pt=Gt?l:La(I);Jt=Jt==o?y:Jt,pt=pt==o?y:pt;var Jn=Jt==y,Li=pt==y,fn=Jt==pt;if(fn&&ey(A)){if(!ey(I))return!1;yt=!0,Jn=!1}if(fn&&!Jn)return _e||(_e=new Ma),yt||e4(A)?$O(A,I,G,ae,at,_e):kW(A,I,Jt,G,ae,at,_e);if(!(G&r)){var Ti=Jn&&be.call(A,"__wrapped__"),wi=Li&&be.call(I,"__wrapped__");if(Ti||wi){var Ia=Ti?A.value():A,Ur=wi?I.value():I;return _e||(_e=new Ma),at(Ia,Ur,G,ae,_e)}}return fn?(_e||(_e=new Ma),OW(A,I,G,ae,at,_e)):!1}function SW(A){if(!JO(A)||LW(A))return!1;var I=WO(A)?gn:M;return I.test(_s(A))}function AW(A){return Sc(A)&&ZO(A.length)&&!!me[_c(A)]}function CW(A){if(!IW(A))return $Q(A);var I=[];for(var G in Object(A))be.call(A,G)&&G!="constructor"&&I.push(G);return I}function $O(A,I,G,ae,at,_e){var yt=G&r,Gt=A.length,Jt=I.length;if(Gt!=Jt&&!(yt&&Jt>Gt))return!1;var pt=_e.get(A);if(pt&&_e.get(I))return pt==I;var Jn=-1,Li=!0,fn=G&a?new Mh:void 0;for(_e.set(A,I),_e.set(I,A);++Jn<Gt;){var Ti=A[Jn],wi=I[Jn];if(ae)var Ia=yt?ae(wi,Ti,Jn,I,A,_e):ae(Ti,wi,Jn,A,I,_e);if(Ia!==void 0){if(Ia)continue;Li=!1;break}if(fn){if(!cn(I,function(Ur,Ss){if(!Ei(fn,Ss)&&(Ti===Ur||at(Ti,Ur,G,ae,_e)))return fn.push(Ss)})){Li=!1;break}}else if(!(Ti===wi||at(Ti,wi,G,ae,_e))){Li=!1;break}}return _e.delete(A),_e.delete(I),Li}function kW(A,I,G,ae,at,_e,yt){switch(G){case j:if(A.byteLength!=I.byteLength||A.byteOffset!=I.byteOffset)return!1;A=A.buffer,I=I.buffer;case Y:return!(A.byteLength!=I.byteLength||!_e(new Rt(A),new Rt(I)));case c:case f:case T:return QO(+A,+I);case d:return A.name==I.name&&A.message==I.message;case S:case D:return A==I+"";case b:var Gt=Cn;case k:var Jt=ae&r;if(Gt||(Gt=ne),A.size!=I.size&&!Jt)return!1;var pt=yt.get(A);if(pt)return pt==I;ae|=a,yt.set(A,I);var Jn=$O(Gt(A),Gt(I),ae,at,_e,yt);return yt.delete(A),Jn;case L:if(Jb)return Jb.call(A)==Jb.call(I)}return!1}function OW(A,I,G,ae,at,_e){var yt=G&r,Gt=KO(A),Jt=Gt.length,pt=KO(I),Jn=pt.length;if(Jt!=Jn&&!yt)return!1;for(var Li=Jt;Li--;){var fn=Gt[Li];if(!(yt?fn in I:be.call(I,fn)))return!1}var Ti=_e.get(A);if(Ti&&_e.get(I))return Ti==I;var wi=!0;_e.set(A,I),_e.set(I,A);for(var Ia=yt;++Li<Jt;){fn=Gt[Li];var Ur=A[fn],Ss=I[fn];if(ae)var t4=yt?ae(Ss,Ur,fn,I,A,_e):ae(Ur,Ss,fn,A,I,_e);if(!(t4===void 0?Ur===Ss||at(Ur,Ss,G,ae,_e):t4)){wi=!1;break}Ia||(Ia=fn=="constructor")}if(wi&&!Ia){var Bh=A.constructor,Uh=I.constructor;Bh!=Uh&&"constructor"in A&&"constructor"in I&&!(typeof Bh=="function"&&Bh instanceof Bh&&typeof Uh=="function"&&Uh instanceof Uh)&&(wi=!1)}return _e.delete(A),_e.delete(I),wi}function KO(A){return wW(A,jW,NW)}function Ih(A,I){var G=A.__data__;return MW(I)?G[typeof I=="string"?"string":"hash"]:G.map}function fl(A,I){var G=Da(A,I);return SW(G)?G:void 0}function RW(A){var I=be.call(A,Pr),G=A[Pr];try{A[Pr]=void 0;var ae=!0}catch{}var at=kn.call(A);return ae&&(I?A[Pr]=G:delete A[Pr]),at}var NW=YO?function(A){return A==null?[]:(A=Object(A),yi(YO(A),function(I){return Zn.call(A,I)}))}:HW,La=_c;(Kb&&La(new Kb(new ArrayBuffer(1)))!=j||Tc&&La(new Tc)!=b||Qb&&La(Qb.resolve())!=x||Wb&&La(new Wb)!=k||Zb&&La(new Zb)!=R)&&(La=function(A){var I=_c(A),G=I==y?A.constructor:void 0,ae=G?_s(G):"";if(ae)switch(ae){case KQ:return j;case QQ:return b;case WQ:return x;case ZQ:return k;case JQ:return R}return I});function DW(A,I){return I=I??s,!!I&&(typeof A=="number"||Ie.test(A))&&A>-1&&A%1==0&&A<I}function MW(A){var I=typeof A;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?A!=="__proto__":A===null}function LW(A){return!!qt&&qt in A}function IW(A){var I=A&&A.constructor,G=typeof I=="function"&&I.prototype||X;return A===G}function PW(A){return kn.call(A)}function _s(A){if(A!=null){try{return xe.call(A)}catch{}try{return A+""}catch{}}return""}function QO(A,I){return A===I||A!==A&&I!==I}var BW=GO(function(){return arguments}())?GO:function(A){return Sc(A)&&be.call(A,"callee")&&!Zn.call(A,"callee")},Ph=Array.isArray;function UW(A){return A!=null&&ZO(A.length)&&!WO(A)}var ey=XQ||FW;function zW(A,I){return XO(A,I)}function WO(A){if(!JO(A))return!1;var I=_c(A);return I==h||I==g||I==u||I==w}function ZO(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=s}function JO(A){var I=typeof A;return A!=null&&(I=="object"||I=="function")}function Sc(A){return A!=null&&typeof A=="object"}var e4=Qn?Zt(Qn):AW;function jW(A){return UW(A)?TW(A):CW(A)}function HW(){return[]}function FW(){return!1}e.exports=zW}(vd,vd.exports);var rL=vd.exports;const aL=dl(rL),Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function sL(e,t=0){return(Qt[e[t+0]]+Qt[e[t+1]]+Qt[e[t+2]]+Qt[e[t+3]]+"-"+Qt[e[t+4]]+Qt[e[t+5]]+"-"+Qt[e[t+6]]+Qt[e[t+7]]+"-"+Qt[e[t+8]]+Qt[e[t+9]]+"-"+Qt[e[t+10]]+Qt[e[t+11]]+Qt[e[t+12]]+Qt[e[t+13]]+Qt[e[t+14]]+Qt[e[t+15]]).toLowerCase()}let G0;const oL=new Uint8Array(16);function lL(){if(!G0){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");G0=crypto.getRandomValues.bind(crypto)}return G0(oL)}const yw={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function X0(e,t,n){var r;if(yw.randomUUID&&!e)return yw.randomUUID();e=e||{};const i=e.random??((r=e.rng)==null?void 0:r.call(e))??lL();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,sL(i)}const uL=e=>{console.log(e.error)},cL=e=>{const t=eL({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||uL};return t.use(n),t};let vw=class{constructor({config:t}){var n,i;this.userToken=null,this.constructClientOptions=s=>{const o=this.config.apiUrl||"https://api.open.cx",l={"X-Bot-Token":this.config.token,"Content-Type":"application/json",Accept:"application/json",Authorization:s?`Bearer ${s}`:void 0};return{baseUrl:o,headers:l}},this.createOpenAPIClient=({baseUrl:s,headers:o})=>cL({baseUrl:s,onRequest:({request:l})=>{Object.entries(o).forEach(([u,c])=>{c&&l.headers.set(u,c)})}}),this.setAuthToken=s=>{this.userToken=s;const{baseUrl:o,headers:l}=this.constructClientOptions(s);this.client=this.createOpenAPIClient({baseUrl:o,headers:l})},this.getExternalWidgetConfig=async()=>await this.client.GET("/backend/widget/v2/config",{params:{header:{"X-Bot-Token":this.config.token}}}),this.sendMessage=async(s,o)=>await this.client.POST("/backend/widget/v2/chat/send",{body:s,signal:o}),this.createUnverifiedContact=async s=>await this.client.POST("/backend/widget/v2/contact/create-unverified",{params:{header:{"x-bot-token":this.config.token}},body:s}),this.createSession=async s=>await this.client.POST("/backend/widget/v2/create-session",{body:s}),this.pollSessionAndHistory=async({sessionId:s,lastMessageTimestamp:o,abortSignal:l})=>{const u=o?{lastMessageTimestamp:o}:void 0;return await this.client.GET("/backend/widget/v2/poll/{sessionId}",{params:{path:{sessionId:s},query:u},signal:l})},this.getSessions=async({cursor:s,filters:o,abortSignal:l})=>await this.client.GET("/backend/widget/v2/sessions",{params:{query:{cursor:s,filters:JSON.stringify(o)}},signal:l}),this.uploadFile=async({file:s,abortSignal:o,onProgress:l})=>new Promise((u,c)=>{var f;const d=new FormData;d.append("file",s);const h=new XMLHttpRequest;if(o&&(o.addEventListener("abort",()=>{h.abort(),c(new DOMException("Aborted","AbortError"))}),o.aborted)){c(new DOMException("Aborted","AbortError"));return}h.upload.addEventListener("progress",T=>{if(T.lengthComputable&&l){const m=Math.round(T.loaded/T.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const T=JSON.parse(h.responseText);u(T)}catch(T){c(new Error(`Failed to parse response: ${T}`))}else c(new Error(`Upload failed with status: ${h.status}`))}),h.addEventListener("error",()=>{c(new Error("Network error occurred"))}),h.addEventListener("timeout",()=>{c(new Error("Upload timed out"))});const{baseUrl:g}=this.constructClientOptions(this.userToken),b=`${g}/backend/widget/v2/upload`;h.open("POST",b),h.setRequestHeader("X-Bot-Token",this.config.token),this.userToken??((f=this.config.user)==null?void 0:f.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(d)}),this.vote=async s=>await this.client.POST("/backend/widget/v2/chat/vote",{body:s}),this.resolveSession=async(s,o)=>await this.client.POST("/backend/widget/v2/session/resolve",{body:s,signal:o}),this.createStateCheckpoint=async s=>await this.client.POST("/backend/widget/v2/checkpoint",{body:s}),this.submitCsat=async s=>await this.client.POST("/backend/widget/v2/submit-csat",{body:s}),this.config=t,this.userToken=((n=t.user)==null?void 0:n.token)||null;const{baseUrl:r,headers:a}=this.constructClientOptions((i=t.user)==null?void 0:i.token);this.client=this.createOpenAPIClient({baseUrl:r,headers:a})}};function ci(e,t){console.error(`Missing case for ${e} in ${t}`)}class Co{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{aL(this.state,n)||(this.state=n,this.notifySubscribers(n))},this.setPartial=n=>{if(n==null)return;const i={...this.state,...n};this.set(i)},this.reset=()=>{this.set(this.initialState)},this.notifySubscribers=n=>{Array.from(this.subscribers).forEach(i=>{try{i(n)}catch(r){console.error(r)}})},this.subscribe=n=>(this.subscribers.add(n),()=>{this.subscribers.delete(n)}),this.state=t,this.initialState=t}}class xw{constructor(){this.state=new Co({isPolling:!1,isError:!1}),this.abortController=new AbortController,this.reset=()=>{var t;this.abortController.abort("Resetting poller"),(t=this.stopPolling)==null||t.call(this),this.stopPolling=null},this.stopPolling=null,this.startPolling=(t,n)=>{if(this.stopPolling)return;const i=[],r=async()=>{this.abortController=new AbortController,this.state.setPartial({isPolling:!0});try{await t(this.abortController.signal)}catch(a){if(this.abortController.signal.aborted)return;console.error("Failed to poll:",a),this.state.setPartial({isError:!0})}finally{this.state.setPartial({isPolling:!1})}this.abortController.signal.aborted?console.log("Poller aborted, not scheduling anymore"):i.push(setTimeout(r,n))};r(),this.stopPolling=()=>{i.forEach(clearTimeout),this.state.reset()}}}}function fL(e){try{const t=e();return t instanceof Promise?t.then(n=>({data:n})).catch(n=>({error:n})):{data:t}}catch(t){return{error:t}}}class dL{constructor({api:t,config:n,sessionCtx:i,messageCtx:r,sessionPollingIntervalSeconds:a}){this.poller=new xw,this.fetchSessionAndFullHistoryAbortController=new AbortController,this.registerPolling=()=>{this.sessionCtx.sessionState.subscribe(({session:s})=>{s!=null&&s.id?this.poller.startPolling(async o=>{this.fetchSessionAndHistory({sessionId:s.id,abortSignal:o})},this.sessionPollingIntervalSeconds*1e3):this.poller.reset()}),this.sessionCtx.sessionState.subscribe(({session:s})=>{if(s!=null&&s.id&&!s.isOpened)try{this.fetchSessionAndFullHistoryAbortController=new AbortController,this.fetchSessionAndHistory({sessionId:s.id,abortSignal:this.fetchSessionAndFullHistoryAbortController.signal,fetchFullHistory:!0})}catch(o){this.fetchSessionAndFullHistoryAbortController.signal.aborted||console.error("Failed to fetch session and full history:",o)}else this.fetchSessionAndFullHistoryAbortController.abort()})},this.fetchSessionAndHistory=async({sessionId:s,abortSignal:o,fetchFullHistory:l=!1})=>{var u;this.messageCtx.state.get().messages.length===0&&this.messageCtx.state.setPartial({isInitialFetchLoading:!0});const c=this.messageCtx.state.get().messages,f=c.length>0?((u=c[c.length-1])==null?void 0:u.timestamp)??void 0:void 0,{data:d}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o,lastMessageTimestamp:l?void 0:f});if(d!=null&&d.session&&(this.sessionCtx.sessionState.setPartial({session:d.session}),this.sessionCtx.setSessions([d.session])),d!=null&&d.history&&d.history.length>0){const h=this.messageCtx.state.get().messages,g=d.history.map(this.mapHistoryToMessage).filter(b=>b!==null).filter(b=>!h.some(T=>T.id===b.id));this.messageCtx.state.setPartial({messages:[...h,...g]})}this.messageCtx.state.get().isInitialFetchLoading&&this.messageCtx.state.setPartial({isInitialFetchLoading:!1})},this.mapHistoryToMessage=s=>{var o,l;const u={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...u,type:"USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...u,type:"AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatar:s.sender.avatar||"",id:null,isAi:!1}};if(s.sender.kind==="ai"){const c=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...u,type:"AI",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatar:((l=this.config.bot)==null?void 0:l.avatar)||""},data:{message:s.content.text||"",action:c?{name:c.actionName,data:this.extractActionResult(c)}:void 0}}}if(s.sender.kind==="system"){const c=this.constructSystemMessage(s);return c===null?null:{...c}}return null},this.constructSystemMessage=s=>{if(!s||!s.systemMessagePayload)return null;switch(s.systemMessagePayload.type){case"state_checkpoint":return{id:s.publicId,type:"SYSTEM",subtype:"state_checkpoint",data:{payload:s.systemMessagePayload.payload},timestamp:s.sentAt||"",attachments:void 0};case"csat_requested":return{id:s.publicId,type:"SYSTEM",subtype:"csat_requested",data:{payload:void 0},timestamp:s.sentAt||"",attachments:void 0};case"csat_submitted":return{id:s.publicId,type:"SYSTEM",subtype:"csat_submitted",data:{payload:{score:s.systemMessagePayload.payload.score??void 0,feedback:s.systemMessagePayload.payload.feedback??void 0}},timestamp:s.sentAt||"",attachments:void 0};case"none":return null;default:return ci(s.systemMessagePayload,this.constructSystemMessage.name),null}},this.extractActionResult=s=>{const o=s.result;if(o===null||typeof o!="object")return o;if("responseBodyText"in o&&typeof o.responseBodyText=="string"){const l=o.responseBodyText,u=fL(()=>JSON.parse(l)).data;if(u)return u}return s.result},this.api=t,this.config=n,this.sessionCtx=i,this.messageCtx=r,this.sessionPollingIntervalSeconds=a,this.registerPolling()}}let hL=class{constructor({config:t,api:n,storageCtx:i}){var r;this.shouldCollectData=()=>{var a;return!!(!((a=this.state.get().contact)!=null&&a.token)&&this.config.collectUserData)},this.autoCreateUnverifiedUserIfNotExists=async()=>{var a,s,o,l,u,c,f,d,h,g,b,T,m,y;if(!((a=this.config.user)!=null&&a.token)){if(this.config.collectUserData&&!((o=(s=this.config.user)==null?void 0:s.data)!=null&&o.email)){if((l=this.config.extraDataCollectionFields)!=null&&l.length)return;const x=await((u=this.storageCtx)==null?void 0:u.getContactToken());x&&await this.setUnverifiedContact(x);return}if(!((f=(c=this.config.user)==null?void 0:c.data)!=null&&f.email)){const x=await((d=this.storageCtx)==null?void 0:d.getContactToken());if(x){await this.setUnverifiedContact(x);return}}await this.createUnverifiedContact({email:(g=(h=this.config.user)==null?void 0:h.data)==null?void 0:g.email,non_verified_name:((T=(b=this.config.user)==null?void 0:b.data)==null?void 0:T.name)||"Anonymous",non_verified_custom_data:(y=(m=this.config.user)==null?void 0:m.data)==null?void 0:y.customData})}},this.createUnverifiedContact=async(a,s)=>{this.state.setPartial({extraCollectedData:s});try{this.state.setPartial({isCreatingUnverifiedContact:!0,isErrorCreatingUnverifiedContact:!1});const{data:o}=await this.api.createUnverifiedContact(a);o!=null&&o.token?await this.setUnverifiedContact(o.token):this.state.setPartial({isErrorCreatingUnverifiedContact:!0})}finally{this.state.setPartial({isCreatingUnverifiedContact:!1})}},this.setUnverifiedContact=async a=>{var s,o,l,u;const c=await((s=this.storageCtx)==null?void 0:s.getExternalContactId()),f=((o=this.config.user)==null?void 0:o.externalId)||c||X0();this.api.setAuthToken(a),await((l=this.storageCtx)==null?void 0:l.setContactToken(a)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(f)),this.state.setPartial({contact:{token:a,externalId:f}})},this.config=t,this.storageCtx=i,this.api=n,this.state=new Co({contact:(r=t.user)!=null&&r.token?{token:t.user.token,externalId:t.user.externalId}:null,extraCollectedData:void 0,isCreatingUnverifiedContact:!1,isErrorCreatingUnverifiedContact:!1}),this.autoCreateUnverifiedUserIfNotExists()}};function Eu(){return X0()}class pL{constructor({config:t,api:n,sessionCtx:i,messageCtx:r}){this.submitCsat=async a=>{var s;const o=(s=this.sessionCtx.sessionState.get().session)==null?void 0:s.id;if(!o)return{data:null,error:"No session id found"};const l=Eu();this.messageCtx.state.setPartial({messages:[...this.messageCtx.state.get().messages,{id:l,type:"SYSTEM",subtype:"csat_submitted",timestamp:new Date().toISOString(),data:{payload:{score:a.score,feedback:a.feedback}}}]});const{data:u,error:c}=await this.api.submitCsat({...a,system_message_uuid:l,session_id:o});return{data:u,error:c}},this.config=t,this.api=n,this.sessionCtx=i,this.messageCtx=r}}let mL=class{constructor({config:t,api:n,contactCtx:i,sessionsPollingIntervalSeconds:r}){this.sessionsRefresher=new xw,this.sessionState=new Co({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new Co({data:[],cursor:void 0,isLastPage:!1,didStartInitialFetch:!1,isInitialFetchLoading:!0}),this.reset=async()=>{this.sessionState.reset()},this.registerSessionsRefresherWrapper=()=>{var a;(a=this.contactCtx.state.get().contact)!=null&&a.token&&!this.sessionsState.get().didStartInitialFetch?this.registerSessionsRefresher():this.contactCtx.state.subscribe(({contact:s})=>{s!=null&&s.token&&!this.sessionsState.get().didStartInitialFetch&&this.registerSessionsRefresher()})},this.registerSessionsRefresher=()=>{this.sessionsRefresher.startPolling(async()=>{this.sessionsState.get().didStartInitialFetch===!1&&this.sessionsState.setPartial({didStartInitialFetch:!0}),await this.refreshSessions(),this.sessionsState.get().isInitialFetchLoading===!0&&this.sessionsState.setPartial({isInitialFetchLoading:!1})},this.sessionsPollingIntervalSeconds*1e3)},this.createSession=async()=>{var a;this.sessionState.setPartial({session:null,isCreatingSession:!0});const s=(a=this.contactCtx.state.get().contact)==null?void 0:a.externalId,o={...this.config.sessionCustomData,...s?{external_id:s}:{}},{data:l,error:u}=await this.api.createSession({customData:Object.keys(o).length>0?o:void 0});return l?(this.sessionState.setPartial({session:l,isCreatingSession:!1}),l):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",u),null)},this.loadMoreSessions=async()=>{if(this.sessionsState.get().isLastPage)return;const{data:a}=await this.getSessions({cursor:this.sessionsState.get().cursor});if(a){const s=[...this.sessionsState.get().data,...a.items].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s,cursor:a.next||void 0,isLastPage:a.next===null})}},this.getSessions=async({cursor:a})=>{var s,o;if(!((s=this.contactCtx.state.get().contact)!=null&&s.token))return{data:null};const l=(o=this.contactCtx.state.get().contact)==null?void 0:o.externalId;return await this.api.getSessions({cursor:a,filters:l?{external_id:l}:{}})},this.setSessions=a=>{const s=[...a,...this.sessionsState.get().data].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s})},this.refreshSessions=async()=>{const{data:a}=await this.getSessions({cursor:void 0});a&&this.setSessions(a.items)},this.resolveSession=async()=>{const a=this.sessionState.get().session;if(!a||!a.isOpened)return{success:!1,error:"Session is not opened"};this.sessionState.setPartial({isResolvingSession:!0});const{data:s,error:o}=await this.api.resolveSession({session_id:a.id});return s?(this.sessionState.setPartial({session:s,isResolvingSession:!1}),{success:!0,data:s}):(this.sessionState.setPartial({isResolvingSession:!1}),{success:!1,error:o})},this.createStateCheckpoint=async a=>{var s;const o=(s=this.sessionState.get().session)==null?void 0:s.id;if(!o)return;const{data:l,error:u}=await this.api.createStateCheckpoint({session_id:o,payload:a});return l?{data:l}:{success:!1,error:u}},this.config=t,this.api=n,this.contactCtx=i,this.sessionsPollingIntervalSeconds=r,this.registerSessionsRefresherWrapper()}},gL=class{constructor({config:t,api:n,sessionCtx:i,contactCtx:r}){this.state=new Co({messages:[],isSendingMessage:!1,lastAIResMightSolveUserIssue:!1,isInitialFetchLoading:!1}),this.sendMessageAbortController=new AbortController,this.reset=()=>{this.sendMessageAbortController.abort("Resetting chat"),this.state.reset()},this.sendMessage=async a=>{var s,o,l,u,c,f,d,h,g,b;try{if(!a.content.trim()&&(!a.attachments||a.attachments.length===0)){console.warn("Cannot send an empty message of no content or attachments");return}const T=this.state.get().isSendingMessage,m=((s=this.sessionCtx.sessionState.get().session)==null?void 0:s.assignee.kind)==="ai",y=this.state.get().messages,x=y.length>0?y[y.length-1]:void 0;if(m&&T||m&&(x==null?void 0:x.type)==="USER"){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController=new AbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1}),this.state.setPartial({isSendingMessage:!0});const w=this.state.get().messages,S=!((o=this.sessionCtx.sessionState.get().session)!=null&&o.id)&&w.length===0&&((l=this.config.advancedInitialMessages)==null?void 0:l.some(R=>R.persistent)),k=S?(this.config.advancedInitialMessages||[]).filter(R=>R.persistent).map(R=>({id:Eu(),component:"bot_message",type:"AI",timestamp:new Date().toISOString(),data:{message:R.message}})):[],D=this.toUserMessage(a.content.trim(),a.attachments||void 0);if(this.state.setPartial({messages:[...k,...w,D]}),!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const L=(c=this.sessionCtx.sessionState.get().session)==null?void 0:c.id;if(!L)return;const{data:B}=await this.api.sendMessage({uuid:D.id,bot_token:this.config.token,headers:this.config.headers,query_params:this.config.queryParams,body_properties:this.config.bodyProperties,session_id:L,content:D.content,attachments:a.attachments,clientContext:this.config.context,custom_data:{...this.config.messageCustomData||{},...a.customData||{}},language:this.config.language,exit_mode_prompt:a.exitModePrompt,initial_messages:S?k.map(R=>({uuid:R.id,content:R.data.message})):void 0},this.sendMessageAbortController.signal);if(B!=null&&B.success){const R=this.toBotMessage(B);if(R){const Y=this.state.get().messages;if(Y.some(j=>j.id===R.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((f=B.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((d=B.uiResponse)==null?void 0:d.mightSolveUserIssue)});return}this.state.setPartial({messages:[...Y,R],lastAIResMightSolveUserIssue:((h=B.autopilotResponse)==null?void 0:h.mightSolveUserIssue)||((g=B.uiResponse)==null?void 0:g.mightSolveUserIssue)})}B.session&&this.sessionCtx.sessionState.setPartial({session:B.session})}else{const R=this.toBotErrorMessage(((b=B==null?void 0:B.error)==null?void 0:b.message)||"Unknown error occurred"),Y=this.state.get().messages;this.state.setPartial({messages:[...Y,R]})}}catch(T){this.sendMessageAbortController.signal.aborted||console.error("Failed to send message:",T)}finally{this.state.setPartial({isSendingMessage:!1})}},this.toUserMessage=(a,s)=>{const o=(()=>{const l=this.contactCtx.state.get().extraCollectedData;return this.state.get().messages.length===0&&l&&Object.keys(l).length>0?`${Object.entries(l).filter(([u,c])=>!!c).map(([u,c])=>`${u}: ${c}`).join(`
|
|
90
|
-
`)}
|
|
91
|
-
|
|
92
|
-
${a}`:a})();return{id:Eu(),type:"USER",content:o,deliveredAt:new Date().toISOString(),attachments:s,timestamp:new Date().toISOString()}},this.toBotMessage=a=>{var s;return a.success&&a.autopilotResponse?{type:"AI",id:a.autopilotResponse.id||Eu(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatar:this.config.bot.avatar||"",id:null}:void 0,data:{message:a.autopilotResponse.value.content,action:(s=a.uiResponse)!=null&&s.value.name?{name:a.uiResponse.value.name,data:a.uiResponse.value.request_response}:void 0}}:null},this.toBotErrorMessage=a=>({type:"AI",id:Eu(),timestamp:new Date().toISOString(),component:"TEXT",data:{message:a,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=i,this.contactCtx=r}},bL=class{constructor({config:t,contactCtx:n,sessionCtx:i,resetChat:r}){var a;this.registerRoutingListener=()=>{this.contactCtx.state.subscribe(({contact:s})=>{var o;s!=null&&s.token&&this.state.get().screen==="welcome"&&this.state.setPartial({screen:(o=this.config.router)!=null&&o.chatScreenOnly?"chat":"sessions"})}),this.sessionCtx.sessionsState.subscribe(({isInitialFetchLoading:s,data:o})=>{var l,u,c,f;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const d=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return d?this.toChatScreen(d):void 0}o.length||((f=this.config.router)==null?void 0:f.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{if(this.resetChat(),s){const o=this.sessionCtx.sessionsState.get().data.find(l=>l.id===s);if(!o)return;this.sessionCtx.sessionState.setPartial({session:o})}this.state.setPartial({screen:"chat"})},this.config=t,this.contactCtx=n,this.sessionCtx=i,this.resetChat=r,this.state=new Co({screen:this.contactCtx.shouldCollectData()?"welcome":(a=this.config.router)!=null&&a.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},yL=class{constructor({storage:t,config:n}){this.KEYS={contactToken:i=>`opencx-widget:org-token-${i}:contact-token`,externalContactId:i=>`opencx-widget:org-token-${i}:external-contact-id`},this.setContactToken=async i=>{await this.storage.set(this.KEYS.contactToken(this.config.token),i)},this.getContactToken=async()=>this.storage.get(this.KEYS.contactToken(this.config.token)),this.setExternalContactId=async i=>{await this.storage.set(this.KEYS.externalContactId(this.config.token),i)},this.getExternalContactId=async()=>this.storage.get(this.KEYS.externalContactId(this.config.token)),this.storage=t,this.config=n}};const Tu=class zh{constructor({config:t,storage:n,modes:i,org:r}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!zh.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.org=r,this.api=new vw({config:t}),this.storageCtx=n?new yL({storage:n,config:t}):void 0,this.modes=i,this.contactCtx=new hL({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new mL({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:zh.pollingIntervalsSeconds.sessions}),this.messageCtx=new gL({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.csatCtx=new pL({config:this.config,api:this.api,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx}),this.activeSessionPollingCtx=new dL({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:zh.pollingIntervalsSeconds.session}),this.routerCtx=new bL({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};Tu.pollingIntervalsSeconds=null,Tu.initialize=async({config:e,storage:t})=>{var n,i,r;const a=await new vw({config:e}).getExternalWidgetConfig();if(!a.data)throw new Error("Failed to fetch widget config");return Tu.pollingIntervalsSeconds={session:((n=a.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((i=a.data)==null?void 0:i.sessionsPollingIntervalSeconds)||60},new Tu({config:e,storage:t,modes:((r=a.data)==null?void 0:r.modes)||[],org:{id:a.data.org.id,name:a.data.org.name}})};let vL=Tu;const xL="4.0.15";class EL{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(i=>this.register(i)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(i=>i.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(i=>i.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const Ew=E.createContext(null);function TL({options:e,children:t,components:n,storage:i,loadingComponent:r}){const a=E.useRef(null),s=E.useRef(!1),[o,l]=E.useState(null),u=E.useMemo(()=>new EL({components:n}),[n]);return E.useEffect(()=>{s.current||(s.current=!0,vL.initialize({config:e,storage:i}).then(l).catch(console.error))},[]),o?Rn.createElement(Ew.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:xL,contentIframeRef:a}},t):r||null}function Ut(){const e=E.useContext(Ew);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function tt(){const{config:e}=Ut();return e}function wu(e){return E.useSyncExternalStore(e.subscribe,e.get,e.get)}function wL(){const{widgetCtx:e}=Ut();return{contactState:wu(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function $0(){const[e,t]=E.useState("ltr");return E.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle((window.top||window).document.body).direction)};n();const i=new MutationObserver(n);return i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),i.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{i.disconnect(),window.removeEventListener("languagechange",n)}},[]),{dir:e}}function fi(){const{widgetCtx:e}=Ut();return{messagesState:wu(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function Ki(){const{widgetCtx:e}=Ut(),{oneOpenSessionAllowed:t}=tt(),n=wu(e.sessionCtx.sessionState),i=wu(e.sessionCtx.sessionsState),{openSessions:r,closedSessions:a}=E.useMemo(()=>({openSessions:i.data.filter(o=>o.isOpened===!0),closedSessions:i.data.filter(o=>o.isOpened===!1)}),[i.data]),s=E.useMemo(()=>t?r.length===0:!0,[t,r.length]);return{sessionState:n,sessionsState:i,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:r,closedSessions:a,canCreateNewSession:s}}function Tw(){var e;const{sessionState:t}=Ki(),{messagesState:n}=fi(),i=((e=t.session)==null?void 0:e.assignee.kind)==="ai",r=n.messages.length>0?n.messages[n.messages.length-1]:null,a=(r==null?void 0:r.type)==="USER";return{isAwaitingBotReply:(i||t.isCreatingSession)&&(n.isSendingMessage||a)}}function _r(){const{widgetCtx:e}=Ut();return{routerState:wu(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const ma=new Map;function _L(){const[e,t]=E.useState([]),{widgetCtx:{api:n}}=Ut();function i(c){const f=c.map(d=>({file:d,id:X0(),status:"pending",progress:0}));t(d=>[...d,...f]),f.forEach(s)}function r(c,f){t(d=>d.map(h=>h.id===c?{...h,...f}:h))}function a(c){t(f=>f.filter(d=>d.id!==c))}const s=async c=>{const f=new AbortController;ma.set(c.id,f);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const d=await n.uploadFile({file:c.file,abortSignal:f.signal,onProgress:h=>{r(c.id,{progress:h})}});r(c.id,{status:"success",fileUrl:d.fileUrl,progress:100})}catch(d){f.signal.aborted||r(c.id,{status:"error",error:d instanceof Error?d.message:"Upload failed",progress:0})}finally{ma.delete(c.id)}},o=c=>{const f=ma.get(c);f&&(f.abort(),ma.delete(c)),a(c)},l=E.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){ma.forEach(c=>c.abort()),ma.clear(),t([])}return E.useEffect(()=>()=>{ma.forEach(c=>c.abort()),ma.clear()},[]),{allFiles:e,appendFiles:i,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(f=>f.id===c),getUploadProgress:c=>{var f;return((f=e.find(d=>d.id===c))==null?void 0:f.progress)??0},getUploadStatus:c=>{var f;return(f=e.find(d=>d.id===c))==null?void 0:f.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const ww=E.createContext(null);function SL({children:e}){const t=tt(),[n,i]=E.useState(()=>t.inline?!0:t.isOpen??!1);return E.useEffect(()=>{i(r=>t.isOpen??r)},[t.isOpen]),E.useEffect(()=>{const r=t.openAfterNSeconds;if(typeof r!="number"||isNaN(r))return;const a=setTimeout(()=>i(!0),r*1e3);return()=>clearTimeout(a)},[t.openAfterNSeconds]),Rn.createElement(ww.Provider,{value:{isOpen:n,setIsOpen:i}},e)}function ko(){const e=E.useContext(ww);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function _w(){var e,t;const{widgetCtx:n}=Ut(),{modesComponents:i}=tt(),{sessionState:r}=Ki(),a=n.modes,s=(e=r.session)==null?void 0:e.modeId,o=a.find(u=>u.id===s),l=(t=i==null?void 0:i.find(u=>{var c,f;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((f=o==null?void 0:o.slug)==null?void 0:f.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:a,modesComponents:i,activeModeId:s,activeMode:o,Component:l}}function Sw(){const{widgetCtx:e}=Ut(),{messagesState:{messages:t}}=fi(),{csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:r,isCsatSubmitted:a,submittedScore:s,submittedFeedback:o}=E.useMemo(()=>{const l=t.find(c=>c.type==="SYSTEM"&&c.subtype==="csat_requested"),u=t.findLast(c=>c.type==="SYSTEM"&&c.subtype==="csat_submitted");return{csatRequestedMessage:l,isCsatRequested:!!l&&!u,csatSubmittedMessage:u,isCsatSubmitted:!!u,submittedScore:u==null?void 0:u.data.payload.score,submittedFeedback:u==null?void 0:u.data.payload.feedback}},[t]);return{submitCsat:e.csatCtx.submitCsat,csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:r,isCsatSubmitted:a,submittedScore:s,submittedFeedback:o}}function je(e){return{"data-component":e}}function Aw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Aw(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Cw(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Aw(e))&&(i&&(i+=" "),i+=t);return i}const K0="-",AL=e=>{const t=kL(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const o=s.split(K0);return o[0]===""&&o.length!==1&&o.shift(),kw(o,t)||CL(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&i[s]?[...l,...i[s]]:l}}},kw=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?kw(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(K0);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},Ow=/^\[(.+)\]$/,CL=e=>{if(Ow.test(e)){const t=Ow.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},kL=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return RL(Object.entries(e.classGroups),n).forEach(([a,s])=>{Q0(s,i,a,t)}),i},Q0=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:Rw(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(OL(r)){Q0(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,s])=>{Q0(s,Rw(t,a),n,i)})})},Rw=(e,t)=>{let n=e;return t.split(K0).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},OL=e=>e.isThemeGetter,RL=(e,t)=>t?e.map(([n,i])=>{const r=i.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[t+s,o])):a);return[n,r]}):e,NL=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=i.get(a))!==void 0)return r(a,s),s},set(a,s){n.has(a)?n.set(a,s):r(a,s)}}},Nw="!",DL=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,r=t[0],a=t.length,s=o=>{const l=[];let u=0,c=0,f;for(let T=0;T<o.length;T++){let m=o[T];if(u===0){if(m===r&&(i||o.slice(T,T+a)===t)){l.push(o.slice(c,T)),c=T+a;continue}if(m==="/"){f=T;continue}}m==="["?u++:m==="]"&&u--}const d=l.length===0?o:o.substring(c),h=d.startsWith(Nw),g=h?d.substring(1):d,b=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},ML=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},LL=e=>({cache:NL(e.cacheSize),parseClassName:DL(e),...AL(e)}),IL=/\s+/,PL=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,a=[],s=e.trim().split(IL);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=n(u);let g=!!h,b=i(g?d.substring(0,h):d);if(!b){if(!g){o=u+(o.length>0?" "+o:o);continue}if(b=i(d),!b){o=u+(o.length>0?" "+o:o);continue}g=!1}const T=ML(c).join(":"),m=f?T+Nw:T,y=m+b;if(a.includes(y))continue;a.push(y);const x=r(b,g);for(let w=0;w<x.length;++w){const S=x[w];a.push(m+S)}o=u+(o.length>0?" "+o:o)}return o};function BL(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dw(t))&&(i&&(i+=" "),i+=n);return i}const Dw=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Dw(e[i]))&&(n&&(n+=" "),n+=t);return n};function UL(e,...t){let n,i,r,a=s;function s(l){const u=t.reduce((c,f)=>f(c),e());return n=LL(u),i=n.cache.get,r=n.cache.set,a=o,o(l)}function o(l){const u=i(l);if(u)return u;const c=PL(l,n);return r(l,c),c}return function(){return a(BL.apply(null,arguments))}}const nt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mw=/^\[(?:([a-z-]+):)?(.+)\]$/i,zL=/^\d+\/\d+$/,jL=new Set(["px","full","screen"]),HL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FL=/\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$/,VL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,YL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>Oo(e)||jL.has(e)||zL.test(e),ga=e=>Ro(e,"length",JL),Oo=e=>!!e&&!Number.isNaN(Number(e)),W0=e=>Ro(e,"number",Oo),_u=e=>!!e&&Number.isInteger(Number(e)),GL=e=>e.endsWith("%")&&Oo(e.slice(0,-1)),Te=e=>Mw.test(e),ba=e=>HL.test(e),XL=new Set(["length","size","percentage"]),$L=e=>Ro(e,XL,Lw),KL=e=>Ro(e,"position",Lw),QL=new Set(["image","url"]),WL=e=>Ro(e,QL,t8),ZL=e=>Ro(e,"",e8),Su=()=>!0,Ro=(e,t,n)=>{const i=Mw.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},JL=e=>FL.test(e)&&!VL.test(e),Lw=()=>!1,e8=e=>YL.test(e),t8=e=>qL.test(e),n8=UL(()=>{const e=nt("colors"),t=nt("spacing"),n=nt("blur"),i=nt("brightness"),r=nt("borderColor"),a=nt("borderRadius"),s=nt("borderSpacing"),o=nt("borderWidth"),l=nt("contrast"),u=nt("grayscale"),c=nt("hueRotate"),f=nt("invert"),d=nt("gap"),h=nt("gradientColorStops"),g=nt("gradientColorStopPositions"),b=nt("inset"),T=nt("margin"),m=nt("opacity"),y=nt("padding"),x=nt("saturate"),w=nt("scale"),S=nt("sepia"),k=nt("skew"),D=nt("space"),L=nt("translate"),B=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Te,t],j=()=>[Te,t],re=()=>["",Sr,ga],ee=()=>["auto",Oo,Te],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Te],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[Oo,Te];return{cacheSize:500,separator:":",theme:{colors:[Su],spacing:[Sr,ga],blur:["none","",ba,Te],brightness:ge(),borderColor:[e],borderRadius:["none","","full",ba,Te],borderSpacing:j(),borderWidth:re(),contrast:ge(),grayscale:te(),hueRotate:ge(),invert:te(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[GL,ga],inset:Y(),margin:Y(),opacity:ge(),padding:j(),saturate:ge(),scale:ge(),sepia:te(),skew:ge(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[ba]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:[...Q(),Te]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],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",_u,Te]}],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",Te]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",_u,Te]}],"grid-cols":[{"grid-cols":[Su]}],"col-start-end":[{col:["auto",{span:["full",_u,Te]},Te]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[Su]}],"row-start-end":[{row:["auto",{span:[_u,Te]},Te]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[ba]},ba]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ba,ga]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",W0]}],"font-family":[{font:[Su]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Oo,W0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sr,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sr,ga]}],"underline-offset":[{"underline-offset":["auto",Sr,Te]}],"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:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],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",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),KL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$L]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},WL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],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":[m]}],"border-style":[{border:[...F(),"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":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Sr,Te]}],"outline-w":[{outline:[Sr,ga]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Sr,ga]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ba,ZL]}],"shadow-color":[{shadow:[Su]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ba,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",Te]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[_u,Te]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],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",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sr,ga,W0]}],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-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"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"]}}});function ce(...e){return n8(Cw(e))}const No={x:2,y:2},Ar=E.memo(E.forwardRef(({children:e,className:t,scale:n=1.02,off:i=!1},r)=>{const[a,s]=E.useState(!1),[o,l]=E.useState({x:0,y:0});if(i||/translate/.test(e.props.className||""))return e;const c=g=>{var L,B;const{clientX:b,clientY:T}=g,m=g.currentTarget.getBoundingClientRect(),y=b-(m.left+m.width/2),x=T-(m.top+m.height/2),w=Math.max(-1,Math.min(1,y/(m.width/2))),S=Math.max(-1,Math.min(1,x/(m.height/2))),k=w*No.x,D=S*No.y;l({x:k,y:D}),(B=(L=e.props).onMouseMove)==null||B.call(L,g)},f=()=>{var g,b;s(!0),(b=(g=e.props).onMouseEnter)==null||b.call(g)},d=()=>{var g,b;s(!1),l({x:0,y:0}),(b=(g=e.props).onMouseLeave)==null||b.call(g)},h={"--wobble-x":a?`${o.x}px`:"0px","--wobble-y":a?`${o.y}px`:"0px","--scale":1-(n-1)};return E.cloneElement(e,{ref:r,onMouseMove:c,onMouseEnter:f,onMouseLeave:d,style:{...h,...e.props.style},className:ce("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",t,e.props.className,"transition-all ease-out")})}));Ar.displayName="Wobble";const Z0=E.createContext({});function J0(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const xd=E.createContext(null),eg=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class i8 extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function r8({children:e,isPresent:t}){const n=E.useId(),i=E.useRef(null),r=E.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=E.useContext(eg);return E.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:u}=r.current;if(t||!i.current||!s||!o)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
93
|
-
[data-motion-pop-id="${n}"] {
|
|
94
|
-
position: absolute !important;
|
|
95
|
-
width: ${s}px !important;
|
|
96
|
-
height: ${o}px !important;
|
|
97
|
-
top: ${l}px !important;
|
|
98
|
-
left: ${u}px !important;
|
|
99
|
-
}
|
|
100
|
-
`),()=>{document.head.removeChild(c)}},[t]),v.jsx(i8,{isPresent:t,childRef:i,sizeRef:r,children:E.cloneElement(e,{ref:i})})}const a8=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:a,mode:s})=>{const o=J0(s8),l=E.useId(),u=E.useCallback(f=>{o.set(f,!0);for(const d of o.values())if(!d)return;i&&i()},[o,i]),c=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:f=>(o.set(f,!1),()=>o.delete(f))}),a?[Math.random(),u]:[n,u]);return E.useMemo(()=>{o.forEach((f,d)=>o.set(d,!1))},[n]),E.useEffect(()=>{!n&&!o.size&&i&&i()},[n]),s==="popLayout"&&(e=v.jsx(r8,{isPresent:n,children:e})),v.jsx(xd.Provider,{value:c,children:e})};function s8(){return new Map}function Iw(e=!0){const t=E.useContext(xd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,a=E.useId();E.useEffect(()=>{e&&r(a)},[e]);const s=E.useCallback(()=>e&&i&&i(a),[a,i,e]);return!n&&i?[!1,s]:[!0]}const Ed=e=>e.key||"";function Pw(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const tg=typeof window<"u",Bw=tg?E.useLayoutEffect:E.useEffect,zt=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:a="sync",propagate:s=!1})=>{const[o,l]=Iw(s),u=E.useMemo(()=>Pw(e),[e]),c=s&&!o?[]:u.map(Ed),f=E.useRef(!0),d=E.useRef(u),h=J0(()=>new Map),[g,b]=E.useState(u),[T,m]=E.useState(u);Bw(()=>{f.current=!1,d.current=u;for(let w=0;w<T.length;w++){const S=Ed(T[w]);c.includes(S)?h.delete(S):h.get(S)!==!0&&h.set(S,!1)}},[T,c.length,c.join("-")]);const y=[];if(u!==g){let w=[...u];for(let S=0;S<T.length;S++){const k=T[S],D=Ed(k);c.includes(D)||(w.splice(S,0,k),y.push(k))}a==="wait"&&y.length&&(w=y),m(Pw(w)),b(u);return}const{forceRender:x}=E.useContext(Z0);return v.jsx(v.Fragment,{children:T.map(w=>{const S=Ed(w),k=s&&!o?!1:u===T||c.includes(S),D=()=>{if(h.has(S))h.set(S,!0);else return;let L=!0;h.forEach(B=>{B||(L=!1)}),L&&(x==null||x(),m(d.current),s&&(l==null||l()),i&&i())};return v.jsx(a8,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:r,mode:a,onExitComplete:k?void 0:D,children:w},S)})})},Vn=e=>e;let Uw=Vn;function ng(e){let t;return()=>(t===void 0&&(t=e()),t)}const Do=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},Cr=e=>e*1e3,kr=e=>e/1e3,o8={useManualTiming:!1};function l8(e){let t=new Set,n=new Set,i=!1,r=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){a.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&i?t:n;return c&&a.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),a.delete(u)},process:u=>{if(s=u,i){r=!0;return}i=!0,[t,n]=[n,t],t.forEach(o),t.clear(),i=!1,r&&(r=!1,l.process(u))}};return l}const Td=["read","resolveKeyframes","update","preRender","render","postRender"],u8=40;function zw(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Td.reduce((m,y)=>(m[y]=l8(a),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,h=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,u8),1),r.timestamp=m,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),c.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(h))},g=()=>{n=!0,i=!0,r.isProcessing||e(h)};return{schedule:Td.reduce((m,y)=>{const x=s[y];return m[y]=(w,S=!1,k=!1)=>(n||g(),x.schedule(w,S,k)),m},{}),cancel:m=>{for(let y=0;y<Td.length;y++)s[Td[y]].cancel(m)},state:r,steps:s}}const{schedule:it,cancel:ya,state:Wt,steps:ig}=zw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vn,!0),jw=E.createContext({strict:!1}),Hw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Mo={};for(const e in Hw)Mo[e]={isEnabled:t=>Hw[e].some(n=>!!t[n])};function c8(e){for(const t in e)Mo[t]={...Mo[t],...e[t]}}const f8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||f8.has(e)}let Fw=e=>!wd(e);function d8(e){e&&(Fw=t=>t.startsWith("on")?!wd(t):e(t))}try{d8(require("@emotion/is-prop-valid").default)}catch{}function h8(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Fw(r)||n===!0&&wd(r)||!t&&!wd(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function p8(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const _d=E.createContext({});function Au(e){return typeof e=="string"||Array.isArray(e)}function Sd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const rg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ag=["initial",...rg];function Ad(e){return Sd(e.animate)||ag.some(t=>Au(e[t]))}function Vw(e){return!!(Ad(e)||e.variants)}function m8(e,t){if(Ad(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Au(n)?n:void 0,animate:Au(i)?i:void 0}}return e.inherit!==!1?t:{}}function g8(e){const{initial:t,animate:n}=m8(e,E.useContext(_d));return E.useMemo(()=>({initial:t,animate:n}),[Yw(t),Yw(n)])}function Yw(e){return Array.isArray(e)?e.join(" "):e}const b8=Symbol.for("motionComponentSymbol");function Lo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y8(e,t,n){return E.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Lo(n)&&(n.current=i))},[t])}const sg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qw="data-"+sg("framerAppearId"),{schedule:og}=zw(queueMicrotask,!1),Gw=E.createContext({});function v8(e,t,n,i,r){var a,s;const{visualElement:o}=E.useContext(_d),l=E.useContext(jw),u=E.useContext(xd),c=E.useContext(eg).reducedMotion,f=E.useRef(null);i=i||l.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,h=E.useContext(Gw);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&x8(f.current,n,r,h);const g=E.useRef(!1);E.useInsertionEffect(()=>{d&&g.current&&d.update(n,u)});const b=n[qw],T=E.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return Bw(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),og.render(d.render),T.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!T.current&&d.animationState&&d.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),T.current=!1))}),d}function x8(e,t,n,i){const{layoutId:r,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xw(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!s||o&&Lo(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function Xw(e){if(e)return e.options.allowProjection!==!1?e.projection:Xw(e.parent)}function E8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){var a,s;e&&c8(e);function o(u,c){let f;const d={...E.useContext(eg),...u,layoutId:T8(u)},{isStatic:h}=d,g=g8(u),b=i(u,h);if(!h&&tg){w8();const T=_8(d);f=T.MeasureLayout,g.visualElement=v8(r,b,d,t,T.ProjectionNode)}return v.jsxs(_d.Provider,{value:g,children:[f&&g.visualElement?v.jsx(f,{visualElement:g.visualElement,...d}):null,n(r,u,y8(b,g.visualElement,c),b,h,g.visualElement)]})}o.displayName=`motion.${typeof r=="string"?r:`create(${(s=(a=r.displayName)!==null&&a!==void 0?a:r.name)!==null&&s!==void 0?s:""})`}`;const l=E.forwardRef(o);return l[b8]=r,l}function T8({layoutId:e}){const t=E.useContext(Z0).id;return t&&e!==void 0?t+"-"+e:e}function w8(e,t){E.useContext(jw).strict}function _8(e){const{drag:t,layout:n}=Mo;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const S8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function lg(e){return typeof e!="string"||e.includes("-")?!1:!!(S8.indexOf(e)>-1||/[A-Z]/u.test(e))}function $w(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function ug(e,t,n,i){if(typeof t=="function"){const[r,a]=$w(i);t=t(n!==void 0?n:e.custom,r,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,a]=$w(i);t=t(n!==void 0?n:e.custom,r,a)}return t}const cg=e=>Array.isArray(e),A8=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),C8=e=>cg(e)?e[e.length-1]||0:e,nn=e=>!!(e&&e.getVelocity);function Cd(e){const t=nn(e)?e.get():e;return A8(t)?t.toValue():t}function k8({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,r,a){const s={latestValues:O8(i,r,a,e),renderState:t()};return n&&(s.onMount=o=>n({props:i,current:o,...s}),s.onUpdate=o=>n(o)),s}const Kw=e=>(t,n)=>{const i=E.useContext(_d),r=E.useContext(xd),a=()=>k8(e,t,i,r);return n?a():J0(a)};function O8(e,t,n,i){const r={},a=i(e,{});for(const d in a)r[d]=Cd(a[d]);let{initial:s,animate:o}=e;const l=Ad(e),u=Vw(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?o:s;if(f&&typeof f!="boolean"&&!Sd(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const g=ug(e,d[h]);if(g){const{transitionEnd:b,transition:T,...m}=g;for(const y in m){let x=m[y];if(Array.isArray(x)){const w=c?x.length-1:0;x=x[w]}x!==null&&(r[y]=x)}for(const y in b)r[y]=b[y]}}}return r}const Io=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rs=new Set(Io),Qw=e=>t=>typeof t=="string"&&t.startsWith(e),Ww=Qw("--"),R8=Qw("var(--"),fg=e=>R8(e)?N8.test(e.split("/*")[0].trim()):!1,N8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Or=(e,t,n)=>n>t?t:n<e?e:n,Po={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Cu={...Po,transform:e=>Or(0,1,e)},kd={...Po,default:1},ku=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),va=ku("deg"),Qi=ku("%"),he=ku("px"),D8=ku("vh"),M8=ku("vw"),Jw={...Qi,parse:e=>Qi.parse(e)/100,transform:e=>Qi.transform(e*100)},L8={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,backgroundPositionX:he,backgroundPositionY:he},I8={rotate:va,rotateX:va,rotateY:va,rotateZ:va,scale:kd,scaleX:kd,scaleY:kd,scaleZ:kd,skew:va,skewX:va,skewY:va,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Cu,originX:Jw,originY:Jw,originZ:he},e_={...Po,transform:Math.round},dg={...L8,...I8,zIndex:e_,size:he,fillOpacity:Cu,strokeOpacity:Cu,numOctaves:e_},P8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B8=Io.length;function U8(e,t,n){let i="",r=!0;for(let a=0;a<B8;a++){const s=Io[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=Zw(o,dg[s]);if(!l){r=!1;const c=P8[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function hg(e,t,n){const{style:i,vars:r,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(rs.has(l)){s=!0;continue}else if(Ww(l)){r[l]=u;continue}else{const c=Zw(u,dg[l]);l.startsWith("origin")?(o=!0,a[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=U8(t,e.transform,n):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=a;i.transformOrigin=`${l} ${u} ${c}`}}const z8={offset:"stroke-dashoffset",array:"stroke-dasharray"},j8={offset:"strokeDashoffset",array:"strokeDasharray"};function H8(e,t,n=1,i=0,r=!0){e.pathLength=1;const a=r?z8:j8;e[a.offset]=he.transform(-i);const s=he.transform(t),o=he.transform(n);e[a.array]=`${s} ${o}`}function t_(e,t,n){return typeof e=="string"?e:he.transform(t+n*e)}function F8(e,t,n){const i=t_(t,e.x,e.width),r=t_(n,e.y,e.height);return`${i} ${r}`}function pg(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,f){if(hg(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:g}=e;d.transform&&(g&&(h.transform=d.transform),delete d.transform),g&&(r!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=F8(g,r!==void 0?r:.5,a!==void 0?a:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),s!==void 0&&H8(d,s,o,l,!1)}const mg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),n_=()=>({...mg(),attrs:{}}),gg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function i_(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const a in n)e.style.setProperty(a,n[a])}const r_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function a_(e,t,n,i){i_(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(r_.has(r)?r:sg(r),t.attrs[r])}const Od={};function V8(e){Object.assign(Od,e)}function s_(e,{layout:t,layoutId:n}){return rs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Od[e]||e==="opacity")}function bg(e,t,n){var i;const{style:r}=e,a={};for(const s in r)(nn(r[s])||t.style&&nn(t.style[s])||s_(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(a[s]=r[s]);return a}function o_(e,t,n){const i=bg(e,t,n);for(const r in e)if(nn(e[r])||nn(t[r])){const a=Io.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[a]=e[r]}return i}function Y8(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const l_=["x","y","width","height","cx","cy","r"],q8={useVisualState:Kw({scrapeMotionValuesFromProps:o_,createRenderState:n_,onUpdate:({props:e,prevProps:t,current:n,renderState:i,latestValues:r})=>{if(!n)return;let a=!!e.drag;if(!a){for(const o in r)if(rs.has(o)){a=!0;break}}if(!a)return;let s=!t;if(t)for(let o=0;o<l_.length;o++){const l=l_[o];e[l]!==t[l]&&(s=!0)}s&&it.read(()=>{Y8(n,i),it.render(()=>{pg(i,r,gg(n.tagName),e.transformTemplate),a_(n,i)})})}})},G8={useVisualState:Kw({scrapeMotionValuesFromProps:bg,createRenderState:mg})};function u_(e,t,n){for(const i in t)!nn(t[i])&&!s_(i,n)&&(e[i]=t[i])}function X8({transformTemplate:e},t){return E.useMemo(()=>{const n=mg();return hg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $8(e,t){const n=e.style||{},i={};return u_(i,n,e),Object.assign(i,X8(e,t)),i}function K8(e,t){const n={},i=$8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}function Q8(e,t,n,i){const r=E.useMemo(()=>{const a=n_();return pg(a,t,gg(i),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};u_(a,e.style,e),r.style={...a,...r.style}}return r}function W8(e=!1){return(n,i,r,{latestValues:a},s)=>{const l=(lg(n)?Q8:K8)(i,a,s,n),u=h8(i,typeof n=="string",e),c=n!==E.Fragment?{...u,...l,ref:r}:{},{children:f}=i,d=E.useMemo(()=>nn(f)?f.get():f,[f]);return E.createElement(n,{...c,children:d})}}function Z8(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...lg(i)?q8:G8,preloadedFeatures:e,useRender:W8(r),createVisualElement:t,Component:i};return E8(s)}}function c_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function Rd(e,t,n){const i=e.getProps();return ug(i,t,n!==void 0?n:i.custom,e)}const J8=ng(()=>window.ScrollTimeline!==void 0);class eI{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t,n){const i=this.animations.map(r=>{if(J8()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,a)=>{r&&r(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class tI extends eI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function yg(e,t){return e?e[t]||e.default||e:void 0}const vg=2e4;function f_(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<vg;)t+=n,i=e.next(t);return t>=vg?1/0:t}function xg(e){return typeof e=="function"}function d_(e,t){e.timeline=t,e.onfinish=null}const Eg=e=>Array.isArray(e)&&typeof e[0]=="number",nI={linearEasing:void 0};function iI(e,t){const n=ng(e);return()=>{var i;return(i=nI[t])!==null&&i!==void 0?i:n()}}const Nd=iI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),h_=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let a=0;a<r;a++)i+=e(Do(0,r-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function p_(e){return!!(typeof e=="function"&&Nd()||!e||typeof e=="string"&&(e in Tg||Nd())||Eg(e)||Array.isArray(e)&&e.every(p_))}const Ou=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ou([0,.65,.55,1]),circOut:Ou([.55,0,1,.45]),backIn:Ou([.31,.01,.66,-.59]),backOut:Ou([.33,1.53,.69,.99])};function m_(e,t){if(e)return typeof e=="function"&&Nd()?h_(e,t):Eg(e)?Ou(e):Array.isArray(e)?e.map(n=>m_(n,t)||Tg.easeOut):Tg[e]}const Oi={x:!1,y:!1};function g_(){return Oi.x||Oi.y}function rI(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const a=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function b_(e,t){const n=rI(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function y_(e){return t=>{t.pointerType==="touch"||g_()||e(t)}}function aI(e,t,n={}){const[i,r,a]=b_(e,n),s=y_(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=y_(f=>{u(f),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,r)});return i.forEach(o=>{o.addEventListener("pointerenter",s,r)}),a}const v_=(e,t)=>t?e===t?!0:v_(e,t.parentElement):!1,wg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oI(e){return sI.has(e.tagName)||e.tabIndex!==-1}const Ru=new WeakSet;function x_(e){return t=>{t.key==="Enter"&&e(t)}}function _g(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const lI=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=x_(()=>{if(Ru.has(n))return;_g(n,"down");const r=x_(()=>{_g(n,"up")}),a=()=>_g(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function E_(e){return wg(e)&&!g_()}function uI(e,t,n={}){const[i,r,a]=b_(e,n),s=o=>{const l=o.currentTarget;if(!E_(o)||Ru.has(l))return;Ru.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!E_(h)||!Ru.has(l))&&(Ru.delete(l),typeof u=="function"&&u(h,{success:g}))},f=h=>{c(h,n.useGlobalTarget||v_(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",d,r)};return i.forEach(o=>{!oI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,r),o.addEventListener("focus",u=>lI(u,r),r)}),a}function cI(e){return e==="x"||e==="y"?Oi[e]?null:(Oi[e]=!0,()=>{Oi[e]=!1}):Oi.x||Oi.y?null:(Oi.x=Oi.y=!0,()=>{Oi.x=Oi.y=!1})}const T_=new Set(["width","height","top","left","right","bottom",...Io]);let Dd;function fI(){Dd=void 0}const Wi={now:()=>(Dd===void 0&&Wi.set(Wt.isProcessing||o8.useManualTiming?Wt.timestamp:performance.now()),Dd),set:e=>{Dd=e,queueMicrotask(fI)}};function Sg(e,t){e.indexOf(t)===-1&&e.push(t)}function Ag(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Cg{constructor(){this.subscriptions=[]}add(t){return Sg(this.subscriptions,t),()=>Ag(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let a=0;a<r;a++){const s=this.subscriptions[a];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function w_(e,t){return t?e*(1e3/t):0}const __=30,dI=e=>!isNaN(parseFloat(e));class hI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const a=Wi.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Wi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dI(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Cg);const i=this.events[t].add(n);return t==="change"?()=>{i(),it.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Wi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>__)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,__);return w_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nu(e,t){return new hI(e,t)}function pI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nu(n))}function mI(e,t){const n=Rd(e,t);let{transitionEnd:i={},transition:r={},...a}=n||{};a={...a,...i};for(const s in a){const o=C8(a[s]);pI(e,s,o)}}function gI(e){return!!(nn(e)&&e.add)}function kg(e,t){const n=e.getValue("willChange");if(gI(n))return n.add(t)}function S_(e){return e.props[qw]}const A_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,bI=1e-7,yI=12;function vI(e,t,n,i,r){let a,s,o=0;do s=t+(n-t)/2,a=A_(s,i,r)-e,a>0?n=s:t=s;while(Math.abs(a)>bI&&++o<yI);return s}function Du(e,t,n,i){if(e===t&&n===i)return Vn;const r=a=>vI(a,0,1,e,n);return a=>a===0||a===1?a:A_(r(a),t,i)}const C_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,k_=e=>t=>1-e(1-t),O_=Du(.33,1.53,.69,.99),Og=k_(O_),R_=C_(Og),N_=e=>(e*=2)<1?.5*Og(e):.5*(2-Math.pow(2,-10*(e-1))),Rg=e=>1-Math.sin(Math.acos(e)),D_=k_(Rg),M_=C_(Rg),L_=e=>/^0[^.\s]+$/u.test(e);function xI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||L_(e):!0}const Mu=e=>Math.round(e*1e5)/1e5,Ng=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function EI(e){return e==null}const TI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dg=(e,t)=>n=>!!(typeof n=="string"&&TI.test(n)&&n.startsWith(e)||t&&!EI(n)&&Object.prototype.hasOwnProperty.call(n,t)),I_=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,a,s,o]=i.match(Ng);return{[e]:parseFloat(r),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},wI=e=>Or(0,255,e),Mg={...Po,transform:e=>Math.round(wI(e))},as={test:Dg("rgb","red"),parse:I_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Mg.transform(e)+", "+Mg.transform(t)+", "+Mg.transform(n)+", "+Mu(Cu.transform(i))+")"};function _I(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Lg={test:Dg("#"),parse:_I,transform:as.transform},Bo={test:Dg("hsl","hue"),parse:I_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Qi.transform(Mu(t))+", "+Qi.transform(Mu(n))+", "+Mu(Cu.transform(i))+")"},rn={test:e=>as.test(e)||Lg.test(e)||Bo.test(e),parse:e=>as.test(e)?as.parse(e):Bo.test(e)?Bo.parse(e):Lg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?as.transform(e):Bo.transform(e)},SI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ng))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(SI))===null||n===void 0?void 0:n.length)||0)>0}const P_="number",B_="color",CI="var",kI="var(",U_="${}",OI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lu(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let a=0;const o=t.replace(OI,l=>(rn.test(l)?(i.color.push(a),r.push(B_),n.push(rn.parse(l))):l.startsWith(kI)?(i.var.push(a),r.push(CI),n.push(l)):(i.number.push(a),r.push(P_),n.push(parseFloat(l))),++a,U_)).split(U_);return{values:n,split:o,indexes:i,types:r}}function z_(e){return Lu(e).values}function j_(e){const{split:t,types:n}=Lu(e),i=t.length;return r=>{let a="";for(let s=0;s<i;s++)if(a+=t[s],r[s]!==void 0){const o=n[s];o===P_?a+=Mu(r[s]):o===B_?a+=rn.transform(r[s]):a+=r[s]}return a}}const RI=e=>typeof e=="number"?0:e;function NI(e){const t=z_(e);return j_(e)(t.map(RI))}const xa={test:AI,parse:z_,createTransformer:j_,getAnimatableNone:NI},DI=new Set(["brightness","contrast","saturate","opacity"]);function MI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Ng)||[];if(!i)return e;const r=n.replace(i,"");let a=DI.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+r+")"}const LI=/\b([a-z-]*)\(.*?\)/gu,Ig={...xa,getAnimatableNone:e=>{const t=e.match(LI);return t?t.map(MI).join(" "):e}},II={...dg,color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:Ig,WebkitFilter:Ig},Pg=e=>II[e];function H_(e,t){let n=Pg(e);return n!==Ig&&(n=xa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const PI=new Set(["auto","none","0"]);function BI(e,t,n){let i=0,r;for(;i<e.length&&!r;){const a=e[i];typeof a=="string"&&!PI.has(a)&&Lu(a).values.length&&(r=e[i]),i++}if(r&&n)for(const a of t)e[a]=H_(n,r)}const F_=e=>e===Po||e===he,V_=(e,t)=>parseFloat(e.split(", ")[t]),Y_=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return V_(r[1],t);{const a=i.match(/^matrix\((.+)\)$/u);return a?V_(a[1],e):0}},UI=new Set(["x","y","z"]),zI=Io.filter(e=>!UI.has(e));function jI(e){const t=[];return zI.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Uo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Y_(4,13),y:Y_(5,14)};Uo.translateX=Uo.x,Uo.translateY=Uo.y;const ss=new Set;let Bg=!1,Ug=!1;function q_(){if(Ug){const e=Array.from(ss).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=jI(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([a,s])=>{var o;(o=i.getValue(a))===null||o===void 0||o.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Ug=!1,Bg=!1,ss.forEach(e=>e.complete()),ss.clear()}function G_(){ss.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ug=!0)})}function HI(){G_(),q_()}class zg{constructor(t,n,i,r,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ss.add(this),Bg||(Bg=!0,it.read(G_),it.resolveKeyframes(q_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=r==null?void 0:r.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const l=i.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),r&&s===void 0&&r.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ss.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ss.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const X_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),FI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VI(e){const t=FI.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function $_(e,t,n=1){const[i,r]=VI(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const s=a.trim();return X_(s)?parseFloat(s):s}return fg(r)?$_(r,t,n+1):r}const K_=e=>t=>t.test(e),Q_=[Po,he,Qi,va,M8,D8,{test:e=>e==="auto",parse:e=>e}],W_=e=>Q_.find(K_(e));class Z_ extends zg{constructor(t,n,i,r,a){super(t,n,i,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),fg(u))){const c=$_(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!T_.has(i)||t.length!==2)return;const[r,a]=t,s=W_(r),o=W_(a);if(s!==o)if(F_(s)&&F_(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)xI(t[r])&&i.push(r);i.length&&BI(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Uo[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const a=n.getValue(i);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Uo[i](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const J_=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xa.test(e)||e==="0")&&!e.startsWith("url("));function YI(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function qI(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=J_(r,t),o=J_(a,t);return!s||!o?!1:YI(e)||(n==="spring"||xg(n))&&i}const GI=e=>e!==null;function Md(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(GI),a=t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const XI=40;class eS{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Wi.now(),this.options={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:a,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>XI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Wi.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:a,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!qI(t,i,r,a))if(s)this.options.duration=0;else{l&&l(Md(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const dt=(e,t,n)=>e+(t-e)*n;function jg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $I({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,a=0,s=0;if(!t)r=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=jg(l,o,e+1/3),a=jg(l,o,e),s=jg(l,o,e-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}function Ld(e,t){return n=>n>0?t:e}const Hg=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},KI=[Lg,as,Bo],QI=e=>KI.find(t=>t.test(e));function tS(e){const t=QI(e);if(!t)return!1;let n=t.parse(e);return t===Bo&&(n=$I(n)),n}const nS=(e,t)=>{const n=tS(e),i=tS(t);if(!n||!i)return Ld(e,t);const r={...n};return a=>(r.red=Hg(n.red,i.red,a),r.green=Hg(n.green,i.green,a),r.blue=Hg(n.blue,i.blue,a),r.alpha=dt(n.alpha,i.alpha,a),as.transform(r))},WI=(e,t)=>n=>t(e(n)),Iu=(...e)=>e.reduce(WI),Fg=new Set(["none","hidden"]);function ZI(e,t){return Fg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function JI(e,t){return n=>dt(e,t,n)}function Vg(e){return typeof e=="number"?JI:typeof e=="string"?fg(e)?Ld:rn.test(e)?nS:nP:Array.isArray(e)?iS:typeof e=="object"?rn.test(e)?nS:eP:Ld}function iS(e,t){const n=[...e],i=n.length,r=e.map((a,s)=>Vg(a)(a,t[s]));return a=>{for(let s=0;s<i;s++)n[s]=r[s](a);return n}}function eP(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Vg(e[r])(e[r],t[r]));return r=>{for(const a in i)n[a]=i[a](r);return n}}function tP(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][r[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;i[a]=l,r[s]++}return i}const nP=(e,t)=>{const n=xa.createTransformer(t),i=Lu(e),r=Lu(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Fg.has(e)&&!r.values.length||Fg.has(t)&&!i.values.length?ZI(e,t):Iu(iS(tP(i,r),r.values),n):Ld(e,t)};function rS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dt(e,t,n):Vg(e)(e,t)}const iP=5;function aS(e,t,n){const i=Math.max(t-iP,0);return w_(n-e(i),t-i)}const bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yg=.001;function rP({duration:e=bt.duration,bounce:t=bt.bounce,velocity:n=bt.velocity,mass:i=bt.mass}){let r,a,s=1-t;s=Or(bt.minDamping,bt.maxDamping,s),e=Or(bt.minDuration,bt.maxDuration,kr(e)),s<1?(r=u=>{const c=u*s,f=c*e,d=c-n,h=qg(u,s),g=Math.exp(-f);return Yg-d/h*g},a=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),b=qg(Math.pow(u,2),s);return(-r(u)+Yg>0?-1:1)*((d-h)*g)/b}):(r=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Yg+c*f},a=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const o=5/e,l=sP(r,a,o);if(e=Cr(e),isNaN(l))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const aP=12;function sP(e,t,n){let i=n;for(let r=1;r<aP;r++)i=i-e(i)/t(i);return i}function qg(e,t){return e*Math.sqrt(1-t*t)}const oP=["duration","bounce"],lP=["stiffness","damping","mass"];function sS(e,t){return t.some(n=>e[n]!==void 0)}function uP(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!sS(e,lP)&&sS(e,oP))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,a=2*Or(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:bt.mass,stiffness:r,damping:a}}else{const n=rP(e);t={...t,...n,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function oS(e=bt.visualDuration,t=bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=uP({...n,velocity:-kr(n.velocity||0)}),g=d||0,b=u/(2*Math.sqrt(l*c)),T=s-a,m=kr(Math.sqrt(l/c)),y=Math.abs(T)<5;i||(i=y?bt.restSpeed.granular:bt.restSpeed.default),r||(r=y?bt.restDelta.granular:bt.restDelta.default);let x;if(b<1){const S=qg(m,b);x=k=>{const D=Math.exp(-b*m*k);return s-D*((g+b*m*T)/S*Math.sin(S*k)+T*Math.cos(S*k))}}else if(b===1)x=S=>s-Math.exp(-m*S)*(T+(g+m*T)*S);else{const S=m*Math.sqrt(b*b-1);x=k=>{const D=Math.exp(-b*m*k),L=Math.min(S*k,300);return s-D*((g+b*m*T)*Math.sinh(L)+S*T*Math.cosh(L))/S}}const w={calculatedDuration:h&&f||null,next:S=>{const k=x(S);if(h)o.done=S>=f;else{let D=0;b<1&&(D=S===0?Cr(g):aS(x,S,k));const L=Math.abs(D)<=i,B=Math.abs(s-k)<=r;o.done=L&&B}return o.value=o.done?s:k,o},toString:()=>{const S=Math.min(f_(w),vg),k=h_(D=>w.next(S*D).value,S,30);return S+"ms "+k}};return w}function lS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const T=f+b,m=s===void 0?T:s(T);m!==T&&(b=m-f);const y=L=>-b*Math.exp(-L/i),x=L=>m+y(L),w=L=>{const B=y(L),R=x(L);d.done=Math.abs(B)<=u,d.value=d.done?m:R};let S,k;const D=L=>{h(d.value)&&(S=L,k=oS({keyframes:[d.value,g(d.value)],velocity:aS(x,L,d.value),damping:r,stiffness:a,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let B=!1;return!k&&S===void 0&&(B=!0,w(L),D(L)),S!==void 0&&L>=S?k.next(L-S):(!B&&w(L),d)}}}const cP=Du(.42,0,1,1),fP=Du(0,0,.58,1),uS=Du(.42,0,.58,1),dP=e=>Array.isArray(e)&&typeof e[0]!="number",hP={linear:Vn,easeIn:cP,easeInOut:uS,easeOut:fP,circIn:Rg,circInOut:M_,circOut:D_,backIn:Og,backInOut:R_,backOut:O_,anticipate:N_},cS=e=>{if(Eg(e)){Uw(e.length===4);const[t,n,i,r]=e;return Du(t,n,i,r)}else if(typeof e=="string")return hP[e];return e};function pP(e,t,n){const i=[],r=n||rS,a=e.length-1;for(let s=0;s<a;s++){let o=r(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Vn:t;o=Iu(l,o)}i.push(o)}return i}function mP(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const a=e.length;if(Uw(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=pP(t,i,r),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Do(e[f],e[f+1],c);return o[f](d)};return n?c=>u(Or(e[0],e[a-1],c)):u}function gP(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=Do(0,t,i);e.push(dt(n,1,r))}}function bP(e){const t=[0];return gP(t,e.length-1),t}function yP(e,t){return e.map(n=>n*t)}function vP(e,t){return e.map(()=>t||uS).splice(0,e.length-1)}function Id({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=dP(i)?i.map(cS):cS(i),a={done:!1,value:t[0]},s=yP(n&&n.length===t.length?n:bP(t),e),o=mP(s,t,{ease:Array.isArray(r)?r:vP(t,r)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const xP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>ya(t),now:()=>Wt.isProcessing?Wt.timestamp:Wi.now()}},EP={decay:lS,inertia:lS,tween:Id,keyframes:Id,spring:oS},TP=e=>e/100;class Gg extends eS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:a}=this.options,s=(r==null?void 0:r.KeyframeResolver)||zg,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(a,o,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a,velocity:s=0}=this.options,o=xg(n)?n:EP[n]||Id;let l,u;o!==Id&&typeof t[0]!="number"&&(l=Iu(TP,rS(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});a==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=f_(c));const{calculatedDuration:f}=c,d=f+r,h=d*(i+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:r,generator:a,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=i;if(this.startTime===null)return a.next(0);const{delay:d,repeat:h,repeatType:g,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,w=a;if(h){const L=Math.min(this.currentTime,c)/f;let B=Math.floor(L),R=L%1;!R&&L>=1&&(R=1),R===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(g==="reverse"?(R=1-R,b&&(R-=b/f)):g==="mirror"&&(w=s)),x=Or(0,1,R)*f}const S=y?{done:!1,value:l[0]}:w.next(x);o&&(S.value=o(S.value));let{done:k}=S;!y&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&r!==void 0&&(S.value=Md(l,this.options,r)),T&&T(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?kr(t.calculatedDuration):0}get time(){return kr(this.currentTime)}set time(t){t=Cr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=kr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xP,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const wP=new Set(["opacity","clipPath","filter","transform"]);function _P(e,t,n,{delay:i=0,duration:r=300,repeat:a=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=m_(o,r);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}const SP=ng(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Pd=10,AP=2e4;function CP(e){return xg(e.type)||e.type==="spring"||!p_(e.ease)}function kP(e,t){const n=new Gg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let a=0;for(;!i.done&&a<AP;)i=n.sample(a),r.push(i.value),a+=Pd;return{times:void 0,keyframes:r,duration:a-Pd,ease:"linear"}}const fS={anticipate:N_,backInOut:R_,circInOut:M_};function OP(e){return e in fS}class dS extends eS{constructor(t){super(t);const{name:n,motionValue:i,element:r,keyframes:a}=this.options;this.resolver=new Z_(a,(s,o)=>this.onKeyframesResolved(s,o),n,i,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:i=300,times:r,ease:a,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof a=="string"&&Nd()&&OP(a)&&(a=fS[a]),CP(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:g,...b}=this.options,T=kP(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),i=T.duration,r=T.times,a=T.ease,s="keyframes"}const c=_P(o.owner.current,l,t,{...this.options,duration:i,times:r,ease:a});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(d_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;o.set(Md(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return kr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return kr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Cr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Vn;const{animation:i}=n;d_(i,t)}return Vn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:a,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...h}=this.options,g=new Gg({...h,keyframes:i,duration:r,type:a,ease:s,times:o,isGenerator:!0}),b=Cr(this.time);u.setWithVelocity(g.sample(b-Pd).value,g.sample(b).value,Pd)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:r,repeatType:a,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return SP()&&i&&wP.has(i)&&!l&&!u&&!r&&a!=="mirror"&&s!==0&&o!=="inertia"}}const RP={type:"spring",stiffness:500,damping:25,restSpeed:10},NP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DP={type:"keyframes",duration:.8},MP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LP=(e,{keyframes:t})=>t.length>2?DP:rs.has(e)?e.startsWith("scale")?NP(t[1]):RP:MP;function IP({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Xg=(e,t,n,i={},r,a)=>s=>{const o=yg(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Cr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:d=>{t.set(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:r};IP(o)||(c={...c,...LP(e,c)}),c.duration&&(c.duration=Cr(c.duration)),c.repeatDelay&&(c.repeatDelay=Cr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!a&&t.get()!==void 0){const d=Md(c.keyframes,o);if(d!==void 0)return it.update(()=>{c.onUpdate(d),c.onComplete()}),new tI([])}return!a&&dS.supports(c)?new dS(c):new Gg(c)};function PP({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function hS(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;i&&(s=i);const u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const d=e.getValue(f,(a=e.latestValues[f])!==null&&a!==void 0?a:null),h=l[f];if(h===void 0||c&&PP(c,f))continue;const g={delay:n,...yg(s||{},f)};let b=!1;if(window.MotionHandoffAnimation){const m=S_(e);if(m){const y=window.MotionHandoffAnimation(m,f,it);y!==null&&(g.startTime=y,b=!0)}}kg(e,f),d.start(Xg(f,d,h,e.shouldReduceMotion&&T_.has(f)?{type:!1}:g,e,b));const T=d.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{it.update(()=>{o&&mI(e,o)})}),u}function $g(e,t,n={}){var i;const r=Rd(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(hS(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=a;return BP(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function BP(e,t,n=0,i=0,r=1,a){const s=[],o=(e.variantChildren.size-1)*i,l=r===1?(u=0)=>u*i:(u=0)=>o-u*i;return Array.from(e.variantChildren).sort(UP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push($g(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function UP(e,t){return e.sortNodePosition(t)}function zP(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(a=>$g(e,a,n));i=Promise.all(r)}else if(typeof t=="string")i=$g(e,t,n);else{const r=typeof t=="function"?Rd(e,t,n.custom):t;i=Promise.all(hS(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const jP=ag.length;function pS(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pS(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jP;n++){const i=ag[n],r=e.props[i];(Au(r)||r===!1)&&(t[i]=r)}return t}const HP=[...rg].reverse(),FP=rg.length;function VP(e){return t=>Promise.all(t.map(({animation:n,options:i})=>zP(e,n,i)))}function YP(e){let t=VP(e),n=mS(),i=!0;const r=l=>(u,c)=>{var f;const d=Rd(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...b}=d;u={...u,...b,...g}}return u};function a(l){t=l(e)}function s(l){const{props:u}=e,c=pS(e.parent)||{},f=[],d=new Set;let h={},g=1/0;for(let T=0;T<FP;T++){const m=HP[T],y=n[m],x=u[m]!==void 0?u[m]:c[m],w=Au(x),S=m===l?y.isActive:null;S===!1&&(g=T);let k=x===c[m]&&x!==u[m]&&w;if(k&&i&&e.manuallyAnimateOnMount&&(k=!1),y.protectedKeys={...h},!y.isActive&&S===null||!x&&!y.prevProp||Sd(x)||typeof x=="boolean")continue;const D=qP(y.prevProp,x);let L=D||m===l&&y.isActive&&!k&&w||T>g&&w,B=!1;const R=Array.isArray(x)?x:[x];let Y=R.reduce(r(m),{});S===!1&&(Y={});const{prevResolvedValues:j={}}=y,re={...j,...Y},ee=V=>{L=!0,d.has(V)&&(B=!0,d.delete(V)),y.needsAnimating[V]=!0;const H=e.getValue(V);H&&(H.liveStyle=!1)};for(const V in re){const H=Y[V],te=j[V];if(h.hasOwnProperty(V))continue;let O=!1;cg(H)&&cg(te)?O=!c_(H,te):O=H!==te,O?H!=null?ee(V):d.add(V):H!==void 0&&d.has(V)?ee(V):y.protectedKeys[V]=!0}y.prevProp=x,y.prevResolvedValues=Y,y.isActive&&(h={...h,...Y}),i&&e.blockInitialAnimation&&(L=!1),L&&(!(k&&D)||B)&&f.push(...R.map(V=>({animation:V,options:{type:m}})))}if(d.size){const T={};d.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),T[m]=y??null}),f.push({animation:T})}let b=!!f.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(f):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=mS(),i=!0}}}function qP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!c_(t,e):!1}function os(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mS(){return{animate:os(!0),whileInView:os(),whileHover:os(),whileTap:os(),whileDrag:os(),whileFocus:os(),exit:os()}}class Ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}class GP extends Ea{constructor(t){super(t),t.animationState||(t.animationState=YP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XP=0;class $P extends Ea{constructor(){super(...arguments),this.id=XP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const KP={animation:{Feature:GP},exit:{Feature:$P}};function Pu(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Bu(e){return{point:{x:e.pageX,y:e.pageY}}}const QP=e=>t=>wg(t)&&e(t,Bu(t));function Uu(e,t,n,i){return Pu(e,t,QP(n),i)}const gS=(e,t)=>Math.abs(e-t);function WP(e,t){const n=gS(e.x,t.x),i=gS(e.y,t.y);return Math.sqrt(n**2+i**2)}class bS{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Qg(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=WP(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:g}=f,{timestamp:b}=Wt;this.history.push({...g,timestamp:b});const{onStart:T,onMove:m}=this.handlers;d||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Kg(d,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Qg(f.type==="pointercancel"?this.lastMoveEventInfo:Kg(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,T),g&&g(f,T)},!wg(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=Bu(t),o=Kg(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Qg(o,this.history)),this.removeListeners=Iu(Uu(this.contextWindow,"pointermove",this.handlePointerMove),Uu(this.contextWindow,"pointerup",this.handlePointerUp),Uu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ya(this.updatePoint)}}function Kg(e,t){return t?{point:t(e.point)}:e}function yS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qg({point:e},t){return{point:e,delta:yS(e,vS(t)),offset:yS(e,ZP(t)),velocity:JP(t,.1)}}function ZP(e){return e[0]}function vS(e){return e[e.length-1]}function JP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=vS(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Cr(t)));)n--;if(!i)return{x:0,y:0};const a=kr(r.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const s={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const xS=1e-4,e9=1-xS,t9=1+xS,ES=.01,n9=0-ES,i9=0+ES;function Yn(e){return e.max-e.min}function r9(e,t,n){return Math.abs(e-t)<=n}function TS(e,t,n,i=.5){e.origin=i,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Yn(n)/Yn(t),e.translate=dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=e9&&e.scale<=t9||isNaN(e.scale))&&(e.scale=1),(e.translate>=n9&&e.translate<=i9||isNaN(e.translate))&&(e.translate=0)}function zu(e,t,n,i){TS(e.x,t.x,n.x,i?i.originX:void 0),TS(e.y,t.y,n.y,i?i.originY:void 0)}function wS(e,t,n){e.min=n.min+t.min,e.max=e.min+Yn(t)}function a9(e,t,n){wS(e.x,t.x,n.x),wS(e.y,t.y,n.y)}function _S(e,t,n){e.min=t.min-n.min,e.max=e.min+Yn(t)}function ju(e,t,n){_S(e.x,t.x,n.x),_S(e.y,t.y,n.y)}function s9(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?dt(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?dt(n,e,i.max):Math.min(e,n)),e}function SS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function o9(e,{top:t,left:n,bottom:i,right:r}){return{x:SS(e.x,n,r),y:SS(e.y,t,i)}}function AS(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function l9(e,t){return{x:AS(e.x,t.x),y:AS(e.y,t.y)}}function u9(e,t){let n=.5;const i=Yn(e),r=Yn(t);return r>i?n=Do(t.min,t.max-i,e.min):i>r&&(n=Do(e.min,e.max-r,t.min)),Or(0,1,n)}function c9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Wg=.35;function f9(e=Wg){return e===!1?e=0:e===!0&&(e=Wg),{x:CS(e,"left","right"),y:CS(e,"top","bottom")}}function CS(e,t,n){return{min:kS(e,t),max:kS(e,n)}}function kS(e,t){return typeof e=="number"?e:e[t]||0}const OS=()=>({translate:0,scale:1,origin:0,originPoint:0}),zo=()=>({x:OS(),y:OS()}),RS=()=>({min:0,max:0}),Et=()=>({x:RS(),y:RS()});function di(e){return[e("x"),e("y")]}function NS({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function d9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function h9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Zg(e){return e===void 0||e===1}function Jg({scale:e,scaleX:t,scaleY:n}){return!Zg(e)||!Zg(t)||!Zg(n)}function ls(e){return Jg(e)||DS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function DS(e){return MS(e.x)||MS(e.y)}function MS(e){return e&&e!=="0%"}function Bd(e,t,n){const i=e-n,r=t*i;return n+r}function LS(e,t,n,i,r){return r!==void 0&&(e=Bd(e,r,i)),Bd(e,n,i)+t}function e1(e,t=0,n=1,i,r){e.min=LS(e.min,t,n,i,r),e.max=LS(e.max,t,n,i,r)}function IS(e,{x:t,y:n}){e1(e.x,t.translate,t.scale,t.originPoint),e1(e.y,n.translate,n.scale,n.originPoint)}const PS=.999999999999,BS=1.0000000000001;function p9(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let a,s;for(let o=0;o<r;o++){a=n[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ho(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,IS(e,s)),i&&ls(a.latestValues)&&Ho(e,a.latestValues))}t.x<BS&&t.x>PS&&(t.x=1),t.y<BS&&t.y>PS&&(t.y=1)}function jo(e,t){e.min=e.min+t,e.max=e.max+t}function US(e,t,n,i,r=.5){const a=dt(e.min,e.max,r);e1(e,t,n,a,i)}function Ho(e,t){US(e.x,t.x,t.scaleX,t.scale,t.originX),US(e.y,t.y,t.scaleY,t.scale,t.originY)}function zS(e,t){return NS(h9(e.getBoundingClientRect(),t))}function m9(e,t,n){const i=zS(e,n),{scroll:r}=t;return r&&(jo(i.x,r.offset.x),jo(i.y,r.offset.y)),i}const jS=({current:e})=>e?e.ownerDocument.defaultView:null,g9=new WeakMap;class b9{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Et(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bu(c).point)},a=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:g}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cI(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),di(T=>{let m=this.getAxisMotionValue(T).get()||0;if(Qi.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[T];x&&(m=Yn(x)*(parseFloat(m)/100))}}this.originPoint[T]=m}),g&&it.postRender(()=>g(c,f)),kg(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:T}=f;if(h&&this.currentDirection===null){this.currentDirection=y9(T),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),b&&b(c,f)},o=(c,f)=>this.stop(c,f),l=()=>di(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new bS(t,{onSessionStart:r,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:jS(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&it.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Ud(t,r,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=s9(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Lo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=o9(r.layoutBox,n):this.constraints=!1,this.elastic=f9(i),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&di(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=c9(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Lo(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=m9(i,r.root,this.visualElement.getTransformPagePoint());let s=l9(r.layout.layoutBox,a);if(n){const o=n(d9(s));this.hasMutatedConstraints=!!o,o&&(s=NS(o))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=di(c=>{if(!Ud(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=r?200:1e6,h=r?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return kg(this.visualElement,t),i.start(Xg(t,i,0,n,this.visualElement,!1))}stopAnimation(){di(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){di(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){di(n=>{const{drag:i}=this.getProps();if(!Ud(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:o}=r.layout.layoutBox[n];a.set(t[n]-dt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Lo(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};di(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();r[s]=u9({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),di(s=>{if(!Ud(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(dt(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;g9.set(this.visualElement,this);const t=this.visualElement.current,n=Uu(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Lo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,a=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),it.read(i);const s=Pu(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(di(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:s=Wg,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ud(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function y9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class v9 extends Ea{constructor(t){super(t),this.removeGroupControls=Vn,this.removeListeners=Vn,this.controls=new b9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vn}unmount(){this.removeGroupControls(),this.removeListeners()}}const HS=e=>(t,n)=>{e&&it.postRender(()=>e(t,n))};class x9 extends Ea{constructor(){super(...arguments),this.removePointerDownListener=Vn}onPointerDown(t){this.session=new bS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:HS(t),onStart:HS(n),onMove:i,onEnd:(a,s)=>{delete this.session,r&&it.postRender(()=>r(a,s))}}}mount(){this.removePointerDownListener=Uu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function FS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const n=FS(e,t.target.x),i=FS(e,t.target.y);return`${n}% ${i}%`}},E9={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=xa.parse(e);if(r.length>5)return i;const a=xa.createTransformer(e),s=typeof r[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=o,r[1+s]/=l;const u=dt(o,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),a(r)}};class T9 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:a}=t;V8(w9),a&&(n.group&&n.group.add(a),i&&i.register&&r&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),zd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:a}=this.props,s=i.projection;return s&&(s.isPresent=a,r||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||it.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),og.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function VS(e){const[t,n]=Iw(),i=E.useContext(Z0);return v.jsx(T9,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(Gw),isPresent:t,safeToRemove:n})}const w9={borderRadius:{...Hu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:E9};function _9(e,t,n){const i=nn(e)?e:Nu(e);return i.start(Xg("",i,t,n)),i.animation}function S9(e){return e instanceof SVGElement&&e.tagName!=="svg"}const A9=(e,t)=>e.depth-t.depth;class C9{constructor(){this.children=[],this.isDirty=!1}add(t){Sg(this.children,t),this.isDirty=!0}remove(t){Ag(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(A9),this.isDirty=!1,this.children.forEach(t)}}function k9(e,t){const n=Wi.now(),i=({timestamp:r})=>{const a=r-n;a>=t&&(ya(i),e(a-t))};return it.read(i,!0),()=>ya(i)}const YS=["TopLeft","TopRight","BottomLeft","BottomRight"],O9=YS.length,qS=e=>typeof e=="string"?parseFloat(e):e,GS=e=>typeof e=="number"||he.test(e);function R9(e,t,n,i,r,a){r?(e.opacity=dt(0,n.opacity!==void 0?n.opacity:1,N9(i)),e.opacityExit=dt(t.opacity!==void 0?t.opacity:1,0,D9(i))):a&&(e.opacity=dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<O9;s++){const o=`border${YS[s]}Radius`;let l=XS(t,o),u=XS(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||GS(l)===GS(u)?(e[o]=Math.max(dt(qS(l),qS(u),i),0),(Qi.test(u)||Qi.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=dt(t.rotate||0,n.rotate||0,i))}function XS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const N9=$S(0,.5,D_),D9=$S(.5,.95,Vn);function $S(e,t,n){return i=>i<e?0:i>t?1:n(Do(e,t,i))}function KS(e,t){e.min=t.min,e.max=t.max}function hi(e,t){KS(e.x,t.x),KS(e.y,t.y)}function QS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function WS(e,t,n,i,r){return e-=t,e=Bd(e,1/n,i),r!==void 0&&(e=Bd(e,1/r,i)),e}function M9(e,t=0,n=1,i=.5,r,a=e,s=e){if(Qi.test(t)&&(t=parseFloat(t),t=dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=dt(a.min,a.max,i);e===a&&(o-=t),e.min=WS(e.min,t,n,o,r),e.max=WS(e.max,t,n,o,r)}function ZS(e,t,[n,i,r],a,s){M9(e,t[n],t[i],t[r],t.scale,a,s)}const L9=["x","scaleX","originX"],I9=["y","scaleY","originY"];function JS(e,t,n,i){ZS(e.x,t,L9,n?n.x:void 0,i?i.x:void 0),ZS(e.y,t,I9,n?n.y:void 0,i?i.y:void 0)}function eA(e){return e.translate===0&&e.scale===1}function tA(e){return eA(e.x)&&eA(e.y)}function nA(e,t){return e.min===t.min&&e.max===t.max}function P9(e,t){return nA(e.x,t.x)&&nA(e.y,t.y)}function iA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rA(e,t){return iA(e.x,t.x)&&iA(e.y,t.y)}function aA(e){return Yn(e.x)/Yn(e.y)}function sA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class B9{constructor(){this.members=[]}add(t){Sg(this.members,t),t.scheduleRender()}remove(t){if(Ag(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function U9(e,t,n){let i="";const r=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((r||a||s)&&(i=`translate3d(${r}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),h&&(i+=`skewX(${h}deg) `),g&&(i+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}const us={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Fu=typeof window<"u"&&window.MotionDebug!==void 0,t1=["","X","Y","Z"],z9={visibility:"hidden"},oA=1e3;let j9=0;function n1(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function lA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=S_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",it,!(r||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&lA(i)}function uA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},o=t==null?void 0:t()){this.id=j9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Fu&&(us.totalNodes=us.resolvedTargetDeltas=us.recalculatedProjection=0),this.nodes.forEach(V9),this.nodes.forEach($9),this.nodes.forEach(K9),this.nodes.forEach(Y9),Fu&&window.MotionDebug.record(us)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new C9)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Cg),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=S9(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=k9(d,250),zd.hasAnimatedSinceResize&&(zd.hasAnimatedSinceResize=!1,this.nodes.forEach(fA))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||e7,{onLayoutAnimationStart:T,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!rA(this.targetLayout,g)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const w={...yg(b,"layout"),onPlay:T,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||fA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ya(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Q9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cA);return}this.isUpdating||this.nodes.forEach(G9),this.isUpdating=!1,this.nodes.forEach(X9),this.nodes.forEach(H9),this.nodes.forEach(F9),this.clearAllSnapshots();const o=Wi.now();Wt.delta=Or(0,1e3/60,o-Wt.timestamp),Wt.timestamp=o,Wt.isProcessing=!0,ig.update.process(Wt),ig.preRender.process(Wt),ig.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,og.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(q9),this.sharedNodes.forEach(W9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,it.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){it.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!tA(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||ls(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),t7(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return Et();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(n7))){const{scroll:c}=this.root;c&&(jo(l.x,c.offset.x),jo(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=Et();if(hi(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&hi(l,s),jo(l.x,f.offset.x),jo(l.y,f.offset.y))}return l}applyTransform(s,o=!1){const l=Et();hi(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ho(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ls(c.latestValues)&&Ho(l,c.latestValues)}return ls(this.latestValues)&&Ho(l,this.latestValues),l}removeTransform(s){const o=Et();hi(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ls(u.latestValues))continue;Jg(u.latestValues)&&u.updateSnapshot();const c=Et(),f=u.measurePageBox();hi(c,f),JS(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ls(this.latestValues)&&JS(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Wt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Et(),this.relativeTargetOrigin=Et(),ju(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),hi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Et(),this.targetWithTransforms=Et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hi(this.target,this.layout.layoutBox),IS(this.target,this.targetDelta)):hi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Et(),this.relativeTargetOrigin=Et(),ju(this.relativeTargetOrigin,this.target,h.target),hi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Fu&&us.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Jg(this.parent.latestValues)||DS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;hi(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;p9(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Et());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(QS(this.prevProjectionDelta.x,this.projectionDelta.x),QS(this.prevProjectionDelta.y,this.projectionDelta.y)),zu(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!sA(this.projectionDelta.x,this.prevProjectionDelta.x)||!sA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Fu&&us.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zo(),this.projectionDelta=zo(),this.projectionDeltaWithTransform=zo()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=zo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const d=Et(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,T=this.getStack(),m=!T||T.members.length<=1,y=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(J9));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const S=w/1e3;dA(f.x,s.x,S),dA(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ju(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Z9(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&P9(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Et()),hi(x,this.relativeTarget)),b&&(this.animationValues=c,R9(c,u,this.latestValues,S,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ya(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{zd.hasAnimatedSinceResize=!0,this.currentAnimation=_9(0,oA,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&bA(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Et();const f=Yn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Yn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}hi(o,l),Ho(o,c),zu(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new B9),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&n1("z",s,u,this.animationValues);for(let c=0;c<t1.length;c++)n1(`rotate${t1[c]}`,s,u,this.animationValues),n1(`skew${t1[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return z9;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Cd(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Cd(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ls(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=U9(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(o=d.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const b in Od){if(d[b]===void 0)continue;const{correct:T,applyTo:m}=Od[b],y=u.transform==="none"?d[b]:T(d[b],f);if(m){const x=m.length;for(let w=0;w<x;w++)u[m[w]]=y}else u[b]=y}return this.options.layoutId&&(u.pointerEvents=f===this?Cd(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(cA),this.root.sharedNodes.clear()}}}function H9(e){e.updateLayout()}function F9(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?di(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Yn(d);d.min=i[f].min,d.max=d.min+h}):bA(a,n.layoutBox,i)&&di(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Yn(i[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const o=zo();zu(o,i,n.layoutBox);const l=zo();s?zu(l,e.applyTransform(r,!0),n.measuredBox):zu(l,i,n.layoutBox);const u=!tA(o);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=Et();ju(g,n.layoutBox,d.layoutBox);const b=Et();ju(b,i,h.layoutBox),rA(g,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function V9(e){Fu&&us.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Y9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function q9(e){e.clearSnapshot()}function cA(e){e.clearMeasurements()}function G9(e){e.isLayoutDirty=!1}function X9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $9(e){e.resolveTargetDelta()}function K9(e){e.calcProjection()}function Q9(e){e.resetSkewAndRotation()}function W9(e){e.removeLeadSnapshot()}function dA(e,t,n){e.translate=dt(t.translate,0,n),e.scale=dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hA(e,t,n,i){e.min=dt(t.min,n.min,i),e.max=dt(t.max,n.max,i)}function Z9(e,t,n,i){hA(e.x,t.x,n.x,i),hA(e.y,t.y,n.y,i)}function J9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const e7={duration:.45,ease:[.4,0,.1,1]},pA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mA=pA("applewebkit/")&&!pA("chrome/")?Math.round:Vn;function gA(e){e.min=mA(e.min),e.max=mA(e.max)}function t7(e){gA(e.x),gA(e.y)}function bA(e,t,n){return e==="position"||e==="preserve-aspect"&&!r9(aA(t),aA(n),.2)}function n7(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const i7=uA({attachResizeListener:(e,t)=>Pu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i1={current:void 0},yA=uA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i1.current){const e=new i7({});e.mount(window),e.setOptions({layoutScroll:!0}),i1.current=e}return i1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),r7={pan:{Feature:x9},drag:{Feature:v9,ProjectionNode:yA,MeasureLayout:VS}};function vA(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,a=i[r];a&&it.postRender(()=>a(t,Bu(t)))}class a7 extends Ea{mount(){const{current:t}=this.node;t&&(this.unmount=aI(t,n=>(vA(this.node,n,"Start"),i=>vA(this.node,i,"End"))))}unmount(){}}class s7 extends Ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Iu(Pu(this.node.current,"focus",()=>this.onFocus()),Pu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xA(e,t,n){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),a=i[r];a&&it.postRender(()=>a(t,Bu(t)))}class o7 extends Ea{mount(){const{current:t}=this.node;t&&(this.unmount=uI(t,n=>(xA(this.node,n,"Start"),(i,{success:r})=>xA(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const r1=new WeakMap,a1=new WeakMap,l7=e=>{const t=r1.get(e.target);t&&t(e)},u7=e=>{e.forEach(l7)};function c7({root:e,...t}){const n=e||document;a1.has(n)||a1.set(n,{});const i=a1.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(u7,{root:e,...t})),i[r]}function f7(e,t,n){const i=c7(t);return r1.set(e,n),i.observe(e),()=>{r1.delete(e),i.unobserve(e)}}const d7={some:0,all:1};class h7 extends Ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:d7[r]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return f7(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(p7(t,n))&&this.startObserver()}unmount(){}}function p7({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const m7={inView:{Feature:h7},tap:{Feature:o7},focus:{Feature:s7},hover:{Feature:a7}},g7={layout:{ProjectionNode:yA,MeasureLayout:VS}},s1={current:null},EA={current:!1};function b7(){if(EA.current=!0,!!tg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>s1.current=e.matches;e.addListener(t),t()}else s1.current=!1}const y7=[...Q_,rn,xa],v7=e=>y7.find(K_(e)),TA=new WeakMap;function x7(e,t,n){for(const i in t){const r=t[i],a=n[i];if(nn(r))e.addValue(i,r);else if(nn(a))e.addValue(i,Nu(r,{owner:e}));else if(a!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,Nu(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const wA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E7{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Wi.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,it.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=Ad(n),this.isVariantNode=Vw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const g=d[h];l[h]!==void 0&&nn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,TA.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),EA.current||b7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:s1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TA.delete(this.current),this.projection&&this.projection.unmount(),ya(this.notifyUpdate),ya(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=rs.has(t),r=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&it.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mo){const n=Mo[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<wA.length;i++){const r=wA[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const a="on"+r,s=t[a];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=x7(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Nu(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(X_(r)||L_(r))?r=parseFloat(r):!v7(r)&&xa.test(n)&&(r=H_(t,n)),this.setBaseTarget(t,nn(r)?r.get():r)),nn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=ug(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[t])}if(i&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!nn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Cg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _A extends E7{constructor(){super(...arguments),this.KeyframeResolver=Z_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function T7(e){return window.getComputedStyle(e)}class w7 extends _A{constructor(){super(...arguments),this.type="html",this.renderInstance=i_}readValueFromInstance(t,n){if(rs.has(n)){const i=Pg(n);return i&&i.default||0}else{const i=T7(t),r=(Ww(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zS(t,n)}build(t,n,i){hg(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return bg(t,n,i)}}class _7 extends _A{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(rs.has(n)){const i=Pg(n);return i&&i.default||0}return n=r_.has(n)?n:sg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return o_(t,n,i)}build(t,n,i){pg(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){a_(t,n,i,r)}mount(t){this.isSVGTag=gg(t.tagName),super.mount(t)}}const S7=(e,t)=>lg(e)?new _7(t):new w7(t,{allowProjection:e!==E.Fragment}),A7=Z8({...KP,...m7,...r7,...g7},S7),Vu=p8(A7),C7=10,k7={right:(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),left:(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),up:(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),down:(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}})},rt=E.forwardRef(({fadeIn:e="down",distance:t=C7,children:n,snapExit:i=!1,overrides:r={},delay:a=0,...s},o)=>{const l=e?k7[e](t,r,a):{};return i&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),v.jsx(Vu.div,{ref:o,...s,...l,children:n})});rt.displayName="MotionDiv";const SA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,AA=Cw,O7=((e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return AA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:a}=t,s=Object.keys(r).map(u=>{const c=n==null?void 0:n[u],f=a==null?void 0:a[u];if(c===null)return null;const d=SA(c)||SA(f);return r[u][d]}),o=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(g=>{let[b,T]=g;return Array.isArray(T)?T.includes({...a,...o}[b]):{...a,...o}[b]===T})?[...u,f,d]:u},[]);return AA(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)})(ce("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),Tt=E.forwardRef(({className:e,variant:t="default",size:n,asChild:i=!1,...r},a)=>{const s=i?eD:"button";return v.jsx(Ar,{ref:a,children:v.jsx(s,{...je("ui_lib/btn"),"data-variant":t,className:ce(O7({variant:t,size:n,className:e})),...r})})});Tt.displayName="Button";/**
|
|
101
|
-
* @license lucide-react v0.436.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const R7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CA=(...e)=>e.filter((t,n,i)=>!!t&&i.indexOf(t)===n).join(" ");/**
|
|
106
|
-
* @license lucide-react v0.436.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/var N7={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"};/**
|
|
111
|
-
* @license lucide-react v0.436.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const D7=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:r="",children:a,iconNode:s,...o},l)=>E.createElement("svg",{ref:l,...N7,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:CA("lucide",r),...o},[...s.map(([u,c])=>E.createElement(u,c)),...Array.isArray(a)?a:[a]]));/**
|
|
116
|
-
* @license lucide-react v0.436.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const He=(e,t)=>{const n=E.forwardRef(({className:i,...r},a)=>E.createElement(D7,{ref:a,iconNode:t,className:CA(`lucide-${R7(e)}`,i),...r}));return n.displayName=`${e}`,n};/**
|
|
121
|
-
* @license lucide-react v0.436.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const kA=He("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
126
|
-
* @license lucide-react v0.436.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const M7=He("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
|
|
131
|
-
* @license lucide-react v0.436.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const L7=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
136
|
-
* @license lucide-react v0.436.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const I7=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
141
|
-
* @license lucide-react v0.436.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const P7=He("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
146
|
-
* @license lucide-react v0.436.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const B7=He("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
151
|
-
* @license lucide-react v0.436.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const U7=He("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
156
|
-
* @license lucide-react v0.436.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const z7=He("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
161
|
-
* @license lucide-react v0.436.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const OA=He("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
166
|
-
* @license lucide-react v0.436.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const RA=He("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
171
|
-
* @license lucide-react v0.436.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const j7=He("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
176
|
-
* @license lucide-react v0.436.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const H7=He("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/**
|
|
181
|
-
* @license lucide-react v0.436.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const F7=He("FileAudio2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]);/**
|
|
186
|
-
* @license lucide-react v0.436.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const V7=He("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);/**
|
|
191
|
-
* @license lucide-react v0.436.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const Y7=He("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|
196
|
-
* @license lucide-react v0.436.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const q7=He("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
201
|
-
* @license lucide-react v0.436.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const G7=He("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
206
|
-
* @license lucide-react v0.436.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const X7=He("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
|
|
211
|
-
* @license lucide-react v0.436.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const $7=He("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
216
|
-
* @license lucide-react v0.436.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const K7=He("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
|
|
221
|
-
* @license lucide-react v0.436.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const Q7=He("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
226
|
-
* @license lucide-react v0.436.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const W7=He("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/**
|
|
231
|
-
* @license lucide-react v0.436.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const Z7=He("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
|
|
236
|
-
* @license lucide-react v0.436.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const J7=He("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
|
|
241
|
-
* @license lucide-react v0.436.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const eB=He("Shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]);/**
|
|
246
|
-
* @license lucide-react v0.436.0 - ISC
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the ISC license.
|
|
249
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/const tB=He("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
251
|
-
* @license lucide-react v0.436.0 - ISC
|
|
252
|
-
*
|
|
253
|
-
* This source code is licensed under the ISC license.
|
|
254
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const nB=He("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
256
|
-
* @license lucide-react v0.436.0 - ISC
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the ISC license.
|
|
259
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const iB=He("SquareX",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
261
|
-
* @license lucide-react v0.436.0 - ISC
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the ISC license.
|
|
264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const rB=He("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
|
|
266
|
-
* @license lucide-react v0.436.0 - ISC
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the ISC license.
|
|
269
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const jd=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),NA=E.createContext(null);function aB({children:e}){const[t,n]=E.useState(!1),[i,r]=E.useState(null),a=o=>{r(o),n(!0)},s=()=>{n(!1),setTimeout(()=>{r(null)},200)};return v.jsxs(NA.Provider,{value:{open:a,close:s,isOpen:t,content:i},children:[v.jsx(sB,{}),e]})}function Hd(){const e=E.useContext(NA);return e||(console.error("useDialoger must be used within a DialogerProvider"),{open:()=>{},close:()=>{},isOpen:!1,content:null})}function sB(){const{contentIframeRef:e}=Ut(),{isOpen:t,content:n,close:i}=Hd();return E.useEffect(()=>{var a,s;const r=o=>{o.key==="Escape"&&i()};return(s=(a=e==null?void 0:e.current)==null?void 0:a.contentWindow)==null||s.document.addEventListener("keydown",r),()=>{var o,l;return(l=(o=e==null?void 0:e.current)==null?void 0:o.contentWindow)==null?void 0:l.document.removeEventListener("keydown",r)}},[]),v.jsx(zt,{mode:"wait",children:t&&n&&v.jsx(rt,{overrides:{initial:{y:0},exit:{y:0}},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm",tabIndex:-1,onClick:i,children:n},"dialog-content")})}function DA({children:e,className:t,withClose:n=!1}){const{close:i}=Hd();return v.jsxs("div",{className:ce("fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",t),onClick:r=>r.stopPropagation(),children:[e,n&&v.jsxs(Tt,{size:"fit",className:"rounded-full absolute top-4 right-4",variant:"secondary",onClick:i,children:[v.jsx(jd,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})}const MA=({className:e,...t})=>v.jsx("div",{className:ce("flex flex-col gap-2 text-center pt-2",e),...t});MA.displayName="DialogerHeader";const LA=({className:e,...t})=>v.jsx("div",{className:ce("flex flex-col gap-2 text-center",e),...t});LA.displayName="DialogerBody";const IA=({className:e,...t})=>v.jsx("div",{className:ce("flex flex-col gap-2",e),...t});IA.displayName="DialogerFooter";const PA=Rn.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:ce("text-lg font-semibold leading-none tracking-tight",e),...t}));PA.displayName="DialogerTitle";const BA=Rn.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:ce("text-sm text-muted-foreground",e),...t}));BA.displayName="DialogerDescription";function UA({children:e,trigger:t}){const{open:n}=Hd();return E.cloneElement(t,{onClick:()=>n(e)})}function zA({attachment:e}){const{name:t,size:n,type:i,url:r}=e,a=i.startsWith("image/"),s=i.startsWith("video/"),o=i.startsWith("audio/");return o?v.jsx(Ar,{children:v.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:v.jsxs("audio",{controls:!0,className:"w-full",children:[v.jsx("source",{src:r,type:i}),"Your browser does not support the audio tag."]})})}):s?v.jsx(Ar,{children:v.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:v.jsxs("video",{controls:!0,children:[v.jsx("source",{src:r,type:i}),"Your browser does not support the video tag."]})})}):!a&&!s&&!o?v.jsx(Ar,{children:v.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:v.jsxs("div",{className:"flex items-end gap-2 p-2",children:[v.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:ce("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),v.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})}):v.jsx(UA,{trigger:v.jsx("div",{children:v.jsx(Ar,{children:v.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:a&&v.jsx("img",{src:r,className:"object-cover size-16",alt:t})})})}),children:v.jsx(DA,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:a&&v.jsx("div",{className:"size-fit shrink-0 rounded-2xl overflow-hidden max-h-full",children:v.jsx("img",{src:r,className:"object-cover size-auto",alt:t})})})})}function jA(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}function tZ(){}function nZ(){}const mn=Ta(/[A-Za-z]/),an=Ta(/[\dA-Za-z]/),oB=Ta(/[#-'*+\--9=?A-Z^-~]/);function Fd(e){return e!==null&&(e<32||e===127)}const o1=Ta(/\d/),lB=Ta(/[\dA-Fa-f]/),uB=Ta(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Xe(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Vd=Ta(new RegExp("\\p{P}|\\p{S}","u")),cs=Ta(/\s/);function Ta(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function cB(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Yd=function(e){if(e==null)return pB;if(typeof e=="function")return qd(e);if(typeof e=="object")return Array.isArray(e)?fB(e):dB(e);if(typeof e=="string")return hB(e);throw new Error("Expected function, string, or object as test")};function fB(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Yd(e[n]);return qd(i);function i(...r){let a=-1;for(;++a<t.length;)if(t[a].apply(this,r))return!0;return!1}}function dB(e){const t=e;return qd(n);function n(i){const r=i;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}function hB(e){return qd(t);function t(n){return n&&n.type===e}}function qd(e){return t;function t(n,i,r){return!!(mB(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function pB(){return!0}function mB(e){return e!==null&&typeof e=="object"&&"type"in e}function iZ(e){return e}const HA=[],gB=!0,l1=!1,bB="skip";function FA(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const a=Yd(r),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=HA,g,b,T;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=yB(n(l,c)),h[0]===l1))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==bB)for(b=(i?m.children.length:-1)+s,T=c.concat(m);b>-1&&b<m.children.length;){const y=m.children[b];if(g=o(y,b,T)(),g[0]===l1)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function yB(e){return Array.isArray(e)?e:typeof e=="number"?[gB,e]:e==null?HA:[e]}function vB(e,t,n){const r=Yd((n||{}).ignore||[]),a=xB(t);let s=-1;for(;++s<a.length;)FA(e,"text",o);function o(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],g=d?d.children:void 0;if(r(h,g?g.indexOf(h):void 0,d))return;d=h}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=a[s][0],h=a[s][1];let g=0;const T=f.children.indexOf(u);let m=!1,y=[];d.lastIndex=0;let x=d.exec(u.value);for(;x;){const w=x.index,S={index:x.index,input:x.input,stack:[...c,u]};let k=h(...x,S);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?d.lastIndex=w+1:(g!==w&&y.push({type:"text",value:u.value.slice(g,w)}),Array.isArray(k)?y.push(...k):k&&y.push(k),g=w+x[0].length,m=!0),!d.global)break;x=d.exec(u.value)}return m?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),f.children.splice(T,1,...y)):y=[u],T+y.length}}function xB(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([EB(r[0]),TB(r[1])])}return t}function EB(e){return typeof e=="string"?new RegExp(cB(e),"g"):e}function TB(e){return typeof e=="function"?e:function(){return e}}const u1="phrasing",c1=["autolink","link","image","label"];function wB(){return{transforms:[RB],enter:{literalAutolink:SB,literalAutolinkEmail:f1,literalAutolinkHttp:f1,literalAutolinkWww:f1},exit:{literalAutolink:OB,literalAutolinkEmail:kB,literalAutolinkHttp:AB,literalAutolinkWww:CB}}}function _B(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:u1,notInConstruct:c1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:u1,notInConstruct:c1},{character:":",before:"[ps]",after:"\\/",inConstruct:u1,notInConstruct:c1}]}}function SB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function f1(e){this.config.enter.autolinkProtocol.call(this,e)}function AB(e){this.config.exit.autolinkProtocol.call(this,e)}function CB(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function kB(e){this.config.exit.autolinkEmail.call(this,e)}function OB(e){this.exit(e)}function RB(e){vB(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,NB],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),DB]],{ignore:["link","linkReference"]})}function NB(e,t,n,i,r){let a="";if(!VA(r)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!MB(n)))return!1;const s=LB(n+i);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function DB(e,t,n,i){return!VA(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function MB(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function LB(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=jA(e,"(");let a=jA(e,")");for(;i!==-1&&r>a;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),a++;return[e,n]}function VA(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||cs(n)||Vd(n))&&(!t||n!==47)}function Ri(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}YA.peek=VB;function IB(){this.buffer()}function PB(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function BB(){this.buffer()}function UB(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zB(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ri(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jB(e){this.exit(e)}function HB(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ri(this.sliceSerialize(e)).toLowerCase(),n.label=t}function FB(e){this.exit(e)}function VB(){return"["}function YA(e,t,n,i){const r=n.createTracker(i);let a=r.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=r.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=r.move("]"),a}function YB(){return{enter:{gfmFootnoteCallString:IB,gfmFootnoteCall:PB,gfmFootnoteDefinitionLabelString:BB,gfmFootnoteDefinition:UB},exit:{gfmFootnoteCallString:zB,gfmFootnoteCall:jB,gfmFootnoteDefinitionLabelString:HB,gfmFootnoteDefinition:FB}}}function qB(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:YA},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=o.move(a.safe(a.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
271
|
-
`:" ")+a.indentLines(a.containerFlow(i,o.current()),t?qA:GB))),u(),l}}function GB(e,t,n){return t===0?e:qA(e,t,n)}function qA(e,t,n){return(n?"":" ")+e}const XB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];GA.peek=ZB;function $B(){return{canContainEols:["delete"],enter:{strikethrough:QB},exit:{strikethrough:WB}}}function KB(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:XB}],handlers:{delete:GA}}}function QB(e){this.enter({type:"delete",children:[]},e)}function WB(e){this.exit(e)}function GA(e,t,n,i){const r=n.createTracker(i),a=n.enter("strikethrough");let s=r.move("~~");return s+=n.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),a(),s}function ZB(){return"~"}function JB(e){return e.length}function eU(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||JB,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],T=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const y=tU(e[c][m]);if(n.alignDelimiters!==!1){const x=r(y);T[m]=x,(l[m]===void 0||x>l[m])&&(l[m]=x)}b.push(y)}s[c]=b,o[c]=T}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)a[f]=XA(i[f]);else{const b=XA(i);for(;++f<u;)a[f]=b}f=-1;const d=[],h=[];for(;++f<u;){const b=a[f];let T="",m="";b===99?(T=":",m=":"):b===108?T=":":b===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[f]-T.length-m.length);const x=T+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=T.length+y+m.length,y>l[f]&&(l[f]=y),h[f]=y),d[f]=x}s.splice(1,0,d),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],T=o[c];f=-1;const m=[];for(;++f<u;){const y=b[f]||"";let x="",w="";if(n.alignDelimiters!==!1){const S=l[f]-(T[f]||0),k=a[f];k===114?x=" ".repeat(S):k===99?S%2?(x=" ".repeat(S/2+.5),w=" ".repeat(S/2-.5)):(x=" ".repeat(S/2),w=x):w=" ".repeat(S)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(y),n.alignDelimiters!==!1&&m.push(w),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
272
|
-
`)}function tU(e){return e==null?"":String(e)}function XA(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const $A={}.hasOwnProperty;function KA(e,t){const n=t||{};function i(r,...a){let s=i.invalid;const o=i.handlers;if(r&&$A.call(r,e)){const l=String(r[e]);s=$A.call(o,l)?o[l]:i.unknown}if(s)return s.call(this,r,...a)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function nU(e,t,n,i){const r=n.enter("blockquote"),a=n.createTracker(i);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),iU);return r(),s}function iU(e,t,n){return">"+(n?"":" ")+e}function rU(e,t){return QA(e,t.inConstruct,!0)&&!QA(e,t.notInConstruct,!1)}function QA(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function WA(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
273
|
-
`&&rU(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
274
|
-
`}function aU(e,t){const n=String(e);let i=n.indexOf(t),r=i,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++a>s&&(s=a):a=1,r=i+t.length,i=n.indexOf(t,r);return s}function sU(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function oU(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function lU(e,t,n,i){const r=oU(n),a=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(sU(e,n)){const f=n.enter("codeIndented"),d=n.indentLines(a,uU);return f(),d}const o=n.createTracker(i),l=r.repeat(Math.max(aU(a,r)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
|
|
275
|
-
`,encode:["`"],...o.current()})),f()}return c+=o.move(`
|
|
276
|
-
`),a&&(c+=o.move(a+`
|
|
277
|
-
`)),c+=o.move(l),u(),c}function uU(e,t,n){return(n?"":" ")+e}function d1(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function cU(e,t,n,i){const r=d1(n),a=r==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
278
|
-
`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+r),u+=l.move(n.safe(e.title,{before:u,after:r,...l.current()})),u+=l.move(r),o()),s(),u}function fU(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Yu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Fo(e){if(e===null||Xe(e)||cs(e))return 1;if(Vd(e))return 2}function Gd(e,t,n){const i=Fo(e),r=Fo(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ZA.peek=dU;function ZA(e,t,n,i){const r=fU(n),a=n.enter("emphasis"),s=n.createTracker(i),o=s.move(r);let l=s.move(n.containerPhrasing(e,{after:r,before:o,...s.current()}));const u=l.charCodeAt(0),c=Gd(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=Yu(u)+l.slice(1));const f=l.charCodeAt(l.length-1),d=Gd(i.after.charCodeAt(0),f,r);d.inside&&(l=l.slice(0,-1)+Yu(f));const h=s.move(r);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+l+h}function dU(e,t,n){return n.options.emphasis||"*"}function Xd(e,t,n,i){let r,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,r=n):(a=t,s=n,r=i),FA(e,a,o,r);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const hU={};function h1(e,t){const n=hU,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return JA(e,i,r)}function JA(e,t,n){if(pU(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 eC(e.children,t,n)}return Array.isArray(e)?eC(e,t,n):""}function eC(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=JA(e[r],t,n);return i.join("")}function pU(e){return!!(e&&typeof e=="object")}function mU(e,t){let n=!1;return Xd(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,l1}),!!((!e.depth||e.depth<3)&&h1(e)&&(t.options.setext||n))}function gU(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(i);if(mU(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),d=n.containerPhrasing(e,{...a.current(),before:`
|
|
279
|
-
`,after:`
|
|
280
|
-
`});return f(),c(),d+`
|
|
281
|
-
`+(r===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
282
|
-
`))+1))}const s="#".repeat(r),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
283
|
-
`,...a.current()});return/^[\t ]/.test(u)&&(u=Yu(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}tC.peek=bU;function tC(e){return e.value||""}function bU(){return"<"}nC.peek=yU;function nC(e,t,n,i){const r=d1(n),a=r==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+r),u+=l.move(n.safe(e.title,{before:u,after:r,...l.current()})),u+=l.move(r),o()),u+=l.move(")"),s(),u}function yU(){return"!"}iC.peek=vU;function iC(e,t,n,i){const r=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(i);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),r==="full"||!u||u!==f?l+=o.move(f+"]"):r==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function vU(){return"!"}rC.peek=xU;function rC(e,t,n){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return r+i+r}function xU(){return"`"}function aC(e,t){const n=h1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}sC.peek=EU;function sC(e,t,n,i){const r=d1(n),a=r==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let o,l;if(aC(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+r),u+=s.move(n.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),o(),u}function EU(e,t,n){return aC(e,n)?"<":"["}oC.peek=TU;function oC(e,t,n,i){const r=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(i);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),r==="full"||!u||u!==f?l+=o.move(f+"]"):r==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function TU(){return"["}function p1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wU(e){const t=p1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _U(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function lC(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function SU(e,t,n,i){const r=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?_U(n):p1(n);const o=e.ordered?s==="."?")":".":wU(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),lC(n)===s&&c){let f=-1;for(;++f<e.children.length;){const d=e.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,i);return n.bulletLastUsed=s,n.bulletCurrent=a,r(),u}function AU(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function CU(e,t,n,i){const r=AU(n);let a=n.bulletCurrent||p1(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(i);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,d,h){return d?(h?"":" ".repeat(s))+f:(h?a:a+" ".repeat(s-a.length))+f}}function kU(e,t,n,i){const r=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,i);return a(),r(),s}const OU=Yd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function RU(e,t,n,i){return(e.children.some(function(s){return OU(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function NU(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}uC.peek=DU;function uC(e,t,n,i){const r=NU(n),a=n.enter("strong"),s=n.createTracker(i),o=s.move(r+r);let l=s.move(n.containerPhrasing(e,{after:r,before:o,...s.current()}));const u=l.charCodeAt(0),c=Gd(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=Yu(u)+l.slice(1));const f=l.charCodeAt(l.length-1),d=Gd(i.after.charCodeAt(0),f,r);d.inside&&(l=l.slice(0,-1)+Yu(f));const h=s.move(r+r);return a(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+l+h}function DU(e,t,n){return n.options.strong||"*"}function MU(e,t,n,i){return n.safe(e.value,i)}function LU(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function IU(e,t,n){const i=(lC(n)+(n.options.ruleSpaces?" ":"")).repeat(LU(n));return n.options.ruleSpaces?i.slice(0,-1):i}const cC={blockquote:nU,break:WA,code:lU,definition:cU,emphasis:ZA,hardBreak:WA,heading:gU,html:tC,image:nC,imageReference:iC,inlineCode:rC,link:sC,linkReference:oC,list:SU,listItem:CU,paragraph:kU,root:RU,strong:uC,text:MU,thematicBreak:IU},fC=document.createElement("i");function m1(e){const t="&"+e+";";fC.innerHTML=t;const n=fC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function dC(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)}const PU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BU(e){return e.replace(PU,UU)}function UU(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return dC(n.slice(a?2:1),a?16:10)}return m1(n)||e}function zU(){return{enter:{table:jU,tableData:hC,tableHeader:hC,tableRow:FU},exit:{codeText:VU,table:HU,tableData:g1,tableHeader:g1,tableRow:g1}}}function jU(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function HU(e){this.exit(e),this.data.inTable=void 0}function FU(e){this.enter({type:"tableRow",children:[]},e)}function g1(e){this.exit(e)}function hC(e){this.enter({type:"tableCell",children:[]},e)}function VU(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,YU));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function YU(e,t){return t==="|"?t:e}function qU(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
284
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:o}};function s(h,g,b,T){return u(c(h,b,T),h.align)}function o(h,g,b,T){const m=f(h,b,T),y=u([m]);return y.slice(0,y.indexOf(`
|
|
285
|
-
`))}function l(h,g,b,T){const m=b.enter("tableCell"),y=b.enter("phrasing"),x=b.containerPhrasing(h,{...T,before:a,after:a});return y(),m(),x}function u(h,g){return eU(h,{align:g,alignDelimiters:i,padding:n,stringLength:r})}function c(h,g,b){const T=h.children;let m=-1;const y=[],x=g.enter("table");for(;++m<T.length;)y[m]=f(T[m],g,b);return x(),y}function f(h,g,b){const T=h.children;let m=-1;const y=[],x=g.enter("tableRow");for(;++m<T.length;)y[m]=l(T[m],h,g,b);return x(),y}function d(h,g,b){let T=cC.inlineCode(h,g,b);return b.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function GU(){return{exit:{taskListCheckValueChecked:pC,taskListCheckValueUnchecked:pC,paragraph:$U}}}function XU(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:KU}}}function pC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $U(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let a=-1,s;for(;++a<r.length;){const o=r[a];if(o.type==="paragraph"){s=o;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function KU(e,t,n,i){const r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(i);a&&o.move(s);let l=cC.listItem(e,t,n,{...i,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function QU(){return[wB(),YB(),$B(),zU(),GU()]}function WU(e){return{extensions:[_B(),qB(e),KB(),qU(e),XU()]}}function qn(e,t,n,i){const r=e.length;let a=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function pi(e,t){return e.length>0?(qn(e,e.length,0,t),e):t}const mC={}.hasOwnProperty;function gC(e){const t={};let n=-1;for(;++n<e.length;)ZU(t,e[n]);return t}function ZU(e,t){let n;for(n in t){const r=(mC.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){mC.call(r,s)||(r[s]=[]);const o=a[s];JU(r[s],Array.isArray(o)?o:o?[o]:[])}}}function JU(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);qn(e,0,0,i)}const ez={tokenize:sz,partial:!0},bC={tokenize:oz,partial:!0},yC={tokenize:lz,partial:!0},vC={tokenize:uz,partial:!0},tz={tokenize:cz,partial:!0},xC={name:"wwwAutolink",tokenize:rz,previous:TC},EC={name:"protocolAutolink",tokenize:az,previous:wC},Rr={name:"emailAutolink",tokenize:iz,previous:_C},Zi={};function nz(){return{text:Zi}}let fs=48;for(;fs<123;)Zi[fs]=Rr,fs++,fs===58?fs=65:fs===91&&(fs=97);Zi[43]=Rr,Zi[45]=Rr,Zi[46]=Rr,Zi[95]=Rr,Zi[72]=[Rr,EC],Zi[104]=[Rr,EC],Zi[87]=[Rr,xC],Zi[119]=[Rr,xC];function iz(e,t,n){const i=this;let r,a;return s;function s(f){return!b1(f)||!_C.call(i,i.previous)||y1(i.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return b1(f)?(e.consume(f),o):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(tz,c,u)(f):f===45||f===95||an(f)?(a=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),r=!0,l}function c(f){return a&&r&&mn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function rz(e,t,n){const i=this;return r;function r(s){return s!==87&&s!==119||!TC.call(i,i.previous)||y1(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ez,e.attempt(bC,e.attempt(yC,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function az(e,t,n){const i=this;let r="",a=!1;return s;function s(f){return(f===72||f===104)&&wC.call(i,i.previous)&&!y1(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(mn(f)&&r.length<5)return r+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),a?u:(a=!0,l)):n(f)}function u(f){return f===null||Fd(f)||Xe(f)||cs(f)||Vd(f)?n(f):e.attempt(bC,e.attempt(yC,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function sz(e,t,n){let i=0;return r;function r(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),r):s===46&&i===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function oz(e,t,n){let i,r,a;return s;function s(u){return u===46||u===95?e.check(vC,l,o)(u):u===null||Xe(u)||cs(u)||u!==45&&Vd(u)?l(u):(a=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(r=i,i=void 0),e.consume(u),s}function l(u){return r||i||!a?n(u):t(u)}}function lz(e,t){let n=0,i=0;return r;function r(s){return s===40?(n++,e.consume(s),r):s===41&&i<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(vC,t,a)(s):s===null||Xe(s)||cs(s)?t(s):(e.consume(s),r)}function a(s){return s===41&&i++,e.consume(s),r}}function uz(e,t,n){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),a):o===93?(e.consume(o),r):o===60||o===null||Xe(o)||cs(o)?t(o):n(o)}function r(o){return o===null||o===40||o===91||Xe(o)||cs(o)?t(o):i(o)}function a(o){return mn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):mn(o)?(e.consume(o),s):n(o)}}function cz(e,t,n){return i;function i(a){return e.consume(a),r}function r(a){return an(a)?n(a):t(a)}}function TC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xe(e)}function wC(e){return!mn(e)}function _C(e){return!(e===47||b1(e))}function b1(e){return e===43||e===45||e===46||e===95||an(e)}function y1(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Vo(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&an(e.charCodeAt(n+1))&&an(e.charCodeAt(n+2)))r=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),r=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+r+1,s=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function $d(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const a=e[r].resolveAll;a&&!i.includes(a)&&(t=a(t,n),i.push(a))}return t}const v1={name:"attention",resolveAll:fz,tokenize:dz};function fz(e,t){let n=-1,i,r,a,s,o,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end},d={...e[n][1].start};SC(f,-l),SC(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},a={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[n][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=pi(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=pi(u,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=pi(u,$d(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=pi(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,qn(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function dz(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Fo(i);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 u=e.exit("attentionSequence"),c=Fo(l),f=!c||c===2&&r||n.includes(l),d=!r||r===2&&c||n.includes(i);return u._open=!!(a===42?f:f&&(r||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function SC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hz={name:"autolink",tokenize:pz};function pz(e,t,n){let i=0;return r;function r(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return mn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||an(h)?(i=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),i=0,l):(h===43||h===45||h===46||an(h))&&i++<32?(e.consume(h),o):(i=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Fd(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):oB(h)?(e.consume(h),u):n(h)}function c(h){return an(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),i=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||an(h))&&i++<63){const g=h===45?d:f;return e.consume(h),g}return n(h)}}function Me(e,t,n,i){const r=i?i-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++<r?(e.consume(l),o):(e.exit(n),t(l))}}const qu={partial:!0,tokenize:mz};function mz(e,t,n){return i;function i(a){return Ne(a)?Me(e,r,"linePrefix")(a):r(a)}function r(a){return a===null||fe(a)?t(a):n(a)}}const AC={continuation:{tokenize:bz},exit:yz,name:"blockQuote",tokenize:gz};function gz(e,t,n){const i=this;return r;function r(s){if(s===62){const o=i.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 bz(e,t,n){const i=this;return r;function r(s){return Ne(s)?Me(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(AC,t,n)(s)}}function yz(e){e.exit("blockQuote")}const CC={name:"characterEscape",tokenize:vz};function vz(e,t,n){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),r}function r(a){return uB(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const kC={name:"characterReference",tokenize:xz};function xz(e,t,n){const i=this;let r=0,a,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=an,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=lB,c):(e.enter("characterReferenceValue"),a=7,s=o1,c(f))}function c(f){if(f===59&&r){const d=e.exit("characterReferenceValue");return s===an&&!m1(i.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&r++<a?(e.consume(f),c):n(f)}}const OC={partial:!0,tokenize:Tz},RC={concrete:!0,name:"codeFenced",tokenize:Ez};function Ez(e,t,n){const i=this,r={partial:!0,tokenize:S};let a=0,s=0,o;return l;function l(k){return u(k)}function u(k){const D=i.events[i.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===o?(s++,e.consume(k),c):s<3?n(k):(e.exit("codeFencedFenceSequence"),Ne(k)?Me(e,f,"whitespace")(k):f(k))}function f(k){return k===null||fe(k)?(e.exit("codeFencedFence"),i.interrupt?t(k):e.check(OC,b,w)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||fe(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):Ne(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Me(e,h,"whitespace")(k)):k===96&&k===o?n(k):(e.consume(k),d)}function h(k){return k===null||fe(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||fe(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===o?n(k):(e.consume(k),g)}function b(k){return e.attempt(r,w,T)(k)}function T(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),m}function m(k){return a>0&&Ne(k)?Me(e,y,"linePrefix",a+1)(k):y(k)}function y(k){return k===null||fe(k)?e.check(OC,b,w)(k):(e.enter("codeFlowValue"),x(k))}function x(k){return k===null||fe(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),x)}function w(k){return e.exit("codeFenced"),t(k)}function S(k,D,L){let B=0;return R;function R(Q){return k.enter("lineEnding"),k.consume(Q),k.exit("lineEnding"),Y}function Y(Q){return k.enter("codeFencedFence"),Ne(Q)?Me(k,j,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):j(Q)}function j(Q){return Q===o?(k.enter("codeFencedFenceSequence"),re(Q)):L(Q)}function re(Q){return Q===o?(B++,k.consume(Q),re):B>=s?(k.exit("codeFencedFenceSequence"),Ne(Q)?Me(k,ee,"whitespace")(Q):ee(Q)):L(Q)}function ee(Q){return Q===null||fe(Q)?(k.exit("codeFencedFence"),D(Q)):L(Q)}}}function Tz(e,t,n){const i=this;return r;function r(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const x1={name:"codeIndented",tokenize:_z},wz={partial:!0,tokenize:Sz};function _z(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),Me(e,a,"linePrefix",5)(u)}function a(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):fe(u)?e.attempt(wz,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||fe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Sz(e,t,n){const i=this;return r;function r(s){return i.parser.lazy[i.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):Me(e,a,"linePrefix",5)(s)}function a(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?r(s):n(s)}}const Az={name:"codeText",previous:kz,resolve:Cz,tokenize:Oz};function Cz(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function kz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Oz(e,t,n){let i=0,r,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),r=0,c(f)):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||fe(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}class Rz{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Gu(this.left,i),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),Gu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gu(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);Gu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gu(this.left,n.reverse())}}}function Gu(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 NC(e){const t={};let n=-1,i,r,a,s,o,l,u;const c=new Rz(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=i[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(i[0]==="enter")i[1].contentType&&(Object.assign(t,Nz(c,n)),n=t[n],u=!0);else if(i[1]._container){for(a=n,r=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(i[1].end={...c.get(r)[1].start},o=c.slice(r,n),o.unshift(i),c.splice(r,n-r+1,o))}}return qn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Nz(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const a=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,f,d=-1,h=n,g=0,b=0;const T=[b];for(;h;){for(;e.get(++r)[1]!==h;);a.push(r),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(b=d+1,T.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):T.pop(),d=T.length;d--;){const m=o.slice(T[d],T[d+1]),y=a.pop();l.push([y,y+m.length-1]),e.splice(y,2,m)}for(l.reverse(),d=-1;++d<l.length;)u[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return u}const Dz={resolve:Lz,tokenize:Iz},Mz={partial:!0,tokenize:Pz};function Lz(e){return NC(e),e}function Iz(e,t){let n;return i;function i(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(o)}function r(o){return o===null?a(o):fe(o)?e.check(Mz,s,a)(o):(e.consume(o),r)}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,r}}function Pz(e,t,n){const i=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Me(e,a,"linePrefix")}function a(s){if(s===null||fe(s))return n(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function DC(e,t,n,i,r,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||Fd(m)?n(m):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),d(m)):m===null||m===60||fe(m)?n(m):(e.consume(m),m===92?g:h)}function g(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function b(m){return!c&&(m===null||m===41||Xe(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(m)):c<u&&m===40?(e.consume(m),c++,b):m===41?(e.consume(m),c--,b):m===null||m===32||m===40||Fd(m)?n(m):(e.consume(m),m===92?T:b)}function T(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function MC(e,t,n,i,r,a){const s=this;let o=0,l;return u;function u(h){return e.enter(i),e.enter(r),e.consume(h),e.exit(r),e.enter(a),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(a),e.enter(r),e.consume(h),e.exit(r),e.exit(i),t):fe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||fe(h)||o++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ne(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}function LC(e,t,n,i,r,a){let s;return o;function o(d){return d===34||d===39||d===40?(e.enter(i),e.enter(r),e.consume(d),e.exit(r),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(r),e.consume(d),e.exit(r),e.exit(i),t):(e.enter(a),u(d))}function u(d){return d===s?(e.exit(a),l(s)):d===null?n(d):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||fe(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}function Xu(e,t){let n;return i;function i(r){return fe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):Ne(r)?Me(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const Bz={name:"definition",tokenize:zz},Uz={partial:!0,tokenize:jz};function zz(e,t,n){const i=this;let r;return a;function a(h){return e.enter("definition"),s(h)}function s(h){return MC.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return r=Ri(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Xe(h)?Xu(e,u)(h):u(h)}function u(h){return DC(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Uz,f,f)(h)}function f(h){return Ne(h)?Me(e,d,"whitespace")(h):d(h)}function d(h){return h===null||fe(h)?(e.exit("definition"),i.parser.defined.push(r),t(h)):n(h)}}function jz(e,t,n){return i;function i(o){return Xe(o)?Xu(e,r)(o):n(o)}function r(o){return LC(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ne(o)?Me(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const Hz={name:"hardBreakEscape",tokenize:Fz};function Fz(e,t,n){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Vz={name:"headingAtx",resolve:Yz,tokenize:qz};function Yz(e,t){let n=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},a={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},qn(e,i,n-i+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function qz(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||Xe(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ne(c)?Me(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Xe(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const Gz=["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"],IC=["pre","script","style","textarea"],Xz={concrete:!0,name:"htmlFlow",resolveTo:Qz,tokenize:Wz},$z={partial:!0,tokenize:Jz},Kz={partial:!0,tokenize:Zz};function Qz(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 Wz(e,t,n){const i=this;let r,a,s,o,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),f}function f(M){return M===33?(e.consume(M),d):M===47?(e.consume(M),a=!0,b):M===63?(e.consume(M),r=3,i.interrupt?t:O):mn(M)?(e.consume(M),s=String.fromCharCode(M),T):n(M)}function d(M){return M===45?(e.consume(M),r=2,h):M===91?(e.consume(M),r=5,o=0,g):mn(M)?(e.consume(M),r=4,i.interrupt?t:O):n(M)}function h(M){return M===45?(e.consume(M),i.interrupt?t:O):n(M)}function g(M){const Ie="CDATA[";return M===Ie.charCodeAt(o++)?(e.consume(M),o===Ie.length?i.interrupt?t:j:g):n(M)}function b(M){return mn(M)?(e.consume(M),s=String.fromCharCode(M),T):n(M)}function T(M){if(M===null||M===47||M===62||Xe(M)){const Ie=M===47,me=s.toLowerCase();return!Ie&&!a&&IC.includes(me)?(r=1,i.interrupt?t(M):j(M)):Gz.includes(s.toLowerCase())?(r=6,Ie?(e.consume(M),m):i.interrupt?t(M):j(M)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):a?y(M):x(M))}return M===45||an(M)?(e.consume(M),s+=String.fromCharCode(M),T):n(M)}function m(M){return M===62?(e.consume(M),i.interrupt?t:j):n(M)}function y(M){return Ne(M)?(e.consume(M),y):R(M)}function x(M){return M===47?(e.consume(M),R):M===58||M===95||mn(M)?(e.consume(M),w):Ne(M)?(e.consume(M),x):R(M)}function w(M){return M===45||M===46||M===58||M===95||an(M)?(e.consume(M),w):S(M)}function S(M){return M===61?(e.consume(M),k):Ne(M)?(e.consume(M),S):x(M)}function k(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,D):Ne(M)?(e.consume(M),k):L(M)}function D(M){return M===l?(e.consume(M),l=null,B):M===null||fe(M)?n(M):(e.consume(M),D)}function L(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Xe(M)?S(M):(e.consume(M),L)}function B(M){return M===47||M===62||Ne(M)?x(M):n(M)}function R(M){return M===62?(e.consume(M),Y):n(M)}function Y(M){return M===null||fe(M)?j(M):Ne(M)?(e.consume(M),Y):n(M)}function j(M){return M===45&&r===2?(e.consume(M),F):M===60&&r===1?(e.consume(M),V):M===62&&r===4?(e.consume(M),ge):M===63&&r===3?(e.consume(M),O):M===93&&r===5?(e.consume(M),te):fe(M)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check($z,Je,re)(M)):M===null||fe(M)?(e.exit("htmlFlowData"),re(M)):(e.consume(M),j)}function re(M){return e.check(Kz,ee,Je)(M)}function ee(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||fe(M)?re(M):(e.enter("htmlFlowData"),j(M))}function F(M){return M===45?(e.consume(M),O):j(M)}function V(M){return M===47?(e.consume(M),s="",H):j(M)}function H(M){if(M===62){const Ie=s.toLowerCase();return IC.includes(Ie)?(e.consume(M),ge):j(M)}return mn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),H):j(M)}function te(M){return M===93?(e.consume(M),O):j(M)}function O(M){return M===62?(e.consume(M),ge):M===45&&r===2?(e.consume(M),O):j(M)}function ge(M){return M===null||fe(M)?(e.exit("htmlFlowData"),Je(M)):(e.consume(M),ge)}function Je(M){return e.exit("htmlFlow"),t(M)}}function Zz(e,t,n){const i=this;return r;function r(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function Jz(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(qu,t,n)}}const ej={name:"htmlText",tokenize:tj};function tj(e,t,n){const i=this;let r,a,s;return o;function o(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),l}function l(O){return O===33?(e.consume(O),u):O===47?(e.consume(O),S):O===63?(e.consume(O),x):mn(O)?(e.consume(O),L):n(O)}function u(O){return O===45?(e.consume(O),c):O===91?(e.consume(O),a=0,g):mn(O)?(e.consume(O),y):n(O)}function c(O){return O===45?(e.consume(O),h):n(O)}function f(O){return O===null?n(O):O===45?(e.consume(O),d):fe(O)?(s=f,V(O)):(e.consume(O),f)}function d(O){return O===45?(e.consume(O),h):f(O)}function h(O){return O===62?F(O):O===45?d(O):f(O)}function g(O){const ge="CDATA[";return O===ge.charCodeAt(a++)?(e.consume(O),a===ge.length?b:g):n(O)}function b(O){return O===null?n(O):O===93?(e.consume(O),T):fe(O)?(s=b,V(O)):(e.consume(O),b)}function T(O){return O===93?(e.consume(O),m):b(O)}function m(O){return O===62?F(O):O===93?(e.consume(O),m):b(O)}function y(O){return O===null||O===62?F(O):fe(O)?(s=y,V(O)):(e.consume(O),y)}function x(O){return O===null?n(O):O===63?(e.consume(O),w):fe(O)?(s=x,V(O)):(e.consume(O),x)}function w(O){return O===62?F(O):x(O)}function S(O){return mn(O)?(e.consume(O),k):n(O)}function k(O){return O===45||an(O)?(e.consume(O),k):D(O)}function D(O){return fe(O)?(s=D,V(O)):Ne(O)?(e.consume(O),D):F(O)}function L(O){return O===45||an(O)?(e.consume(O),L):O===47||O===62||Xe(O)?B(O):n(O)}function B(O){return O===47?(e.consume(O),F):O===58||O===95||mn(O)?(e.consume(O),R):fe(O)?(s=B,V(O)):Ne(O)?(e.consume(O),B):F(O)}function R(O){return O===45||O===46||O===58||O===95||an(O)?(e.consume(O),R):Y(O)}function Y(O){return O===61?(e.consume(O),j):fe(O)?(s=Y,V(O)):Ne(O)?(e.consume(O),Y):B(O)}function j(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),r=O,re):fe(O)?(s=j,V(O)):Ne(O)?(e.consume(O),j):(e.consume(O),ee)}function re(O){return O===r?(e.consume(O),r=void 0,Q):O===null?n(O):fe(O)?(s=re,V(O)):(e.consume(O),re)}function ee(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||Xe(O)?B(O):(e.consume(O),ee)}function Q(O){return O===47||O===62||Xe(O)?B(O):n(O)}function F(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function V(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),H}function H(O){return Ne(O)?Me(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):te(O)}function te(O){return e.enter("htmlTextData"),s(O)}}const E1={name:"labelEnd",resolveAll:aj,resolveTo:sj,tokenize:oj},nj={tokenize:lj},ij={tokenize:uj},rj={tokenize:cj};function aj(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&qn(e,0,e.length,n),e}function sj(e,t){let n=e.length,i=0,r,a,s,o;for(;n--;)if(r=e[n][1],a){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(a=n,r.type!=="labelLink")){i=2;break}}else r.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}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=pi(o,e.slice(a+1,a+i+3)),o=pi(o,[["enter",c,t]]),o=pi(o,$d(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),o=pi(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=pi(o,e.slice(s+1)),o=pi(o,[["exit",l,t]]),qn(e,a,e.length,o),e}function oj(e,t,n){const i=this;let r=i.events.length,a,s;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){a=i.events[r][1];break}return o;function o(d){return a?a._inactive?f(d):(s=i.parser.defined.includes(Ri(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(nj,c,s?c:f)(d):d===91?e.attempt(ij,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(rj,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,n(d)}}function lj(e,t,n){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),r}function r(f){return Xe(f)?Xu(e,a)(f):a(f)}function a(f){return f===41?c(f):DC(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Xe(f)?Xu(e,l)(f):c(f)}function o(f){return n(f)}function l(f){return f===34||f===39||f===40?LC(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Xe(f)?Xu(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function uj(e,t,n){const i=this;return r;function r(o){return MC.call(i,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(Ri(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function cj(e,t,n){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),r}function r(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const fj={name:"labelStartImage",resolveAll:E1.resolveAll,tokenize:dj};function dj(e,t,n){const i=this;return r;function r(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 i.parser.constructs?n(o):t(o)}}const hj={name:"labelStartLink",resolveAll:E1.resolveAll,tokenize:pj};function pj(e,t,n){const i=this;return r;function r(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 i.parser.constructs?n(s):t(s)}}const T1={name:"lineEnding",tokenize:mj};function mj(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Me(e,t,"linePrefix")}}const Kd={name:"thematicBreak",tokenize:gj};function gj(e,t,n){let i=0,r;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return r=u,o(u)}function o(u){return u===r?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===r?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Ne(u)?Me(e,o,"whitespace")(u):o(u))}}const _n={continuation:{tokenize:xj},exit:Tj,name:"list",tokenize:vj},bj={partial:!0,tokenize:wj},yj={partial:!0,tokenize:Ej};function vj(e,t,n){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return o;function o(h){const g=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:o1(h)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Kd,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return o1(h)&&++s<10?(e.consume(h),l):(!i.interrupt||s<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(qu,i.interrupt?n:c,e.attempt(bj,d,f))}function c(h){return i.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return Ne(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function xj(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(qu,r,a);function r(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Me(e,t,"listItemIndent",i.containerState.size+1)(o)}function a(o){return i.containerState.furtherBlankLines||!Ne(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(yj,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Me(e,e.attempt(_n,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ej(e,t,n){const i=this;return Me(e,r,"listItemIndent",i.containerState.size+1);function r(a){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(a):n(a)}}function Tj(e){e.exit(this.containerState.type)}function wj(e,t,n){const i=this;return Me(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const s=i.events[i.events.length-1];return!Ne(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const PC={name:"setextUnderline",resolveTo:_j,tokenize:Sj};function _j(e,t){let n=e.length,i,r,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=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[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",s,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function Sj(e,t,n){const i=this;let r;return a;function a(u){let c=i.events.length,f;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){f=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),r=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===r?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ne(u)?Me(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Aj={tokenize:Lj,partial:!0};function Cj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Nj,continuation:{tokenize:Dj},exit:Mj}},text:{91:{name:"gfmFootnoteCall",tokenize:Rj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kj,resolveTo:Oj}}}}function kj(e,t,n){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;r--;){const l=i.events[r][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=Ri(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Oj(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...o),e}function Rj(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Xe(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(Ri(i.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Xe(f)||(s=!0),a++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function Nj(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!o||g===null||g===91||Xe(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Ri(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Xe(g)||(o=!0),s++,e.consume(g),g===92?f:c}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),r.includes(a)||r.push(a),Me(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function Dj(e,t,n){return e.check(qu,t,e.attempt(Aj,t,n))}function Mj(e){e.exit("gfmFootnoteDefinition")}function Lj(e,t,n){const i=this;return Me(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Ij(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],h=o.parser.constructs.insideSpan.null;h&&qn(d,d.length,0,$d(h,s.slice(u+1,l),o)),qn(d,d.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),qn(s,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,o,l){const u=this.previous,c=this.events;let f=0;return d;function d(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const b=Fo(u);if(g===126)return f>1?l(g):(s.consume(g),f++,h);if(f<2&&!n)return l(g);const T=s.exit("strikethroughSequenceTemporary"),m=Fo(g);return T._open=!m||m===2&&!!b,T._close=!b||b===2&&!!m,o(g)}}}class Pj{constructor(){this.map=[]}add(t,n,i){Bj(this,t,n,i)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const a of r)t.push(a);r=i.pop()}this.map.length=0}}function Bj(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function Uj(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function zj(){return{flow:{null:{name:"table",tokenize:jj,resolveAll:Hj}}}}function jj(e,t,n){const i=this;let r=0,a=0,s;return o;function o(R){let Y=i.events.length-1;for(;Y>-1;){const ee=i.events[Y][1].type;if(ee==="lineEnding"||ee==="linePrefix")Y--;else break}const j=Y>-1?i.events[Y][1].type:null,re=j==="tableHead"||j==="tableRow"?k:l;return re===k&&i.parser.lazy[i.now().line]?n(R):re(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(s=!0,a+=1),c(R)}function c(R){return R===null?n(R):fe(R)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),h):n(R):Ne(R)?Me(e,c,"whitespace")(R):(a+=1,s&&(s=!1,r+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(R)))}function f(R){return R===null||R===124||Xe(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?d:f)}function d(R){return R===92||R===124?(e.consume(R),f):f(R)}function h(R){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(R):(e.enter("tableDelimiterRow"),s=!1,Ne(R)?Me(e,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?T(R):R===124?(s=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):S(R)}function b(R){return Ne(R)?Me(e,T,"whitespace")(R):T(R)}function T(R){return R===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),m):R===45?(a+=1,m(R)):R===null||fe(R)?w(R):S(R)}function m(R){return R===45?(e.enter("tableDelimiterFiller"),y(R)):S(R)}function y(R){return R===45?(e.consume(R),y):R===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(R))}function x(R){return Ne(R)?Me(e,w,"whitespace")(R):w(R)}function w(R){return R===124?g(R):R===null||fe(R)?!s||r!==a?S(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):S(R)}function S(R){return n(R)}function k(R){return e.enter("tableRow"),D(R)}function D(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),D):R===null||fe(R)?(e.exit("tableRow"),t(R)):Ne(R)?Me(e,D,"whitespace")(R):(e.enter("data"),L(R))}function L(R){return R===null||R===124||Xe(R)?(e.exit("data"),D(R)):(e.consume(R),R===92?B:L)}function B(R){return R===92||R===124?(e.consume(R),L):L(R)}}function Hj(e,t){let n=-1,i=!0,r=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const d=new Pj;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(BC(d,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,f=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])),r=g.type==="tableDelimiterRow"?2:c?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],f=Qd(d,t,a,r,void 0,f),a=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],f=Qd(d,t,a,r,void 0,f)),a=s,s=[a[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(s[0]=s[1],f=Qd(d,t,a,r,n,f)):s[1]!==0&&(f=Qd(d,t,s,r,n,f)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&BC(d,t,l,u,c),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Uj(t.events,n))}return e}function Qd(e,t,n,i,r,a){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},Yo(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Yo(t.events,n[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=Yo(t.events,n[2]),c=Yo(t.events,n[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),i!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return r!==void 0&&(a.end=Object.assign({},Yo(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function BC(e,t,n,i,r){const a=[],s=Yo(t.events,n);r&&(r.end=Object.assign({},s),a.push(["exit",r,t])),i.end=Object.assign({},s),a.push(["exit",i,t]),e.add(n+1,0,a)}function Yo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const Fj={name:"tasklistCheck",tokenize:Yj};function Vj(){return{text:{91:Fj}}}function Yj(e,t,n){const i=this;return r;function r(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Xe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return fe(l)?t(l):Ne(l)?e.check({tokenize:qj},t,n)(l):n(l)}}function qj(e,t,n){return Me(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function Gj(e){return gC([nz(),Cj(),Ij(e),zj(),Vj()])}const Xj={};function UC(e){const t=this,n=e||Xj,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(Gj(n)),a.push(QU()),s.push(WU(n))}function zC(e){const t=[],n=String(e||"");let i=n.indexOf(","),r=0,a=!1;for(;!a;){i===-1&&(i=n.length,a=!0);const s=n.slice(r,i).trim();(s||!a)&&t.push(s),r=i+1,i=n.indexOf(",",r)}return t}function jC(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $j=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qj={};function HC(e,t){return(Qj.jsx?Kj:$j).test(e)}const Wj=/[ \t\n\f\r]/g;function Zj(e){return typeof e=="object"?e.type==="text"?FC(e.value):!1:FC(e)}function FC(e){return e.replace(Wj,"")===""}let $u=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};$u.prototype.normal={},$u.prototype.property={},$u.prototype.space=void 0;function VC(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new $u(n,i,t)}function Ku(e){return e.toLowerCase()}let Sn=class{constructor(t,n){this.attribute=n,this.property=t}};Sn.prototype.attribute="",Sn.prototype.booleanish=!1,Sn.prototype.boolean=!1,Sn.prototype.commaOrSpaceSeparated=!1,Sn.prototype.commaSeparated=!1,Sn.prototype.defined=!1,Sn.prototype.mustUseProperty=!1,Sn.prototype.number=!1,Sn.prototype.overloadedBoolean=!1,Sn.prototype.property="",Sn.prototype.spaceSeparated=!1,Sn.prototype.space=void 0;let Jj=0;const we=ds(),At=ds(),w1=ds(),W=ds(),We=ds(),qo=ds(),Gn=ds();function ds(){return 2**++Jj}const _1=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:At,commaOrSpaceSeparated:Gn,commaSeparated:qo,number:W,overloadedBoolean:w1,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),S1=Object.keys(_1);let A1=class extends Sn{constructor(t,n,i,r){let a=-1;if(super(t,n),YC(this,"space",r),typeof i=="number")for(;++a<S1.length;){const s=S1[a];YC(this,S1[a],(i&_1[s])===_1[s])}}};A1.prototype.defined=!0;function YC(e,t,n){n&&(e[t]=n)}function Go(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const a=new A1(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Ku(i)]=i,n[Ku(a.attribute)]=i}return new $u(t,n,e.space)}const qC=Go({properties:{ariaActiveDescendant:null,ariaAtomic:At,ariaAutoComplete:null,ariaBusy:At,ariaChecked:At,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:At,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:At,ariaFlowTo:We,ariaGrabbed:At,ariaHasPopup:null,ariaHidden:At,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:W,ariaLive:null,ariaModal:At,ariaMultiLine:At,ariaMultiSelectable:At,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:At,ariaReadOnly:At,ariaRelevant:null,ariaRequired:At,ariaRoleDescription:We,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:At,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function GC(e,t){return t in e?e[t]:t}function XC(e,t){return GC(e,t.toLowerCase())}const eH=Go({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qo,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:We,autoFocus:we,autoPlay:we,blocking:We,capture:null,charSet:null,checked:we,cite:null,className:We,cols:W,colSpan:null,content:null,contentEditable:At,controls:we,controlsList:We,coords:W|qo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:w1,draggable:At,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:We,height:W,hidden:w1,high:W,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:We,itemRef:We,itemScope:we,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,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:we,optimum:W,pattern:null,ping:We,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:We,required:we,reversed:we,rows:W,rowSpan:W,sandbox:We,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:At,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:At,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:At,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:XC}),tH=Go({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Gn,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:We,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:qo,g2:qo,glyphName:qo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:GC}),$C=Go({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()}}),KC=Go({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:XC}),QC=Go({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nH={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"},iH=/[A-Z]/g,WC=/-[a-z]/g,rH=/^data[-\w.:]+$/i;function C1(e,t){const n=Ku(t);let i=t,r=Sn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&rH.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(WC,sH);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!WC.test(a)){let s=a.replace(iH,aH);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=A1}return new r(i,t)}function aH(e){return"-"+e.toLowerCase()}function sH(e){return e.charAt(1).toUpperCase()}const Wd=VC([qC,eH,$C,KC,QC],"html"),Xo=VC([qC,tH,$C,KC,QC],"svg");function ZC(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function JC(e){return e.join(" ").trim()}var k1={},e3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oH=/\n/g,lH=/^\s*/,uH=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,cH=/^:\s*/,fH=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,dH=/^[;\s]*/,hH=/^\s+|\s+$/g,pH=`
|
|
286
|
-
`,t3="/",n3="*",hs="",mH="comment",gH="declaration",bH=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(g){var b=g.match(oH);b&&(n+=b.length);var T=g.lastIndexOf(pH);i=~T?g.length-T:i+g.length}function a(){var g={line:n,column:i};return function(b){return b.position=new s(g),u(),b}}function s(g){this.start=g,this.end={line:n,column:i},this.source=t.source}s.prototype.content=e;function o(g){var b=new Error(t.source+":"+n+":"+i+": "+g);if(b.reason=g,b.filename=t.source,b.line=n,b.column=i,b.source=e,!t.silent)throw b}function l(g){var b=g.exec(e);if(b){var T=b[0];return r(T),e=e.slice(T.length),b}}function u(){l(lH)}function c(g){var b;for(g=g||[];b=f();)b!==!1&&g.push(b);return g}function f(){var g=a();if(!(t3!=e.charAt(0)||n3!=e.charAt(1))){for(var b=2;hs!=e.charAt(b)&&(n3!=e.charAt(b)||t3!=e.charAt(b+1));)++b;if(b+=2,hs===e.charAt(b-1))return o("End of comment missing");var T=e.slice(2,b-2);return i+=2,r(T),e=e.slice(b),i+=2,g({type:mH,comment:T})}}function d(){var g=a(),b=l(uH);if(b){if(f(),!l(cH))return o("property missing ':'");var T=l(fH),m=g({type:gH,property:i3(b[0].replace(e3,hs)),value:T?i3(T[0].replace(e3,hs)):hs});return l(dH),m}}function h(){var g=[];c(g);for(var b;b=d();)b!==!1&&(g.push(b),c(g));return g}return u(),h()};function i3(e){return e?e.replace(hH,hs):hs}var yH=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k1,"__esModule",{value:!0}),k1.default=xH;var vH=yH(bH);function xH(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,vH.default)(e),r=typeof t=="function";return i.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;r?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var Zd={};Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.camelCase=void 0;var EH=/^--[a-zA-Z0-9_-]+$/,TH=/-([a-z])/g,wH=/^[^-]+$/,_H=/^-(webkit|moz|ms|o|khtml)-/,SH=/^-(ms)-/,AH=function(e){return!e||wH.test(e)||EH.test(e)},CH=function(e,t){return t.toUpperCase()},r3=function(e,t){return"".concat(t,"-")},kH=function(e,t){return t===void 0&&(t={}),AH(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(SH,r3):e=e.replace(_H,r3),e.replace(TH,CH))};Zd.camelCase=kH;var OH=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},RH=OH(k1),NH=Zd;function O1(e,t){var n={};return!e||typeof e!="string"||(0,RH.default)(e,function(i,r){i&&r&&(n[(0,NH.camelCase)(i,t)]=r)}),n}O1.default=O1;var DH=O1;const MH=dl(DH),Jd=a3("end"),Ji=a3("start");function a3(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function LH(e){const t=Ji(e),n=Jd(e);if(t&&n)return{start:t,end:n}}function Qu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?s3(e.position):"start"in e||"end"in e?s3(e):"line"in e||"column"in e?R1(e):""}function R1(e){return o3(e&&e.line)+":"+o3(e&&e.column)}function s3(e){return R1(e&&e.start)+"-"+R1(e&&e.end)}function o3(e){return e&&typeof e=="number"?e:1}class sn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",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"?r=t:!a.cause&&t&&(s=!0,r=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?a.ruleId=i:(a.source=i.slice(0,l),a.ruleId=i.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=r,this.line=o?o.line:void 0,this.name=Qu(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}}sn.prototype.file="",sn.prototype.name="",sn.prototype.reason="",sn.prototype.message="",sn.prototype.stack="",sn.prototype.column=void 0,sn.prototype.line=void 0,sn.prototype.ancestors=void 0,sn.prototype.cause=void 0,sn.prototype.fatal=void 0,sn.prototype.place=void 0,sn.prototype.ruleId=void 0,sn.prototype.source=void 0;const N1={}.hasOwnProperty,IH=new Map,PH=/[A-Z]/g,BH=new Set(["table","tbody","thead","tfoot","tr"]),UH=new Set(["td","th"]),l3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zH(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=XH(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");i=GH(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?Xo:Wd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=u3(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function u3(e,t,n){if(t.type==="element")return jH(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HH(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VH(e,t,n);if(t.type==="mdxjsEsm")return FH(e,t);if(t.type==="root")return YH(e,t,n);if(t.type==="text")return qH(e,t)}function jH(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=Xo,e.schema=r),e.ancestors.push(t);const a=f3(e,t.tagName,!1),s=$H(e,t);let o=M1(e,t);return BH.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Zj(l):!0})),c3(e,s,a,t),D1(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function HH(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Wu(e,t.position)}function FH(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Wu(e,t.position)}function VH(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=Xo,e.schema=r),e.ancestors.push(t);const a=t.name===null?e.Fragment:f3(e,t.name,!0),s=KH(e,t),o=M1(e,t);return c3(e,s,a,t),D1(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function YH(e,t,n){const i={};return D1(i,M1(e,t)),e.create(t,e.Fragment,i,n)}function qH(e,t){return t.value}function c3(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function D1(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function GH(e,t,n){return i;function i(r,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function XH(e,t){return n;function n(i,r,a,s){const o=Array.isArray(a.children),l=Ji(i);return t(r,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $H(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&N1.call(t.properties,r)){const a=QH(e,r,t.properties[r]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&UH.has(t.tagName)?i=o:n[s]=o}}if(i){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function KH(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.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 Wu(e,t.position);else{const r=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Wu(e,t.position);else a=i.value===null?!0:i.value;n[r]=a}return n}function M1(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:IH;for(;++i<t.children.length;){const a=t.children[i];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 u=r.get(l)||0;s=l+"-"+u,r.set(l,u+1)}}const o=u3(e,a,s);o!==void 0&&n.push(o)}return n}function QH(e,t,n){const i=C1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?jC(n):JC(n)),i.property==="style"){let r=typeof n=="object"?n:WH(e,String(n));return e.stylePropertyNameCase==="css"&&(r=ZH(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?nH[i.property]||i.property:i.attribute,n]}}function WH(e,t){try{return MH(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new sn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=l3+"#cannot-parse-style-attribute",r}}function f3(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let a=-1,s;for(;++a<r.length;){const o=HC(r[a])?{type:"Identifier",name:r[a]}:{type:"Literal",value:r[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}i=s}else i=HC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return N1.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Wu(e)}function Wu(e,t){const n=new sn("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=l3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ZH(e){const t={};let n;for(n in e)N1.call(e,n)&&(t[JH(n)]=e[n]);return t}function JH(e){let t=e.replace(PH,eF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function eF(e){return"-"+e.toLowerCase()}const L1={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"]},tF={tokenize:nF};function nF(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Me(e,t,"linePrefix")}function r(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 fe(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const iF={tokenize:rF},d3={tokenize:aF};function rF(e){const t=this,n=[];let i=0,r,a,s;return o;function o(x){if(i<n.length){const w=n[i];return t.containerState=w[1],e.attempt(w[0].continuation,l,u)(x)}return u(x)}function l(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const w=t.events.length;let S=w,k;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){k=t.events[S][1].end;break}m(i);let D=w;for(;D<t.events.length;)t.events[D][1].end={...k},D++;return qn(t.events,S+1,0,t.events.slice(w)),t.events.length=D,u(x)}return o(x)}function u(x){if(i===n.length){if(!r)return d(x);if(r.currentConstruct&&r.currentConstruct.concrete)return g(x);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(d3,c,f)(x)}function c(x){return r&&y(),m(i),d(x)}function f(x){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,g(x)}function d(x){return t.containerState={},e.attempt(d3,h,g)(x)}function h(x){return i++,n.push([t.currentConstruct,t.containerState]),d(x)}function g(x){if(x===null){r&&y(),m(0),e.consume(x);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),b(x)}function b(x){if(x===null){T(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return fe(x)?(e.consume(x),T(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(x),b)}function T(x,w){const S=t.sliceStream(x);if(w&&S.push(null),x.previous=a,a&&(a.next=x),a=x,r.defineSkip(x.start),r.write(S),t.parser.lazy[x.start.line]){let k=r.events.length;for(;k--;)if(r.events[k][1].start.offset<s&&(!r.events[k][1].end||r.events[k][1].end.offset>s))return;const D=t.events.length;let L=D,B,R;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(B){R=t.events[L][1].end;break}B=!0}for(m(i),k=D;k<t.events.length;)t.events[k][1].end={...R},k++;qn(t.events,L+1,0,t.events.slice(D)),t.events.length=k}}function m(x){let w=n.length;for(;w-- >x;){const S=n[w];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function y(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function aF(e,t,n){return Me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const sF={tokenize:oF};function oF(e){const t=this,n=e.attempt(qu,i,e.attempt(this.parser.constructs.flowInitial,r,Me(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Dz,r)),"linePrefix")));return n;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const lF={resolveAll:p3()},uF=h3("string"),cF=h3("text");function h3(e){return{resolveAll:p3(e==="text"?fF:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],a=n.attempt(r,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),a(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=r[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function p3(e){return t;function t(n,i){let r=-1,a;for(;++r<=n.length;)a===void 0?n[r]&&n[r][1].type==="data"&&(a=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==a+2&&(n[a][1].end=n[r-1][1].end,n.splice(a+2,r-a-2),r=a+2),a=void 0);return e?e(n,i):n}}function fF(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 i=e[n-1][1],r=t.sliceStream(i);let a=r.length,s=-1,o=0,l;for(;a--;){const u=r[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const dF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Bz},disable:{null:[]},document:{42:_n,43:_n,45:_n,48:_n,49:_n,50:_n,51:_n,52:_n,53:_n,54:_n,55:_n,56:_n,57:_n,62:AC},flow:{35:Vz,42:Kd,45:[PC,Kd],60:Xz,61:PC,95:Kd,96:RC,126:RC},flowInitial:{[-2]:x1,[-1]:x1,32:x1},insideSpan:{null:[v1,lF]},string:{38:kC,92:CC},text:{[-5]:T1,[-4]:T1,[-3]:T1,33:fj,38:kC,42:v1,60:[hz,ej],91:hj,92:[Hz,CC],93:E1,95:v1,96:Az}},Symbol.toStringTag,{value:"Module"}));function hF(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},a=[];let s=[],o=[];const l={attempt:D(S),check:D(k),consume:y,enter:x,exit:w,interrupt:D(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(Y){return s=pi(s,Y),T(),s[s.length-1]!==null?[]:(L(t,0),u.events=$d(a,u.events,u),u.events)}function d(Y,j){return mF(h(Y),j)}function h(Y){return pF(s,Y)}function g(){const{_bufferIndex:Y,_index:j,line:re,column:ee,offset:Q}=i;return{_bufferIndex:Y,_index:j,line:re,column:ee,offset:Q}}function b(Y){r[Y.line]=Y.column,R()}function T(){let Y;for(;i._index<s.length;){const j=s[i._index];if(typeof j=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<j.length;)m(j.charCodeAt(i._bufferIndex));else m(j)}}function m(Y){c=c(Y)}function y(Y){fe(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,R()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=Y}function x(Y,j){const re=j||{};return re.type=Y,re.start=g(),u.events.push(["enter",re,u]),o.push(re),re}function w(Y){const j=o.pop();return j.end=g(),u.events.push(["exit",j,u]),j}function S(Y,j){L(Y,j.from)}function k(Y,j){j.restore()}function D(Y,j){return re;function re(ee,Q,F){let V,H,te,O;return Array.isArray(ee)?Je(ee):"tokenize"in ee?Je([ee]):ge(ee);function ge(Pe){return ln;function ln(Ke){const Ft=Ke!==null&&Pe[Ke],Ot=Ke!==null&&Pe.null,Vt=[...Array.isArray(Ft)?Ft:Ft?[Ft]:[],...Array.isArray(Ot)?Ot:Ot?[Ot]:[]];return Je(Vt)(Ke)}}function Je(Pe){return V=Pe,H=0,Pe.length===0?F:M(Pe[H])}function M(Pe){return ln;function ln(Ke){return O=B(),te=Pe,Pe.partial||(u.currentConstruct=Pe),Pe.name&&u.parser.constructs.disable.null.includes(Pe.name)?me():Pe.tokenize.call(j?Object.assign(Object.create(u),j):u,l,Ie,me)(Ke)}}function Ie(Pe){return Y(te,O),Q}function me(Pe){return O.restore(),++H<V.length?M(V[H]):F}}}function L(Y,j){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&qn(u.events,j,u.events.length-j,Y.resolve(u.events.slice(j),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function B(){const Y=g(),j=u.previous,re=u.currentConstruct,ee=u.events.length,Q=Array.from(o);return{from:ee,restore:F};function F(){i=Y,u.previous=j,u.currentConstruct=re,u.events.length=ee,o=Q,R()}}function R(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function pF(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,a=t.end._bufferIndex;let s;if(n===r)s=[e[n].slice(i,a)];else{if(s=e.slice(n,r),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}a>0&&s.push(e[r].slice(0,a))}return s}function mF(e,t){let n=-1;const i=[];let r;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=`
|
|
287
|
-
`;break}case-3:{s=`\r
|
|
288
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(a)}r=a===-2,i.push(s)}return i.join("")}function gF(e){const i={constructs:gC([dF,...(e||{}).extensions||[]]),content:r(tF),defined:[],document:r(iF),flow:r(sF),lazy:{},string:r(uF),text:r(cF)};return i;function r(a){return s;function s(o){return hF(i,a,o)}}}function bF(e){for(;!NC(e););return e}const m3=/[\0\t\n\r]/g;function yF(){let e=1,t="",n=!0,i;return r;function r(a,s,o){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(m3.lastIndex=f,u=m3.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}f=d+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const g3={}.hasOwnProperty;function vF(e,t,n){return typeof t!="string"&&(n=t,t=void 0),xF(n)(bF(gF(n).document().write(yF()(e,t,!0))))}function xF(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Zt),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(yi),blockQuote:a(Ot),characterEscape:B,characterReference:B,codeFenced:a(Vt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Vt,s),codeText:a(Yt,s),codeTextData:B,data:B,codeFlowValue:B,definition:a(un),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Qn),hardBreakEscape:a(vi),hardBreakTrailing:a(vi),htmlFlow:a(cn,s),htmlFlowData:B,htmlText:a(cn,s),htmlTextData:B,image:a(xi),label:s,link:a(Zt),listItem:a(Da),listItemValue:d,listOrdered:a(Ei,f),listUnordered:a(Ei),paragraph:a(Cn),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(yi),strong:a(Ir),thematicBreak:a(de)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:Ft,autolinkProtocol:Ke,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:Pe,characterReference:ln,codeFenced:l(T),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(m),codeText:l(Q),codeTextData:R,data:R,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(re),htmlFlowData:R,htmlText:l(ee),htmlTextData:R,image:l(V),label:te,labelText:H,lineEnding:Y,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ie,resourceDestinationString:O,resourceTitleString:ge,resource:Je,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:k,strong:l(),thematicBreak:l()}};b3(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(U){let X={type:"root",children:[]};const oe={stack:[X],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},xe=[];let be=-1;for(;++be<U.length;)if(U[be][1].type==="listOrdered"||U[be][1].type==="listUnordered")if(U[be][0]==="enter")xe.push(be);else{const qt=xe.pop();be=r(U,qt,be)}for(be=-1;++be<U.length;){const qt=t[U[be][0]];g3.call(qt,U[be][1].type)&&qt[U[be][1].type].call(Object.assign({sliceSerialize:U[be][2].sliceSerialize},oe),U[be][1])}if(oe.tokenStack.length>0){const qt=oe.tokenStack[oe.tokenStack.length-1];(qt[1]||y3).call(oe,void 0,qt[0])}for(X.position={start:wa(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:wa(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<t.transforms.length;)X=t.transforms[be](X)||X;return X}function r(U,X,oe){let xe=X-1,be=-1,qt=!1,kn,gn,Wn,On;for(;++xe<=oe;){const Rt=U[xe];switch(Rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Rt[0]==="enter"?be++:be--,On=void 0;break}case"lineEndingBlank":{Rt[0]==="enter"&&(kn&&!On&&!be&&!Wn&&(Wn=xe),On=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:On=void 0}if(!be&&Rt[0]==="enter"&&Rt[1].type==="listItemPrefix"||be===-1&&Rt[0]==="exit"&&(Rt[1].type==="listUnordered"||Rt[1].type==="listOrdered")){if(kn){let Zn=xe;for(gn=void 0;Zn--;){const bn=U[Zn];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;gn&&(U[gn][1].type="lineEndingBlank",qt=!0),bn[1].type="lineEnding",gn=Zn}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}Wn&&(!gn||Wn<gn)&&(kn._spread=!0),kn.end=Object.assign({},gn?U[gn][1].start:Rt[1].end),U.splice(gn||xe,0,["exit",kn,Rt[2]]),xe++,oe++}if(Rt[1].type==="listItemPrefix"){const Zn={type:"listItem",_spread:!1,start:Object.assign({},Rt[1].start),end:void 0};kn=Zn,U.splice(xe,0,["enter",Zn,Rt[2]]),xe++,oe++,Wn=void 0,On=!0}}}return U[X][1]._spread=qt,oe}function a(U,X){return oe;function oe(xe){o.call(this,U(xe),xe),X&&X.call(this,xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(U,X,oe){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([X,oe||void 0]),U.position={start:wa(X.start),end:void 0}}function l(U){return X;function X(oe){U&&U.call(this,oe),u.call(this,oe)}}function u(U,X){const oe=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==U.type&&(X?X.call(this,U,xe[0]):(xe[1]||y3).call(this,U,xe[0]));else throw new Error("Cannot close `"+U.type+"` ("+Qu({start:U.start,end:U.end})+"): it’s not open");oe.position.end=wa(U.end)}function c(){return h1(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(U){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function h(){const U=this.resume(),X=this.stack[this.stack.length-1];X.lang=U}function g(){const U=this.resume(),X=this.stack[this.stack.length-1];X.meta=U}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U.replace(/(\r?\n|\r)$/g,"")}function y(U){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.label=X,oe.identifier=Ri(this.sliceSerialize(U)).toLowerCase()}function x(){const U=this.resume(),X=this.stack[this.stack.length-1];X.title=U}function w(){const U=this.resume(),X=this.stack[this.stack.length-1];X.url=U}function S(U){const X=this.stack[this.stack.length-1];if(!X.depth){const oe=this.sliceSerialize(U).length;X.depth=oe}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function D(U){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function B(U){const oe=this.stack[this.stack.length-1].children;let xe=oe[oe.length-1];(!xe||xe.type!=="text")&&(xe=ne(),xe.position={start:wa(U.start),end:void 0},oe.push(xe)),this.stack.push(xe)}function R(U){const X=this.stack.pop();X.value+=this.sliceSerialize(U),X.position.end=wa(U.end)}function Y(U){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const oe=X.children[X.children.length-1];oe.position.end=wa(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(B.call(this,U),R.call(this,U))}function j(){this.data.atHardBreak=!0}function re(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U}function ee(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U}function Q(){const U=this.resume(),X=this.stack[this.stack.length-1];X.value=U}function F(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=X,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function V(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=X,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function H(U){const X=this.sliceSerialize(U),oe=this.stack[this.stack.length-2];oe.label=BU(X),oe.identifier=Ri(X).toLowerCase()}function te(){const U=this.stack[this.stack.length-1],X=this.resume(),oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,oe.type==="link"){const xe=U.children;oe.children=xe}else oe.alt=X}function O(){const U=this.resume(),X=this.stack[this.stack.length-1];X.url=U}function ge(){const U=this.resume(),X=this.stack[this.stack.length-1];X.title=U}function Je(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Ie(U){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.label=X,oe.identifier=Ri(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function me(U){this.data.characterReferenceType=U.type}function Pe(U){const X=this.sliceSerialize(U),oe=this.data.characterReferenceType;let xe;oe?(xe=dC(X,oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):xe=m1(X);const be=this.stack[this.stack.length-1];be.value+=xe}function ln(U){const X=this.stack.pop();X.position.end=wa(U.end)}function Ke(U){R.call(this,U);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(U)}function Ft(U){R.call(this,U);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(U)}function Ot(){return{type:"blockquote",children:[]}}function Vt(){return{type:"code",lang:null,meta:null,value:""}}function Yt(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qn(){return{type:"emphasis",children:[]}}function yi(){return{type:"heading",depth:0,children:[]}}function vi(){return{type:"break"}}function cn(){return{type:"html",value:""}}function xi(){return{type:"image",title:null,url:"",alt:null}}function Zt(){return{type:"link",title:null,url:"",children:[]}}function Ei(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function Da(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function Ir(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function de(){return{type:"thematicBreak"}}}function wa(e){return{line:e.line,column:e.column,offset:e.offset}}function b3(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?b3(e,i):EF(e,i)}}function EF(e,t){let n;for(n in t)if(g3.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function y3(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qu({start:t.start,end:t.end})+") is still open")}function TF(e){const t=this;t.parser=n;function n(i){return vF(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function wF(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 _F(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
289
|
-
`}]}function SF(e,t){const n=t.value?t.value+`
|
|
290
|
-
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function AF(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CF(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kF(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Vo(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function OF(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 RF(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function v3(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function NF(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return v3(e,t);const r={src:Vo(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function DF(e,t){const n={src:Vo(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 i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function MF(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function LF(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return v3(e,t);const r={href:Vo(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function IF(e,t){const n={href:Vo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function PF(e,t,n){const i=e.all(t),r=n?BF(n):x3(t),a={},s=[];if(typeof t.checked=="boolean"){const c=i[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.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<i.length;){const c=i[o];(r||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
291
|
-
`}),c.type==="element"&&c.tagName==="p"&&!r?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(r||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
292
|
-
`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function BF(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=x3(n[i])}return t}function x3(e){const t=e.spread;return t??e.children.length>1}function UF(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const s=i[r];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(i,!0)};return e.patch(t,a),e.applyData(t,a)}function zF(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jF(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function HF(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FF(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),r.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Ji(t.children[1]),l=Jd(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),r.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function VF(e,t,n){const i=n?n.children:void 0,a=(i?i.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 u=[];for(;++l<o;){const f=t.children[l],d={},h=s?s[l]:void 0;h&&(d.align=h);let g={type:"element",tagName:a,properties:d,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function YF(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const E3=9,T3=32;function qF(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const a=[];for(;i;)a.push(w3(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return a.push(w3(t.slice(r),r>0,!1)),a.join("")}function w3(e,t,n){let i=0,r=e.length;if(t){let a=e.codePointAt(i);for(;a===E3||a===T3;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(r-1);for(;a===E3||a===T3;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function GF(e,t){const n={type:"text",value:qF(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function XF(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const $F={blockquote:wF,break:_F,code:SF,delete:AF,emphasis:CF,footnoteReference:kF,heading:OF,html:RF,imageReference:NF,image:DF,inlineCode:MF,linkReference:LF,link:IF,listItem:PF,list:UF,paragraph:zF,root:jF,strong:HF,table:FF,tableCell:YF,tableRow:VF,text:GF,thematicBreak:XF,toml:eh,yaml:eh,definition:eh,footnoteDefinition:eh};function eh(){}const _3=-1,th=0,Zu=1,nh=2,I1=3,P1=4,B1=5,U1=6,S3=7,A3=8,C3=typeof self=="object"?self:globalThis,KF=(e,t)=>{const n=(r,a)=>(e.set(a,r),r),i=r=>{if(e.has(r))return e.get(r);const[a,s]=t[r];switch(a){case th:case _3:return n(s,r);case Zu:{const o=n([],r);for(const l of s)o.push(i(l));return o}case nh:{const o=n({},r);for(const[l,u]of s)o[i(l)]=i(u);return o}case I1:return n(new Date(s),r);case P1:{const{source:o,flags:l}=s;return n(new RegExp(o,l),r)}case B1:{const o=n(new Map,r);for(const[l,u]of s)o.set(i(l),i(u));return o}case U1:{const o=n(new Set,r);for(const l of s)o.add(i(l));return o}case S3:{const{name:o,message:l}=s;return n(new C3[o](l),r)}case A3:return n(BigInt(s),r);case"BigInt":return n(Object(BigInt(s)),r);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new C3[a](s),r)};return i},k3=e=>KF(new Map,e)(0),$o="",{toString:QF}={},{keys:WF}=Object,Ju=e=>{const t=typeof e;if(t!=="object"||!e)return[th,t];const n=QF.call(e).slice(8,-1);switch(n){case"Array":return[Zu,$o];case"Object":return[nh,$o];case"Date":return[I1,$o];case"RegExp":return[P1,$o];case"Map":return[B1,$o];case"Set":return[U1,$o];case"DataView":return[Zu,n]}return n.includes("Array")?[Zu,n]:n.includes("Error")?[S3,n]:[nh,n]},ih=([e,t])=>e===th&&(t==="function"||t==="symbol"),ZF=(e,t,n,i)=>{const r=(s,o)=>{const l=i.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Ju(s);switch(o){case th:{let c=s;switch(l){case"bigint":o=A3,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return r([_3],s)}return r([o,c],s)}case Zu:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),r([l,[...d]],s)}const c=[],f=r([o,c],s);for(const d of s)c.push(a(d));return f}case nh:{if(l)switch(l){case"BigInt":return r([l,s.toString()],s);case"Boolean":case"Number":case"String":return r([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=r([o,c],s);for(const d of WF(s))(e||!ih(Ju(s[d])))&&c.push([a(d),a(s[d])]);return f}case I1:return r([o,s.toISOString()],s);case P1:{const{source:c,flags:f}=s;return r([o,{source:c,flags:f}],s)}case B1:{const c=[],f=r([o,c],s);for(const[d,h]of s)(e||!(ih(Ju(d))||ih(Ju(h))))&&c.push([a(d),a(h)]);return f}case U1:{const c=[],f=r([o,c],s);for(const d of s)(e||!ih(Ju(d)))&&c.push(a(d));return f}}const{message:u}=s;return r([o,{name:l,message:u}],s)};return a},O3=(e,{json:t,lossy:n}={})=>{const i=[];return ZF(!(t||n),!!t,new Map,i)(e),i},Ko=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?k3(O3(e,t)):structuredClone(e):(e,t)=>k3(O3(e,t));function JF(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 eV(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tV(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||JF,i=e.options.footnoteBackLabel||eV,r=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 u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=Vo(f.toLowerCase());let h=0;const g=[],b=e.footnoteCounts.get(f);for(;b!==void 0&&++h<=b;){g.length>0&&g.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,h);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const T=c[c.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const y=T.children[T.children.length-1];y&&y.type==="text"?y.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ko(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
293
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
294
|
-
`}]}}const z1={}.hasOwnProperty,nV={};function iV(e,t){const n=t||nV,i=new Map,r=new Map,a=new Map,s={...$F,...n.handlers},o={all:u,applyData:aV,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:rV,wrap:oV};return Xd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:r,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),o;function l(c,f){const d=c.type,h=o.handlers[d];if(z1.call(o.handlers,d)&&h)return h(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in c){const{children:b,...T}=c,m=Ko(T);return m.children=o.all(c),m}return Ko(c)}return(o.options.unknownHandler||sV)(o,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const g=o.one(d[h],c);if(g){if(h&&d[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=R3(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=R3(b.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function rV(e,t){e.position&&(t.position=LH(e))}function aV(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Ko(a)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function sV(e,t){const n=t.data||{},i="value"in t&&!(z1.call(n,"hProperties")||z1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function oV(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
295
|
-
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
296
|
-
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
297
|
-
`}),n}function R3(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function N3(e,t){const n=iV(e,t),i=n.one(e,void 0),r=tV(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&a.children.push({type:"text",value:`
|
|
298
|
-
`},r),a}function lV(e,t){return e&&"run"in e?async function(n,i){const r=N3(n,{file:i,...t});await e.run(r,i)}:function(n,i){return N3(n,{file:i,...e||t})}}function D3(e){if(e)throw e}var rh=Object.prototype.hasOwnProperty,M3=Object.prototype.toString,L3=Object.defineProperty,I3=Object.getOwnPropertyDescriptor,P3=function(t){return typeof Array.isArray=="function"?Array.isArray(t):M3.call(t)==="[object Array]"},B3=function(t){if(!t||M3.call(t)!=="[object Object]")return!1;var n=rh.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&rh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||rh.call(t,r)},U3=function(t,n){L3&&n.name==="__proto__"?L3(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},z3=function(t,n){if(n==="__proto__")if(rh.call(t,n)){if(I3)return I3(t,n).value}else return;return t[n]},uV=function e(){var t,n,i,r,a,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)i=z3(o,n),r=z3(t,n),o!==r&&(c&&r&&(B3(r)||(a=P3(r)))?(a?(a=!1,s=i&&P3(i)?i:[]):s=i&&B3(i)?i:{},U3(o,{name:n,newValue:e(c,s,r)})):typeof r<"u"&&U3(o,{name:n,newValue:r}));return o};const j1=dl(uV);function H1(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 cV(){const e=[],t={run:n,use:i};return t;function n(...r){let a=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...r);function o(l,...u){const c=e[++a];let f=-1;if(l){s(l);return}for(;++f<r.length;)(u[f]===null||u[f]===void 0)&&(u[f]=r[f]);r=u,c?fV(c,o)(...u):s(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function fV(e,t){let n;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(r);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return r(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,r):l instanceof Error?r(l):a(l))}function r(s,...o){n||(n=!0,t(s,...o))}function a(s){r(null,s)}}const er={basename:dV,dirname:hV,extname:pV,join:mV,sep:"/"};function dV(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ec(e);let n=0,i=-1,r=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){n=r+1;break}}else s<0&&(a=!0,s=r+1),o>-1&&(e.codePointAt(r)===t.codePointAt(o--)?o<0&&(i=r):(o=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function hV(e){if(ec(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function pV(e){ec(e);let t=e.length,n=-1,i=0,r=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?r<0?r=t:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||n<0||a===0||a===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function mV(...e){let t=-1,n;for(;++t<e.length;)ec(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":gV(n)}function gV(e){ec(e);const t=e.codePointAt(0)===47;let n=bV(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bV(e,t){let n="",i=0,r=-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(!(r===s-1||a===1))if(r!==s-1&&a===2){if(n.length<2||i!==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="",i=0):(n=n.slice(0,l),i=n.length-1-n.lastIndexOf("/")),r=s,a=0;continue}}else if(n.length>0){n="",i=0,r=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,s):n=e.slice(r+1,s),i=s-r-1;r=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function ec(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yV={cwd:vV};function vV(){return"/"}function F1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xV(e){if(typeof e=="string")e=new URL(e);else if(!F1(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 EV(e)}function EV(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const V1=["history","path","basename","stem","extname","dirname"];class j3{constructor(t){let n;t?F1(t)?n={path:t}:typeof t=="string"||TV(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":yV.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<V1.length;){const a=V1[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let r;for(r in n)V1.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?er.basename(this.path):void 0}set basename(t){q1(t,"basename"),Y1(t,"basename"),this.path=er.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?er.dirname(this.path):void 0}set dirname(t){H3(this.basename,"dirname"),this.path=er.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?er.extname(this.path):void 0}set extname(t){if(Y1(t,"extname"),H3(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=er.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){F1(t)&&(t=xV(t)),q1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?er.basename(this.path,this.extname):void 0}set stem(t){q1(t,"stem"),Y1(t,"stem"),this.path=er.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new sn(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Y1(e,t){if(e&&e.includes(er.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+er.sep+"`")}function q1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function H3(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function TV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wV=function(e){const i=this.constructor.prototype,r=i[e],a=function(){return r.apply(a,arguments)};return Object.setPrototypeOf(a,i),a},_V={}.hasOwnProperty;class G1 extends wV{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=cV()}copy(){const t=new G1;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(j1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(K1("data",this.frozen),this.namespace[t]=n,this):_V.call(this.namespace,t)&&this.namespace[t]||void 0:t?(K1("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ah(t),i=this.parser||this.Parser;return X1("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),X1("process",this.parser||this.Parser),$1("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(a,s){const o=ah(t),l=i.parse(o);i.run(l,o,function(c,f,d){if(c||!f||!d)return u(c);const h=f,g=i.stringify(h,d);CV(g)?d.value=g:d.result=g,u(c,d)});function u(c,f){c||!f?s(c):a?a(f):n(void 0,f)}}}processSync(t){let n=!1,i;return this.freeze(),X1("processSync",this.parser||this.Parser),$1("processSync",this.compiler||this.Compiler),this.process(t,r),V3("processSync","process",n),i;function r(a,s){n=!0,D3(a),i=s}}run(t,n,i){F3(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?a(void 0,i):new Promise(a);function a(s,o){const l=ah(n);r.run(t,l,u);function u(c,f,d){const h=f||t;c?o(c):s?s(h):i(void 0,h,d)}}}runSync(t,n){let i=!1,r;return this.run(t,n,a),V3("runSync","run",i),r;function a(s,o){D3(s),r=o,i=!0}}stringify(t,n){this.freeze();const i=ah(n),r=this.compiler||this.Compiler;return $1("stringify",r),F3(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(K1("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(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(r.settings=j1(!0,r.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<i.length;)if(i[f][0]===u){d=f;break}if(d===-1)i.push([u,...c]);else if(c.length>0){let[h,...g]=c;const b=i[d][1];H1(b)&&H1(h)&&(h=j1(!0,b,h)),i[d]=[u,h,...g]}}}}const SV=new G1().freeze();function X1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function K1(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 F3(e){if(!H1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function V3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ah(e){return AV(e)?e:new j3(e)}function AV(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function CV(e){return typeof e=="string"||kV(e)}function kV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OV="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Y3=[],q3={allowDangerousHtml:!0},RV=/^(https?|ircs?|mailto|xmpp)$/i,NV=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function DV(e){const t=MV(e),n=LV(e);return IV(t.runSync(t.parse(n),n),e)}function MV(e){const t=e.rehypePlugins||Y3,n=e.remarkPlugins||Y3,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...q3}:q3;return SV().use(TF).use(n).use(lV,i).use(t)}function LV(e){const t=e.children||"",n=new j3;return typeof t=="string"&&(n.value=t),n}function IV(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||PV;for(const c of NV)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+OV+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Xd(e,u),zH(e,{Fragment:v.Fragment,components:r,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function u(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in L1)if(Object.hasOwn(L1,h)&&Object.hasOwn(c.properties,h)){const g=c.properties[h],b=L1[h];(b===null||b.includes(c.tagName))&&(c.properties[h]=l(String(g||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!h&&i&&typeof f=="number"&&(h=!i(c,f,d)),h&&d&&typeof f=="number")return o&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function PV(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||RV.test(e.slice(0,t))?e:""}const G3=Rn.memo(DV,(e,t)=>e.children===t.children&&e.className===t.className),X3=/[#.]/g;function BV(e,t){const n=e||"",i={};let r=0,a,s;for(;r<n.length;){X3.lastIndex=r;const o=X3.exec(n),l=n.slice(r,o?o.index:n.length);l&&(a?a==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:s=l,r+=l.length),o&&(a=o[0],r++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}function $3(e,t,n){const i=n?HV(n):void 0;function r(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=BV(a,t);const u=l.tagName.toLowerCase(),c=i?i.get(u):void 0;if(l.tagName=c||u,UV(s))o.unshift(s);else for(const[f,d]of Object.entries(s))zV(e,l.properties,f,d)}for(const u of o)Q1(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return r}function UV(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 i of n){const r=t[i];if(r&&typeof r=="object"){if(!Array.isArray(r))return!0;const a=r;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function zV(e,t,n,i){const r=C1(e,n);let a;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;a=i}else typeof i=="boolean"?a=i:typeof i=="string"?r.spaceSeparated?a=ZC(i):r.commaSeparated?a=zC(i):r.commaOrSpaceSeparated?a=ZC(zC(i).join(" ")):a=K3(r,r.property,i):Array.isArray(i)?a=[...i]:a=r.property==="style"?jV(i):String(i);if(Array.isArray(a)){const s=[];for(const o of a)s.push(K3(r,r.property,o));a=s}r.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[r.property]=a}}function Q1(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)Q1(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Q1(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function K3(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ku(n)===Ku(t)))return!0}return n}function jV(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function HV(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const FV=["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"],VV=$3(Wd,"div"),YV=$3(Xo,"g",FV);function qV(e){const t=String(e),n=[];return{toOffset:r,toPoint:i};function i(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Q3(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 r(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=Q3(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Q3(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
|
|
299
|
-
`,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const ps={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/"},W3={}.hasOwnProperty,GV=Object.prototype;function XV(e,t){const n=t||{};return W1({file:n.file||void 0,location:!1,schema:n.space==="svg"?Xo:Wd,verbose:n.verbose||!1},e)}function W1(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},sh(e,i,n),n}case"#document":case"#document-fragment":{const i=t,r="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:Z3(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){const a=String(e.file),s=qV(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const i=t;return n={type:"doctype"},sh(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},sh(e,i,n),n}default:return n=$V(e,t),n}}function Z3(e,t){let n=-1;const i=[];for(;++n<t.length;){const r=W1(e,t[n]);i.push(r)}return i}function $V(e,t){const n=e.schema;e.schema=t.namespaceURI===ps.svg?Xo:Wd;let i=-1;const r={};for(;++i<t.attrs.length;){const o=t.attrs[i],l=(o.prefix?o.prefix+":":"")+o.name;W3.call(GV,l)||(r[l]=o.value)}const s=(e.schema.space==="svg"?YV:VV)(t.tagName,r,Z3(e,t.childNodes));if(sh(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&Qo(l.startTag),c=l&&l.endTag&&Qo(l.endTag),f=W1(e,o.content);u&&c&&e.file&&(f.position={start:u.end,end:c.start}),s.content=f}return e.schema=n,s}function sh(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=KV(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function KV(e,t,n){const i=Qo(n);if(t.type==="element"){const r=t.children[t.children.length-1];if(i&&!n.endTag&&r&&r.position&&r.position.end&&(i.end=Object.assign({},r.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)W3.call(n.attrs,s)&&(a[C1(e.schema,s).property]=Qo(n.attrs[s]));n.startTag;const o=Qo(n.startTag),l=n.endTag?Qo(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return i}function Qo(e){const t=J3({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=J3({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function J3(e){return e.line&&e.column?e:void 0}class tc{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}tc.prototype.property={},tc.prototype.normal={},tc.prototype.space=null;function ek(e,t){const n={},i={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(i,e[r].normal);return new tc(n,i,t)}function Z1(e){return e.toLowerCase()}class mi{constructor(t,n){this.property=t,this.attribute=n}}mi.prototype.space=null,mi.prototype.boolean=!1,mi.prototype.booleanish=!1,mi.prototype.overloadedBoolean=!1,mi.prototype.number=!1,mi.prototype.commaSeparated=!1,mi.prototype.spaceSeparated=!1,mi.prototype.commaOrSpaceSeparated=!1,mi.prototype.mustUseProperty=!1,mi.prototype.defined=!1;let QV=0;const Ee=ms(),Ct=ms(),tk=ms(),Z=ms(),Ze=ms(),Wo=ms(),Xn=ms();function ms(){return 2**++QV}const J1=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:Ct,commaOrSpaceSeparated:Xn,commaSeparated:Wo,number:Z,overloadedBoolean:tk,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),eb=Object.keys(J1);class tb extends mi{constructor(t,n,i,r){let a=-1;if(super(t,n),nk(this,"space",r),typeof i=="number")for(;++a<eb.length;){const s=eb[a];nk(this,eb[a],(i&J1[s])===J1[s])}}}tb.prototype.defined=!0;function nk(e,t,n){n&&(e[t]=n)}const WV={}.hasOwnProperty;function Zo(e){const t={},n={};let i;for(i in e.properties)if(WV.call(e.properties,i)){const r=e.properties[i],a=new tb(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Z1(i)]=i,n[Z1(a.attribute)]=i}return new tc(t,n,e.space)}const ik=Zo({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rk=Zo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ak(e,t){return t in e?e[t]:t}function sk(e,t){return ak(e,t.toLowerCase())}const ok=Zo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:sk,properties:{xmlns:null,xmlnsXLink:null}}),lk=Zo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:Ze,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:Z,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:Ze,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Ct,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null}}),ZV=Zo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:sk,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wo,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Ze,autoFocus:Ee,autoPlay:Ee,blocking:Ze,capture:null,charSet:null,checked:Ee,cite:null,className:Ze,cols:Z,colSpan:null,content:null,contentEditable:Ct,controls:Ee,controlsList:Ze,coords:Z|Wo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:tk,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Ze,height:Z,hidden:Ee,high:Z,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:Ee,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:Z,pattern:null,ping:Ze,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Ze,required:Ee,reversed:Ee,rows:Z,rowSpan:Z,sandbox:Ze,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:Ct,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:Z,security:null,unselectable:null}}),JV=Zo({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ak,properties:{about:Xn,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Ze,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Wo,g2:Wo,glyphName:Wo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),eY=/^data[-\w.:]+$/i,uk=/-[a-z]/g,tY=/[A-Z]/g;function nY(e,t){const n=Z1(t);let i=t,r=mi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&eY.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(uk,rY);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!uk.test(a)){let s=a.replace(tY,iY);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=tb}return new r(i,t)}function iY(e){return"-"+e.toLowerCase()}function rY(e){return e.charAt(1).toUpperCase()}const aY=ek([rk,ik,ok,lk,ZV],"html"),ck=ek([rk,ik,ok,lk,JV],"svg"),sY={},oY={}.hasOwnProperty,fk=KA("type",{handlers:{root:uY,element:pY,text:dY,comment:hY,doctype:fY}});function lY(e,t){const i=(t||sY).space;return fk(e,i==="svg"?ck:aY)}function uY(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=nb(e.children,n,t),Jo(e,n),n}function cY(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=nb(e.children,n,t),Jo(e,n),n}function fY(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Jo(e,t),t}function dY(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Jo(e,t),t}function hY(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Jo(e,t),t}function pY(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=ck);const r=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&oY.call(e.properties,a)){const l=mY(i,a,e.properties[a]);l&&r.push(l)}}const s=i.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:r,namespaceURI:ps[s],childNodes:[],parentNode:null};return o.childNodes=nb(e.children,o,i),Jo(e,o),e.tagName==="template"&&e.content&&(o.content=cY(e.content,i)),o}function mY(e,t,n){const i=nY(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?jC(n):JC(n));const r={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const a=r.name.indexOf(":");a<0?r.prefix="":(r.name=r.name.slice(a+1),r.prefix=i.attribute.slice(0,a)),r.namespace=ps[i.space]}return r}function nb(e,t,n){let i=-1;const r=[];if(e)for(;++i<e.length;){const a=fk(e[i],n);a.parentNode=t,r.push(a)}return r}function Jo(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 gY=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],bY=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]),ut="�";var _;(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"})(_||(_={}));const An={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function dk(e){return e>=55296&&e<=57343}function yY(e){return e>=56320&&e<=57343}function vY(e,t){return(e-55296)*1024+9216+t}function hk(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function pk(e){return e>=64976&&e<=65007||bY.has(e)}var z;(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"})(z||(z={}));const xY=65536;class EY{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=xY,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:i,col:r,offset:a}=this,s=r+n,o=a+n;return{code:t,startLine:i,endLine:i,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(yY(n))return this.pos++,this._addGap(),vY(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(z.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 i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;const i=this.html.charCodeAt(n);return i===_.CARRIAGE_RETURN?_.LINE_FEED:i}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,_.EOF;let t=this.html.charCodeAt(this.pos);return t===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):t===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,dk(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===_.LINE_FEED||t===_.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){hk(t)?this._err(z.controlCharacterInInputStream):pk(t)&&this._err(z.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ce;(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"})(Ce||(Ce={}));function mk(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 TY=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),wY=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 _Y(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=wY.get(e))!==null&&t!==void 0?t:e}var jt;(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"})(jt||(jt={}));const SY=32;var _a;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_a||(_a={}));function ib(e){return e>=jt.ZERO&&e<=jt.NINE}function AY(e){return e>=jt.UPPER_A&&e<=jt.UPPER_F||e>=jt.LOWER_A&&e<=jt.LOWER_F}function CY(e){return e>=jt.UPPER_A&&e<=jt.UPPER_Z||e>=jt.LOWER_A&&e<=jt.LOWER_Z||ib(e)}function kY(e){return e===jt.EQUALS||CY(e)}var Ht;(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"})(Ht||(Ht={}));var Nr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nr||(Nr={}));class OY{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Ht.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nr.Strict}startEntity(t){this.decodeMode=t,this.state=Ht.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ht.EntityStart:return t.charCodeAt(n)===jt.NUM?(this.state=Ht.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ht.NamedEntity,this.stateNamedEntity(t,n));case Ht.NumericStart:return this.stateNumericStart(t,n);case Ht.NumericDecimal:return this.stateNumericDecimal(t,n);case Ht.NumericHex:return this.stateNumericHex(t,n);case Ht.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SY)===jt.LOWER_X?(this.state=Ht.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ht.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,r){if(n!==i){const a=i-n;this.result=this.result*Math.pow(r,a)+Number.parseInt(t.substr(n,a),r),this.consumed+=a}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(ib(r)||AY(r))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(ib(r))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===jt.SEMI)this.consumed+=1;else if(this.decodeMode===Nr.Strict)return 0;return this.emitCodePoint(_Y(this.result),this.consumed),this.errors&&(t!==jt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let r=i[this.treeIndex],a=(r&_a.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=RY(i,r,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Nr.Attribute&&(a===0||kY(s))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],a=(r&_a.VALUE_LENGTH)>>14,a!==0){if(s===jt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Nr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,r=(i[n]&_a.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~_a.VALUE_LENGTH:r[t+1],i),n===3&&this.emitCodePoint(r[t+2],i),i}end(){var t;switch(this.state){case Ht.NamedEntity:return this.result!==0&&(this.decodeMode!==Nr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ht.NumericDecimal:return this.emitNumericEntity(0,2);case Ht.NumericHex:return this.emitNumericEntity(0,3);case Ht.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ht.EntityStart:return 0}}}function RY(e,t,n,i){const r=(t&_a.BRANCH_LENGTH)>>7,a=t&_a.JUMP_TABLE;if(r===0)return a!==0&&i===a?n:-1;if(a){const l=i-a;return l<0||l>=r?-1:e[n+l]-1}let s=n,o=s+r-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<i)s=l+1;else if(u>i)o=l-1;else return e[l+r]}return-1}var $;(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/"})($||($={}));var gs;(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"})(gs||(gs={}));var gi;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(gi||(gi={}));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 p;(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"})(p||(p={}));const NY=new Map([[P.A,p.A],[P.ADDRESS,p.ADDRESS],[P.ANNOTATION_XML,p.ANNOTATION_XML],[P.APPLET,p.APPLET],[P.AREA,p.AREA],[P.ARTICLE,p.ARTICLE],[P.ASIDE,p.ASIDE],[P.B,p.B],[P.BASE,p.BASE],[P.BASEFONT,p.BASEFONT],[P.BGSOUND,p.BGSOUND],[P.BIG,p.BIG],[P.BLOCKQUOTE,p.BLOCKQUOTE],[P.BODY,p.BODY],[P.BR,p.BR],[P.BUTTON,p.BUTTON],[P.CAPTION,p.CAPTION],[P.CENTER,p.CENTER],[P.CODE,p.CODE],[P.COL,p.COL],[P.COLGROUP,p.COLGROUP],[P.DD,p.DD],[P.DESC,p.DESC],[P.DETAILS,p.DETAILS],[P.DIALOG,p.DIALOG],[P.DIR,p.DIR],[P.DIV,p.DIV],[P.DL,p.DL],[P.DT,p.DT],[P.EM,p.EM],[P.EMBED,p.EMBED],[P.FIELDSET,p.FIELDSET],[P.FIGCAPTION,p.FIGCAPTION],[P.FIGURE,p.FIGURE],[P.FONT,p.FONT],[P.FOOTER,p.FOOTER],[P.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[P.FORM,p.FORM],[P.FRAME,p.FRAME],[P.FRAMESET,p.FRAMESET],[P.H1,p.H1],[P.H2,p.H2],[P.H3,p.H3],[P.H4,p.H4],[P.H5,p.H5],[P.H6,p.H6],[P.HEAD,p.HEAD],[P.HEADER,p.HEADER],[P.HGROUP,p.HGROUP],[P.HR,p.HR],[P.HTML,p.HTML],[P.I,p.I],[P.IMG,p.IMG],[P.IMAGE,p.IMAGE],[P.INPUT,p.INPUT],[P.IFRAME,p.IFRAME],[P.KEYGEN,p.KEYGEN],[P.LABEL,p.LABEL],[P.LI,p.LI],[P.LINK,p.LINK],[P.LISTING,p.LISTING],[P.MAIN,p.MAIN],[P.MALIGNMARK,p.MALIGNMARK],[P.MARQUEE,p.MARQUEE],[P.MATH,p.MATH],[P.MENU,p.MENU],[P.META,p.META],[P.MGLYPH,p.MGLYPH],[P.MI,p.MI],[P.MO,p.MO],[P.MN,p.MN],[P.MS,p.MS],[P.MTEXT,p.MTEXT],[P.NAV,p.NAV],[P.NOBR,p.NOBR],[P.NOFRAMES,p.NOFRAMES],[P.NOEMBED,p.NOEMBED],[P.NOSCRIPT,p.NOSCRIPT],[P.OBJECT,p.OBJECT],[P.OL,p.OL],[P.OPTGROUP,p.OPTGROUP],[P.OPTION,p.OPTION],[P.P,p.P],[P.PARAM,p.PARAM],[P.PLAINTEXT,p.PLAINTEXT],[P.PRE,p.PRE],[P.RB,p.RB],[P.RP,p.RP],[P.RT,p.RT],[P.RTC,p.RTC],[P.RUBY,p.RUBY],[P.S,p.S],[P.SCRIPT,p.SCRIPT],[P.SEARCH,p.SEARCH],[P.SECTION,p.SECTION],[P.SELECT,p.SELECT],[P.SOURCE,p.SOURCE],[P.SMALL,p.SMALL],[P.SPAN,p.SPAN],[P.STRIKE,p.STRIKE],[P.STRONG,p.STRONG],[P.STYLE,p.STYLE],[P.SUB,p.SUB],[P.SUMMARY,p.SUMMARY],[P.SUP,p.SUP],[P.TABLE,p.TABLE],[P.TBODY,p.TBODY],[P.TEMPLATE,p.TEMPLATE],[P.TEXTAREA,p.TEXTAREA],[P.TFOOT,p.TFOOT],[P.TD,p.TD],[P.TH,p.TH],[P.THEAD,p.THEAD],[P.TITLE,p.TITLE],[P.TR,p.TR],[P.TRACK,p.TRACK],[P.TT,p.TT],[P.U,p.U],[P.UL,p.UL],[P.SVG,p.SVG],[P.VAR,p.VAR],[P.WBR,p.WBR],[P.XMP,p.XMP]]);function el(e){var t;return(t=NY.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const K=p,DY={[$.HTML]:new Set([K.ADDRESS,K.APPLET,K.AREA,K.ARTICLE,K.ASIDE,K.BASE,K.BASEFONT,K.BGSOUND,K.BLOCKQUOTE,K.BODY,K.BR,K.BUTTON,K.CAPTION,K.CENTER,K.COL,K.COLGROUP,K.DD,K.DETAILS,K.DIR,K.DIV,K.DL,K.DT,K.EMBED,K.FIELDSET,K.FIGCAPTION,K.FIGURE,K.FOOTER,K.FORM,K.FRAME,K.FRAMESET,K.H1,K.H2,K.H3,K.H4,K.H5,K.H6,K.HEAD,K.HEADER,K.HGROUP,K.HR,K.HTML,K.IFRAME,K.IMG,K.INPUT,K.LI,K.LINK,K.LISTING,K.MAIN,K.MARQUEE,K.MENU,K.META,K.NAV,K.NOEMBED,K.NOFRAMES,K.NOSCRIPT,K.OBJECT,K.OL,K.P,K.PARAM,K.PLAINTEXT,K.PRE,K.SCRIPT,K.SECTION,K.SELECT,K.SOURCE,K.STYLE,K.SUMMARY,K.TABLE,K.TBODY,K.TD,K.TEMPLATE,K.TEXTAREA,K.TFOOT,K.TH,K.THEAD,K.TITLE,K.TR,K.TRACK,K.UL,K.WBR,K.XMP]),[$.MATHML]:new Set([K.MI,K.MO,K.MN,K.MS,K.MTEXT,K.ANNOTATION_XML]),[$.SVG]:new Set([K.TITLE,K.FOREIGN_OBJECT,K.DESC]),[$.XLINK]:new Set,[$.XML]:new Set,[$.XMLNS]:new Set},rb=new Set([K.H1,K.H2,K.H3,K.H4,K.H5,K.H6]);P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT;var C;(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"})(C||(C={}));const wt={DATA:C.DATA,RCDATA:C.RCDATA,RAWTEXT:C.RAWTEXT,SCRIPT_DATA:C.SCRIPT_DATA,PLAINTEXT:C.PLAINTEXT,CDATA_SECTION:C.CDATA_SECTION};function MY(e){return e>=_.DIGIT_0&&e<=_.DIGIT_9}function nc(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_Z}function LY(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_Z}function Sa(e){return LY(e)||nc(e)}function gk(e){return Sa(e)||MY(e)}function oh(e){return e+32}function bk(e){return e===_.SPACE||e===_.LINE_FEED||e===_.TABULATION||e===_.FORM_FEED}function yk(e){return bk(e)||e===_.SOLIDUS||e===_.GREATER_THAN_SIGN}function IY(e){return e===_.NULL?z.nullCharacterReference:e>1114111?z.characterReferenceOutsideUnicodeRange:dk(e)?z.surrogateCharacterReference:pk(e)?z.noncharacterCharacterReference:hk(e)||e===_.CARRIAGE_RETURN?z.controlCharacterReference:null}class PY{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=C.DATA,this.returnState=C.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new EY(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new OY(TY,(i,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(z.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(z.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const r=IY(i);r&&this._err(r,1)}}:void 0)}_err(t,n=0){var i,r;(r=(i=this.handler).onParseError)===null||r===void 0||r.call(i,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,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i==null||i()}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:Ce.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ce.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ce.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ce.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 i=this.currentToken;if(mk(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const r=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(z.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=el(t.tagName),t.type===Ce.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(z.endTagWithAttributes),t.selfClosing&&this._err(z.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 Ce.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ce.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ce.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:Ce.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=bk(t)?Ce.WHITESPACE_CHARACTER:t===_.NULL?Ce.NULL_CHARACTER:Ce.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ce.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=C.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Nr.Attribute:Nr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===C.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===C.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===C.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case C.DATA:{this._stateData(t);break}case C.RCDATA:{this._stateRcdata(t);break}case C.RAWTEXT:{this._stateRawtext(t);break}case C.SCRIPT_DATA:{this._stateScriptData(t);break}case C.PLAINTEXT:{this._statePlaintext(t);break}case C.TAG_OPEN:{this._stateTagOpen(t);break}case C.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case C.TAG_NAME:{this._stateTagName(t);break}case C.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case C.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case C.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case C.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case C.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case C.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case C.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case C.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case C.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case C.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case C.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case C.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case C.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case C.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case C.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case C.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case C.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case C.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case C.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case C.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case C.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case C.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case C.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case C.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case C.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case C.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case C.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case C.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case C.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case C.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case C.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case C.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case C.BOGUS_COMMENT:{this._stateBogusComment(t);break}case C.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case C.COMMENT_START:{this._stateCommentStart(t);break}case C.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case C.COMMENT:{this._stateComment(t);break}case C.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case C.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case C.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case C.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case C.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case C.COMMENT_END:{this._stateCommentEnd(t);break}case C.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case C.DOCTYPE:{this._stateDoctype(t);break}case C.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case C.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case C.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case C.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case C.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case C.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case C.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case C.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case C.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case C.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case C.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case C.CDATA_SECTION:{this._stateCdataSection(t);break}case C.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case C.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case C.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case C.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=C.TAG_OPEN;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitCodePoint(t);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case _.AMPERSAND:{this._startCharacterReference();break}case _.LESS_THAN_SIGN:{this.state=C.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(ut);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case _.LESS_THAN_SIGN:{this.state=C.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(ut);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(ut);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(ut);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Sa(t))this._createStartTagToken(),this.state=C.TAG_NAME,this._stateTagName(t);else switch(t){case _.EXCLAMATION_MARK:{this.state=C.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=C.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=C.BOGUS_COMMENT,this._stateBogusComment(t);break}case _.EOF:{this._err(z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(z.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=C.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Sa(t))this._createEndTagToken(),this.state=C.TAG_NAME,this._stateTagName(t);else switch(t){case _.GREATER_THAN_SIGN:{this._err(z.missingEndTagName),this.state=C.DATA;break}case _.EOF:{this._err(z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(z.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=C.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=C.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this.state=C.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.tagName+=ut;break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(nc(t)?oh(t):t)}}_stateRcdataLessThanSign(t){t===_.SOLIDUS?this.state=C.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=C.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Sa(t)?(this.state=C.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=C.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 _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=C.BEFORE_ATTRIBUTE_NAME,!1;case _.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=C.SELF_CLOSING_START_TAG,!1;case _.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=C.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=C.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===_.SOLIDUS?this.state=C.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=C.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Sa(t)?(this.state=C.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=C.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=C.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case _.SOLIDUS:{this.state=C.SCRIPT_DATA_END_TAG_OPEN;break}case _.EXCLAMATION_MARK:{this.state=C.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=C.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Sa(t)?(this.state=C.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=C.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=C.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===_.HYPHEN_MINUS?(this.state=C.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=C.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===_.HYPHEN_MINUS?(this.state=C.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=C.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=C.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(ut);break}case _.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=C.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.state=C.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case _.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=C.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case _.GREATER_THAN_SIGN:{this.state=C.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.state=C.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case _.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=C.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===_.SOLIDUS?this.state=C.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Sa(t)?(this._emitChars("<"),this.state=C.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=C.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Sa(t)?(this.state=C.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=C.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=C.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(An.SCRIPT,!1)&&yk(this.preprocessor.peek(An.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<An.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=C.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case _.HYPHEN_MINUS:{this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(ut);break}case _.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case _.HYPHEN_MINUS:{this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case _.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case _.HYPHEN_MINUS:{this._emitChars("-");break}case _.LESS_THAN_SIGN:{this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case _.GREATER_THAN_SIGN:{this.state=C.SCRIPT_DATA,this._emitChars(">");break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case _.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===_.SOLIDUS?(this.state=C.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(An.SCRIPT,!1)&&yk(this.preprocessor.peek(An.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<An.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=C.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=C.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this.state=C.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._err(z.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=C.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=C.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:case _.SOLIDUS:case _.GREATER_THAN_SIGN:case _.EOF:{this._leaveAttrName(),this.state=C.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case _.EQUALS_SIGN:{this._leaveAttrName(),this.state=C.BEFORE_ATTRIBUTE_VALUE;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:{this._err(z.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.name+=ut;break}default:this.currentAttr.name+=String.fromCodePoint(nc(t)?oh(t):t)}}_stateAfterAttributeName(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.SOLIDUS:{this.state=C.SELF_CLOSING_START_TAG;break}case _.EQUALS_SIGN:{this.state=C.BEFORE_ATTRIBUTE_VALUE;break}case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=C.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{this.state=C.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this.state=C.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(z.missingAttributeValue),this.state=C.DATA,this.emitCurrentTagToken();break}default:this.state=C.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case _.QUOTATION_MARK:{this.state=C.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=ut;break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case _.APOSTROPHE:{this.state=C.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=ut;break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=C.BEFORE_ATTRIBUTE_NAME;break}case _.AMPERSAND:{this._startCharacterReference();break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=C.DATA,this.emitCurrentTagToken();break}case _.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=ut;break}case _.QUOTATION_MARK:case _.APOSTROPHE:case _.LESS_THAN_SIGN:case _.EQUALS_SIGN:case _.GRAVE_ACCENT:{this._err(z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this._leaveAttrValue(),this.state=C.BEFORE_ATTRIBUTE_NAME;break}case _.SOLIDUS:{this._leaveAttrValue(),this.state=C.SELF_CLOSING_START_TAG;break}case _.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=C.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._err(z.missingWhitespaceBetweenAttributes),this.state=C.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case _.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=C.DATA,this.emitCurrentTagToken();break}case _.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._err(z.unexpectedSolidusInTag),this.state=C.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentComment(n);break}case _.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.data+=ut;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(An.DASH_DASH,!0)?(this._createCommentToken(An.DASH_DASH.length+1),this.state=C.COMMENT_START):this._consumeSequenceIfMatch(An.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(An.DOCTYPE.length+1),this.state=C.DOCTYPE):this._consumeSequenceIfMatch(An.CDATA_START,!0)?this.inForeignNode?this.state=C.CDATA_SECTION:(this._err(z.cdataInHtmlContent),this._createCommentToken(An.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=C.BOGUS_COMMENT):this._ensureHibernation()||(this._err(z.incorrectlyOpenedComment),this._createCommentToken(2),this.state=C.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case _.HYPHEN_MINUS:{this.state=C.COMMENT_START_DASH;break}case _.GREATER_THAN_SIGN:{this._err(z.abruptClosingOfEmptyComment),this.state=C.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=C.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=C.COMMENT_END;break}case _.GREATER_THAN_SIGN:{this._err(z.abruptClosingOfEmptyComment),this.state=C.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=C.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=C.COMMENT_END_DASH;break}case _.LESS_THAN_SIGN:{n.data+="<",this.state=C.COMMENT_LESS_THAN_SIGN;break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.data+=ut;break}case _.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case _.EXCLAMATION_MARK:{n.data+="!",this.state=C.COMMENT_LESS_THAN_SIGN_BANG;break}case _.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=C.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===_.HYPHEN_MINUS?this.state=C.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=C.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===_.HYPHEN_MINUS?this.state=C.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=C.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==_.GREATER_THAN_SIGN&&t!==_.EOF&&this._err(z.nestedComment),this.state=C.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{this.state=C.COMMENT_END;break}case _.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=C.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentComment(n);break}case _.EXCLAMATION_MARK:{this.state=C.COMMENT_END_BANG;break}case _.HYPHEN_MINUS:{n.data+="-";break}case _.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=C.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case _.HYPHEN_MINUS:{n.data+="--!",this.state=C.COMMENT_END_DASH;break}case _.GREATER_THAN_SIGN:{this._err(z.incorrectlyClosedComment),this.state=C.DATA,this.emitCurrentComment(n);break}case _.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=C.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=C.BEFORE_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=C.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case _.EOF:{this._err(z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingWhitespaceBeforeDoctypeName),this.state=C.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(nc(t))this._createDoctypeToken(String.fromCharCode(oh(t))),this.state=C.DOCTYPE_NAME;else switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.NULL:{this._err(z.unexpectedNullCharacter),this._createDoctypeToken(ut),this.state=C.DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this._err(z.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.EOF:{this._err(z.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=C.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=C.AFTER_DOCTYPE_NAME;break}case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.name+=ut;break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(nc(t)?oh(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(An.PUBLIC,!1)?this.state=C.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(An.SYSTEM,!1)?this.state=C.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(z.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=C.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.publicId="",this.state=C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.publicId="",this.state=C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=C.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.publicId+=ut;break}case _.GREATER_THAN_SIGN:{this._err(z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.EOF:{this._err(z.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 _.APOSTROPHE:{this.state=C.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.publicId+=ut;break}case _.GREATER_THAN_SIGN:{this._err(z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.EOF:{this._err(z.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 _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=C.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case _.GREATER_THAN_SIGN:{this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.QUOTATION_MARK:{this._err(z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.QUOTATION_MARK:{n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:{this.state=C.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.QUOTATION_MARK:{this._err(z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{this._err(z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.QUOTATION_MARK:{n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case _.APOSTROPHE:{n.systemId="",this.state=C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case _.GREATER_THAN_SIGN:{this._err(z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=C.DATA,this.emitCurrentDoctype(n);break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case _.QUOTATION_MARK:{this.state=C.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.systemId+=ut;break}case _.GREATER_THAN_SIGN:{this._err(z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.EOF:{this._err(z.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 _.APOSTROPHE:{this.state=C.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case _.NULL:{this._err(z.unexpectedNullCharacter),n.systemId+=ut;break}case _.GREATER_THAN_SIGN:{this._err(z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.EOF:{this._err(z.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 _.SPACE:case _.LINE_FEED:case _.TABULATION:case _.FORM_FEED:break;case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=C.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case _.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=C.DATA;break}case _.NULL:{this._err(z.unexpectedNullCharacter);break}case _.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case _.RIGHT_SQUARE_BRACKET:{this.state=C.CDATA_SECTION_BRACKET;break}case _.EOF:{this._err(z.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===_.RIGHT_SQUARE_BRACKET?this.state=C.CDATA_SECTION_END:(this._emitChars("]"),this.state=C.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case _.GREATER_THAN_SIGN:{this.state=C.DATA;break}case _.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=C.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(_.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&gk(this.preprocessor.peek(1))?C.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){gk(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===_.SEMICOLON&&this._err(z.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const vk=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),xk=new Set([...vk,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),lh=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),BY=new Set([...lh,p.OL,p.UL]),UY=new Set([...lh,p.BUTTON]),Ek=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),Tk=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),zY=new Set([p.TR,p.TEMPLATE,p.HTML]),jY=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),HY=new Set([p.TABLE,p.TEMPLATE,p.HTML]),FY=new Set([p.TD,p.TH]);class VY{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===$.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 i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const r=this._indexOf(t)+1;this.items.splice(r,0,n),this.tagIDs.splice(r,0,i),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===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])!==$.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 i=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(rb,$.HTML)}popUntilTableCellPopped(){this.popUntilPopped(FY,$.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(HY,$.HTML)}clearBackToTableBodyContext(){this.clearBackTo(jY,$.HTML)}clearBackToTableRowContext(){this.clearBackTo(zY,$.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]===p.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]===p.HTML}hasInDynamicScope(t,n){for(let i=this.stackTop;i>=0;i--){const r=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case $.HTML:{if(r===t)return!0;if(n.has(r))return!1;break}case $.SVG:{if(Tk.has(r))return!1;break}case $.MATHML:{if(Ek.has(r))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,lh)}hasInListItemScope(t){return this.hasInDynamicScope(t,BY)}hasInButtonScope(t){return this.hasInDynamicScope(t,UY)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case $.HTML:{if(rb.has(n))return!0;if(lh.has(n))return!1;break}case $.SVG:{if(Tk.has(n))return!1;break}case $.MATHML:{if(Ek.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===$.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&vk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&xk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&xk.has(this.currentTagId);)this.pop()}}const ab=3;var tr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(tr||(tr={}));const wk={type:tr.Marker};class YY{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],r=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===tr.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===a&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===r&&i.push({idx:o,attrs:c})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<ab)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<ab)return;const r=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<i.length;s++){const o=i[s];o.attrs.every(l=>r.get(l.name)===l.value)&&(a+=1,a>=ab&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(wk)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:tr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:tr.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(wk);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===tr.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===tr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===tr.Element&&n.element===t)}}const Aa={createDocument(){return{nodeName:"#document",mode:gi.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 i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const r=e.childNodes.find(a=>a.nodeName==="#documentType");if(r)r.name=t,r.publicId=n,r.systemId=i;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};Aa.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(Aa.isTextNode(n)){n.value+=t;return}}Aa.appendChild(e,Aa.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&Aa.isTextNode(i)?i.value+=t:Aa.insertBefore(e,Aa.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},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}}},_k="html",qY="about:legacy-compat",GY="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Sk=["+//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//"],XY=[...Sk,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],$Y=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ak=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],KY=[...Ak,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ck(e,t){return t.some(n=>e.startsWith(n))}function QY(e){return e.name===_k&&e.publicId===null&&(e.systemId===null||e.systemId===qY)}function WY(e){if(e.name!==_k)return gi.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===GY)return gi.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),$Y.has(n))return gi.QUIRKS;let i=t===null?XY:Sk;if(Ck(n,i))return gi.QUIRKS;if(i=t===null?Ak:KY,Ck(n,i))return gi.LIMITED_QUIRKS}return gi.NO_QUIRKS}const kk={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ZY="definitionurl",JY="definitionURL",eq=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])),tq=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$.XMLNS}]]),nq=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])),iq=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function rq(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:i})=>i===gs.COLOR||i===gs.SIZE||i===gs.FACE)||iq.has(t)}function Ok(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ZY){e.attrs[t].name=JY;break}}function Rk(e){for(let t=0;t<e.attrs.length;t++){const n=eq.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function sb(e){for(let t=0;t<e.attrs.length;t++){const n=tq.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 aq(e){const t=nq.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=el(e.tagName))}function sq(e,t){return t===$.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function oq(e,t,n){if(t===$.MATHML&&e===p.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===gs.ENCODING){const r=n[i].value.toLowerCase();return r===kk.TEXT_HTML||r===kk.APPLICATION_XML}}return t===$.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function lq(e,t,n,i){return(!i||i===$.HTML)&&oq(e,t,n)||(!i||i===$.MATHML)&&sq(e,t)}const uq="hidden",cq=8,fq=3;var N;(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"})(N||(N={}));const dq={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Nk=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),Dk={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Aa,onParseError:null};class Mk{constructor(t,n,i=null,r=null){this.fragmentContext=i,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=N.INITIAL,this.originalInsertionMode=N.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={...Dk,...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 PY(this.options,this),this.activeFormattingElements=new YY(this.treeAdapter),this.fragmentContextID=i?el(this.treeAdapter.getTagName(i)):p.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new VY(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...Dk,...n};t??(t=i.treeAdapter.createElement(P.TEMPLATE,$.HTML,[]));const r=i.treeAdapter.createElement("documentmock",$.HTML,[]),a=new this(i,r,t);return a.fragmentContextID===p.TEMPLATE&&a.tmplInsertionModeStack.unshift(N.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,i){var r;if(!this.onParseError)return;const a=(r=t.location)!==null&&r!==void 0?r:dq,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:i?a.startLine:a.endLine,endCol:i?a.startCol:a.endCol,endOffset:i?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,i){var r,a;(a=(r=this.treeAdapter).onItemPush)===null||a===void 0||a.call(r,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(r=(i=this.treeAdapter).onItemPop)===null||r===void 0||r.call(i,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 i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===$.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,$.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=N.TEXT}switchToPlaintextParsing(){this.insertionMode=N.TEXT,this.originalInsertionMode=N.IN_BODY,this.tokenizer.state=wt.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)!==$.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=wt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=wt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=wt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=wt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",r=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,r),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 i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,$.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,$.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(P.HTML,$.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,n){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const r=this.treeAdapter.getChildNodes(n),a=i?r.lastIndexOf(i):r.length,s=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,r=this.treeAdapter.getTagName(t),a=n.type===Ce.END_TAG&&r===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(n)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,$.HTML)}_processToken(t){switch(t.type){case Ce.CHARACTER:{this.onCharacter(t);break}case Ce.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ce.COMMENT:{this.onComment(t);break}case Ce.DOCTYPE:{this.onDoctype(t);break}case Ce.START_TAG:{this._processStartTag(t);break}case Ce.END_TAG:{this.onEndTag(t);break}case Ce.EOF:{this.onEof(t);break}case Ce.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const r=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return lq(t,r,a,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(r=>r.type===tr.Marker||this.openElements.contains(r.element)),i=n===-1?t-1:n-1;for(let r=i;r>=0;r--){const a=this.activeFormattingElements.entries[r];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=N.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=N.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=N.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=N.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=N.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=N.IN_TABLE;return}case p.BODY:{this.insertionMode=N.IN_BODY;return}case p.FRAMESET:{this.insertionMode=N.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?N.AFTER_HEAD:N.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=N.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=N.IN_HEAD;return}break}}this.insertionMode=N.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const i=this.openElements.tagIDs[n];if(i===p.TEMPLATE)break;if(i===p.TABLE){this.insertionMode=N.IN_SELECT_IN_TABLE;return}}this.insertionMode=N.IN_SELECT}_isElementCausesFosterParenting(t){return Nk.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 p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,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 i=this.treeAdapter.getNamespaceURI(t);return DY[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FG(this,t);return}switch(this.insertionMode){case N.INITIAL:{ic(this,t);break}case N.BEFORE_HTML:{rc(this,t);break}case N.BEFORE_HEAD:{ac(this,t);break}case N.IN_HEAD:{sc(this,t);break}case N.IN_HEAD_NO_SCRIPT:{oc(this,t);break}case N.AFTER_HEAD:{lc(this,t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:{Ik(this,t);break}case N.TEXT:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{cb(this,t);break}case N.IN_TABLE_TEXT:{Vk(this,t);break}case N.IN_COLUMN_GROUP:{fh(this,t);break}case N.AFTER_BODY:{ph(this,t);break}case N.AFTER_AFTER_BODY:{mh(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HG(this,t);return}switch(this.insertionMode){case N.INITIAL:{ic(this,t);break}case N.BEFORE_HTML:{rc(this,t);break}case N.BEFORE_HEAD:{ac(this,t);break}case N.IN_HEAD:{sc(this,t);break}case N.IN_HEAD_NO_SCRIPT:{oc(this,t);break}case N.AFTER_HEAD:{lc(this,t);break}case N.TEXT:{this._insertCharacters(t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{cb(this,t);break}case N.IN_COLUMN_GROUP:{fh(this,t);break}case N.AFTER_BODY:{ph(this,t);break}case N.AFTER_AFTER_BODY:{mh(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){lb(this,t);return}switch(this.insertionMode){case N.INITIAL:case N.BEFORE_HTML:case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_TEMPLATE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{lb(this,t);break}case N.IN_TABLE_TEXT:{fc(this,t);break}case N.AFTER_BODY:{vq(this,t);break}case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{xq(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case N.INITIAL:{Eq(this,t);break}case N.BEFORE_HEAD:case N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:{this._err(t,z.misplacedDoctype);break}case N.IN_TABLE_TEXT:{fc(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,z.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?VG(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{ic(this,t);break}case N.BEFORE_HTML:{Tq(this,t);break}case N.BEFORE_HEAD:{_q(this,t);break}case N.IN_HEAD:{Ni(this,t);break}case N.IN_HEAD_NO_SCRIPT:{Cq(this,t);break}case N.AFTER_HEAD:{Oq(this,t);break}case N.IN_BODY:{on(this,t);break}case N.IN_TABLE:{tl(this,t);break}case N.IN_TABLE_TEXT:{fc(this,t);break}case N.IN_CAPTION:{SG(this,t);break}case N.IN_COLUMN_GROUP:{fb(this,t);break}case N.IN_TABLE_BODY:{dh(this,t);break}case N.IN_ROW:{hh(this,t);break}case N.IN_CELL:{kG(this,t);break}case N.IN_SELECT:{Gk(this,t);break}case N.IN_SELECT_IN_TABLE:{RG(this,t);break}case N.IN_TEMPLATE:{DG(this,t);break}case N.AFTER_BODY:{LG(this,t);break}case N.IN_FRAMESET:{IG(this,t);break}case N.AFTER_FRAMESET:{BG(this,t);break}case N.AFTER_AFTER_BODY:{zG(this,t);break}case N.AFTER_AFTER_FRAMESET:{jG(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?YG(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case N.INITIAL:{ic(this,t);break}case N.BEFORE_HTML:{wq(this,t);break}case N.BEFORE_HEAD:{Sq(this,t);break}case N.IN_HEAD:{Aq(this,t);break}case N.IN_HEAD_NO_SCRIPT:{kq(this,t);break}case N.AFTER_HEAD:{Rq(this,t);break}case N.IN_BODY:{ch(this,t);break}case N.TEXT:{mG(this,t);break}case N.IN_TABLE:{uc(this,t);break}case N.IN_TABLE_TEXT:{fc(this,t);break}case N.IN_CAPTION:{AG(this,t);break}case N.IN_COLUMN_GROUP:{CG(this,t);break}case N.IN_TABLE_BODY:{db(this,t);break}case N.IN_ROW:{qk(this,t);break}case N.IN_CELL:{OG(this,t);break}case N.IN_SELECT:{Xk(this,t);break}case N.IN_SELECT_IN_TABLE:{NG(this,t);break}case N.IN_TEMPLATE:{MG(this,t);break}case N.AFTER_BODY:{Kk(this,t);break}case N.IN_FRAMESET:{PG(this,t);break}case N.AFTER_FRAMESET:{UG(this,t);break}case N.AFTER_AFTER_BODY:{mh(this,t);break}}}onEof(t){switch(this.insertionMode){case N.INITIAL:{ic(this,t);break}case N.BEFORE_HTML:{rc(this,t);break}case N.BEFORE_HEAD:{ac(this,t);break}case N.IN_HEAD:{sc(this,t);break}case N.IN_HEAD_NO_SCRIPT:{oc(this,t);break}case N.AFTER_HEAD:{lc(this,t);break}case N.IN_BODY:case N.IN_TABLE:case N.IN_CAPTION:case N.IN_COLUMN_GROUP:case N.IN_TABLE_BODY:case N.IN_ROW:case N.IN_CELL:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:{Hk(this,t);break}case N.TEXT:{gG(this,t);break}case N.IN_TABLE_TEXT:{fc(this,t);break}case N.IN_TEMPLATE:{$k(this,t);break}case N.AFTER_BODY:case N.IN_FRAMESET:case N.AFTER_FRAMESET:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{ub(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===_.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 N.IN_HEAD:case N.IN_HEAD_NO_SCRIPT:case N.AFTER_HEAD:case N.TEXT:case N.IN_COLUMN_GROUP:case N.IN_SELECT:case N.IN_SELECT_IN_TABLE:case N.IN_FRAMESET:case N.AFTER_FRAMESET:{this._insertCharacters(t);break}case N.IN_BODY:case N.IN_CAPTION:case N.IN_CELL:case N.IN_TEMPLATE:case N.AFTER_BODY:case N.AFTER_AFTER_BODY:case N.AFTER_AFTER_FRAMESET:{Lk(this,t);break}case N.IN_TABLE:case N.IN_TABLE_BODY:case N.IN_ROW:{cb(this,t);break}case N.IN_TABLE_TEXT:{Fk(this,t);break}}}}function hq(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):jk(e,t),n}function pq(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r,e.openElements.tagIDs[i])&&(n=r)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}function mq(e,t,n){let i=t,r=e.openElements.getCommonAncestor(t);for(let a=0,s=r;s!==n;a++,s=r){r=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=fq;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=gq(e,o),i===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(s,i),i=s)}return i}function gq(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function bq(e,t,n){const i=e.treeAdapter.getTagName(t),r=el(i);if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===p.TEMPLATE&&a===$.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function yq(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:r}=n,a=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,r),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,r.tagID)}function ob(e,t){for(let n=0;n<cq;n++){const i=hq(e,t);if(!i)break;const r=pq(e,i);if(!r)break;e.activeFormattingElements.bookmark=i;const a=mq(e,r,i.element),s=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(a),s&&bq(e,s,a),yq(e,r,i)}}function lb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function vq(e,t){e._appendCommentNode(t,e.openElements.items[0])}function xq(e,t){e._appendCommentNode(t,e.document)}function ub(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(i);if(r&&!r.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Eq(e,t){e._setDocumentType(t);const n=t.forceQuirks?gi.QUIRKS:WY(t);QY(t)||e._err(t,z.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=N.BEFORE_HTML}function ic(e,t){e._err(t,z.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,gi.QUIRKS),e.insertionMode=N.BEFORE_HTML,e._processToken(t)}function Tq(e,t){t.tagID===p.HTML?(e._insertElement(t,$.HTML),e.insertionMode=N.BEFORE_HEAD):rc(e,t)}function wq(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&rc(e,t)}function rc(e,t){e._insertFakeRootElement(),e.insertionMode=N.BEFORE_HEAD,e._processToken(t)}function _q(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.HEAD:{e._insertElement(t,$.HTML),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD;break}default:ac(e,t)}}function Sq(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?ac(e,t):e._err(t,z.endTagWithoutMatchingOpenElement)}function ac(e,t){e._insertFakeElement(P.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=N.IN_HEAD,e._processToken(t)}function Ni(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,wt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wt.RAWTEXT):(e._insertElement(t,$.HTML),e.insertionMode=N.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,wt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,wt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=N.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(N.IN_TEMPLATE);break}case p.HEAD:{e._err(t,z.misplacedStartTagForHeadElement);break}default:sc(e,t)}}function Aq(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=N.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{sc(e,t);break}case p.TEMPLATE:{bs(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function bs(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,z.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,z.endTagWithoutMatchingOpenElement)}function sc(e,t){e.openElements.pop(),e.insertionMode=N.AFTER_HEAD,e._processToken(t)}function Cq(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{Ni(e,t);break}case p.NOSCRIPT:{e._err(t,z.nestedNoscriptInHead);break}default:oc(e,t)}}function kq(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=N.IN_HEAD;break}case p.BR:{oc(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function oc(e,t){const n=t.type===Ce.EOF?z.openElementsLeftAfterEof:z.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=N.IN_HEAD,e._processToken(t)}function Oq(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.BODY:{e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=N.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,$.HTML),e.insertionMode=N.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,z.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),Ni(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,z.misplacedStartTagForHeadElement);break}default:lc(e,t)}}function Rq(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{lc(e,t);break}case p.TEMPLATE:{bs(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function lc(e,t){e._insertFakeElement(P.BODY,p.BODY),e.insertionMode=N.IN_BODY,uh(e,t)}function uh(e,t){switch(t.type){case Ce.CHARACTER:{Ik(e,t);break}case Ce.WHITESPACE_CHARACTER:{Lk(e,t);break}case Ce.COMMENT:{lb(e,t);break}case Ce.START_TAG:{on(e,t);break}case Ce.END_TAG:{ch(e,t);break}case Ce.EOF:{Hk(e,t);break}}}function Lk(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ik(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Nq(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Dq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Mq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$.HTML),e.insertionMode=N.IN_FRAMESET)}function Lq(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function Iq(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&rb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,$.HTML)}function Pq(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Bq(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,$.HTML),n||(e.formElement=e.openElements.current))}function Uq(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const r=e.openElements.tagIDs[i];if(n===p.LI&&r===p.LI||(n===p.DD||n===p.DT)&&(r===p.DD||r===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==p.ADDRESS&&r!==p.DIV&&r!==p.P&&e._isSpecialElement(e.openElements.items[i],r))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,$.HTML)}function zq(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.tokenizer.state=wt.PLAINTEXT}function jq(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1}function Hq(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);n&&(ob(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vq(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(ob(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Yq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function qq(e,t){e.treeAdapter.getDocumentMode(e.document)!==gi.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=N.IN_TABLE}function Pk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Bk(e){const t=mk(e,gs.TYPE);return t!=null&&t.toLowerCase()===uq}function Gq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$.HTML),Bk(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Xq(e,t){e._appendElement(t,$.HTML),t.ackSelfClosing=!0}function $q(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,$.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Kq(e,t){t.tagName=P.IMG,t.tagID=p.IMG,Pk(e,t)}function Qq(e,t){e._insertElement(t,$.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=N.TEXT}function Wq(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wt.RAWTEXT)}function Zq(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wt.RAWTEXT)}function Uk(e,t){e._switchToTextParsing(t,wt.RAWTEXT)}function Jq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===N.IN_TABLE||e.insertionMode===N.IN_CAPTION||e.insertionMode===N.IN_TABLE_BODY||e.insertionMode===N.IN_ROW||e.insertionMode===N.IN_CELL?N.IN_SELECT_IN_TABLE:N.IN_SELECT}function eG(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function tG(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$.HTML)}function nG(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,$.HTML)}function iG(e,t){e._reconstructActiveFormattingElements(),Ok(t),sb(t),t.selfClosing?e._appendElement(t,$.MATHML):e._insertElement(t,$.MATHML),t.ackSelfClosing=!0}function rG(e,t){e._reconstructActiveFormattingElements(),Rk(t),sb(t),t.selfClosing?e._appendElement(t,$.SVG):e._insertElement(t,$.SVG),t.ackSelfClosing=!0}function zk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$.HTML)}function on(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{Fq(e,t);break}case p.A:{Hq(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{Iq(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{Lq(e,t);break}case p.LI:case p.DD:case p.DT:{Uq(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{Pk(e,t);break}case p.HR:{$q(e,t);break}case p.RB:case p.RTC:{tG(e,t);break}case p.RT:case p.RP:{nG(e,t);break}case p.PRE:case p.LISTING:{Pq(e,t);break}case p.XMP:{Wq(e,t);break}case p.SVG:{rG(e,t);break}case p.HTML:{Nq(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{Ni(e,t);break}case p.BODY:{Dq(e,t);break}case p.FORM:{Bq(e,t);break}case p.NOBR:{Vq(e,t);break}case p.MATH:{iG(e,t);break}case p.TABLE:{qq(e,t);break}case p.INPUT:{Gq(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{Xq(e,t);break}case p.IMAGE:{Kq(e,t);break}case p.BUTTON:{jq(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{Yq(e,t);break}case p.IFRAME:{Zq(e,t);break}case p.SELECT:{Jq(e,t);break}case p.OPTION:case p.OPTGROUP:{eG(e,t);break}case p.NOEMBED:case p.NOFRAMES:{Uk(e,t);break}case p.FRAMESET:{Mq(e,t);break}case p.TEXTAREA:{Qq(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?Uk(e,t):zk(e,t);break}case p.PLAINTEXT:{zq(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:zk(e,t)}}function aG(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=N.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function sG(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=N.AFTER_BODY,Kk(e,t))}function oG(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function lG(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function uG(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(P.P,p.P),e._closePElement()}function cG(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function fG(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function dG(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function hG(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function pG(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function jk(e,t){const n=t.tagName,i=t.tagID;for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r],s=e.openElements.tagIDs[r];if(i===s&&(i!==p.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=r&&e.openElements.shortenToLength(r);break}if(e._isSpecialElement(a,s))break}}function ch(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{ob(e,t);break}case p.P:{uG(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{oG(e,t);break}case p.LI:{cG(e);break}case p.DD:case p.DT:{fG(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{dG(e);break}case p.BR:{pG(e);break}case p.BODY:{aG(e,t);break}case p.HTML:{sG(e,t);break}case p.FORM:{lG(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{hG(e,t);break}case p.TEMPLATE:{bs(e,t);break}default:jk(e,t)}}function Hk(e,t){e.tmplInsertionModeStack.length>0?$k(e,t):ub(e,t)}function mG(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function gG(e,t){e._err(t,z.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function cb(e,t){if(e.openElements.currentTagId!==void 0&&Nk.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=N.IN_TABLE_TEXT,t.type){case Ce.CHARACTER:{Vk(e,t);break}case Ce.WHITESPACE_CHARACTER:{Fk(e,t);break}}else cc(e,t)}function bG(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$.HTML),e.insertionMode=N.IN_CAPTION}function yG(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=N.IN_COLUMN_GROUP}function vG(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,p.COLGROUP),e.insertionMode=N.IN_COLUMN_GROUP,fb(e,t)}function xG(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$.HTML),e.insertionMode=N.IN_TABLE_BODY}function EG(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,p.TBODY),e.insertionMode=N.IN_TABLE_BODY,dh(e,t)}function TG(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function wG(e,t){Bk(t)?e._appendElement(t,$.HTML):cc(e,t),t.ackSelfClosing=!0}function _G(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tl(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{EG(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{Ni(e,t);break}case p.COL:{vG(e,t);break}case p.FORM:{_G(e,t);break}case p.TABLE:{TG(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{xG(e,t);break}case p.INPUT:{wG(e,t);break}case p.CAPTION:{bG(e,t);break}case p.COLGROUP:{yG(e,t);break}default:cc(e,t)}}function uc(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{bs(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:cc(e,t)}}function cc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,uh(e,t),e.fosterParentingEnabled=n}function Fk(e,t){e.pendingCharacterTokens.push(t)}function Vk(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function fc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)cc(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Yk=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function SG(e,t){const n=t.tagID;Yk.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,tl(e,t)):on(e,t)}function AG(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_TABLE,n===p.TABLE&&uc(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:ch(e,t)}}function fb(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.COL:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{Ni(e,t);break}default:fh(e,t)}}function CG(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case p.TEMPLATE:{bs(e,t);break}case p.COL:break;default:fh(e,t)}}function fh(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=N.IN_TABLE,e._processToken(t))}function dh(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,$.HTML),e.insertionMode=N.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,p.TR),e.insertionMode=N.IN_ROW,hh(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,tl(e,t));break}default:tl(e,t)}}function db(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE,uc(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:uc(e,t)}}function hh(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,$.HTML),e.insertionMode=N.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,dh(e,t));break}default:tl(e,t)}}function qk(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,db(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N.IN_TABLE_BODY,db(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:uc(e,t)}}function kG(e,t){const n=t.tagID;Yk.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),hh(e,t)):on(e,t)}function OG(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),qk(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:ch(e,t)}}function Gk(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,$.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{Ni(e,t);break}}}function Xk(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{bs(e,t);break}}}function RG(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Gk(e,t)}function NG(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Xk(e,t)}function DG(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{Ni(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=N.IN_TABLE,e.insertionMode=N.IN_TABLE,tl(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=N.IN_COLUMN_GROUP,e.insertionMode=N.IN_COLUMN_GROUP,fb(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=N.IN_TABLE_BODY,e.insertionMode=N.IN_TABLE_BODY,dh(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=N.IN_ROW,e.insertionMode=N.IN_ROW,hh(e,t);break}default:e.tmplInsertionModeStack[0]=N.IN_BODY,e.insertionMode=N.IN_BODY,on(e,t)}}function MG(e,t){t.tagID===p.TEMPLATE&&bs(e,t)}function $k(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ub(e,t)}function LG(e,t){t.tagID===p.HTML?on(e,t):ph(e,t)}function Kk(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=N.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else ph(e,t)}function ph(e,t){e.insertionMode=N.IN_BODY,uh(e,t)}function IG(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.FRAMESET:{e._insertElement(t,$.HTML);break}case p.FRAME:{e._appendElement(t,$.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{Ni(e,t);break}}}function PG(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=N.AFTER_FRAMESET))}function BG(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.NOFRAMES:{Ni(e,t);break}}}function UG(e,t){t.tagID===p.HTML&&(e.insertionMode=N.AFTER_AFTER_FRAMESET)}function zG(e,t){t.tagID===p.HTML?on(e,t):mh(e,t)}function mh(e,t){e.insertionMode=N.IN_BODY,uh(e,t)}function jG(e,t){switch(t.tagID){case p.HTML:{on(e,t);break}case p.NOFRAMES:{Ni(e,t);break}}}function HG(e,t){t.chars=ut,e._insertCharacters(t)}function FG(e,t){e._insertCharacters(t),e.framesetOk=!1}function Qk(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function VG(e,t){if(rq(t))Qk(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===$.MATHML?Ok(t):i===$.SVG&&(aq(t),Rk(t)),sb(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function YG(e,t){if(t.tagID===p.P||t.tagID===p.BR){Qk(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===$.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r,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 qG=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,GG=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Wk={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Zk(e,t){const n=nX(e),i=KA("type",{handlers:{root:XG,element:$G,text:KG,comment:e6,doctype:QG,raw:ZG},unknown:JG}),r={parser:n?new Mk(Wk):Mk.getFragmentParser(void 0,Wk),handle(o){i(o,r)},stitches:!1,options:t||{}};i(e,r),nl(r,Ji());const a=n?r.parser.document:r.parser.getFragment(),s=XV(a,{file:r.options.file});return r.stitches&&Xd(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Jk(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function XG(e,t){Jk(e.children,t)}function $G(e,t){eX(e,t),Jk(e.children,t),tX(e,t)}function KG(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ce.CHARACTER,chars:e.value,location:dc(e)};nl(t,Ji(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function QG(e,t){const n={type:Ce.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:dc(e)};nl(t,Ji(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function WG(e,t){t.stitches=!0;const n=iX(e);if("children"in e&&"children"in n){const i=Zk({type:"root",children:e.children},t.options);n.children=i.children}e6({type:"comment",value:{stitch:n}},t)}function e6(e,t){const n=e.value,i={type:Ce.COMMENT,data:n,location:dc(e)};nl(t,Ji(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function ZG(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,t6(t,Ji(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(qG,"<$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 JG(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))WG(n,t);else{let i="";throw GG.has(n.type)&&(i=". 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"+i)}}function nl(e,t){t6(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=wt.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 t6(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 eX(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===wt.PLAINTEXT)return;nl(t,Ji(e));const i=t.parser.openElements.current;let r="namespaceURI"in i?i.namespaceURI:ps.html;r===ps.html&&n==="svg"&&(r=ps.svg);const a=lY({...e,children:[]},{space:r===ps.svg?"svg":"html"}),s={type:Ce.START_TAG,tagName:n,tagID:el(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:dc(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function tX(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&gY.includes(n)||t.parser.tokenizer.state===wt.PLAINTEXT)return;nl(t,Jd(e));const i={type:Ce.END_TAG,tagName:n,tagID:el(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:dc(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===wt.RCDATA||t.parser.tokenizer.state===wt.RAWTEXT||t.parser.tokenizer.state===wt.SCRIPT_DATA)&&(t.parser.tokenizer.state=wt.DATA)}function nX(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function dc(e){const t=Ji(e)||{line:void 0,column:void 0,offset:void 0},n=Jd(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 iX(e){return"children"in e?Ko({...e,children:[]}):Ko(e)}function n6(e){return function(t,n){return Zk(t,{...e,file:n})}}function i6({children:e,messageType:t,messageId:n}){const{anchorTarget:i}=tt();return v.jsx(G3,{"data-type":t,"data-id":n,remarkPlugins:[UC],rehypePlugins:[n6],components:{a:({children:r,...a})=>v.jsx("a",{target:i??"_top",...a,children:r})},children:e})}function hb({data:e,id:t,type:n,attachments:i,isFirstInGroup:r,isLastInGroup:a,isAloneInGroup:s,dataComponentNames:o,classNames:l}){if(n!=="AI"&&n!=="AGENT")return null;const{message:u,variant:c="default"}=e;return c==="error"?v.jsx("div",{children:v.jsx("div",{className:"flex flex-row flex-wrap items-center justify-start",children:v.jsx("div",{className:"leading-snug text-sm text-destructive",children:u})})}):v.jsxs("div",{...je((o==null?void 0:o.messageContainer)??"chat/agent_msg/root"),className:ce("w-5/6 flex flex-col items-start gap-1",l==null?void 0:l.messageContainer),children:[i&&i.length>0&&v.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:i==null?void 0:i.map(f=>v.jsx(zA,{attachment:f},f.id))}),u.length>0&&v.jsx("div",{...je((o==null?void 0:o.message)??"chat/agent_msg/msg"),"data-first":r,"data-last":a,"data-alone":s,className:ce("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",r&&!s&&"rounded-bl-md",a&&!s&&"rounded-tl-md",!r&&!a&&!s&&"rounded-l-md",l==null?void 0:l.message),children:v.jsx(i6,{messageType:n,messageId:t,children:u})})]})}function rX(e){return v.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:v.jsx("pre",{className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}var r6={exports:{}},a6={};/**
|
|
300
|
-
* @license React
|
|
301
|
-
* use-sync-external-store-shim.production.js
|
|
302
|
-
*
|
|
303
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
304
|
-
*
|
|
305
|
-
* This source code is licensed under the MIT license found in the
|
|
306
|
-
* LICENSE file in the root directory of this source tree.
|
|
307
|
-
*/var il=E;function aX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sX=typeof Object.is=="function"?Object.is:aX,oX=il.useState,lX=il.useEffect,uX=il.useLayoutEffect,cX=il.useDebugValue;function fX(e,t){var n=t(),i=oX({inst:{value:n,getSnapshot:t}}),r=i[0].inst,a=i[1];return uX(function(){r.value=n,r.getSnapshot=t,pb(r)&&a({inst:r})},[e,n,t]),lX(function(){return pb(r)&&a({inst:r}),e(function(){pb(r)&&a({inst:r})})},[e]),cX(n),n}function pb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sX(e,n)}catch{return!0}}function dX(e,t){return t()}var hX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?dX:fX;a6.useSyncExternalStore=il.useSyncExternalStore!==void 0?il.useSyncExternalStore:hX,r6.exports=a6;var pX=r6.exports;function mX(){return pX.useSyncExternalStore(gX,()=>!0,()=>!1)}function gX(){return()=>{}}var mb="Avatar",[bX,hZ]=Kf(mb),[yX,s6]=bX(mb),o6=E.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[r,a]=E.useState("idle");return v.jsx(yX,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:a,children:v.jsx(jn.span,{...i,ref:t})})});o6.displayName=mb;var l6="AvatarImage",u6=E.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:r=()=>{},...a}=e,s=s6(l6,n),o=vX(i,a),l=ts(u=>{r(u),s.onImageLoadingStatusChange(u)});return Yi(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?v.jsx(jn.img,{...a,ref:t,src:i}):null});u6.displayName=l6;var c6="AvatarFallback",f6=E.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...r}=e,a=s6(c6,n),[s,o]=E.useState(i===void 0);return E.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&a.imageLoadingStatus!=="loaded"?v.jsx(jn.span,{...r,ref:t}):null});f6.displayName=c6;function d6(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function vX(e,{referrerPolicy:t,crossOrigin:n}){const i=mX(),r=E.useRef(null),a=i?(r.current||(r.current=new window.Image),r.current):null,[s,o]=E.useState(()=>d6(a,e));return Yi(()=>{o(d6(a,e))},[a,e]),Yi(()=>{const l=f=>()=>{o(f)};if(!a)return;const u=l("loaded"),c=l("error");return a.addEventListener("load",u),a.addEventListener("error",c),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",c)}},[a,n,t]),s}var h6=o6,p6=u6,m6=f6;const gb=E.forwardRef(({className:e,...t},n)=>v.jsx(h6,{ref:n,className:ce("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));gb.displayName=h6.displayName;const bb=E.forwardRef(({className:e,...t},n)=>v.jsx(p6,{ref:n,className:ce("aspect-square h-full w-full",e),...t}));bb.displayName=p6.displayName;const yb=E.forwardRef(({className:e,...t},n)=>v.jsx(m6,{ref:n,className:ce("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));yb.displayName=m6.displayName;function vb({agent:e,...t}){var n,i;return v.jsxs(gb,{...t,children:[v.jsx(bb,{src:(e==null?void 0:e.avatar)??"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&v.jsx(yb,{children:(i=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:i.toUpperCase()})]})}function xX({agent:e}){return v.jsx(zt,{children:v.jsxs(rt,{...je("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[v.jsx(vb,{agent:e}),v.jsxs("div",{...je("chat/bot_loading/bouncing_dots_container"),className:ce("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[v.jsx(Vu.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),v.jsx(Vu.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),v.jsx(Vu.span,{className:"rounded-full animate-bounce"})]})]})})}function xb(){return xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xb.apply(null,arguments)}function EX(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var g6,b6;typeof document<"u"&&(g6=document),typeof window<"u"&&(b6=window);var TX=Rn.createContext({document:g6,window:b6}),wX=["children","head","initialContent","src","mountTarget"],Eb=E.forwardRef((e,t)=>{var{children:n,head:i,initialContent:r,src:a,mountTarget:s}=e,o=EX(e,wX),[l,u]=E.useState(!1),[c,f]=E.useState(),d=w=>{w&&f(w)};E.useImperativeHandle(t,()=>c,[c]);var h=r||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,b=()=>{var w=g();return s?w==null?void 0:w.querySelector(s):w==null?void 0:w.body},T=E.useRef(),m=E.useCallback(w=>{T.current=w;var S=()=>setInterval(()=>m(w),500);clearInterval(S()),l||u(!0)},[l]);E.useMemo(()=>{!a&&o.onLoad&&l&&o.onLoad(T.current)},[l]),E.useEffect(()=>{if(c&&!a){var w;(w=c.contentWindow)==null||w.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!a){var S;(S=c.contentWindow)==null||S.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var y=()=>{var w,S=g(),k=(w=g())==null?void 0:w.head,D=b(),L=(S==null?void 0:S.defaultView)||(S==null?void 0:S.parentView),B=v.jsx(TX.Provider,{value:{document:S,window:L},children:n});return[k&&i&&pl.createPortal(i,k),c&&D&&pl.createPortal(B,D)]},x={};return a?(delete x.srcDoc,x.src=a,x.onLoad=o.onLoad):x.srcDoc=h,v.jsx("iframe",xb({title:o.title,ref:d},o,{onLoad:m},x,{children:l&&y()}))});Eb.displayName="IFrame";const y6='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-80{min-width:20rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}';var _X=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),SX="VisuallyHidden",v6=E.forwardRef((e,t)=>v.jsx(jn.span,{...e,ref:t,style:{..._X,...e.style}}));v6.displayName=SX;var AX=v6,[gh,pZ]=Kf("Tooltip",[ad]),bh=ad(),x6="TooltipProvider",CX=700,Tb="tooltip.open",[kX,wb]=gh(x6),E6=e=>{const{__scopeTooltip:t,delayDuration:n=CX,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:a}=e,s=E.useRef(!0),o=E.useRef(!1),l=E.useRef(0);return E.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(kX,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:o,onPointerInTransitChange:E.useCallback(u=>{o.current=u},[]),disableHoverableContent:r,children:a})};E6.displayName=x6;var hc="Tooltip",[OX,yh]=gh(hc),T6=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=wb(hc,e.__scopeTooltip),u=bh(t),[c,f]=E.useState(null),d=UT(),h=E.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,T=E.useRef(!1),[m,y]=v2({prop:i,defaultProp:r??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(Tb))):l.onClose(),a==null||a(D)},caller:hc}),x=E.useMemo(()=>m?T.current?"delayed-open":"instant-open":"closed",[m]),w=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,T.current=!1,y(!0)},[y]),S=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),k=E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{T.current=!0,y(!0),h.current=0},b)},[b,y]);return E.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),v.jsx(g2,{...u,children:v.jsx(OX,{scope:t,contentId:d,open:m,stateAttribute:x,trigger:c,onTriggerChange:f,onTriggerEnter:E.useCallback(()=>{l.isOpenDelayedRef.current?k():w()},[l.isOpenDelayedRef,k,w]),onTriggerLeave:E.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:w,onClose:S,disableHoverableContent:g,children:n})})};T6.displayName=hc;var _b="TooltipTrigger",w6=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=yh(_b,n),a=wb(_b,n),s=bh(n),o=E.useRef(null),l=Vi(t,o,r.onTriggerChange),u=E.useRef(!1),c=E.useRef(!1),f=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.jsx(I0,{asChild:!0,...s,children:v.jsx(jn.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:l,onPointerMove:wn(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),c.current=!0)}),onPointerLeave:wn(e.onPointerLeave,()=>{r.onTriggerLeave(),c.current=!1}),onPointerDown:wn(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:wn(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:wn(e.onBlur,r.onClose),onClick:wn(e.onClick,r.onClose)})})});w6.displayName=_b;var RX="TooltipPortal",[mZ,NX]=gh(RX,{forceMount:void 0}),rl="TooltipContent",_6=E.forwardRef((e,t)=>{const n=NX(rl,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...a}=e,s=yh(rl,e.__scopeTooltip);return v.jsx(P0,{present:i||s.open,children:s.disableHoverableContent?v.jsx(S6,{side:r,...a,ref:t}):v.jsx(DX,{side:r,...a,ref:t})})}),DX=E.forwardRef((e,t)=>{const n=yh(rl,e.__scopeTooltip),i=wb(rl,e.__scopeTooltip),r=E.useRef(null),a=Vi(t,r),[s,o]=E.useState(null),{trigger:l,onClose:u}=n,c=r.current,{onPointerInTransitChange:f}=i,d=E.useCallback(()=>{o(null),f(!1)},[f]),h=E.useCallback((g,b)=>{const T=g.currentTarget,m={x:g.clientX,y:g.clientY},y=BX(m,T.getBoundingClientRect()),x=UX(m,y),w=zX(b.getBoundingClientRect()),S=HX([...x,...w]);o(S),f(!0)},[f]);return E.useEffect(()=>()=>d(),[d]),E.useEffect(()=>{if(l&&c){const g=T=>h(T,c),b=T=>h(T,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,d]),E.useEffect(()=>{if(s){const g=b=>{const T=b.target,m={x:b.clientX,y:b.clientY},y=(l==null?void 0:l.contains(T))||(c==null?void 0:c.contains(T)),x=!jX(m,s);y?d():x&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,d]),v.jsx(S6,{...e,ref:a})}),[MX,LX]=gh(hc,{isInside:!1}),IX=nD("TooltipContent"),S6=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=yh(rl,n),u=bh(n),{onClose:c}=l;return E.useEffect(()=>(document.addEventListener(Tb,c),()=>document.removeEventListener(Tb,c)),[c]),E.useEffect(()=>{if(l.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),v.jsx(b0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:v.jsxs(b2,{"data-state":l.stateAttribute,...u,...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:[v.jsx(IX,{children:i}),v.jsx(MX,{scope:n,isInside:!0,children:v.jsx(AX,{id:l.contentId,role:"tooltip",children:r||i})})]})})});_6.displayName=rl;var A6="TooltipArrow",PX=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=bh(n);return LX(A6,n).isInside?null:v.jsx(y2,{...r,...i,ref:t})});PX.displayName=A6;function BX(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,i,r,a)){case a:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function UX(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function zX(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function jX(e,t){const{x:n,y:i}=e;let r=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a],l=t[s],u=o.x,c=o.y,f=l.x,d=l.y;c>i!=d>i&&n<(f-u)*(i-c)/(d-c)+u&&(r=!r)}return r}function HX(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),FX(t)}function FX(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const r=e[i];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(r.y-s.y)>=(a.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(r.y-s.y)>=(a.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}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 VX=E6,YX=T6,qX=w6,C6=_6;const GX=VX,XX=YX,$X=qX,k6=E.forwardRef(({className:e,sideOffset:t=4,...n},i)=>v.jsx(C6,{ref:i,sideOffset:t,className:ce("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs 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}));k6.displayName=C6.displayName;function pc({children:e,content:t,side:n,align:i}){const{disableTooltips:r}=tt();return!t||r?e:v.jsxs(XX,{children:[v.jsx($X,{asChild:!0,children:e}),v.jsx(k6,{side:n,align:i,collisionPadding:8,avoidCollisions:!0,children:t})]})}function vh(e){"@babel/helpers - typeof";return vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(e)}var KX=/^\s+/,QX=/\s+$/;function ue(e,t){if(e=e||"",t=t||{},e instanceof ue)return e;if(!(this instanceof ue))return new ue(e,t);var n=WX(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}ue.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,i,r,a,s,o;return n=t.r/255,i=t.g/255,r=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),.2126*a+.7152*s+.0722*o},setAlpha:function(t){return this._a=L6(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=R6(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=R6(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),r=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+i+"%, "+r+"%)":"hsva("+n+", "+i+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=O6(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=O6(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),r=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+i+"%, "+r+"%)":"hsla("+n+", "+i+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return N6(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return t$(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ct(this._r,255)*100)+"%",g:Math.round(ct(this._g,255)*100)+"%",b:Math.round(ct(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%)":"rgba("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:h$[N6(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+D6(this._r,this._g,this._b,this._a),i=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var a=ue(t);i="#"+D6(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+i+")"},toString:function(t){var n=!!t;t=t||this._format;var i=!1,r=this._a<1&&this._a>=0,a=!n&&r&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return ue(this.toString())},_applyModification:function(t,n){var i=t.apply(null,[this].concat([].slice.call(n)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(a$,arguments)},brighten:function(){return this._applyModification(s$,arguments)},darken:function(){return this._applyModification(o$,arguments)},desaturate:function(){return this._applyModification(n$,arguments)},saturate:function(){return this._applyModification(i$,arguments)},greyscale:function(){return this._applyModification(r$,arguments)},spin:function(){return this._applyModification(l$,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(f$,arguments)},complement:function(){return this._applyCombination(u$,arguments)},monochromatic:function(){return this._applyCombination(d$,arguments)},splitcomplement:function(){return this._applyCombination(c$,arguments)},triad:function(){return this._applyCombination(M6,[3])},tetrad:function(){return this._applyCombination(M6,[4])}},ue.fromRatio=function(e,t){if(vh(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=mc(e[i]));e=n}return ue(e,t)};function WX(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,a=null,s=!1,o=!1;return typeof e=="string"&&(e=b$(e)),vh(e)=="object"&&(Dr(e.r)&&Dr(e.g)&&Dr(e.b)?(t=ZX(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Dr(e.h)&&Dr(e.s)&&Dr(e.v)?(i=mc(e.s),r=mc(e.v),t=e$(e.h,i,r),s=!0,o="hsv"):Dr(e.h)&&Dr(e.s)&&Dr(e.l)&&(i=mc(e.s),a=mc(e.l),t=JX(e.h,i,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=L6(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function ZX(e,t,n){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(n,255)*255}}function O6(e,t,n){e=ct(e,255),t=ct(t,255),n=ct(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),a,s,o=(i+r)/2;if(i==r)a=s=0;else{var l=i-r;switch(s=o>.5?l/(2-i-r):l/(i+r),i){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:o}}function JX(e,t,n){var i,r,a;e=ct(e,360),t=ct(t,100),n=ct(n,100);function s(u,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(c-u)*6*f:f<1/2?c:f<2/3?u+(c-u)*(2/3-f)*6:u}if(t===0)i=r=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=s(l,o,e+1/3),r=s(l,o,e),a=s(l,o,e-1/3)}return{r:i*255,g:r*255,b:a*255}}function R6(e,t,n){e=ct(e,255),t=ct(t,255),n=ct(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),a,s,o=i,l=i-r;if(s=i===0?0:l/i,i==r)a=0;else{switch(i){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:o}}function e$(e,t,n){e=ct(e,360)*6,t=ct(t,100),n=ct(n,100);var i=Math.floor(e),r=e-i,a=n*(1-t),s=n*(1-r*t),o=n*(1-(1-r)*t),l=i%6,u=[n,s,a,a,o,n][l],c=[o,n,n,s,a,a][l],f=[a,a,o,n,n,s][l];return{r:u*255,g:c*255,b:f*255}}function N6(e,t,n,i){var r=[Di(Math.round(e).toString(16)),Di(Math.round(t).toString(16)),Di(Math.round(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function t$(e,t,n,i,r){var a=[Di(Math.round(e).toString(16)),Di(Math.round(t).toString(16)),Di(Math.round(n).toString(16)),Di(I6(i))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function D6(e,t,n,i){var r=[Di(I6(i)),Di(Math.round(e).toString(16)),Di(Math.round(t).toString(16)),Di(Math.round(n).toString(16))];return r.join("")}ue.equals=function(e,t){return!e||!t?!1:ue(e).toRgbString()==ue(t).toRgbString()},ue.random=function(){return ue.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function n$(e,t){t=t===0?0:t||10;var n=ue(e).toHsl();return n.s-=t/100,n.s=xh(n.s),ue(n)}function i$(e,t){t=t===0?0:t||10;var n=ue(e).toHsl();return n.s+=t/100,n.s=xh(n.s),ue(n)}function r$(e){return ue(e).desaturate(100)}function a$(e,t){t=t===0?0:t||10;var n=ue(e).toHsl();return n.l+=t/100,n.l=xh(n.l),ue(n)}function s$(e,t){t=t===0?0:t||10;var n=ue(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),ue(n)}function o$(e,t){t=t===0?0:t||10;var n=ue(e).toHsl();return n.l-=t/100,n.l=xh(n.l),ue(n)}function l$(e,t){var n=ue(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,ue(n)}function u$(e){var t=ue(e).toHsl();return t.h=(t.h+180)%360,ue(t)}function M6(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ue(e).toHsl(),i=[ue(e)],r=360/t,a=1;a<t;a++)i.push(ue({h:(n.h+a*r)%360,s:n.s,l:n.l}));return i}function c$(e){var t=ue(e).toHsl(),n=t.h;return[ue(e),ue({h:(n+72)%360,s:t.s,l:t.l}),ue({h:(n+216)%360,s:t.s,l:t.l})]}function f$(e,t,n){t=t||6,n=n||30;var i=ue(e).toHsl(),r=360/n,a=[ue(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,a.push(ue(i));return a}function d$(e,t){t=t||6;for(var n=ue(e).toHsv(),i=n.h,r=n.s,a=n.v,s=[],o=1/t;t--;)s.push(ue({h:i,s:r,v:a})),a=(a+o)%1;return s}ue.mix=function(e,t,n){n=n===0?0:n||50;var i=ue(e).toRgb(),r=ue(t).toRgb(),a=n/100,s={r:(r.r-i.r)*a+i.r,g:(r.g-i.g)*a+i.g,b:(r.b-i.b)*a+i.b,a:(r.a-i.a)*a+i.a};return ue(s)},ue.readability=function(e,t){var n=ue(e),i=ue(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},ue.isReadable=function(e,t,n){var i=ue.readability(e,t),r,a;switch(a=!1,r=y$(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a},ue.mostReadable=function(e,t,n){var i=null,r=0,a,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)a=ue.readability(e,t[u]),a>r&&(r=a,i=ue(t[u]));return ue.isReadable(e,i,{level:o,size:l})||!s?i:(n.includeFallbackColors=!1,ue.mostReadable(e,["#fff","#000"],n))};var Sb=ue.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},h$=ue.hexNames=p$(Sb);function p$(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function L6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){m$(e)&&(e="100%");var n=g$(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function xh(e){return Math.min(1,Math.max(0,e))}function $n(e){return parseInt(e,16)}function m$(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function g$(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Di(e){return e.length==1?"0"+e:""+e}function mc(e){return e<=1&&(e=e*100+"%"),e}function I6(e){return Math.round(parseFloat(e)*255).toString(16)}function P6(e){return $n(e)/255}var Mi=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Dr(e){return!!Mi.CSS_UNIT.exec(e)}function b$(e){e=e.replace(KX,"").replace(QX,"").toLowerCase();var t=!1;if(Sb[e])e=Sb[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Mi.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Mi.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mi.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Mi.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mi.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Mi.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mi.hex8.exec(e))?{r:$n(n[1]),g:$n(n[2]),b:$n(n[3]),a:P6(n[4]),format:t?"name":"hex8"}:(n=Mi.hex6.exec(e))?{r:$n(n[1]),g:$n(n[2]),b:$n(n[3]),format:t?"name":"hex"}:(n=Mi.hex4.exec(e))?{r:$n(n[1]+""+n[1]),g:$n(n[2]+""+n[2]),b:$n(n[3]+""+n[3]),a:P6(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Mi.hex3.exec(e))?{r:$n(n[1]+""+n[1]),g:$n(n[2]+""+n[2]),b:$n(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function y$(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const B6=450;function nr(){const[e,t]=Rn.useState(()=>(window.top||window).innerWidth<B6);return Rn.useEffect(()=>{const n=window.top||window,i=()=>{t(n.innerWidth<B6)};return i(),n.addEventListener("resize",i),()=>{n.removeEventListener("resize",i)}},[]),{isSmallScreen:e}}const Eh={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function ys(){var f,d,h,g,b,T,m,y,x,w,S,k,D,L,B,R,Y,j,re,ee,Q,F,V,H,te,O,ge,Je,M,Ie,me,Pe,ln,Ke,Ft,Ot,Vt,Yt,un,Qn,yi,vi,cn,xi,Zt,Ei,Da;const{dir:e}=$0(),{isSmallScreen:t}=nr(),{theme:n,inline:i}=tt(),r=Cn=>i?"100%":Cn,a=(Cn,Ir)=>t?`100dv${Cn}`:Ir,s=(Cn,Ir)=>r(a(Cn,Ir)),o={zIndex:((f=n==null?void 0:n.widgetTrigger)==null?void 0:f.zIndex)??1e7,offset:{bottom:((h=(d=n==null?void 0:n.widgetTrigger)==null?void 0:d.offset)==null?void 0:h.bottom)??20,right:((b=(g=n==null?void 0:n.widgetTrigger)==null?void 0:g.offset)==null?void 0:b.right)??(e==="ltr"?20:"initial"),left:((m=(T=n==null?void 0:n.widgetTrigger)==null?void 0:T.offset)==null?void 0:m.left)??(e==="rtl"?20:"initial")},size:{button:((x=(y=n==null?void 0:n.widgetTrigger)==null?void 0:y.size)==null?void 0:x.button)??48,icon:((S=(w=n==null?void 0:n.widgetTrigger)==null?void 0:w.size)==null?void 0:S.icon)??24}},l=(()=>{const Cn=e==="ltr"?o.offset.right:o.offset.left;return typeof Cn!="number"?0:Cn})(),u={palette:(n==null?void 0:n.palette)??"neutral",primaryColor:(n==null?void 0:n.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:o,widgetContentContainer:{borderRadius:t?"0px":((k=n==null?void 0:n.widgetContentContainer)==null?void 0:k.borderRadius)??"32px",zIndex:((D=n==null?void 0:n.widgetContentContainer)==null?void 0:D.zIndex)??o.zIndex+1,outline:((L=n==null?void 0:n.widgetContentContainer)==null?void 0:L.outline)??"none",outlineColor:((B=n==null?void 0:n.widgetContentContainer)==null?void 0:B.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((R=n==null?void 0:n.widgetContentContainer)==null?void 0:R.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((Y=n==null?void 0:n.widgetContentContainer)==null?void 0:Y.transitionProperty)??"all",transitionTimingFunction:((j=n==null?void 0:n.widgetContentContainer)==null?void 0:j.transitionTimingFunction)??Eh.transitionTimingFunction,transitionDuration:((re=n==null?void 0:n.widgetContentContainer)==null?void 0:re.transitionDuration)??Eh.transitionDuration,offset:{side:t?0:o.offset.bottom+o.size.button+No.y*2+(((Q=(ee=n==null?void 0:n.widgetContentContainer)==null?void 0:ee.offset)==null?void 0:Q.side)??10),align:t?0:l+(((V=(F=n==null?void 0:n.widgetContentContainer)==null?void 0:F.offset)==null?void 0:V.align)??0)}},screens:{welcome:{width:s("w",((te=(H=n==null?void 0:n.screens)==null?void 0:H.welcome)==null?void 0:te.width)??"400px"),minHeight:s("h",((ge=(O=n==null?void 0:n.screens)==null?void 0:O.welcome)==null?void 0:ge.minHeight)??"1px")},sessions:{width:s("w",((M=(Je=n==null?void 0:n.screens)==null?void 0:Je.sessions)==null?void 0:M.width)??"450px"),height:s("h",((me=(Ie=n==null?void 0:n.screens)==null?void 0:Ie.sessions)==null?void 0:me.height)??"600px")},chat:{width:s("w",((ln=(Pe=n==null?void 0:n.screens)==null?void 0:Pe.chat)==null?void 0:ln.width)??"525px"),height:s("h",((Ft=(Ke=n==null?void 0:n.screens)==null?void 0:Ke.chat)==null?void 0:Ft.height)??"700px"),withCanvas:{width:s("w",((Yt=(Vt=(Ot=n==null?void 0:n.screens)==null?void 0:Ot.chat)==null?void 0:Vt.withCanvas)==null?void 0:Yt.width)??"min(1050px, 100vw)"),height:s("h",((yi=(Qn=(un=n==null?void 0:n.screens)==null?void 0:un.chat)==null?void 0:Qn.withCanvas)==null?void 0:yi.height)??"min(800px, 100vh)"),transitionTimingFunction:((xi=(cn=(vi=n==null?void 0:n.screens)==null?void 0:vi.chat)==null?void 0:cn.withCanvas)==null?void 0:xi.transitionTimingFunction)??Eh.transitionTimingFunction,transitionDuration:((Da=(Ei=(Zt=n==null?void 0:n.screens)==null?void 0:Zt.chat)==null?void 0:Ei.withCanvas)==null?void 0:Da.transitionDuration)??Eh.transitionDuration}}}},c={maxHeight:s("h",`calc(
|
|
308
|
-
100vh
|
|
309
|
-
- ${u.widgetTrigger.offset.bottom}px
|
|
310
|
-
- ${u.widgetContentContainer.offset.side}px
|
|
311
|
-
- ${No.y*2}px
|
|
312
|
-
)`),maxWidth:s("w",`calc(
|
|
313
|
-
100vw
|
|
314
|
-
- ${l*2}px
|
|
315
|
-
)`),minHeight:s("h",`min(
|
|
316
|
-
${u.screens.welcome.minHeight},
|
|
317
|
-
${u.screens.sessions.height},
|
|
318
|
-
${u.screens.chat.height}
|
|
319
|
-
)`),minWidth:s("w",`min(
|
|
320
|
-
${u.screens.welcome.width},
|
|
321
|
-
${u.screens.sessions.width},
|
|
322
|
-
${u.screens.chat.width}
|
|
323
|
-
)`)};return{theme:u,computed:c,cssVars:v$({palette:u.palette,primary:u.primaryColor})}}function v$({palette:e,primary:t}){const n=U6(e),i=ue(t).toHsl(),r=ue(t).isLight()?n[950]:n[50];return{"--opencx-primary":`${i.h} ${i.s*100}% ${i.l*100}%`,"--opencx-primary-foreground":r,"--opencx-background":n[100],"--opencx-foreground":n[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":n[50],"--opencx-accent":n[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":n[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":n[200],"--opencx-muted-foreground":n[500],"--opencx-input":n[300],"--opencx-border":n[300],"--opencx-ring":"var(--opencx-foreground)"}}function U6(e){const t={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},n={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},i={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},r={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(e){case"neutral":return t;case"stone":return n;case"zinc":return i;case"slate":return r;default:return ci(e,U6.name),t}}function z6(){const{contentIframeRef:e}=Ut(),{inline:t}=tt();return{setWidth:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-width",t?"100%":n)},setHeight:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-height",t?"100%":n)}}}function Ab({width:e,height:t}){const{isSmallScreen:n}=nr(),{setWidth:i,setHeight:r}=z6();E.useEffect(()=>{e&&i(e),t&&r(t)},[n,t,e,i,r])}const j6=RA;function gc({name:e,className:t}){const n=(()=>{switch(e){case"Check":return L7;case"CheckCheck":return M7;case"CircleCheck":return OA;case"CircleCheckBig":return z7;case"CircleX":return j7;case"Expand":return H7;case"Maximize":return K7;case"Maximize2":return $7;case"Minimize":return W7;case"Minimize2":return Q7;case"Shrink":return eB;case"SquareCheck":return nB;case"SquareCheckBig":return tB;case"SquareX":return iB;case"X":return jd;case void 0:return j6;default:return ci(e,gc.name),j6}})();return v.jsx(n,{className:ce("size-4",t)})}function Cb(){const{widgetCtx:{org:e}}=Ut(),{routerState:{screen:t}}=_r(),{textContent:n}=tt();return(()=>{var r,a;switch(t){case"chat":return(r=n==null?void 0:n.chatScreen)==null?void 0:r.headerTitle;case"sessions":return(a=n==null?void 0:n.sessionsScreen)==null?void 0:a.headerTitle;case"welcome":return;default:ci(t,Cb.name);return}})()??e.name??"Chat"}function x$(e){switch(e){case"chat":return je("chat/header");case"sessions":return je("sessions/header");case"welcome":return;default:ci(e,Cb.name);return}}function E$(){const{router:e}=tt(),{routerState:{screen:t},toSessionsScreen:n}=_r();return t!=="chat"||e!=null&&e.chatScreenOnly?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:v.jsx(P7,{className:"size-4 rtl:-scale-100"})})}function T$({button:e}){const{setIsOpen:t}=ko(),{isSmallScreen:n}=nr();if(n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen)return null;const i=()=>{if(e.handleClick)return e.handleClick();t(!1)};return v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:i,children:v.jsx(gc,{name:e.icon})})}function kb({button:e}){const[t,n]=E.useState(!1),{routerState:{screen:i}}=_r(),{isSmallScreen:r}=nr(),{theme:a}=ys(),{setWidth:s,setHeight:o}=z6();if(i!=="chat"&&i!=="sessions")return null;const l=(()=>{switch(i){case"chat":return a.screens.chat.height;case"sessions":return a.screens.sessions.height;default:return ci(i,kb.name),a.screens.chat.height}})(),u=(()=>{switch(i){case"chat":return a.screens.chat.width;case"sessions":return a.screens.sessions.width;default:return ci(i,kb.name),a.screens.chat.width}})(),c=()=>{n(f=>{const d=!f;return o(d?"100vh":l),s(d?`max(40vw, ${u})`:u),d})};return r&&e.hideOnSmallScreen||!r&&e.hideOnLargeScreen?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c,children:v.jsx(gc,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function H6({button:e}){var b,T;const{close:t}=Hd(),{widgetCtx:n}=Ut(),{setIsOpen:i}=ko(),{resolveSession:r,sessionState:a}=Ki(),{isSmallScreen:s}=nr(),o=!a.session,l=((b=a.session)==null?void 0:b.isOpened)===!1,u=e.onResolved||"stay-in-chat",c=e.behaviorBeforeSessionCreation||"disabled",f=e.behaviorIfSessionIsResolved||"disabled",d=!!(a.isResolvingSession||o&&c==="disabled"||l&&f==="disabled"),h=async()=>{const{success:m,error:y}=await r();if(t(),!m)return console.error(y);switch(u){case"stay-in-chat":return;case"close-widget":i(!1);break;case"reset-chat":n.resetChat();break;case"reset-chat-and-close-widget":i(!1),n.resetChat();break;default:ci(u,H6.name);break}},g=()=>{if(o)switch(c){case"disabled":return;case"close-widget":i(!1);break;default:ci(c,g.name)}if(l)switch(f){case"disabled":return;case"close-widget":i(!1);break;case"reset-chat":n.resetChat();break;case"reset-chat-and-close-widget":i(!1),setTimeout(()=>{n.resetChat()},200);break;default:ci(f,g.name)}};return s&&e.hideOnSmallScreen||!s&&e.hideOnLargeScreen?null:((T=e.confirmation)==null?void 0:T.type)==="modal"&&!l&&!o?v.jsx(UA,{trigger:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:d,children:v.jsx(gc,{name:e.icon})}),children:v.jsxs(DA,{children:[v.jsx(MA,{children:v.jsx(PA,{children:e.confirmation.title||"Close conversation"})}),v.jsx(LA,{children:v.jsx(BA,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),v.jsxs(IA,{children:[v.jsx(Tt,{variant:"secondary",onClick:t,disabled:a.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),v.jsx(Tt,{variant:"destructive",onClick:h,disabled:a.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})}):v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:l||o?g:h,disabled:d,children:v.jsx(gc,{name:e.icon})})}function Ob({button:e}){switch(e.functionality){case"close-widget":return v.jsx(T$,{button:e});case"expand-shrink":return v.jsx(kb,{button:e});case"resolve-session":return v.jsx(H6,{button:e});default:return ci(e,Ob.name),null}}const w$={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function _$(){const{routerState:{screen:e}}=_r(),{headerButtons:t}=tt(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?v.jsx(Ob,{button:w$}):v.jsx(v.Fragment,{children:n.map(i=>v.jsx(Ob,{button:i},`${i.functionality}-${i.icon}`))})}function F6(){const{routerState:{screen:e}}=_r(),t=x$(e),n=Cb();return v.jsx("header",{...t,className:"py-2 px-4 shrink-0",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(E$,{}),v.jsx("div",{className:ce("flex-1 h-8 flex items-center",e==="sessions"&&"ps-2"),children:v.jsx("h2",{className:"font-semibold",children:n})}),v.jsx(_$,{})]})})}function V6({className:e}){return v.jsx(X7,{className:ce("size-4 animate-spin",e)})}function S$(){const{messagesState:{isInitialFetchLoading:e}}=fi(),{isSmallScreen:t}=nr(),{activeMode:n,Component:i}=_w();return{isCanvasOpen:!e&&!t&&!!n&&!!i}}function A$(){const{activeMode:e,Component:t}=_w(),{sendMessage:n}=fi(),{createStateCheckpoint:i}=Ki(),[r,a]=E.useState(!1),s=async o=>{try{a(!0),await n(o)}catch(l){console.error(l)}finally{a(!1)}};return!e||!t?null:v.jsx(t,{react:Rn,mode:e,createStateCheckpoint:i,sendMessage:s,isSendingMessage:r})}var Y6={exports:{}},C$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",k$=C$,O$=k$;function q6(){}function G6(){}G6.resetWarningCache=q6;var R$=function(){function e(i,r,a,s,o,l){if(l!==O$){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:G6,resetWarningCache:q6};return n.PropTypes=n,n};Y6.exports=R$();var N$=Y6.exports;const $e=dl(N$),D$=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function al(e,t,n){const i=M$(e),{webkitRelativePath:r}=e,a=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof i.path!="string"&&X6(i,"path",a),X6(i,"relativePath",a),i}function M$(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),r=D$.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function X6(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const L$=[".DS_Store","Thumbs.db"];function I$(e){return wr(this,void 0,void 0,function*(){return Th(e)&&P$(e.dataTransfer)?j$(e.dataTransfer,e.type):B$(e)?U$(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?z$(e):[]})}function P$(e){return Th(e)}function B$(e){return Th(e)&&Th(e.target)}function Th(e){return typeof e=="object"&&e!==null}function U$(e){return Rb(e.target.files).map(t=>al(t))}function z$(e){return wr(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>al(n))})}function j$(e,t){return wr(this,void 0,void 0,function*(){if(e.items){const n=Rb(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(H$));return $6(K6(i))}return $6(Rb(e.files).map(n=>al(n)))})}function $6(e){return e.filter(t=>L$.indexOf(t.name)===-1)}function Rb(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function H$(e){if(typeof e.webkitGetAsEntry!="function")return Q6(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?W6(t):Q6(e,t)}function K6(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?K6(n):[n]],[])}function Q6(e,t){return wr(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const s=yield a.getFile();return s.handle=a,al(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return al(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function F$(e){return wr(this,void 0,void 0,function*(){return e.isDirectory?W6(e):V$(e)})}function W6(e){const t=e.createReader();return new Promise((n,i)=>{const r=[];function a(){t.readEntries(s=>wr(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map(F$));r.push(o),a()}else try{const o=yield Promise.all(r);n(o)}catch(o){i(o)}}),s=>{i(s)})}a()})}function V$(e){return wr(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const r=al(i,e.fullPath);t(r)},i=>{n(i)})})})}var Nb=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",r=(e.type||"").toLowerCase(),a=r.replace(/\/.*$/,"");return n.some(function(s){var o=s.trim().toLowerCase();return o.charAt(0)==="."?i.toLowerCase().endsWith(o):o.endsWith("/*")?a===o.replace(/\/.*$/,""):r===o})}return!0};function Z6(e){return G$(e)||q$(e)||nO(e)||Y$()}function Y$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
324
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G$(e){if(Array.isArray(e))return Db(e)}function J6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function eO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(n),!0).forEach(function(i){tO(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function tO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bc(e,t){return K$(e)||$$(e,t)||nO(e,t)||X$()}function X$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
325
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nO(e,t){if(e){if(typeof e=="string")return Db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Db(e,t)}}function Db(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function $$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,a=!1,s,o;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));r=!0);}catch(l){a=!0,o=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(a)throw o}}return i}}function K$(e){if(Array.isArray(e))return e}var Q$=typeof Nb=="function"?Nb:Nb.default,W$="file-invalid-type",Z$="file-too-large",J$="file-too-small",eK="too-many-files",tK=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:W$,message:"File type must be ".concat(i)}},iO=function(t){return{code:Z$,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},rO=function(t){return{code:J$,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},nK={code:eK,message:"Too many files"};function aO(e,t){var n=e.type==="application/x-moz-file"||Q$(e,t);return[n,n?null:tK(t)]}function sO(e,t,n){if(vs(e.size))if(vs(t)&&vs(n)){if(e.size>n)return[!1,iO(n)];if(e.size<t)return[!1,rO(t)]}else{if(vs(t)&&e.size<t)return[!1,rO(t)];if(vs(n)&&e.size>n)return[!1,iO(n)]}return[!0,null]}function vs(e){return e!=null}function iK(e){var t=e.files,n=e.accept,i=e.minSize,r=e.maxSize,a=e.multiple,s=e.maxFiles,o=e.validator;return!a&&t.length>1||a&&s>=1&&t.length>s?!1:t.every(function(l){var u=aO(l,n),c=bc(u,1),f=c[0],d=sO(l,i,r),h=bc(d,1),g=h[0],b=o?o(l):null;return f&&g&&!b})}function wh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function _h(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function oO(e){e.preventDefault()}function rK(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function aK(e){return e.indexOf("Edge/")!==-1}function sK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return rK(e)||aK(e)}function ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return t.some(function(o){return!wh(i)&&o&&o.apply(void 0,[i].concat(a)),wh(i)})}}function oK(){return"showOpenFilePicker"in window}function lK(e){if(vs(e)){var t=Object.entries(e).filter(function(n){var i=bc(n,2),r=i[0],a=i[1],s=!0;return lO(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(a)||!a.every(uO))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,i){var r=bc(i,2),a=r[0],s=r[1];return eO(eO({},n),{},tO({},a,s))},{});return[{description:"Files",accept:t}]}return e}function uK(e){if(vs(e))return Object.entries(e).reduce(function(t,n){var i=bc(n,2),r=i[0],a=i[1];return[].concat(Z6(t),[r],Z6(a))},[]).filter(function(t){return lO(t)||uO(t)}).join(",")}function cK(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function fK(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function lO(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function uO(e){return/^.*\.[\w]+$/.test(e)}var dK=["children"],hK=["open"],pK=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],mK=["refKey","onChange","onClick"];function gK(e){return vK(e)||yK(e)||cO(e)||bK()}function bK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
326
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vK(e){if(Array.isArray(e))return Lb(e)}function Mb(e,t){return TK(e)||EK(e,t)||cO(e,t)||xK()}function xK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
327
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cO(e,t){if(e){if(typeof e=="string")return Lb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lb(e,t)}}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function EK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],r=!0,a=!1,s,o;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));r=!0);}catch(l){a=!0,o=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(a)throw o}}return i}}function TK(e){if(Array.isArray(e))return e}function fO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(n),!0).forEach(function(i){Ib(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fO(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ib(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sh(e,t){if(e==null)return{};var n=wK(e,t),i,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function wK(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,a;for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var Pb=E.forwardRef(function(e,t){var n=e.children,i=Sh(e,dK),r=hO(i),a=r.open,s=Sh(r,hK);return E.useImperativeHandle(t,function(){return{open:a}},[a]),Rn.createElement(E.Fragment,null,n(ht(ht({},s),{},{open:a})))});Pb.displayName="Dropzone";var dO={disabled:!1,getFilesFromEvent:I$,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Pb.defaultProps=dO,Pb.propTypes={children:$e.func,accept:$e.objectOf($e.arrayOf($e.string)),multiple:$e.bool,preventDropOnDocument:$e.bool,noClick:$e.bool,noKeyboard:$e.bool,noDrag:$e.bool,noDragEventsBubbling:$e.bool,minSize:$e.number,maxSize:$e.number,maxFiles:$e.number,disabled:$e.bool,getFilesFromEvent:$e.func,onFileDialogCancel:$e.func,onFileDialogOpen:$e.func,useFsAccessApi:$e.bool,autoFocus:$e.bool,onDragEnter:$e.func,onDragLeave:$e.func,onDragOver:$e.func,onDrop:$e.func,onDropAccepted:$e.func,onDropRejected:$e.func,onError:$e.func,validator:$e.func};var Bb={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ht(ht({},dO),e),n=t.accept,i=t.disabled,r=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,T=t.onFileDialogOpen,m=t.useFsAccessApi,y=t.autoFocus,x=t.preventDropOnDocument,w=t.noClick,S=t.noKeyboard,k=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,B=t.validator,R=E.useMemo(function(){return uK(n)},[n]),Y=E.useMemo(function(){return lK(n)},[n]),j=E.useMemo(function(){return typeof T=="function"?T:pO},[T]),re=E.useMemo(function(){return typeof b=="function"?b:pO},[b]),ee=E.useRef(null),Q=E.useRef(null),F=E.useReducer(_K,Bb),V=Mb(F,2),H=V[0],te=V[1],O=H.isFocused,ge=H.isFileDialogActive,Je=E.useRef(typeof window<"u"&&window.isSecureContext&&m&&oK()),M=function(){!Je.current&&ge&&setTimeout(function(){if(Q.current){var de=Q.current.files;de.length||(te({type:"closeDialog"}),re())}},300)};E.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,ge,re,Je]);var Ie=E.useRef([]),me=function(de){ee.current&&ee.current.contains(de.target)||(de.preventDefault(),Ie.current=[])};E.useEffect(function(){return x&&(document.addEventListener("dragover",oO,!1),document.addEventListener("drop",me,!1)),function(){x&&(document.removeEventListener("dragover",oO),document.removeEventListener("drop",me))}},[ee,x]),E.useEffect(function(){return!i&&y&&ee.current&&ee.current.focus(),function(){}},[ee,y,i]);var Pe=E.useCallback(function(ne){L?L(ne):console.error(ne)},[L]),ln=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ei(ne),Ie.current=[].concat(gK(Ie.current),[ne.target]),_h(ne)&&Promise.resolve(r(ne)).then(function(de){if(!(wh(ne)&&!D)){var U=de.length,X=U>0&&iK({files:de,accept:R,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:B}),oe=U>0&&!X;te({isDragAccept:X,isDragReject:oe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne)}}).catch(function(de){return Pe(de)})},[r,u,Pe,D,R,s,a,o,l,B]),Ke=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ei(ne);var de=_h(ne);if(de&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return de&&f&&f(ne),!1},[f,D]),Ft=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ei(ne);var de=Ie.current.filter(function(X){return ee.current&&ee.current.contains(X)}),U=de.indexOf(ne.target);U!==-1&&de.splice(U,1),Ie.current=de,!(de.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_h(ne)&&c&&c(ne))},[ee,c,D]),Ot=E.useCallback(function(ne,de){var U=[],X=[];ne.forEach(function(oe){var xe=aO(oe,R),be=Mb(xe,2),qt=be[0],kn=be[1],gn=sO(oe,s,a),Wn=Mb(gn,2),On=Wn[0],Rt=Wn[1],Zn=B?B(oe):null;if(qt&&On&&!Zn)U.push(oe);else{var bn=[kn,Rt];Zn&&(bn=bn.concat(Zn)),X.push({file:oe,errors:bn.filter(function(Pr){return Pr})})}}),(!o&&U.length>1||o&&l>=1&&U.length>l)&&(U.forEach(function(oe){X.push({file:oe,errors:[nK]})}),U.splice(0)),te({acceptedFiles:U,fileRejections:X,isDragReject:X.length>0,type:"setFiles"}),d&&d(U,X,de),X.length>0&&g&&g(X,de),U.length>0&&h&&h(U,de)},[te,o,R,s,a,l,d,h,g,B]),Vt=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),Ei(ne),Ie.current=[],_h(ne)&&Promise.resolve(r(ne)).then(function(de){wh(ne)&&!D||Ot(de,ne)}).catch(function(de){return Pe(de)}),te({type:"reset"})},[r,Ot,Pe,D]),Yt=E.useCallback(function(){if(Je.current){te({type:"openDialog"}),j();var ne={multiple:o,types:Y};window.showOpenFilePicker(ne).then(function(de){return r(de)}).then(function(de){Ot(de,null),te({type:"closeDialog"})}).catch(function(de){cK(de)?(re(de),te({type:"closeDialog"})):fK(de)?(Je.current=!1,Q.current?(Q.current.value=null,Q.current.click()):Pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Pe(de)});return}Q.current&&(te({type:"openDialog"}),j(),Q.current.value=null,Q.current.click())},[te,j,re,m,Ot,Pe,Y,o]),un=E.useCallback(function(ne){!ee.current||!ee.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Yt())},[ee,Yt]),Qn=E.useCallback(function(){te({type:"focus"})},[]),yi=E.useCallback(function(){te({type:"blur"})},[]),vi=E.useCallback(function(){w||(sK()?setTimeout(Yt,0):Yt())},[w,Yt]),cn=function(de){return i?null:de},xi=function(de){return S?null:cn(de)},Zt=function(de){return k?null:cn(de)},Ei=function(de){D&&de.stopPropagation()},Da=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=ne.refKey,U=de===void 0?"ref":de,X=ne.role,oe=ne.onKeyDown,xe=ne.onFocus,be=ne.onBlur,qt=ne.onClick,kn=ne.onDragEnter,gn=ne.onDragOver,Wn=ne.onDragLeave,On=ne.onDrop,Rt=Sh(ne,pK);return ht(ht(Ib({onKeyDown:xi(ir(oe,un)),onFocus:xi(ir(xe,Qn)),onBlur:xi(ir(be,yi)),onClick:cn(ir(qt,vi)),onDragEnter:Zt(ir(kn,ln)),onDragOver:Zt(ir(gn,Ke)),onDragLeave:Zt(ir(Wn,Ft)),onDrop:Zt(ir(On,Vt)),role:typeof X=="string"&&X!==""?X:"presentation"},U,ee),!i&&!S?{tabIndex:0}:{}),Rt)}},[ee,un,Qn,yi,vi,ln,Ke,Ft,Vt,S,k,i]),Cn=E.useCallback(function(ne){ne.stopPropagation()},[]),Ir=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=ne.refKey,U=de===void 0?"ref":de,X=ne.onChange,oe=ne.onClick,xe=Sh(ne,mK),be=Ib({accept:R,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:cn(ir(X,Vt)),onClick:cn(ir(oe,Cn)),tabIndex:-1},U,Q);return ht(ht({},be),xe)}},[Q,n,o,Vt,i]);return ht(ht({},H),{},{isFocused:O&&!i,getRootProps:Da,getInputProps:Ir,rootRef:ee,inputRef:Q,open:cn(Yt)})}function _K(e,t){switch(t.type){case"focus":return ht(ht({},e),{},{isFocused:!0});case"blur":return ht(ht({},e),{},{isFocused:!1});case"openDialog":return ht(ht({},Bb),{},{isFileDialogActive:!0});case"closeDialog":return ht(ht({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ht(ht({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ht(ht({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ht({},Bb);default:return e}}function pO(){}const Mr=Rn.forwardRef((e,t)=>{var n,i,r;return v.jsx(rt,{...e,ref:t,className:ce("overflow-hidden",e.className),overrides:{initial:{height:0,opacity:0,...(n=e.overrides)==null?void 0:n.initial},animate:{height:"auto",opacity:1,...(i=e.overrides)==null?void 0:i.animate},exit:{height:0,opacity:0,...(r=e.overrides)==null?void 0:r.exit}}})});Mr.displayName="MotionDiv__VerticalReveal";const SK=[{label:"Terrible",value:1,emoji:"😡"},{label:"Poor",value:2,emoji:"😞"},{label:"Okay",value:3,emoji:"😐"},{label:"Good",value:4,emoji:"😊"},{label:"Great",value:5,emoji:"😍"}];function AK(){const{isSmallScreen:e}=nr(),{submitCsat:t,isCsatRequested:n,isCsatSubmitted:i,submittedScore:r,submittedFeedback:a}=Sw(),[s,o]=E.useState(null),[l,u]=E.useState(null),c=d=>{o(h=>h===d?null:d)},f=()=>{s&&t({score:s,feedback:l||void 0})};return!n&&!i?null:v.jsxs("div",{className:"w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden",children:[v.jsx(zt,{mode:"wait",children:n&&!s?v.jsx(Mr,{children:v.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:"How was your conversation?"})},"csat-requested-title"):i?v.jsx(Mr,{children:v.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:"You rated the conversation as"})},"csat-submitted-title"):null}),v.jsx("div",{className:ce("flex gap-4 justify-between pt-2 px-2 pb-2","transition-all",i&&"gap-0 justify-center"),children:SK.map(d=>v.jsx(Tt,{variant:d.value===s?"secondary":"ghost",size:"selfless",className:ce("transition-all overflow-hidden","text-2xl size-8 rounded-full","opacity-35","hover:opacity-100",!s&&"opacity-100",d.value===s&&"opacity-100",i&&d.value!==r&&"opacity-0 size-0",i&&d.value===r&&"opacity-100 size-fit text-4xl"),onClick:n?()=>c(d.value):void 0,children:d.emoji},d.value))}),v.jsx(zt,{mode:"wait",children:(s||r)&&v.jsx(Mr,{children:v.jsxs("div",{className:"pb-2 px-2 flex items-end",children:[v.jsx("textarea",{rows:3,className:ce("transition-all","max-h-40 [field-sizing:content]","w-full resize-none","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm",i&&"text-center"),value:i?a||"":l||"",onChange:n?d=>u(d.target.value):void 0,readOnly:i,placeholder:n?"Tell us more... (optional)":void 0}),v.jsx(Tt,{size:"fit",onClick:f,disabled:!s,className:ce("transition-all overflow-hidden","rounded-full size-8 flex items-center justify-center p-0",i&&"opacity-0 size-0"),children:v.jsx(kA,{className:"size-4"})})]})},"feedback-box")}),v.jsx("div",{className:ce("h-0 transition-[height]",i&&"h-4")})]})}const mO={en:{"write-a-message":"Write a message...","session-closed-lead":"Your issue has been resolved!","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet","back-to-conversations":"Back to conversations","closed-conversations":"Closed conversations"},ar:{"write-a-message":"اكتب رسالة...","session-closed-lead":"تم حل مشكلتك!","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات","back-to-conversations":"العودة إلى المحادثات","closed-conversations":"المحادثات المغلقة"},nl:{"write-a-message":"Schrijf een bericht...","session-closed-lead":"Uw probleem is opgelost!","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken","back-to-conversations":"Terug naar gesprekken","closed-conversations":"Afgesloten gesprekken"},fr:{"write-a-message":"Écrivez un message...","session-closed-lead":"Votre problème a été résolu !","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment","back-to-conversations":"Retour aux conversations","closed-conversations":"Conversations fermées"},de:{"write-a-message":"Nachricht schreiben...","session-closed-lead":"Ihr Problem wurde gelöst!","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche","back-to-conversations":"Zurück zur Konversationen","closed-conversations":"Geschlossene Konversationen"},pt:{"write-a-message":"Escreva uma mensagem...","session-closed-lead":"Seu problema foi resolvido!","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda","back-to-conversations":"Voltar para conversas","closed-conversations":"Conversas fechadas"},es:{"write-a-message":"Escribe un mensaje...","session-closed-lead":"¡Tu problema fue resuelto!","new-conversation":"Nueva conversación","welcome-title":"Bienvenido a nuestro chat de soporte","welcome-description":"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.","your-name":"Tu nombre","your-email":"Tu correo electrónico","start-chat":"Hablar con soporte","starting-chat":"Conectando...","i-need-more-help":"Necesito más ayuda","this-was-helpful":"Esto fue útil",optional:"Opcional","no-conversations-yet":"Sin conversaciones aún","back-to-conversations":"Volver a conversaciones","closed-conversations":"Conversaciones cerradas"},tr:{"write-a-message":"Bir mesaj yazın...","session-closed-lead":"Sorununuz çözüldü!","new-conversation":"Yeni konuşma","welcome-title":"Destek sohbetimize hoş geldiniz","welcome-description":"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.","your-name":"Adınız","your-email":"E-posta adresiniz","start-chat":"Destekle konuş","starting-chat":"Bağlanıyor...","i-need-more-help":"Daha fazla yardıma ihtiyacım var","this-was-helpful":"Bu yardımcı oldu",optional:"İsteğe bağlı","no-conversations-yet":"Henüz konuşma yok","back-to-conversations":"Konuşmalara geri dön","closed-conversations":"Kapatılan konuşmalar"}},CK=Object.keys(mO);function kK(e){return CK.includes(e)}function OK(e,t){const n=mO[t];return n&&n[e]||""}function xs(){const{dir:e}=$0(),t=tt();return E.useMemo(()=>{const n=kK(t.language)?t.language:"en";return{t:i=>OK(i,n),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}function Ub({suggestion:e,className:t,...n}){const{sendMessage:i}=fi(),r=()=>{const a=e.trim();a&&i({content:a})};return v.jsx(Tt,{...je("chat/suggested_reply_btn"),size:"sm",className:ce("rounded-xl w-fit",t),...n,onClick:r,children:e})}function RK(){const{t:e}=xs(),t=[e("i-need-more-help"),e("this-was-helpful")];return v.jsx("div",{...je("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>v.jsx(Ub,{suggestion:n,className:"flex-1"},n))})}function NK({file:{status:e,file:t,error:n},onCancel:i}){const[r,a]=E.useState(null);E.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>a(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return v.jsx(G7,{className:"size-4 animate-spin"});case"error":return v.jsx(U7,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&r?v.jsx("img",{src:typeof r=="string"?r:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?v.jsx(F7,{}):l==="video"?v.jsx(V7,{}):v.jsx(Y7,{})};return v.jsx(pc,{side:"bottom",content:e==="error"?v.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:v.jsxs("div",{className:ce(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),v.jsx("button",{type:"button",className:ce("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:i,children:v.jsx(jd,{className:"size-4 text-primary-foreground"})}),v.jsx(o,{})]})})}function DK(){var k;const{isSmallScreen:e}=nr(),t=E.useRef(null),{sendMessage:n}=fi(),{sessionState:i}=Ki(),{t:r}=xs(),[a,s]=E.useState(""),{allFiles:o,emptyTheFiles:l,handleCancelUpload:u,appendFiles:c,isUploading:f,successFiles:d}=_L(),h=!!((k=i.session)!=null&&k.isHandedOff),{isAwaitingBotReply:g}=Tw(),b=D=>{c(D)},T=!a.trim()&&d.length===0,m=async()=>{if(g||T)return;f&&console.info("please wait for the file(s) to upload");const D=a.trim();n({content:D,attachments:d.flatMap(L=>L.fileUrl?[{url:L.fileUrl,type:L.file.type,name:L.file.name,id:L.id,size:L.file.size}]:[])}),s(""),l()},{getRootProps:y,getInputProps:x,open:w}=hO({onDrop:b,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:h?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),S=D=>{const L=D.clipboardData;L&&L.files.length>0&&b(Array.from(L.files))};return v.jsxs("div",{...je("chat/input_box/root"),className:"p-2 relative space-y-1",...y(),children:[v.jsx("input",{...x()}),v.jsxs("div",{...je("chat/input_box/inner_root"),className:ce("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[v.jsxs("div",{...je("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[o.length>0&&v.jsx("div",{...je("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:v.jsx(zt,{mode:"popLayout",children:o.map(D=>v.jsx(rt,{snapExit:!0,children:v.jsx(NK,{onCancel:()=>u(D.id),file:D})},D.id))})}),v.jsx("textarea",{...je("chat/input_box/textarea"),onPaste:S,ref:t,id:"chat-input",value:a,rows:3,className:ce("max-h-16 [field-sizing:content]","w-full resize-none px-2",o.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm"),onChange:D=>s(D.target.value),onKeyDown:async D=>{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),m())},placeholder:r("write-a-message")})]}),v.jsxs("div",{className:"gap-2 flex justify-between",children:[v.jsx(pc,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:v.jsx(Tt,{onClick:w,size:"fit",variant:"ghost",className:ce("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:v.jsx(zt,{mode:"wait",children:h?v.jsx(rt,{children:v.jsx(Z7,{className:"size-4"})},"paper-clip"):v.jsx(rt,{children:v.jsx(q7,{className:"size-4"})},"image-icon")})})}),v.jsx(pc,{content:"send message",side:"top",align:"end",children:v.jsx(Tt,{size:"fit",onClick:m,disabled:g||f||T,className:"rounded-full size-8 flex items-center justify-center p-0",children:v.jsx(zt,{mode:"wait",children:g||f?v.jsx(rt,{snapExit:!0,children:v.jsx(RA,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):v.jsx(rt,{snapExit:!0,children:v.jsx(kA,{className:"size-4"})},"send")})})})]})]})]})}function gO(){const{widgetCtx:e}=Ut(),{router:t}=tt(),{canCreateNewSession:n}=Ki(),{toSessionsScreen:i}=_r(),{t:r}=xs();return v.jsx(v.Fragment,{children:n||t!=null&&t.chatScreenOnly?v.jsx(Tt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:r("new-conversation")}):v.jsx(Tt,{onClick:i,className:"rounded-2xl w-full",children:r("back-to-conversations")})})}function MK(){const{t:e}=xs(),{isCsatRequested:t,isCsatSubmitted:n}=Sw();return v.jsx("div",{className:"p-2",children:v.jsx("div",{className:"p-2 bg-muted rounded-3xl",children:v.jsx(zt,{mode:"wait",children:t||n?v.jsxs(Mr,{children:[v.jsx(AK,{}),v.jsx(zt,{mode:"wait",children:n&&v.jsx(Mr,{children:v.jsx(gO,{})},"new-conv-or-back-to-convs-button")})]},"csat"):v.jsxs(Mr,{children:[v.jsxs("div",{className:"ps-2 flex items-center gap-1 pb-2",children:[v.jsx(OA,{className:"size-4 text-emerald-600"}),v.jsx("h2",{className:"text-sm font-medium",children:e("session-closed-lead")})]}),v.jsx(gO,{})]},"session-closed")})})})}function LK(){var s;const{initialQuestions:e,initialQuestionsPosition:t,thisWasHelpfulOrNot:n}=tt(),{sessionState:i}=Ki(),{messagesState:r}=fi(),a=r.messages.length===0;return v.jsx("footer",{children:v.jsx("div",{children:v.jsx(zt,{mode:"wait",children:i.session&&!((s=i.session)!=null&&s.isOpened)?v.jsx(Mr,{children:v.jsx(MK,{})},"session-closed"):v.jsxs(Mr,{children:[r.lastAIResMightSolveUserIssue&&(n==null?void 0:n.enabled)!==!1&&v.jsx(RK,{}),a&&e&&t!=="below-initial-messages"&&v.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:e==null?void 0:e.map((o,l)=>v.jsx(Ub,{suggestion:o},`${o}-${l}`))}),v.jsx(DK,{})]},"chat-input")})})})}function IK({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...i}){const{componentStore:r}=Ut();if(i.type!=="AGENT"&&i.type!=="AI")return null;if(i.data.action){const s=r.getComponent(i.data.action.name);if(s)return v.jsx(s,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const a=r.getComponent(i.component);return a?v.jsx(a,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):v.jsx(hb,{...i,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function bO({messages:e,className:t,containerClassName:n}){var s,o;const{timestamps:i}=tt();if(!((s=i==null?void 0:i.perMessageGroup)!=null&&s.enabled))return null;const r=(o=e[e.length-1])==null?void 0:o.timestamp;if(!r)return null;const a=(()=>{try{return new Date(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!0})}catch(l){return console.error(l),null}})();return a?v.jsx("div",{className:n,children:v.jsx("span",{className:ce("text-xs text-muted-foreground",t),children:a})}):null}function zb({messages:e,agent:t,suggestedReplies:n}){return v.jsxs("div",{...je("chat/agent_msg_group/root"),className:ce("flex items-end gap-2"),children:[v.jsx(pc,{content:t==null?void 0:t.name,side:"right",align:"end",children:v.jsx(vb,{...je("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),v.jsxs("div",{className:ce("flex-1 flex flex-col gap-1"),children:[v.jsxs("div",{...je("chat/agent_msg_group/avatar_and_msgs/root"),className:ce("flex items-end gap-2"),children:[v.jsx(pc,{content:t==null?void 0:t.name,side:"right",align:"end",children:v.jsx(vb,{...je("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),v.jsxs("div",{...je("chat/agent_msg_group/avatar_and_msgs/msgs"),className:ce("flex-1 flex flex-col gap-1"),children:[e.map((i,r,a)=>v.jsx(IK,{isFirstInGroup:r===0,isLastInGroup:r===a.length-1,isAloneInGroup:a.length===1,...i},i.id)),v.jsx(bO,{messages:e})]})]}),n&&n.length>0&&v.jsx("div",{...je("chat/agent_msg_group/suggestions"),className:ce("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((i,r)=>v.jsx(Ub,{suggestion:i},`${i}-${r}`))})]})]})}function PK({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:i}){var r;return v.jsxs("div",{...je("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&v.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(r=e.attachments)==null?void 0:r.map(a=>v.jsx(zA,{attachment:a},a.id))}),e.content.length>0&&v.jsx("div",{...je("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":i,className:ce("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!i&&"rounded-br-md",n&&!i&&"rounded-tr-md",!t&&!n&&!i&&"rounded-r-md"),children:e.content})]})}function BK({messages:e}){return v.jsxs("div",{...je("chat/user_msg_group/root"),className:ce("group","flex flex-col gap-1 justify-end items-end"),children:[e.map((t,n,i)=>v.jsx(PK,{message:t,isFirstInGroup:n===0,isLastInGroup:n===i.length-1,isAloneInGroup:i.length===1},t.id)),v.jsx(bO,{messages:e,containerClassName:"ms-auto"})]})}function UK(e){const t=[];let n=null;return e.forEach(i=>{var r,a,s,o,l,u;(!n||((r=n[0])==null?void 0:r.type)!==i.type)&&(n=[],t.push(n)),((a=n[0])==null?void 0:a.type)==="AGENT"&&i.type==="AGENT"&&(((s=i.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)||((l=i.agent)==null?void 0:l.name)!==((u=n[0].agent)==null?void 0:u.name))&&(n=[],t.push(n)),n.push(i)}),t}function zK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="USER"}function jK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AI"}function HK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AGENT"}function FK(){const{messagesState:{messages:e}}=fi(),{advancedInitialMessages:t=[],initialQuestionsPosition:n,initialQuestions:i,bot:r}=tt();return v.jsx(v.Fragment,{children:e.length===0&&t.length>0&&v.jsx(zb,{messages:t.map(({message:a},s)=>({component:"bot_message",data:{message:a},id:`${s}-${a}`,type:"AI",timestamp:null})),suggestedReplies:e.length===0&&n==="below-initial-messages"?i:void 0,agent:r?{...r,isAi:!0,id:null}:void 0})})}function VK(){const{messagesState:{messages:e}}=fi(),{chatBannerItems:t}=tt();return!(t!=null&&t.length)||e.length>0&&t.every(n=>!n.persistent)?null:v.jsx("div",{className:"w-full text-center text-xs",children:t.map(({message:n,persistent:i},r)=>e.length>0&&!i?null:v.jsx("div",{children:v.jsx(i6,{children:n})},`${n}-${r}`))})}function YK(){const{messagesState:{messages:e}}=fi(),t=tt(),{advancedInitialMessages:n=[],initialQuestions:i,initialQuestionsPosition:r}=t,a=(()=>{var s;return n.length?[]:e.length?[]:(s=t.initialMessages)!=null&&s.length?t.initialMessages:["Hello, how can I help you?"]})();return v.jsx(v.Fragment,{children:e.length===0&&a.length>0&&v.jsx(zb,{messages:a.map((s,o)=>({component:"bot_message",data:{message:s},id:`${o}-${s}`,type:"AI",timestamp:null})),suggestedReplies:r==="below-initial-messages"?i:void 0,agent:t.bot?{...t.bot,isAi:!0,id:null}:void 0})})}function qK(){const{messagesState:{messages:e}}=fi(),{isAwaitingBotReply:t}=Tw(),{componentStore:n}=Ut(),i=tt(),r=E.useMemo(()=>UK(e),[e]),a=n.getComponent("loading"),s=E.useRef(null);function o(){setTimeout(()=>{const l=s.current;l&&(l.scrollTop=l.scrollHeight)},0)}return E.useEffect(()=>{o()},[e]),v.jsxs("div",{...je("chat/msgs/root"),ref:s,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[v.jsx(VK,{}),v.jsx(FK,{}),v.jsx(YK,{}),r.map(l=>{var f,d,h;const u=(f=l==null?void 0:l[0])==null?void 0:f.type,c=(d=l[0])==null?void 0:d.id;if(!u||!c)return null;if(zK(l))return v.jsx(BK,{messages:l},c);if(jK(l)||HK(l)){const g=(h=l[0])==null?void 0:h.agent;return v.jsx(zb,{messages:l,agent:g},c)}return null}),t&&a&&v.jsx(a,{agent:i.bot}),v.jsx(GK,{})]})}function GK(){const{sessionState:{session:e}}=Ki(),{specialComponents:t}=tt();if(e!=null&&e.isOpened||!e)return null;const n=t==null?void 0:t.onSessionResolved;return n?v.jsx(n,{react:Rn}):null}function XK(){const{messagesState:{isInitialFetchLoading:e}}=fi(),{sessionState:{session:t}}=Ki(),{isCanvasOpen:n}=S$(),{theme:i}=ys();Ab({width:n?i.screens.chat.withCanvas.width:i.screens.chat.width,height:n?i.screens.chat.withCanvas.height:i.screens.chat.height});const r=E.useRef((t==null?void 0:t.id)||"chat").current;return v.jsx("div",{...je("chat/root"),className:ce("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:v.jsxs("div",{className:"size-full justify-between flex flex-col",children:[v.jsx(F6,{}),v.jsx(zt,{mode:"wait",children:e?v.jsx(rt,{className:"flex flex-col items-center justify-center w-full flex-1",children:v.jsx(V6,{})},"loading"):v.jsxs(rt,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[v.jsxs("div",{...je("chat/main/root"),className:ce("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:[v.jsx(qK,{}),v.jsx(LK,{})]}),v.jsx("div",{...je("chat/canvas/root"),className:ce("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:v.jsx(A$,{})})]},r)})]})})}function $K({className:e,...t}){return v.jsx("div",{className:ce("animate-pulse rounded-md bg-secondary",e),...t})}function KK({className:e}){return v.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ce("text-primary-foreground",e),children:v.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function yO({className:e}){const{token:t}=tt();return v.jsx("div",{className:ce("flex items-center justify-center gap-2 p-2 pt-0",e),children:v.jsx(Ar,{children:v.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:ce("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[v.jsx("span",{children:"Powered by"}),v.jsx("span",{children:" "}),v.jsxs("span",{className:"flex items-center gap-[1px]",children:[v.jsx("span",{children:v.jsx(KK,{className:"size-3 inline-block"})}),v.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function QK({children:e}){return v.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function vO({session:e,className:t}){const{bot:n}=tt(),{toChatScreen:i}=_r(),r=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",a=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(n==null?void 0:n.avatar)||"";return v.jsxs(Tt,{variant:"ghost",size:"lg",className:ce("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>i(e.id),children:[v.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[v.jsx(zt,{mode:"wait",children:v.jsx(rt,{snapExit:!0,children:v.jsxs(gb,{className:"size-10",children:[v.jsx(bb,{src:a,alt:"Agent Icon"}),v.jsx(yb,{children:v.jsx(rB,{className:"size-4"})})]})})}),v.jsxs("div",{className:"flex-1",children:[v.jsx(zt,{mode:"wait",children:v.jsx(rt,{snapExit:!0,children:r},r)}),v.jsx(zt,{mode:"wait",children:e.lastMessage?v.jsx(rt,{snapExit:!0,children:v.jsx(G3,{remarkPlugins:[UC],rehypePlugins:[n6],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):v.jsx(rt,{className:"w-1/2",snapExit:!0,children:v.jsx($K,{className:"h-4 w-full"})},"skeleton")})]})]}),v.jsx(B7,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function WK(){const{t:e}=xs(),{toChatScreen:t}=_r(),{sessionsState:{data:n,isInitialFetchLoading:i},openSessions:r,closedSessions:a,canCreateNewSession:s}=Ki();return v.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:v.jsx(zt,{mode:"wait",children:i?v.jsx(rt,{className:"flex-1 flex items-center justify-center",children:v.jsx(V6,{})},"loading"):v.jsx(rt,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?v.jsxs(v.Fragment,{children:[v.jsxs(zt,{children:[r.length>0&&v.jsx(rt,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:r.map(o=>v.jsx(vO,{session:o},o.id))},"open-sessions"),a.length>0&&v.jsxs(rt,{className:"space-y-2",delay:.2,snapExit:!0,children:[v.jsx(QK,{children:e("closed-conversations")}),a.map(o=>v.jsx(vO,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&v.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:E.createElement(Tt,{...je("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new-conversation"))})]}):v.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[v.jsx("div",{className:"flex-1 flex items-center justify-center",children:v.jsx("p",{className:"text-muted-foreground",children:e("no-conversations-yet")})}),E.createElement(Tt,{...je("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new-conversation"))]})},"sessions")})})}function ZK(){const{theme:e}=ys();return Ab({width:e.screens.sessions.width,height:e.screens.sessions.height}),v.jsx("div",{...je("sessions/root"),className:ce("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:v.jsxs("div",{className:"size-full flex flex-col",children:[v.jsx(F6,{}),v.jsx(WK,{}),v.jsx(yO,{})]})})}var xO={};const JK=i4(iM);var Ah={},EO;function eQ(){if(EO)return Ah;EO=1,Object.defineProperty(Ah,"__esModule",{value:!0});var e=E;function t(){var n=e.useRef(!1),i=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),i}return Ah.default=t,Ah}Object.defineProperty(xO,"__esModule",{value:!0});var jb=JK,Hb=E,tQ=jb.__importDefault(eQ());function nQ(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var i=Hb.useRef(0),r=tQ.default(),a=Hb.useState(n),s=a[0],o=a[1],l=Hb.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var f=++i.current;return s.loading||o(function(d){return jb.__assign(jb.__assign({},d),{loading:!0})}),e.apply(void 0,u).then(function(d){return r()&&f===i.current&&o({value:d,loading:!1}),d},function(d){return r()&&f===i.current&&o({error:d,loading:!1}),d})},t);return[s,l]}var iQ=xO.default=nQ,Be;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const a={};for(const s of r)a[s]=s;return a},e.getValidEnumValues=r=>{const a=e.objectKeys(r).filter(o=>typeof r[r[o]]!="number"),s={};for(const o of a)s[o]=r[o];return e.objectValues(s)},e.objectValues=r=>e.objectKeys(r).map(function(a){return r[a]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&a.push(s);return a},e.find=(r,a)=>{for(const s of r)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,a=" | "){return r.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=i,e.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(Be||(Be={}));var TO;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(TO||(TO={}));const se=Be.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ca=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return Number.isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}},J=Be.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Lr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},i={_errors:[]},r=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(r);else if(s.code==="invalid_return_type")r(s.returnTypeError);else if(s.code==="invalid_arguments")r(s.argumentsError);else if(s.path.length===0)i._errors.push(n(s));else{let o=i,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return r(this),i}static assert(t){if(!(t instanceof Lr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Be.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const r of this.issues)if(r.path.length>0){const a=r.path[0];n[a]=n[a]||[],n[a].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Lr.create=e=>new Lr(e);const Fb=(e,t)=>{let n;switch(e.code){case J.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Be.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:n=`Unrecognized key(s) in object: ${Be.joinValues(e.keys,", ")}`;break;case J.invalid_union:n="Invalid input";break;case J.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Be.joinValues(e.options)}`;break;case J.invalid_enum_value:n=`Invalid enum value. Expected ${Be.joinValues(e.options)}, received '${e.received}'`;break;case J.invalid_arguments:n="Invalid function arguments";break;case J.invalid_return_type:n="Invalid function return type";break;case J.invalid_date:n="Invalid date";break;case J.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Be.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case J.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case J.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case J.custom:n="Invalid input";break;case J.invalid_intersection_types:n="Intersection results could not be merged";break;case J.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case J.not_finite:n="Number must be finite";break;default:n=t.defaultError,Be.assertNever(e)}return{message:n}};let rQ=Fb;function aQ(){return rQ}const sQ=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let o="";const l=i.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function ie(e,t){const n=aQ(),i=sQ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fb?void 0:Fb].filter(r=>!!r)});e.common.issues.push(i)}class Kn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const r of n){if(r.status==="aborted")return ye;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const r of n){const a=await r.key,s=await r.value;i.push({key:a,value:s})}return Kn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const r of n){const{key:a,value:s}=r;if(a.status==="aborted"||s.status==="aborted")return ye;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||r.alwaysSet)&&(i[a.value]=s.value)}return{status:t.value,value:i}}}const ye=Object.freeze({status:"aborted"}),yc=e=>({status:"dirty",value:e}),bi=e=>({status:"valid",value:e}),wO=e=>e.status==="aborted",_O=e=>e.status==="dirty",sl=e=>e.status==="valid",Ch=e=>typeof Promise<"u"&&e instanceof Promise;var le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(le||(le={}));class ka{constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const SO=(e,t)=>{if(sl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Lr(e.common.issues);return this._error=n,this._error}}};function ke(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??i??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:r}}class Le{get description(){return this._def.description}_getType(t){return Ca(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ca(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Kn,ctx:{common:t.parent.common,data:t.data,parsedType:Ca(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ch(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ca(t)},r=this._parseSync({data:t,path:i.path,parent:i});return SO(i,r)}"~validate"(t){var i,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ca(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return sl(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(r=(i=a==null?void 0:a.message)==null?void 0:i.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>sl(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ca(t)},r=this._parse({data:t,path:i.path,parent:i}),a=await(Ch(r)?r:Promise.resolve(r));return SO(i,a)}refine(t,n){const i=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,a)=>{const s=t(r),o=()=>a.addIssue({code:J.custom,...i(r)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new ul({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Na.create(this,this._def)}nullable(){return cl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rr.create(this)}promise(){return Nh.create(this,this._def)}or(t){return Oh.create([this,t],this._def)}and(t){return Rh.create(this,t,this._def)}transform(t){return new ul({...ke(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new qb({...ke(this._def),innerType:this,defaultValue:n,typeName:ve.ZodDefault})}brand(){return new OQ({typeName:ve.ZodBranded,type:this,...ke(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Gb({...ke(this._def),innerType:this,catchValue:n,typeName:ve.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Xb.create(this,t)}readonly(){return $b.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oQ=/^c[^\s-]{8,}$/i,lQ=/^[0-9a-z]+$/,uQ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,cQ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fQ=/^[a-z0-9_-]{21}$/i,dQ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hQ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,pQ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mQ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Vb;const gQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,vQ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xQ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,EQ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,AO="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",TQ=new RegExp(`^${AO}$`);function CO(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function wQ(e){return new RegExp(`^${CO(e)}$`)}function _Q(e){let t=`${AO}T${CO(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function SQ(e,t){return!!((t==="v4"||!t)&&gQ.test(e)||(t==="v6"||!t)&&yQ.test(e))}function AQ(e,t){if(!dQ.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function CQ(e,t){return!!((t==="v4"||!t)&&bQ.test(e)||(t==="v6"||!t)&&vQ.test(e))}class Oa extends Le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:se.string,received:a.parsedType}),ye}const i=new Kn;let r;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:J.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="max")t.data.length>a.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:J.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,o=t.data.length<a.value;(s||o)&&(r=this._getOrReturnCtx(t,r),s?ie(r,{code:J.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&ie(r,{code:J.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if(a.kind==="email")pQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"email",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="emoji")Vb||(Vb=new RegExp(mQ,"u")),Vb.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"emoji",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="uuid")cQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"uuid",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="nanoid")fQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"nanoid",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid")oQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cuid",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid2")lQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cuid2",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="ulid")uQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"ulid",code:J.invalid_string,message:a.message}),i.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),ie(r,{validation:"url",code:J.invalid_string,message:a.message}),i.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"regex",code:J.invalid_string,message:a.message}),i.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty()):a.kind==="datetime"?_Q(a).test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:"datetime",message:a.message}),i.dirty()):a.kind==="date"?TQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?wQ(a).test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:"time",message:a.message}),i.dirty()):a.kind==="duration"?hQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"duration",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?SQ(t.data,a.version)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"ip",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="jwt"?AQ(t.data,a.alg)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"jwt",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="cidr"?CQ(t.data,a.version)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"cidr",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="base64"?xQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="base64url"?EQ.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64url",code:J.invalid_string,message:a.message}),i.dirty()):Be.assertNever(a);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:J.invalid_string,...le.errToObj(i)})}_addCheck(t){return new Oa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...le.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...le.errToObj(n)})}nonempty(t){return this.min(1,le.errToObj(t))}trim(){return new Oa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Oa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Oa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Oa.create=e=>new Oa({checks:[],typeName:ve.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ke(e)});function kQ(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,a=Number.parseInt(e.toFixed(r).replace(".","")),s=Number.parseInt(t.toFixed(r).replace(".",""));return a%s/10**r}class vc extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==se.number){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:se.number,received:a.parsedType}),ye}let i;const r=new Kn;for(const a of this._def.checks)a.kind==="int"?Be.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?kQ(t.data,a.value)!==0&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_finite,message:a.message}),r.dirty()):Be.assertNever(a);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,i,r){return new vc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:le.toString(r)}]})}_addCheck(t){return new vc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Be.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}vc.create=e=>new vc({checks:[],typeName:ve.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class xc extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==se.bigint)return this._getInvalidInput(t);let i;const r=new Kn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):Be.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:se.bigint,received:n.parsedType}),ye}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,i,r){return new xc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:le.toString(r)}]})}_addCheck(t){return new xc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}xc.create=e=>new xc({checks:[],typeName:ve.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ke(e)});class kO extends Le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:se.boolean,received:i.parsedType}),ye}return bi(t.data)}}kO.create=e=>new kO({typeName:ve.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class kh extends Le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:se.date,received:a.parsedType}),ye}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_date}),ye}const i=new Kn;let r;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:J.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(r=this._getOrReturnCtx(t,r),ie(r,{code:J.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):Be.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new kh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}kh.create=e=>new kh({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ve.ZodDate,...ke(e)});class OO extends Le{_parse(t){if(this._getType(t)!==se.symbol){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:se.symbol,received:i.parsedType}),ye}return bi(t.data)}}OO.create=e=>new OO({typeName:ve.ZodSymbol,...ke(e)});class RO extends Le{_parse(t){if(this._getType(t)!==se.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:se.undefined,received:i.parsedType}),ye}return bi(t.data)}}RO.create=e=>new RO({typeName:ve.ZodUndefined,...ke(e)});class NO extends Le{_parse(t){if(this._getType(t)!==se.null){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:se.null,received:i.parsedType}),ye}return bi(t.data)}}NO.create=e=>new NO({typeName:ve.ZodNull,...ke(e)});class DO extends Le{constructor(){super(...arguments),this._any=!0}_parse(t){return bi(t.data)}}DO.create=e=>new DO({typeName:ve.ZodAny,...ke(e)});class MO extends Le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return bi(t.data)}}MO.create=e=>new MO({typeName:ve.ZodUnknown,...ke(e)});class Ra extends Le{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:se.never,received:n.parsedType}),ye}}Ra.create=e=>new Ra({typeName:ve.ZodNever,...ke(e)});class LO extends Le{_parse(t){if(this._getType(t)!==se.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:se.void,received:i.parsedType}),ye}return bi(t.data)}}LO.create=e=>new LO({typeName:ve.ZodVoid,...ke(e)});class rr extends Le{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==se.array)return ie(n,{code:J.invalid_type,expected:se.array,received:n.parsedType}),ye;if(r.exactLength!==null){const s=n.data.length>r.exactLength.value,o=n.data.length<r.exactLength.value;(s||o)&&(ie(n,{code:s?J.too_big:J.too_small,minimum:o?r.exactLength.value:void 0,maximum:s?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(ie(n,{code:J.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(ie(n,{code:J.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>r.type._parseAsync(new ka(n,s,n.path,o)))).then(s=>Kn.mergeArray(i,s));const a=[...n.data].map((s,o)=>r.type._parseSync(new ka(n,s,n.path,o)));return Kn.mergeArray(i,a)}get element(){return this._def.type}min(t,n){return new rr({...this._def,minLength:{value:t,message:le.toString(n)}})}max(t,n){return new rr({...this._def,maxLength:{value:t,message:le.toString(n)}})}length(t,n){return new rr({...this._def,exactLength:{value:t,message:le.toString(n)}})}nonempty(t){return this.min(1,t)}}rr.create=(e,t)=>new rr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...ke(t)});function ol(e){if(e instanceof kt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Na.create(ol(i))}return new kt({...e._def,shape:()=>t})}else return e instanceof rr?new rr({...e._def,type:ol(e.element)}):e instanceof Na?Na.create(ol(e.unwrap())):e instanceof cl?cl.create(ol(e.unwrap())):e instanceof Es?Es.create(e.items.map(t=>ol(t))):e}class kt extends Le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Be.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==se.object){const u=this._getOrReturnCtx(t);return ie(u,{code:J.invalid_type,expected:se.object,received:u.parsedType}),ye}const{status:i,ctx:r}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ra&&this._def.unknownKeys==="strip"))for(const u in r.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=a[u],f=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ka(r,f,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Ra){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:r.data[c]}});else if(u==="strict")o.length>0&&(ie(r,{code:J.unrecognized_keys,keys:o}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const f=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ka(r,f,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Kn.mergeObjectSync(i,u)):Kn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return le.errToObj,new kt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var a,s;const r=((s=(a=this._def).errorMap)==null?void 0:s.call(a,n,i).message)??i.defaultError;return n.code==="unrecognized_keys"?{message:le.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new kt({...this._def,unknownKeys:"strip"})}passthrough(){return new kt({...this._def,unknownKeys:"passthrough"})}extend(t){return new kt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new kt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ve.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new kt({...this._def,catchall:t})}pick(t){const n={};for(const i of Be.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new kt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of Be.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new kt({...this._def,shape:()=>n})}deepPartial(){return ol(this)}partial(t){const n={};for(const i of Be.objectKeys(this.shape)){const r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new kt({...this._def,shape:()=>n})}required(t){const n={};for(const i of Be.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof Na;)a=a._def.innerType;n[i]=a}return new kt({...this._def,shape:()=>n})}keyof(){return UO(Be.objectKeys(this.shape))}}kt.create=(e,t)=>new kt({shape:()=>e,unknownKeys:"strip",catchall:Ra.create(),typeName:ve.ZodObject,...ke(t)}),kt.strictCreate=(e,t)=>new kt({shape:()=>e,unknownKeys:"strict",catchall:Ra.create(),typeName:ve.ZodObject,...ke(t)}),kt.lazycreate=(e,t)=>new kt({shape:e,unknownKeys:"strip",catchall:Ra.create(),typeName:ve.ZodObject,...ke(t)});class Oh extends Le{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function r(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(o=>new Lr(o.ctx.common.issues));return ie(n,{code:J.invalid_union,unionErrors:s}),ye}if(n.common.async)return Promise.all(i.map(async a=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(r);{let a;const s=[];for(const l of i){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=s.map(l=>new Lr(l));return ie(n,{code:J.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}Oh.create=(e,t)=>new Oh({options:e,typeName:ve.ZodUnion,...ke(t)});function Yb(e,t){const n=Ca(e),i=Ca(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&i===se.object){const r=Be.objectKeys(t),a=Be.objectKeys(e).filter(o=>r.indexOf(o)!==-1),s={...e,...t};for(const o of a){const l=Yb(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===se.array&&i===se.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let a=0;a<e.length;a++){const s=e[a],o=t[a],l=Yb(s,o);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return n===se.date&&i===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Rh extends Le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(a,s)=>{if(wO(a)||wO(s))return ye;const o=Yb(a.value,s.value);return o.valid?((_O(a)||_O(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(i,{code:J.invalid_intersection_types}),ye)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([a,s])=>r(a,s)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Rh.create=(e,t,n)=>new Rh({left:e,right:t,typeName:ve.ZodIntersection,...ke(n)});class Es extends Le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==se.array)return ie(i,{code:J.invalid_type,expected:se.array,received:i.parsedType}),ye;if(i.data.length<this._def.items.length)return ie(i,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...i.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ka(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(a).then(s=>Kn.mergeArray(n,s)):Kn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Es({...this._def,rest:t})}}Es.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Es({items:e,typeName:ve.ZodTuple,rest:null,...ke(t)})};class IO extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==se.map)return ie(i,{code:J.invalid_type,expected:se.map,received:i.parsedType}),ye;const r=this._def.keyType,a=this._def.valueType,s=[...i.data.entries()].map(([o,l],u)=>({key:r._parse(new ka(i,o,i.path,[u,"key"])),value:a._parse(new ka(i,l,i.path,[u,"value"]))}));if(i.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}IO.create=(e,t,n)=>new IO({valueType:t,keyType:e,typeName:ve.ZodMap,...ke(n)});class Ec extends Le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==se.set)return ie(i,{code:J.invalid_type,expected:se.set,received:i.parsedType}),ye;const r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(ie(i,{code:J.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(ie(i,{code:J.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const a=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...i.data.values()].map((l,u)=>a._parse(new ka(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new Ec({...this._def,minSize:{value:t,message:le.toString(n)}})}max(t,n){return new Ec({...this._def,maxSize:{value:t,message:le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ec.create=(e,t)=>new Ec({valueType:e,minSize:null,maxSize:null,typeName:ve.ZodSet,...ke(t)});class PO extends Le{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}PO.create=(e,t)=>new PO({getter:e,typeName:ve.ZodLazy,...ke(t)});class BO extends Le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:J.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}}BO.create=(e,t)=>new BO({value:e,typeName:ve.ZodLiteral,...ke(t)});function UO(e,t){return new ll({values:e,typeName:ve.ZodEnum,...ke(t)})}class ll extends Le{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:Be.joinValues(i),received:n.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{received:n.data,code:J.invalid_enum_value,options:i}),ye}return bi(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return ll.create(t,{...this._def,...n})}exclude(t,n=this._def){return ll.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}ll.create=UO;class zO extends Le{_parse(t){const n=Be.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==se.string&&i.parsedType!==se.number){const r=Be.objectValues(n);return ie(i,{expected:Be.joinValues(r),received:i.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(Be.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=Be.objectValues(n);return ie(i,{received:i.data,code:J.invalid_enum_value,options:r}),ye}return bi(t.data)}get enum(){return this._def.values}}zO.create=(e,t)=>new zO({values:e,typeName:ve.ZodNativeEnum,...ke(t)});class Nh extends Le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return ie(n,{code:J.invalid_type,expected:se.promise,received:n.parsedType}),ye;const i=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return bi(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Nh.create=(e,t)=>new Nh({type:e,typeName:ve.ZodPromise,...ke(t)});class ul extends Le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,a={addIssue:s=>{ie(i,s),s.fatal?n.abort():n.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const s=r.transform(i.data,a);if(i.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?yc(l.value):l});{if(n.value==="aborted")return ye;const o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?ye:o.status==="dirty"||n.value==="dirty"?yc(o.value):o}}if(r.type==="refinement"){const s=o=>{const l=r.refinement(o,a);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(r.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!sl(s))return ye;const o=r.transform(s.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>sl(s)?Promise.resolve(r.transform(s.value,a)).then(o=>({status:n.value,value:o})):ye);Be.assertNever(r)}}ul.create=(e,t,n)=>new ul({schema:e,typeName:ve.ZodEffects,effect:t,...ke(n)}),ul.createWithPreprocess=(e,t,n)=>new ul({schema:t,effect:{type:"preprocess",transform:e},typeName:ve.ZodEffects,...ke(n)});class Na extends Le{_parse(t){return this._getType(t)===se.undefined?bi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Na.create=(e,t)=>new Na({innerType:e,typeName:ve.ZodOptional,...ke(t)});class cl extends Le{_parse(t){return this._getType(t)===se.null?bi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}cl.create=(e,t)=>new cl({innerType:e,typeName:ve.ZodNullable,...ke(t)});class qb extends Le{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===se.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}qb.create=(e,t)=>new qb({innerType:e,typeName:ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ke(t)});class Gb extends Le{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ch(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Lr(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Lr(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Gb.create=(e,t)=>new Gb({innerType:e,typeName:ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ke(t)});class jO extends Le{_parse(t){if(this._getType(t)!==se.nan){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:se.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}}jO.create=e=>new jO({typeName:ve.ZodNaN,...ke(e)});class OQ extends Le{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Xb extends Le{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?ye:a.status==="dirty"?(n.dirty(),yc(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ye:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new Xb({in:t,out:n,typeName:ve.ZodPipeline})}}class $b extends Le{_parse(t){const n=this._def.innerType._parse(t),i=r=>(sl(r)&&(r.value=Object.freeze(r.value)),r);return Ch(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}}$b.create=(e,t)=>new $b({innerType:e,typeName:ve.ZodReadonly,...ke(t)});var ve;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ve||(ve={}));const HO=Oa.create;Ra.create,rr.create;const RQ=kt.create;Oh.create,Rh.create,Es.create,ll.create,Nh.create,Na.create,cl.create;const Dh=E.forwardRef(({className:e,type:t,...n},i)=>{const{isSmallScreen:r}=nr();return v.jsx(Ar,{ref:i,children:v.jsx("input",{type:t,className:ce(r?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rounded-2xl px-4","border shadow-sm",e),...n})})});Dh.displayName="Input";function NQ(){const{contentIframeRef:e}=Ut(),{inline:t}=tt(),n=E.useRef(null);return E.useEffect(()=>{const i=e==null?void 0:e.current;if(i&&n.current){const r=n.current;let a;const s=new ResizeObserver(()=>{a=requestAnimationFrame(()=>{const o=r.offsetHeight;i.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(r),()=>{cancelAnimationFrame(a),s.unobserve(r)}}},[e,t]),{observedElementRef:n}}const DQ=RQ({name:HO().min(2),email:HO().email()});function MQ(){var m,y,x,w,S,k,D,L;const{widgetCtx:{org:e}}=Ut(),{setIsOpen:t}=ko(),{createUnverifiedContact:n}=wL(),{isSmallScreen:i}=nr(),r=tt(),{theme:a}=ys(),{t:s}=xs(),{observedElementRef:o}=NQ();Ab({height:void 0,width:a.screens.welcome.width});const[l,u]=E.useState(((m=r.prefillUserData)==null?void 0:m.name)||""),[c,f]=E.useState(((y=r.prefillUserData)==null?void 0:y.email)||""),d=(r.extraDataCollectionFields||[]).filter(B=>B!=="name"&&B!=="email"&&!!B),[h,g]=E.useState({}),[b,T]=iQ(async B=>{B.preventDefault();const R=DQ.safeParse({name:l,email:c});R.success&&await n({email:R.data.email,non_verified_name:R.data.name},Object.values(h).filter(Boolean).length?h:void 0)},[l,c,h]);return v.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:a.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:v.jsxs("div",{ref:o,className:ce("flex flex-col",i&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[v.jsxs("div",{className:ce("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[i&&v.jsx(rt,{className:"absolute top-6 end-6",children:v.jsx(Tt,{size:"selfless",onClick:()=>t(!1),children:v.jsx(jd,{className:"size-4"})})}),v.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(x=r.assets)!=null&&x.organizationLogo?v.jsx("img",{src:(w=r.assets)==null?void 0:w.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):v.jsx("h2",{className:"font-bold text-sm",children:e.name})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((k=(S=r.textContent)==null?void 0:S.welcomeScreen)==null?void 0:k.title)||s("welcome-title")}),v.jsx("p",{className:"text-sm",children:((L=(D=r.textContent)==null?void 0:D.welcomeScreen)==null?void 0:L.description)||s("welcome-description")})]})]}),v.jsxs("div",{className:ce("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[v.jsxs("form",{onSubmit:T,className:"space-y-2",children:[v.jsx(Dh,{value:l,onChange:B=>u(B.target.value),required:!0,placeholder:s("your-name"),name:"name"}),v.jsx(Dh,{required:!0,value:c,onChange:B=>f(B.target.value),type:"email",placeholder:s("your-email"),name:"email"}),d.map(B=>v.jsx(Dh,{value:h[B],onChange:R=>g(Y=>({...Y,[B]:R.target.value})),placeholder:`${B} (${s("optional")})`},B)),v.jsxs(Tt,{disabled:b.loading,className:"w-full",size:"lg",children:[b.loading?s("starting-chat"):s("start-chat"),v.jsx(J7,{className:"size-4 rtl:-scale-100"})]})]}),v.jsx(yO,{})]})]})})}function FO(){const{routerState:{screen:e}}=_r();return v.jsx("div",{className:"relative bg-background size-full",children:v.jsx(zt,{mode:"wait",children:(()=>{switch(e){case"welcome":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(MQ,{})},e);case"sessions":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(ZK,{})},e);case"chat":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(XK,{})},e);default:return ci(e,FO.name),null}})()})})}const LQ=`<!DOCTYPE html>
|
|
328
|
-
<html>
|
|
329
|
-
<head>
|
|
330
|
-
<style>
|
|
331
|
-
${y6}
|
|
332
|
-
html, body {
|
|
333
|
-
height: 100%;
|
|
334
|
-
width: 100%;
|
|
335
|
-
margin: 0;
|
|
336
|
-
padding: 0;
|
|
337
|
-
font-size: 16px;
|
|
338
|
-
}
|
|
339
|
-
</style>
|
|
340
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">
|
|
341
|
-
</head>
|
|
342
|
-
<body>
|
|
343
|
-
</body>
|
|
344
|
-
</html>`;function VO(){const{isOpen:e}=ko(),{contentIframeRef:t}=Ut(),{cssOverrides:n,inline:i}=tt(),{theme:r,cssVars:a,computed:s}=ys(),{dir:o}=xs();return v.jsx(Vu.div,{animate:e?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block",height:i?"100%":void 0}},children:v.jsxs(Eb,{ref:t,initialContent:LQ,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":s.minWidth,"--opencx-widget-height":s.minHeight,minWidth:s.minWidth,width:"var(--opencx-widget-width)",maxWidth:s.maxWidth,minHeight:s.minHeight,height:"var(--opencx-widget-height)",maxHeight:s.maxHeight,overflow:"hidden",outline:r.widgetContentContainer.outline,outlineColor:r.widgetContentContainer.outlineColor,borderRadius:r.widgetContentContainer.borderRadius,boxShadow:r.widgetContentContainer.boxShadow,transitionProperty:r.widgetContentContainer.transitionProperty,transitionTimingFunction:r.widgetContentContainer.transitionTimingFunction,transitionDuration:r.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[n&&v.jsx("style",{children:n}),v.jsx("div",{style:{...a,zIndex:r.widgetContentContainer.zIndex},"data-version":wT,className:ce("antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"),dir:o,children:v.jsx(GX,{delayDuration:200,disableHoverableContent:!0,children:v.jsx(aB,{children:v.jsx(FO,{})})})})]})})}function IQ(){const{theme:e}=ys();return v.jsx(QM,{onInteractOutside:t=>t.preventDefault(),forceMount:!0,style:{zIndex:e.widgetContentContainer.zIndex,fontSize:"16px"},side:"top",align:"end",sideOffset:e.widgetContentContainer.offset.side,alignOffset:e.widgetContentContainer.offset.align,avoidCollisions:!1,children:v.jsx(VO,{})})}function PQ({className:e,style:t}){return v.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ce("text-primary-foreground",e),style:t,children:[v.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}const BQ=`<!DOCTYPE html>
|
|
345
|
-
<html>
|
|
346
|
-
<head>
|
|
347
|
-
<style>
|
|
348
|
-
${y6}
|
|
349
|
-
html, body {
|
|
350
|
-
height: 100%;
|
|
351
|
-
width: 100%;
|
|
352
|
-
margin: 0;
|
|
353
|
-
padding: 0;
|
|
354
|
-
font-size: 16px;
|
|
355
|
-
}
|
|
356
|
-
</style>
|
|
357
|
-
</head>
|
|
358
|
-
<body>
|
|
359
|
-
</body>
|
|
360
|
-
</html>`;function UQ(){var a,s;const{isOpen:e}=ko(),{cssOverrides:t,assets:n}=tt(),{theme:i,cssVars:r}=ys();return v.jsxs(Eb,{initialContent:BQ,style:{height:`calc(${i.widgetTrigger.size.button}px + ${No.x*2}px)`,width:`calc(${i.widgetTrigger.size.button}px + ${No.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:i.widgetTrigger.zIndex,right:i.widgetTrigger.offset.right,bottom:i.widgetTrigger.offset.bottom,left:i.widgetTrigger.offset.left,boxSizing:"border-box",borderWidth:"0px",borderRadius:"100%"},children:[t&&v.jsx("style",{children:t}),v.jsx("div",{style:{...r,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(lw,{className:ce("font-sans flex items-center justify-center rounded-full"),style:{height:i.widgetTrigger.size.button,width:i.widgetTrigger.size.button},children:v.jsx(Ar,{children:v.jsx("div",{...je("trigger/btn"),className:ce("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:v.jsx(zt,{mode:"wait",children:e?v.jsx(rt,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(a=n==null?void 0:n.widgetTrigger)!=null&&a.closeIcon?v.jsx("img",{src:n.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:i.widgetTrigger.size.icon,height:i.widgetTrigger.size.icon}}):v.jsx(I7,{style:{width:i.widgetTrigger.size.icon,height:i.widgetTrigger.size.icon}})},"x-icon"):v.jsx(rt,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(s=n==null?void 0:n.widgetTrigger)!=null&&s.openIcon?v.jsx("img",{src:n.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:i.widgetTrigger.size.icon,height:i.widgetTrigger.size.icon}}):v.jsx(PQ,{style:{width:i.widgetTrigger.size.icon,height:i.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function zQ(){const{dir:e}=$0();return v.jsx(KM,{style:{position:"fixed",bottom:0,right:e==="ltr"?0:void 0,left:e==="rtl"?0:void 0}})}function jQ(){const{isOpen:e,setIsOpen:t}=ko();return v.jsxs($M,{open:e,onOpenChange:t,children:[v.jsx(zQ,{}),v.jsx(UQ,{}),v.jsx(IQ,{})]})}const HQ=[{key:"loading",component:xX},{key:"fallback",component:rX},{key:"bot_message",component:hb},{key:"agent_message",component:hb}],FQ={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}};function VQ({options:e,components:t=[],loadingComponent:n}){return v.jsx(TL,{components:[...HQ,...t],options:e,storage:FQ,loadingComponent:n,children:v.jsx(SL,{children:e.inline?v.jsx(VO,{}):v.jsx(jQ,{})})})}const YQ="opencx-root";function qQ(e){GQ(YQ,v.jsx(VQ,{options:e}))}window.initOpenScript=qQ,window.openCXWidgetVersion=wT;function GQ(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),ZN.createRoot(n).render(t)}})();
|
|
361
|
-
//# sourceMappingURL=script.js.map
|